diff --git a/data.yml b/data.yml index 9f81e9d..2c4b85a 100644 --- a/data.yml +++ b/data.yml @@ -6,7 +6,7 @@ limitedTime: website: slack: https://hackclub.slack.com/archives/C02A74Z7G7L slackChannel: "#cafe" - status: completed + status: ended deadline: '2025-03-03T23:59:59' - name: RaspAPI description: Make an API get a Raspberry Pi @@ -82,14 +82,14 @@ limitedTime: website: slack: https://hackclub.slack.com/archives/C083CCAAHM1 slackChannel: "#asylum" - status: completed + status: ended deadline: '2024-12-31T23:59:59' - name: Printboard description: Design a 3D model that goes with the Ikea Skadis pegboard, and we will send you one! website: https://printboard.hackclub.com/ slack: https://hackclub.slack.com/archives/C0853M4PCUA slackChannel: "#printboard" - status: completed + status: ended deadline: '2025-02-16T23:59:59' participants: 94 - name: Minus Twelve @@ -97,21 +97,21 @@ limitedTime: website: https://minustwelve.hackclub.com slack: https://hackclub.slack.com/archives/C087S82MNFR slackChannel: "#minus-twelve" - status: completed + status: ended deadline: '2025-01-27T23:59:59' - name: Hackapet description: Make a pet game, get a hackable tamagotchi clone! website: https://hackapet.hackclub.dev slack: https://hackclub.slack.com/archives/C0809PN4TPE slackChannel: "#hackapet" - status: completed + status: ended deadline: '2025-02-03T23:59:59' - name: Dessert description: Make an Android app and earn a paid Google Developer account. website: slack: https://hackclub.slack.com/archives/C07N06B1FDY slackChannel: "#dessert" - status: completed + status: ended deadline: '2025-01-11T23:59:59' - name: HackCraft description: Create a Minecraft mod, and Hack Club sends you Minecraft Java! @@ -154,7 +154,7 @@ limitedTime: website: https://hacky-holidays.hackclub.com/ slack: https://hackclub.slack.com/archives/C083SK3G5D3 slackChannel: "#hacky-holidays" - status: completed + status: ended deadline: '2025-01-30T23:59:59' - name: BakeBuild description: Design a cookie cutter, get it shipped! @@ -162,7 +162,7 @@ limitedTime: website: https://bakebuild.hackclub.com/ slack: https://hackclub.slack.com/archives/C0844MV2JM9 slackChannel: "#bakebuild" - status: completed + status: ended deadline: "2025-02-11T23:59:59" - name: Retrospect (J2ME edition) description: Create a J2ME game (Java MIDlet) and have it delivered on a J2ME-capable phone. @@ -281,14 +281,14 @@ drafts: website: slack: https://hackclub.slack.com/archives/C07N1TCHY3T slackChannel: "#pyramid-scheme" - status: completed + status: ended ended: Ended December 10th - name: Blot description: Write code, make art, and get a drawing machine. website: https://blot.hackclub.com/ slack: https://hackclub.slack.com/archives/C04GCH8A91D slackChannel: "#blot" - status: completed + status: ended ended: Ended November 21st participants: 192 - name: Boba Manor @@ -296,21 +296,21 @@ drafts: website: https://manor.hackclub.com/ slack: https://hackclub.slack.com/archives/C06UJR8QW0M slackChannel: "#boba" - status: completed + status: ended ended: Ended October 31st - name: Retrospect description: Create a DOS game and have it delivered on a floppy disk. website: https://retrospect.hackclub.com/ slack: https://hackclub.slack.com/archives/C07MUFXNG82 slackChannel: "#retrospect" - status: completed + status: ended ended: Ended October 8th - name: LLM YSWS description: Projects using language models. website: slack: https://hackclub.slack.com/archives/C07KYNWR10W slackChannel: "#llm / #zrl-land" - status: completed + status: ended ended: Ended October 1st participants: 20 - name: Arcade @@ -318,7 +318,7 @@ drafts: website: https://hackclub.com/arcade slack: https://hackclub.slack.com/archives/C06SBHMQU8G slackChannel: "#hack-hour" - status: completed + status: ended ended: Ended September 1st participants: 1229 - name: The Bin @@ -326,7 +326,7 @@ drafts: website: https://bin.hackclub.com/ slack: https://hackclub.slack.com/archives/C01FXNNF6F2 slackChannel: "#electronics" - status: completed + status: ended ended: Ended September 30th participants: 277 - name: HAM Radio YSWS @@ -334,28 +334,28 @@ drafts: website: slack: https://hackclub.slack.com/archives/C01G6UJT2RM slackChannel: "#hamradio" - status: completed + status: ended participants: 14 - name: Trick or Trace description: Design a PCB this October, vote on the best designs, get a second grant. website: https://trickortrace.hackclub.com/ slack: https://hackclub.slack.com/archives/C07QMQ26X4G slackChannel: "#trick-or-trace" - status: completed + status: ended ended: Ended October 21st - name: Anchor description: Design a VTuber-style logo for your High Seas project and receive custom stickers. website: https://anchor.hackclub.com/ slack: https://hackclub.slack.com/archives/C07V5401VMY slackChannel: "#anchor" - status: completed + status: ended participants: 40 - name: High Seas description: Work on projects, earn doubloons, and compete in the Wonderdome. website: https://highseas.hackclub.com/ slack: https://hackclub.slack.com/archives/C07PZMBUNDS slackChannel: "#high-seas" - status: completed + status: ended deadline: '2025-01-31T23:59:59' participants: 1119 - name: Neon @@ -363,7 +363,7 @@ drafts: website: https://neon.hackclub.com/ slack: https://hackclub.slack.com/archives/C080GFRKXJ5 slackChannel: "#neon" - status: completed + status: ended deadline: '2025-01-31T23:59:59' participants: 195 - name: Say Cheese! @@ -372,7 +372,7 @@ drafts: website: https://saycheese.hackclub.com/ slack: https://hackclub.slack.com/archives/C07QKKZPVD0 slackChannel: "#saycheese" - status: completed + status: ended deadline: '2025-01-26T23:59:59' participants: 370 - name: Cargo Cult @@ -380,5 +380,5 @@ drafts: website: slack: https://slack.com/archives/C0121LVV79P slackChannel: "#rust" - status: completed + status: ended ended: '2024-12-31T23:59:59' diff --git a/script.js b/script.js index f4dad79..f08b92f 100644 --- a/script.js +++ b/script.js @@ -191,8 +191,8 @@ async function loadPrograms() { category, (programsList && Array.isArray(programsList)) ? programsList.filter(program => { - if (program.status === 'completed' || isEventEnded(program.deadline)) { - ended.push({ ...program, status: 'completed' }); + if (program.status === 'ended' || isEventEnded(program.deadline)) { + ended.push({ ...program, status: 'ended' }); return false; } return true; @@ -200,7 +200,7 @@ async function loadPrograms() { ]) ); - delete programs['Completed']; + delete programs['Ended']; if (ended.length > 0) { programs['Ended'] = ended; } @@ -569,7 +569,7 @@ function filterPrograms(category) { } else if (category === 'user-not-completed') { card.classList.toggle('hidden-by-filter', isCompletedByUser); } else if (category === 'ended') { - card.classList.toggle('hidden-by-filter', status !== 'completed'); + card.classList.toggle('hidden-by-filter', status !== 'ended'); } else { card.classList.toggle('hidden-by-filter', status !== category); } diff --git a/styles.css b/styles.css index 535cbef..d7daf56 100644 --- a/styles.css +++ b/styles.css @@ -666,7 +666,7 @@ td { 50% { box-shadow: 0 0 15px var(--green); } } -.status-completed { +.status-ended { background-color: var(--muted); color: var(--white); }