diff --git a/README.md b/README.md index 2407d9d..03a343b 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,10 @@ [ TODO LIST ] - [ ] Quizes System +- [ ] Fixing janky ts-types - [ ] Main-Page ( Better design ) -- [ ] Login and save progress +- [ ] Markdown and cache ( Better code ) +- [ ] Login || LocalStorage and save progress - [ ] Themes, theme settings --- diff --git a/components/Collapse.tsx b/components/Collapse.tsx index 1106c42..00cd263 100644 --- a/components/Collapse.tsx +++ b/components/Collapse.tsx @@ -6,7 +6,7 @@ export default function Collapse( return (
diff --git a/routes/group/[slug].tsx b/routes/group/[slug].tsx index f415c72..16fc761 100644 --- a/routes/group/[slug].tsx +++ b/routes/group/[slug].tsx @@ -1,11 +1,10 @@ -import { Course, CourseGroup } from "../../utils/types.ts"; -import { getCourse } from "../../utils/course.ts"; +import { CourseGroup } from "../../utils/types.ts"; import { Handlers } from "$fresh/server.ts"; import { PageProps } from "$fresh/server.ts"; -import { CSS, render } from "$gfm"; import { Head } from "$fresh/runtime.ts"; import { cache, populateCache } from "../../utils/course-cache.ts"; import CourseCard from "../../components/CourseCard.tsx"; +import Footer from "../../components/Footer.tsx"; import IconChevronDown from "https://deno.land/x/tabler_icons_tsx@0.0.5/tsx/chevron-down.tsx"; @@ -25,20 +24,28 @@ export const handler: Handlers = { export default function CoursePage(props: PageProps) { const foundCourseGroup = props.data; - return ( -
-
-

- {foundCourseGroup.label} -

- -
-
- {foundCourseGroup.courses.map((innerCourse) => ( - - ))} -
-
+ <> + + نخلة - {foundCourseGroup.label} + + +
+
+
+

+ {foundCourseGroup.label} +

+ +
+
+ {foundCourseGroup.courses.map((innerCourse) => ( + + ))} +
+
+
+ ); }