From 4fb10dbb3f1fea1e8b5469336d855c9ae0755b03 Mon Sep 17 00:00:00 2001 From: ascpixi <44982772+ascpixi@users.noreply.github.com> Date: Fri, 14 Nov 2025 15:54:45 -0500 Subject: [PATCH] chore: general refactoring --- frontend/src/App.tsx | 472 ++++-------------------- frontend/src/components/FaqButton.tsx | 30 ++ frontend/src/components/FaqQuestion.tsx | 21 ++ frontend/src/components/GameCard.tsx | 50 +++ frontend/src/components/Step.tsx | 83 +++++ frontend/src/components/StoryCard.tsx | 44 +++ frontend/src/components/fonts.ts | 5 + 7 files changed, 312 insertions(+), 393 deletions(-) create mode 100644 frontend/src/components/FaqButton.tsx create mode 100644 frontend/src/components/FaqQuestion.tsx create mode 100644 frontend/src/components/GameCard.tsx create mode 100644 frontend/src/components/Step.tsx create mode 100644 frontend/src/components/StoryCard.tsx create mode 100644 frontend/src/components/fonts.ts diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index daf03c0..eacd62e 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,49 +1,9 @@ -const fonts = { - amatic: "'Amatic SC', sans-serif", - amaticBold: "'Amatic SC', sans-serif", - dreamPlanner: "'DREAM PLANNER', Impact, 'Arial Black', sans-serif" -}; - -function FaqButton({ className = "", content = "Check out the parent guide" }: { - className?: string - content?: string -}) { - return ( -
- {content} -
-- {question} -
-
- step 1 -
-- Sign up for a Campfire near you -
-
-
- - step 2 -
-- Grab friends (or make new friends!) and form a team of 2-3 -
-- step 3 -
-- Learn from workshops, enjoy free food and merch! -
-
-
- - step 4 -
-- Build your game & publish it online! -
-
- - Counterspell -
-- Game jam in 50 cities including Toronto, Boston, & Singapore -
-
- - Scrapyard -
-- In-person hackathon in 70 cities worldwide -
-
- - Daydream -
-- Game jam in 100 cities worldwide -
-+ {content} +
++ {question} +
++ {title} +
++ {author} +
++ step {stepNumber} +
++ {title} +
++ step {stepNumber} +
++ {title} +
++ {title} +
++ {description} +
+