diff --git a/src/components/Courses.astro b/src/components/Courses.astro new file mode 100644 index 0000000..f031ee7 --- /dev/null +++ b/src/components/Courses.astro @@ -0,0 +1,36 @@ +--- +import courses from '../data/courses.json'; +--- +
+
+

+ Level Up With Our Courses + 📚 +

+ +
+
\ No newline at end of file diff --git a/src/components/Footer.astro b/src/components/Footer.astro new file mode 100644 index 0000000..57b8cb9 --- /dev/null +++ b/src/components/Footer.astro @@ -0,0 +1,10 @@ +--- +--- + \ No newline at end of file diff --git a/src/components/Header.astro b/src/components/Header.astro new file mode 100644 index 0000000..d4778c7 --- /dev/null +++ b/src/components/Header.astro @@ -0,0 +1,23 @@ +--- +import Navigation from './Navigation.astro'; +import MobileMenu from './MobileMenu.astro'; +import MobileNav from './MobileNav.astro'; +--- + + Skip to main content + + +
+
+ +
+ +
\ No newline at end of file diff --git a/src/components/Hero.astro b/src/components/Hero.astro new file mode 100644 index 0000000..561ba8a --- /dev/null +++ b/src/components/Hero.astro @@ -0,0 +1,26 @@ +--- +--- +
+ + + +
+

+ Open Source Communities +

+

+ A place for contributors and maintainers to grow, support, and celebrate each other. +

+ +
+
\ No newline at end of file diff --git a/src/components/MobileMenu.astro b/src/components/MobileMenu.astro new file mode 100644 index 0000000..3d9225c --- /dev/null +++ b/src/components/MobileMenu.astro @@ -0,0 +1,21 @@ +--- +--- +
+ +
+ + \ No newline at end of file diff --git a/src/components/MobileNav.astro b/src/components/MobileNav.astro new file mode 100644 index 0000000..e8edac9 --- /dev/null +++ b/src/components/MobileNav.astro @@ -0,0 +1,9 @@ +--- +--- + \ No newline at end of file diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro new file mode 100644 index 0000000..f20a938 --- /dev/null +++ b/src/components/Navigation.astro @@ -0,0 +1,7 @@ +--- +--- + \ No newline at end of file diff --git a/src/components/Resources.astro b/src/components/Resources.astro new file mode 100644 index 0000000..48c6e71 --- /dev/null +++ b/src/components/Resources.astro @@ -0,0 +1,24 @@ +--- +import resources from '../data/resources.json'; +--- +
+
+

+ Other Great OSS Resources + 🌐 +

+
+ {resources.map(resource => ( + + {resource.name} + + ))} +
+
+
\ No newline at end of file diff --git a/src/components/Shoutouts.astro b/src/components/Shoutouts.astro new file mode 100644 index 0000000..99bf779 --- /dev/null +++ b/src/components/Shoutouts.astro @@ -0,0 +1,60 @@ +--- +import shoutouts from '../data/shoutouts.json'; +--- +
+
+

+ Community Shoutouts + 🙌 +

+ +
+
+
+

Give a Shoutout!

+

+ Recognize someone amazing in the open source community +

+ +
+
+
+ +
+

Recent Shoutouts

+
+ {shoutouts.map(shoutout => ( +
+
+

"{shoutout.message}"

+
+
+

{shoutout.from}

+

to {shoutout.to}

+
+ {shoutout.githubLink && ( + + GitHub + + + )} +
+
+
+ ))} +
+
+
+
\ No newline at end of file diff --git a/src/components/WeeklyTips.astro b/src/components/WeeklyTips.astro new file mode 100644 index 0000000..90d6ab5 --- /dev/null +++ b/src/components/WeeklyTips.astro @@ -0,0 +1,38 @@ +--- +import { contributorTip, maintainerTip } from '../data/weeklyTips.json'; +--- +
+
+

+ This Week's Tips + 🧠 +

+
+
+
+
+
+ 👩‍💻 +
+

Contributor Tip

+
+

{contributorTip.content}

+

#{contributorTip.week} - {contributorTip.date}

+
+
+ +
+
+
+
+ 🛠️ +
+

Maintainer Tip

+
+

{maintainerTip.content}

+

#{maintainerTip.week} - {maintainerTip.date}

+
+
+
+
+
\ No newline at end of file diff --git a/src/components/Welcome.astro b/src/components/Welcome.astro deleted file mode 100644 index a87b0b5..0000000 --- a/src/components/Welcome.astro +++ /dev/null @@ -1,363 +0,0 @@ ---- -// Simple data for our MVP -const contributorTip = { - week: 1, - date: "May 1, 2023", - content: "When starting to contribute to a new project, look for issues labeled 'good first issue' or 'beginner friendly' to get familiar with the codebase." -}; - -const maintainerTip = { - week: 1, - date: "May 1, 2023", - content: "Consider creating a comprehensive CONTRIBUTING.md file that helps new contributors understand your project's workflow and expectations." -}; - -const shoutouts = [ - { - from: "Sarah Chen", - to: "React Router Project", - message: "Thank you for the amazing documentation that made it super easy for me to implement nested routes in my application!", - githubLink: "https://github.com/remix-run/react-router" - }, - { - from: "Miguel Sanchez", - to: "Kent C. Dodds", - message: "Your testing workshop completely changed how I approach writing tests. Thank you for making testing approachable and fun!", - githubLink: "https://github.com/kentcdodds" - } -]; - -const courses = [ - { - title: "Intro to Contributing", - description: "Learn how to make your first open source contribution", - url: "https://opensauced.pizza/learn", - icon: "🚀" - }, - { - title: "Becoming a Maintainer", - description: "Discover the path to maintaining your own open source project", - url: "https://opensauced.pizza/learn", - icon: "🛠️" - } -]; - -const resources = [ - { name: "contributor.info", url: "https://contributor.info" }, - { name: "collab.dev", url: "https://collab.dev" }, - { name: "goodfirstissue.dev", url: "https://goodfirstissue.dev" }, - { name: "virtualcoffee.io", url: "https://virtualcoffee.io" } -]; ---- - - - - Skip to main content - - -
-
-
- - - - - - - -
- -
-
-
- - - -
- - - - - - - - - -
- -
- - - -
-

- Open Source Communities -

-

- A place for contributors and maintainers to grow, support, and celebrate each other. -

- -
-
- - -
-
-

- This Week's Tips - 🧠 -

-
- -
-
-
-
- 👩‍💻 -
-

Contributor Tip

-
-

{contributorTip.content}

-

#{contributorTip.week} - {contributorTip.date}

-
-
- - -
-
-
-
- 🛠️ -
-

Maintainer Tip

-
-

{maintainerTip.content}

-

#{maintainerTip.week} - {maintainerTip.date}

-
-
-
-
-
- - -
-
-

- Community Shoutouts - 🙌 -

- -
-
-
-

Give a Shoutout!

-

- Recognize someone amazing in the open source community -

- -
-
-
- -
-

Recent Shoutouts

-
- {shoutouts.map(shoutout => ( -
-
-

"{shoutout.message}"

-
-
-

{shoutout.from}

-

to {shoutout.to}

-
- {shoutout.githubLink && ( - - GitHub - - - )} -
-
-
- ))} -
-
-
-
- - -
-
-

- Level Up With Our Courses - 📚 -

- -
-
- - -
-
-

- Other Great OSS Resources - 🌐 -

-
- {resources.map(resource => ( - - {resource.name} - - ))} -
-
-
-
\ No newline at end of file diff --git a/src/data/courses.json b/src/data/courses.json new file mode 100644 index 0000000..422f98e --- /dev/null +++ b/src/data/courses.json @@ -0,0 +1,14 @@ +[ + { + "title": "Intro to Contributing", + "description": "Learn how to make your first open source contribution", + "url": "https://opensauced.pizza/learn", + "icon": "🚀" + }, + { + "title": "Becoming a Maintainer", + "description": "Discover the path to maintaining your own open source project", + "url": "https://opensauced.pizza/learn", + "icon": "🛠️" + } +] \ No newline at end of file diff --git a/src/data/resources.json b/src/data/resources.json new file mode 100644 index 0000000..1bef04a --- /dev/null +++ b/src/data/resources.json @@ -0,0 +1,18 @@ +[ + { + "name": "contributor.info", + "url": "https://contributor.info" + }, + { + "name": "collab.dev", + "url": "https://collab.dev" + }, + { + "name": "goodfirstissue.dev", + "url": "https://goodfirstissue.dev" + }, + { + "name": "virtualcoffee.io", + "url": "https://virtualcoffee.io" + } +] \ No newline at end of file diff --git a/src/data/shoutouts.json b/src/data/shoutouts.json new file mode 100644 index 0000000..75c0db0 --- /dev/null +++ b/src/data/shoutouts.json @@ -0,0 +1,14 @@ +[ + { + "from": "Sarah Chen", + "to": "React Router Project", + "message": "Thank you for the amazing documentation that made it super easy for me to implement nested routes in my application!", + "githubLink": "https://github.com/remix-run/react-router" + }, + { + "from": "Miguel Sanchez", + "to": "Kent C. Dodds", + "message": "Your testing workshop completely changed how I approach writing tests. Thank you for making testing approachable and fun!", + "githubLink": "https://github.com/kentcdodds" + } +] \ No newline at end of file diff --git a/src/data/weeklyTips.json b/src/data/weeklyTips.json new file mode 100644 index 0000000..146bbba --- /dev/null +++ b/src/data/weeklyTips.json @@ -0,0 +1,12 @@ +{ + "contributorTip": { + "week": 1, + "date": "May 1, 2023", + "content": "When starting to contribute to a new project, look for issues labeled 'good first issue' or 'beginner friendly' to get familiar with the codebase." + }, + "maintainerTip": { + "week": 1, + "date": "May 1, 2023", + "content": "Consider creating a comprehensive CONTRIBUTING.md file that helps new contributors understand your project's workflow and expectations." + } +} \ No newline at end of file diff --git a/src/layouts/PagesLayout.astro b/src/layouts/PagesLayout.astro new file mode 100644 index 0000000..fec9153 --- /dev/null +++ b/src/layouts/PagesLayout.astro @@ -0,0 +1,49 @@ +--- +import Header from '../components/Header.astro'; +import Footer from '../components/Footer.astro'; +import '../styles/global.css'; + +export interface Props { + pageTitle: string; +} + +const { pageTitle } = Astro.props; +--- + + + + + + {pageTitle} + + +
+
+
+ +
+
+