fixed routing & sidebars, markdown is a little broken but ill get that done later

This commit is contained in:
Alex Ren 2025-05-12 22:52:23 -04:00
parent f87387cefe
commit 2ea34a3aa9
20 changed files with 192 additions and 13 deletions

View file

@ -2,10 +2,13 @@
<div class="flex flex-col justify-start p-8">
<div class="text-center grid grid-cols-1 gap-2 text-xl font-dystopian">
<%# link_to "Projects", projects_path, class: "#{current_page?(projects_path) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "asdf", advanced_page_path("getting_started"), class: "#{current_page?(advanced_page_path("getting_started")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Invite to Undercity", advanced_page_path("points"), class: "#{current_page?(advanced_page_path("points")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Project guidelines", advanced_page_path("project_guidelines"), class: "#{current_page?(advanced_page_path("project_guidelines")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "How to submit", advanced_page_path("submit"), class: "#{current_page?(advanced_page_path("submit")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Overview", advanced_page_path("overview"), class: "#{current_page?(advanced_page_path("getting_started")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Project Guidelines", advanced_page_path("project-guidelines"), class: "#{current_page?(advanced_page_path("points")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Submitting", advanced_page_path("submitting"), class: "#{current_page?(advanced_page_path("project_guidelines")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Part Sourcing", advanced_page_path("part-sourcing"), class: "#{current_page?(advanced_page_path("submit")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Design Guide", advanced_page_path("design-guide"), class: "#{current_page?(advanced_page_path("submit")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Communities", advanced_page_path("communities"), class: "#{current_page?(advanced_page_path("submit")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Misc Tips", advanced_page_path("misc-tips"), class: "#{current_page?(advanced_page_path("submit")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
</div>
</div>

View file

@ -0,0 +1,17 @@
---
sidebar_position: 4
---
---STALL---
# Other communities
Hack Club is a *great* place, but the the truth is that we're really small too!
### Discords
- VORON Discord
- QMK discord
### Subreddits
- Keyboards
- Mechanical

View file

@ -0,0 +1,11 @@
# Designing your own project!
1. Come up with an idea
2. Sketch shit
3. Research
4. Design
5. Build

View file

@ -0,0 +1,48 @@
# Custom projects
Have a project idea in mind already? Nice Job.
## Here's how it works:
### Overview
1. Start your project
2. Journal & Log your progress along the way
3. Get $150 USD to build it.
Each project you design that is approved gets you 6 points
### Extra advanced projects
If you have an idea
### Allowed Vendors
By default, you're allowed to use
###
## Some tips
## Starting your project
In short, here's how to start a new project:
1. Make a new GitHub repository
2. Create a file called JOURNAL.md and commit it
3. Make a pull request to add it to the repository
4. Start Designing your project!
5. Submit(insertlink)
## Journaling
### 3. Make a pull request to add it to the repository!
(insert instructions on how to make a PR to the yaml file)
### 4. Get designing!
### 5. Submit!
Once you're done, you can **submit** your project

View file

@ -0,0 +1,66 @@
---
sidebar_position: 1
---
---STALL---
# Sourcing parts
Welcome to part sourcing! Here's a ton of tips for you to optimize the cost of your part
If you're ever unsure of your BOM, send it in #highway! People can definitely help you pick bigger parts.
## Specific parts
### Modules (TP4056, LED matrices, etc)
Almost always the cheapest option is to get it from AliExpress; the only downside is that shipping *may* take awhile
If you're in a pinch, Amazon actually has OK prices all things considered.
### SBCs (Raspberry Pi, Orange Pi, etc)
Raspberry Pi
You can get Orange Pis from aliexpress.
Depending on your application though, you can also repurpose old laptops/desktops for your specific application if it's not space-sensitive
### Microcontrollers (arduino, RP2040, etc)
AliExpress is still usually your go-to for this!
Arduinos are fairly outdated by todays standards
### PCBs
- If you're in India, use SEEED. They take HCB cards and are by far the cheapest option
- If you're from another country, use JLCPCB, they offer pcbs for under $6 shipped as long as its under 100x100mm
- If you're from the US specifically, use PCBWAY. They're roughly half the cost of JLCPCB because they're able to avoid tarrifs some how
- Read here: [link](https://www.pcbway.com/blog/News/Impact_of_the_New_U_S_Tariff_Policy_on_Customs_Clearance_51dff4fd.html)
### Batteries (Li-Po, CR2032, AA, etc)
## Specific countries
### India:
- Most vendors do not take int'l cards, which unfortunately HCB falls into the category of. Contact your local vendors to try to get that changed!
> contribute here!! We're missing a ton of stuff
## Tips for specific vendors
### AliExpress
aliexpress is one of the highest skill ceiling stores out there - there's a ton of optimization you can do. Here's some tips:
- The welcome deal only works once when you make your account, so don't budget off of that - you will be hit by significantly higehr prices afterwards.
- Pay attention to the estimate shipment date. This will vary by region, but generally speaking it's actually fairly reliable
- Also pay attention to the shipping cost! Usually items that don't have free shipping but a lower initial price actually end up being more expensive when you tally the costs
- There's specific vendors that are useful:
- AITXEM ROBOT
- Triangleab
## Other resources
### VORON Sourcing guide
### ANNEX ENGINEERING Sourcing guide
### ??? add here!

View file

@ -2,10 +2,10 @@
<div class="flex flex-col justify-start p-8">
<div class="text-center grid grid-cols-1 gap-2 text-xl font-dystopian">
<%# link_to "Projects", projects_path, class: "#{current_page?(projects_path) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Getting started", overview_page_path("getting_started"), class: "#{current_page?(overview_page_path("getting_started")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Invite to Undercity", overview_page_path("points"), class: "#{current_page?(overview_page_path("points")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Project guidelines", overview_page_path("project_guidelines"), class: "#{current_page?(overview_page_path("project_guidelines")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Overview", overview_page_path("overview"), class: "#{current_page?(overview_page_path("overview")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "The Point System", overview_page_path("point-system"), class: "#{current_page?(overview_page_path("point-system")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "How to submit", overview_page_path("submit"), class: "#{current_page?(overview_page_path("submit")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
<%= link_to "Undercity", overview_page_path("undercity"), class: "#{current_page?(overview_page_path("undercity")) ? 'bg-[#564CAD]' : 'hover:bg-[#564CAD]'} bg-[#2E2A54] p-2 rounded transition duration-100 block" %>
</div>
</div>

View file

@ -0,0 +1,19 @@
# The point system
Points are the currency of Highway! Here's everything you need to know about them.
As always, if you have any questions, ask in #highway-help!
---
## Overview
Points are awarded when you either:
- Attend an event that gives you 1 point
- Get a design approved
- Starter projects: 4 points
- Custom projects: 6/10 points.
By default, custom projects give you 6 points, but if its a particularly complicated project (i.e 3D printer), you can get 10 points out of it.
To get 10 points, you MUST get confirmation on your idea BEFORE working on it first. DM @alexren on the slack to check with them first!

View file

@ -1 +0,0 @@
insert point system on how to get into undercity

View file

@ -0,0 +1,16 @@
# Submitting projects
Submitting your project is SUPER easy! Once you have everything ready, **fill out the following form**:
https://forms.hackclub.com/highway
Please double check that you have everything necessary! This will depend on your project
If your project is rejected for any reason, you will have to wait 1 week before it gets re-reviewed
# Collecting your points
When you get approved, you'll get an email! Your points will automatically get added to the system
To check your points, go to #highway and run /checkpoints!

View file

@ -24,10 +24,9 @@
<!-- desktop -->
<div class="hidden md:flex items-center space-x-6 my-4 ml-8 *:font-dystopian *:uppercase *:hover:underline 2xl:text-2xl text-xl text-center text-[#AFBDEF]">
<%= link_to "Getting started", "/docs/getting_started" %>
<%= link_to "Getting started", "/getting-started" %>
<%= link_to "Starter projects", launchpad_path, class: "text-[#D1AFEF]" %>
<%= link_to "Custom projects", projects_path, class: "text-[#AFEFCB]" %>
<%= link_to "Resources", root_path %>
<%= link_to "Custom projects", "/advanced", class: "text-[#AFEFCB]" %>
<%= link_to "Events", events_path %>
</div>
</div>

View file

@ -53,10 +53,11 @@ Rails.application.routes.draw do
get "/prize_box", to: "users#prize_box", as: :prize_box
get "/launchpad", to: "launchpad#show"
get "/overview", to: redirect("/overview/getting_started")
get "/overview/:page", to: "overview#show", as: "overview_page"
get "/getting-started", to: redirect("/getting-started/overview")
get "/getting-started/:page", to: "overview#show", as: "overview_page"
get "/advanced/:page", to: "advanced#show", as: "advanced_page"
get "/advanced/", to: redirect("/advanced/overview")
get "/events", to: "events#index"
end