diff --git a/src/components/Classes/Class.svelte b/src/components/Courses/components/Course.svelte similarity index 58% rename from src/components/Classes/Class.svelte rename to src/components/Courses/components/Course.svelte index 27325d9e..509f149e 100644 --- a/src/components/Classes/Class.svelte +++ b/src/components/Courses/components/Course.svelte @@ -1,30 +1,61 @@ +
+ {@html marked(readme, { + breaks: true, + gfm: true, + })} + +
+ - -
- {#each lectures as lecture, key} -

{lecture}

-
-

- Lecture {lectures.length - key} -

-

- Here is some description about the course that you should know. It will - begin on the first and end on the second of the next month. -

-
- - 5 - - 20 -
-
- {/each} -
diff --git a/src/components/Courses/components/CourseNav.svelte b/src/components/Courses/components/CourseNav.svelte new file mode 100644 index 00000000..9b2a9905 --- /dev/null +++ b/src/components/Courses/components/CourseNav.svelte @@ -0,0 +1,74 @@ + + +
+ +
+ + {#each lectures as lecture} + + # {lecture.title} + + {/each} + +
+
+ + diff --git a/src/components/Courses/components/readme.js b/src/components/Courses/components/readme.js new file mode 100644 index 00000000..f2936e1a --- /dev/null +++ b/src/components/Courses/components/readme.js @@ -0,0 +1,42 @@ +export default ` +

+ + +

React.js

+ +

+ +## Getting Started + +Visit https://nextjs.org/learn to get started with Next.js. + +## Documentation + +Visit [https://nextjs.org/docs](https://nextjs.org/docs) to view the full documentation. + +## Who is using Next.js? + +Next.js is used by the world's leading companies. Check out the [Next.js Showcase](https://nextjs.org/showcase) to learn more. + +## Community + +The Next.js community can be found on [GitHub Discussions](https://github.com/vercel/next.js/discussions), where you can ask questions, voice ideas, and share your projects. + +To chat with other community members you can join the [Next.js Discord](https://nextjs.org/discord). + +Our [Code of Conduct](https://github.com/vercel/next.js/blob/canary/CODE_OF_CONDUCT.md) applies to all Next.js community channels. + +## Contributing + +Please see our [contributing.md](/contributing.md). + +## Authors + +- Tim Neutkens ([@timneutkens](https://twitter.com/timneutkens)) – [Vercel](https://vercel.com/about/timneutkens) +- Naoyuki Kanezawa ([@nkzawa](https://twitter.com/nkzawa)) – [Vercel](https://vercel.com/about/nkzawa) +- Guillermo Rauch ([@rauchg](https://twitter.com/rauchg)) – [Vercel](https://vercel.com/about/rauchg) +- Arunoda Susiripala ([@arunoda](https://twitter.com/arunoda)) +- Tony Kovanen ([@tonykovanen](https://twitter.com/tonykovanen)) +- Dan Zajdband ([@impronunciable](https://twitter.com/impronunciable)) + +` \ No newline at end of file diff --git a/src/components/Classes/index.svelte b/src/components/Courses/index.svelte similarity index 60% rename from src/components/Classes/index.svelte rename to src/components/Courses/index.svelte index 1fea3f53..a73ce7b5 100644 --- a/src/components/Classes/index.svelte +++ b/src/components/Courses/index.svelte @@ -3,7 +3,7 @@ import Catalog16 from "carbon-icons-svelte/lib/Catalog16"; import Chip from "../Chip/index.svelte"; - export let classes = [ + export let courses = [ { chipClassName: "bg-green-600 text-white", chipLabel: "In progress", @@ -15,19 +15,49 @@ ]; +
+ {#each courses as courseData, index} +
+

+ QA Automation 0{courses.length - index} + +

+

+ Here is some description about the course that you should know. It will + begin on the first and end on the second of the next month. +

+
+ + 5 + + 20 +
+
+ {/each} +
+ - -
- {#each classes as classData, index} -
-

- QA Automation 0{classes.length - index} - -

-

- Here is some description about the course that you should know. It will - begin on the first and end on the second of the next month. -

-
- - 5 - - 20 -
-
- {/each} -
diff --git a/src/components/Expandable/index.svelte b/src/components/Expandable/index.svelte new file mode 100644 index 00000000..e89b8277 --- /dev/null +++ b/src/components/Expandable/index.svelte @@ -0,0 +1,44 @@ + + +
+
+ + {label} +
+ {#if isExpanded} +
+ +
+ {/if} +
+ + diff --git a/src/components/LeftNav/index.svelte b/src/components/LeftNav/index.svelte index 90e671bb..e5122fac 100644 --- a/src/components/LeftNav/index.svelte +++ b/src/components/LeftNav/index.svelte @@ -2,6 +2,7 @@ import NewQuestion from "../NewQuestion/index.svelte"; import Forum32 from "carbon-icons-svelte/lib/Forum32"; import SendAlt32 from "carbon-icons-svelte/lib/SendAlt32"; + import Catalog32 from "carbon-icons-svelte/lib/Catalog32"; import UserAvatar32 from "carbon-icons-svelte/lib/UserAvatar32"; import Calendar32 from "carbon-icons-svelte/lib/Calendar32"; export let segment; @@ -11,7 +12,7 @@ - - - - - -
- - - -
- -