Apply the public site UI checklist.
Align header, footer, brand, homepage course preview, faculty links, and the course catalog with the documented changes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8886aa8640
commit
de800d27b1
139 files changed
+3311
-1547
No files matched your search
@@ -12,6 +12,18 @@ export async function getCourses(): Promise<Course[]> {
|
||||
return res.rows.map(rowToCourse);
|
||||
}
|
||||
|
||||
/** Latest published courses for home preview (newest first). */
|
||||
export async function getLatestCourses(limit = 6): Promise<Course[]> {
|
||||
const res = await query<CourseRow>(
|
||||
`${COURSE_WITH_TAXONOMY_SELECT}
|
||||
WHERE c.published = true
|
||||
ORDER BY c.created_at DESC, c.title ASC
|
||||
LIMIT $1`,
|
||||
[limit],
|
||||
);
|
||||
return res.rows.map(rowToCourse);
|
||||
}
|
||||
|
||||
export async function getCourseById(id: string): Promise<Course | null> {
|
||||
const res = await query<CourseRow>(
|
||||
`${COURSE_WITH_TAXONOMY_SELECT}
|
||||
|
||||
Reference in new issue
Block a user