From b6b288f0de68f54469ead2ec6fc32a6ef2912746 Mon Sep 17 00:00:00 2001 From: Alex Ren <41168529+qcoral@users.noreply.github.com> Date: Fri, 30 May 2025 15:58:02 -0400 Subject: [PATCH] refactored site, added new content --- app/controllers/guides_controller.rb | 2 + app/helpers/guides_helper.rb | 2 + app/views/guides/_sidebar.html.erb | 17 ++++++++ app/views/guides/game-console.md | 3 ++ app/views/guides/overview.md | 14 +++++++ app/views/guides/show.html.erb | 4 ++ app/views/layouts/guides.html.erb | 45 ++++++++++++++++++++++ app/views/overview/_sidebar.html.erb | 2 +- app/views/overview/overview.md | 17 +++++--- app/views/overview/starter-projects.md | 44 +++++++++++++++++++++ app/views/shared/_topbar.html.erb | 2 +- config/routes.rb | 3 ++ test/controllers/guides_controller_test.rb | 7 ++++ 13 files changed, 154 insertions(+), 8 deletions(-) create mode 100644 app/controllers/guides_controller.rb create mode 100644 app/helpers/guides_helper.rb create mode 100644 app/views/guides/_sidebar.html.erb create mode 100644 app/views/guides/game-console.md create mode 100644 app/views/guides/overview.md create mode 100644 app/views/guides/show.html.erb create mode 100644 app/views/layouts/guides.html.erb create mode 100644 app/views/overview/starter-projects.md create mode 100644 test/controllers/guides_controller_test.rb diff --git a/app/controllers/guides_controller.rb b/app/controllers/guides_controller.rb new file mode 100644 index 0000000..d182580 --- /dev/null +++ b/app/controllers/guides_controller.rb @@ -0,0 +1,2 @@ +class GuidesController < MarkdownController +end diff --git a/app/helpers/guides_helper.rb b/app/helpers/guides_helper.rb new file mode 100644 index 0000000..446f38a --- /dev/null +++ b/app/helpers/guides_helper.rb @@ -0,0 +1,2 @@ +module GuidesHelper +end diff --git a/app/views/guides/_sidebar.html.erb b/app/views/guides/_sidebar.html.erb new file mode 100644 index 0000000..b8aa685 --- /dev/null +++ b/app/views/guides/_sidebar.html.erb @@ -0,0 +1,17 @@ +
The guides!
+ <%= link_to "Game Console", guides_page_path("game-console"), class: "#{current_page?(guides_page_path("game-console")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 px-6 rounded transition duration-100 block font-dystopian" %> + <%# <%= link_to "Other communities", guides_page_path("faq"), class: "#{current_page?(guides_page_path("submit")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block font-dystopian" %> +
+- **Tier 3:** get 4 points, up to $50 USD
+- **Tier 2:** get 6 points, up to $150 USD
+- **Tier 1:** get 10 points, up to $350 USD
-[Custom projects](/advanced) are fully self-directed! You'll be responsible for all the research, and in return, you'll get a debit card of up to $350* USD to spend on your project! *You must journal your progress while working on custom projects*
+Each tier has progressively harder guidelines. Check out the [Custom projects](/advanced) tab for all the info you need - including project guidelines!
-(check out the top bar to see more about each path!)
-**You can make an unlimited amount of projects, so get building!**
+Head on over to the [custom projects](/advanced) are fully self-directed! You'll be responsible for all the research, and in return, you'll get a debit card of up to $350* USD to spend on your project! *You must journal your progress while working on custom projects*
+
+*You can make an unlimited amount of projects, so get building!*
+
+**If you're a complete beginner, head on over to check out our [starter projects](/getting-started/starter-projects)! They're designed to help you get jumpstarted**
---
diff --git a/app/views/overview/starter-projects.md b/app/views/overview/starter-projects.md
new file mode 100644
index 0000000..8deb2ae
--- /dev/null
+++ b/app/views/overview/starter-projects.md
@@ -0,0 +1,44 @@
+# Starter projects!
+
+**Starter projects** are existing Hack Club programs that are designed to help guide you along your hardware journey!
+
+They're called YSWSes, short for You Ship, We Ships. You ship a design, we'll ship you the parts!
+
+**All of the parts will come straight from Hack Club HQ**, so you don't need to worry about sourcing or logistics. Just design & learn.
+
+*Starter projects will automatically count for points once approved. Submission instructions are on their relative websites*
+
+---
+
+## Hackpad - 4 points
+
+**Hackpad** is a beginner YSWS that teaches you how to make your very first *macropad* from scratch! It'll help you create your own PCB, design your own 3D printed case, and setup the firmware for it from scratch.
+
+In return, you'll get all the parts to make your macropad! This includes up to 16 switches, diodes, OLED screens, and more!
+
+
+
+[hackpad.hackclub.com](https://hackpad.hackclub.com)
+
+
+
+*This is the most popular running hardware YSWS, with over 400 submissions to date*
+
+---
+
+## Solder - 1 point
+Solder is a beginner YSWS that teaches you how to make your very first PCB from scratch!
+
+It'll walk you through the process step-by-step of setting up the software, placing down all the components, and getting it ready for fabrication!
+
+
+
+[solder.hackclub.com](https://solder.hackclub.com)
+
+In return, you'll get a $5 grant to uby your PCB and a kit of hardware components to play around with
+
+
+
+
+
+
diff --git a/app/views/shared/_topbar.html.erb b/app/views/shared/_topbar.html.erb
index 852ae21..a3ab122 100644
--- a/app/views/shared/_topbar.html.erb
+++ b/app/views/shared/_topbar.html.erb
@@ -25,8 +25,8 @@