From 6ac493c82f2680da3af14bfa07652b9306c4b315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Schl=C3=A4fli?= Date: Tue, 14 Nov 2023 21:25:57 +0100 Subject: [PATCH] chore(apps/website): add gbl seminar --- .../src/components/courses/CourseEntry.tsx | 17 ++++++++++++++--- apps/website/src/pages/games/index.tsx | 1 + kb | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/apps/website/src/components/courses/CourseEntry.tsx b/apps/website/src/components/courses/CourseEntry.tsx index fa5a3601..472abe5c 100644 --- a/apps/website/src/components/courses/CourseEntry.tsx +++ b/apps/website/src/components/courses/CourseEntry.tsx @@ -1,5 +1,6 @@ import { H3, Prose, Tag } from '@uzh-bf/design-system' import { MDXRemote } from 'next-mdx-remote' +import { twMerge } from 'tailwind-merge' interface Props { name: string @@ -8,6 +9,7 @@ interface Props { semester: string href: string institution: string + highlight?: boolean description?: any } @@ -19,10 +21,16 @@ function CourseEntry({ institution, href, description, -}: Props) { + highlight, +}: Readonly) { return ( -
+

{name}

@@ -31,7 +39,10 @@ function CourseEntry({ {institution && } {semester && } {level && }{' '} - {ects && } + {typeof ects !== 'undefined' && } + {highlight && ( + + )}
diff --git a/apps/website/src/pages/games/index.tsx b/apps/website/src/pages/games/index.tsx index 89c03ac1..33382637 100644 --- a/apps/website/src/pages/games/index.tsx +++ b/apps/website/src/pages/games/index.tsx @@ -107,6 +107,7 @@ function GBLinUse({ sourceArr }: Props) { href={frontmatter.href} semester={frontmatter.semester} institution={frontmatter.institution} + highlight={frontmatter.highlight} description={source} /> ))} diff --git a/kb b/kb index 906ce773..a6f4f064 160000 --- a/kb +++ b/kb @@ -1 +1 @@ -Subproject commit 906ce7730e09c2dd455c0e8bc051d95c0ba901ae +Subproject commit a6f4f06413da532ce9a7e2b7575b9eb7ee19c289