diff --git a/app/AuthClientProvider.tsx b/app/AuthClientProvider.tsx index e64460e..a016362 100644 --- a/app/AuthClientProvider.tsx +++ b/app/AuthClientProvider.tsx @@ -15,7 +15,13 @@ export default function AuthClientProvider({ useEffect(() => { if (loading) return; - if (pathname === "/" || pathname === "/auth") return; + if ( + pathname === "/" || + pathname === "/auth" || + pathname === "/terms" || + pathname === "/privacy" + ) + return; if (!user.isLoggedIn) { router.replace("/auth"); return; diff --git a/app/privacy/page.tsx b/app/privacy/page.tsx new file mode 100644 index 0000000..67da1d2 --- /dev/null +++ b/app/privacy/page.tsx @@ -0,0 +1,11 @@ +export default function PrivacyPage() { + return ( +
+ This page is under construction. Please check back later for the privacy + policy. +

+ If you have any questions, please contact support. +

+
+ ); +} diff --git a/app/terms/page.tsx b/app/terms/page.tsx new file mode 100644 index 0000000..5cd6730 --- /dev/null +++ b/app/terms/page.tsx @@ -0,0 +1,11 @@ +export default function TermsPage() { + return ( +
+ This page is under construction. Please check back later for the terms and + conditions. +

+ If you have any questions, please contact support. +

+
+ ); +} diff --git a/components/organisation/courses/CourseCard.tsx b/components/organisation/courses/CourseCard.tsx index 7cff15a..546574a 100644 --- a/components/organisation/courses/CourseCard.tsx +++ b/components/organisation/courses/CourseCard.tsx @@ -153,7 +153,11 @@ export default function CourseCard({ return (

{course.name}

-

{course.description?.slice(0, 100)}

+

+ {course.description && course.description?.length < 100 + ? course.description + : `${course.description?.slice(0, 100)}...`} +

{(course.channel || course.level) && (