diff --git a/public/learning-course/Kitbot.webp b/public/learning-course/Kitbot.webp new file mode 100644 index 0000000..a585ab0 Binary files /dev/null and b/public/learning-course/Kitbot.webp differ diff --git a/public/learning-course/wpilblogo.webp b/public/learning-course/wpilblogo.webp new file mode 100644 index 0000000..8e0095b Binary files /dev/null and b/public/learning-course/wpilblogo.webp differ diff --git a/public/website-feature-guide/slide1.png b/public/website-feature-guide/slide1.png new file mode 100644 index 0000000..a16d760 Binary files /dev/null and b/public/website-feature-guide/slide1.png differ diff --git a/public/website-feature-guide/slide2.png b/public/website-feature-guide/slide2.png new file mode 100644 index 0000000..fcefff5 Binary files /dev/null and b/public/website-feature-guide/slide2.png differ diff --git a/src/components/CourseSection.astro b/src/components/CourseSection.astro new file mode 100644 index 0000000..24fa364 --- /dev/null +++ b/src/components/CourseSection.astro @@ -0,0 +1,167 @@ +--- +import ContentFigure from './ContentFigure.astro'; + +interface Props { + title: string; + href: string; + image?: string; + imageAlt?: string; + imageSide?: 'left' | 'right'; + underConstruction?: boolean; +} + +const { + title, + href, + image, + imageAlt = title, + imageSide = 'right', + underConstruction = false, +} = Astro.props; + +const hasImage = Boolean(image); +--- + +
+ { + hasImage && imageSide === 'left' && ( +
+ +
+ ) + } + +
+

+ {title} + { + underConstruction && ( + + {' '} + (Under Construction) + + ) + } +

+ +
+ + { + hasImage && imageSide === 'right' && ( +
+ +
+ ) + } +
+ + diff --git a/src/config/sidebarConfig.ts b/src/config/sidebarConfig.ts index d59606a..72e16be 100644 --- a/src/config/sidebarConfig.ts +++ b/src/config/sidebarConfig.ts @@ -26,6 +26,153 @@ export const sidebarSections: Record = { }, ], + // Learning Course section + '/learning-course': [ + { + label: 'Learning Course', + items: [ + { label: 'Overview', slug: 'learning-course' }, + { + label: 'Feature Guide', + slug: 'learning-course/getting-started/website-feature-guide', + }, + { + label: 'Course Setup', + collapsed: true, + items: [ + { + label: 'Required Tools', + slug: 'learning-course/getting-started/required-tools', + }, + { + label: 'VS Code Overview', + slug: 'learning-course/getting-started/vscode-overview', + }, + { + label: 'Forking and Cloning', + slug: 'learning-course/getting-started/forking-and-cloning', + }, + ], + }, + { + label: 'Stage 0', + collapsed: true, + items: [ + { + label: 'Stage 0 Introduction', + slug: 'learning-course/intro-to-java/stage-overview', + }, + { + label: 'Intro To Java', + collapsed: true, + items: [ + { + label: 'Java Fundamentals', + slug: 'learning-course/intro-to-java/java-fundamentals', + }, + // { + // label: 'Operators', + // slug: 'learning-course/intro-to-java/operators', + // }, + // { + // label: 'Conditionals', + // slug: 'learning-course/intro-to-java/conditionals', + // }, + // { + // label: 'Loops', + // slug: 'learning-course/intro-to-java/loops', + // }, + // { + // label: 'Objects', + // slug: 'learning-course/intro-to-java/objects', + // }, + // { + // label: 'Methods', + // slug: 'learning-course/intro-to-java/methods', + // }, + ], + }, + ], + }, + { + label: 'Stage 1', + collapsed: true, + items: [ + // { + // label: 'Stage 1 Introduction', + // slug: 'learning-course/stage-1a-commands/overview', + // }, + { + label: 'Stage 1A: TBD', + collapsed: true, + items: [ + // { + // label: 'TBD', + // slug: 'stage-1a-commands/command-based-overview', + // }, + // { + // label: 'TBD', + // slug: 'stage-1a-commands/the-command-body', + // }, + // { + // label: 'TBD', + // slug: 'stage-1a-commands/commands-and-mechanisms', + // }, + ], + }, + { + label: 'Stage 1B: Commands', + collapsed: true, + items: [ + // { + // label: 'Stage 1B Introduction', + // slug: 'learning-course/stage1b/overview', + // }, + // { + // label: '1B', + // collapsed: true, + // items: [ + // { + // label: 'The Concepts', + // slug: 'stage-1b-commands/command-based-overview', + // }, + // { + // label: 'The Body of a Command', + // slug: 'stage-1b-commands/the-command-body', + // }, + // { + // label: 'Commands & Mechanisms, Pt. 1', + // slug: 'stage-1b-commands/commands-and-mechanisms', + // }, + // { + // label: 'Triggers and Scheduling', + // slug: 'stage-1b-commands/triggers', + // }, + // { + // label: 'Commands & Mechanisms, Pt. 2', + // slug: 'stage-1b-commands/commands-and-mechanisms-pt2', + // }, + // { + // label: 'Exercise - Kitbot Rewrite, Pt. 1', + // slug: 'stage-1b-commands/command-based-kitbot', + // }, + // { + // label: 'Suppliers in Command-Based', + // slug: 'stage-1b-commands/suppliers-in-command-based', + // }, + // { + // label: 'Exercise - Kitbot Rewrite, Pt. 2', + // slug: 'stage-1b-commands/command-based-kitbot-pt2', + // }, + // ], + // }, + ], + }, + ], + }, + ], + }, + ], // Educator's Guide section '/educators-guide': [ { @@ -94,7 +241,11 @@ export const sidebarSections: Record = { label: 'Getting Started', items: [ { - label: 'Intro to Programmming', + label: 'Website Feature Guide', + slug: 'getting-started/website-feature-guide', + }, + { + label: 'Intro to Programming', slug: 'getting-started/intro-to-prog', }, { diff --git a/src/content/docs/feature-guide/img/slide1.webp b/src/content/docs/feature-guide/img/slide1.webp deleted file mode 100644 index 388ed02..0000000 Binary files a/src/content/docs/feature-guide/img/slide1.webp and /dev/null differ diff --git a/src/content/docs/feature-guide/img/slide2.webp b/src/content/docs/feature-guide/img/slide2.webp deleted file mode 100644 index 90d948b..0000000 Binary files a/src/content/docs/feature-guide/img/slide2.webp and /dev/null differ diff --git a/src/content/docs/getting-started/intro-to-prog.mdx b/src/content/docs/getting-started/intro-to-prog.mdx deleted file mode 100644 index 9999245..0000000 --- a/src/content/docs/getting-started/intro-to-prog.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Intro to Programming -description: Coming soon! -prev: false -next: getting-started/required-tools ---- - -Coming soon! diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index e0e159d..0e308db 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -10,7 +10,7 @@ hero: html: 'FRCSoftware.org logo' actions: - text: Start Learning - link: /getting-started/intro-to-prog + link: /learning-course/ --- import HomeCard from '../../components/HomeCard.astro'; @@ -18,22 +18,10 @@ import HomeCard from '../../components/HomeCard.astro';
- -