YSWS-Catalog is a web-based directory showcasing Hack Club’s "You Ship, We Ship" (YSWS) programs. Each YSWS program rewards participants for building and shipping projects—hardware, software, art, and more—by sending them physical or digital goodies. This repository hosts the source code for the catalog, allowing anyone to explore, filter, and learn about these initiatives. If you want to add or update a program, feel free to submit a pull request!
- Dynamic Program Listing: All YSWS programs are defined in
script.js
for easy editing. - Filtering by Status: Quickly filter programs by
All
,Active
,Upcoming
, orCompleted
. - Search Functionality: Easily search for programs by name, description, or Slack channel to find exactly what you're looking for.
- Program Detail Modal: Click on a program to view detailed information in a modal window, including participation steps and additional details.
- Theme Toggle: Switch between light and dark modes to suit your preference and improve accessibility.
- Deadline Indicators: Visual indicators for program deadlines, highlighting urgent and very urgent statuses to help prioritize participation.
- Real-time Deadline Updates: Deadlines are updated in real-time to reflect the current status, ensuring information is always up-to-date.
- Responsive Design: Optimized for various screen sizes and devices, providing a seamless experience on desktops, tablets, and mobile devices.
-
Clone the repository:
git clone https://github.com/PawiX25/YSWS-Catalog.git cd YSWS-Catalog
-
Open the catalog:
- Open
index.html
in your web browser. - Ensure
styles.css
andscript.js
are in the same directory.
- Open
-
Filter Programs:
- Use the top buttons (
All
,Active
,Ending Soon
,Upcoming
,Completed
) to filter the displayed programs.
- Use the top buttons (
-
Search Programs:
- Use the search bar to find programs by name, description, or Slack channel.
-
Toggle Theme:
- Click the 🌙/☀️ button to switch between dark and light modes.
- index.html: The main HTML file containing the container for program cards and the modal structure.
- styles.css: Styles for the layout, cards, typography, responsiveness, and theme toggling.
- script.js: Contains the programs data and logic for:
- Rendering program cards
- Counting active programs
- Filtering by program status
- Searching programs
- Handling theme toggling
- Managing program detail modals
- Updating deadlines in real-time
All programs are defined in the programs
object inside script.js
. They are categorized into arrays such as indefinite
, limitedTime
, upcoming
, additional
, noYouShip
, and completed
.
Each program object can include:
-
Required Fields:
name
: Program namedescription
: Short description of the programstatus
:active
,upcoming
, orcompleted
-
Optional Fields:
website
: URL ornull
slack
: Slack channel URL ornull
slackChannel
: Slack channel name ornull
deadline
: When the program ends (for active/upcoming time-limited programs)ended
: When the program ended (for completed programs)opens
: When the program opens (for upcoming programs)detailedDescription
: A more detailed description for the modal viewsteps
: Custom participation stepsrequirements
: Array of requirements to participatedetails
: Array of additional details
Below is an example from the limitedTime
category in programs.json
:
{
"name": "HackCraft",
"description": "Create a Minecraft mod, and Hack Club sends you Minecraft Java!",
"website": "https://hackcraft.hackclub.com/",
"slack": "https://slack.com/archives/C07NQ5QAYNQ",
"slackChannel": "#mc-modding",
"status": "active",
"deadline": "2025-01-31T23:59:59",
"detailedDescription": "Join HackCraft to build and ship your own Minecraft mod. Access exclusive resources and a supportive community.",
"steps": [
"Make a mod.",
"Publish it on Modrinth or Hangar.",
"Submit your mod to Hack Club.",
"Receive Minecraft Java Edition and enjoy!"
],
"requirements": [
"Basic knowledge of Java programming.",
"A passion for Minecraft modding."
],
"details": [
"Participants will receive a Minecraft Java Edition account upon successful submission.",
"Support is available through our Slack community."
]
}
- Fork this repository.
- Create a new branch for your changes:
git checkout -b add-new-program
- Add or update a program:
Editscript.js
and modify theprograms
object. - Commit and push your changes:
git commit -m "Add a new YSWS program" git push origin add-new-program
- Open a Pull Request:
On GitHub, open a PR from your fork to this repository and provide a description of your changes.