From 946e6f91bc9a800c09efeb955be7631d2e79a566 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sat, 4 Apr 2026 17:56:35 -0400 Subject: [PATCH] sabs on the warpath --- src/components/FantasyStatus.tsx | 2 +- src/components/modules/PictureCarousel.tsx | 2 +- src/components/modules/ScoreModule.tsx | 29 ++++++++++++++++--- src/components/modules/StatModule.tsx | 6 ++-- src/pages/App.tsx | 33 +++++++++++++--------- 5 files changed, 50 insertions(+), 22 deletions(-) diff --git a/src/components/FantasyStatus.tsx b/src/components/FantasyStatus.tsx index 27e0a19..5f35c98 100644 --- a/src/components/FantasyStatus.tsx +++ b/src/components/FantasyStatus.tsx @@ -35,7 +35,7 @@ export default function FantasyStatus() { }, []); return ( -
+
{personalRoster && opposingRoster && ( <> diff --git a/src/components/modules/PictureCarousel.tsx b/src/components/modules/PictureCarousel.tsx index 9b6ce57..6511e72 100644 --- a/src/components/modules/PictureCarousel.tsx +++ b/src/components/modules/PictureCarousel.tsx @@ -19,7 +19,7 @@ export default function PictureCarousel({ onClick: (url: string) => void; }) { return ( -
+
{images.map((v, k) => { diff --git a/src/components/modules/ScoreModule.tsx b/src/components/modules/ScoreModule.tsx index a049206..ae77a52 100644 --- a/src/components/modules/ScoreModule.tsx +++ b/src/components/modules/ScoreModule.tsx @@ -9,6 +9,7 @@ const IMAGES = { export default function ScoreModule({ type }: { type: "sabres" | "bills" }) { const [billsScore, setBillsScore] = useState(null); const [sabresScore, setSabresScore] = useState(null); + const [warpath, setWarpath] = useState(false); useEffect(() => { async function fetchBillsScore() { @@ -38,26 +39,46 @@ export default function ScoreModule({ type }: { type: "sabres" | "bills" }) { }, []); return ( -
+
- + { + if (type === "sabres") { + setWarpath(true); + } + }} + width="100" + className="p-4" + src={IMAGES[type]} + />

{type === "bills" ? billsScore?.name - : `${sabresScore?.awayTeam.abbrev} @ ${sabresScore?.homeTeam.abbrev}`} + : `${sabresScore?.awayTeam.abbrev || "BUF"} @ ${sabresScore?.homeTeam.abbrev || "BUF"}`}

{type === "bills" ? billsScore?.score - : `${sabresScore && sabresScore?.sabresScore > sabresScore?.oppScore ? "W" : "L"} ${sabresScore?.sabresScore}-${sabresScore?.oppScore}`} + : `${sabresScore && sabresScore?.sabresScore > sabresScore?.oppScore ? "W" : "L"} ${sabresScore?.sabresScore || 0}-${sabresScore?.oppScore || 0}`}

+ {warpath && ( +
); } diff --git a/src/components/modules/StatModule.tsx b/src/components/modules/StatModule.tsx index 0fd20e0..58137fc 100644 --- a/src/components/modules/StatModule.tsx +++ b/src/components/modules/StatModule.tsx @@ -41,13 +41,13 @@ export default function StatModule() { if (data) { return ( -
+
-

+

{data?.title}

-

+

{" "} {data?.finished ? "finished" diff --git a/src/pages/App.tsx b/src/pages/App.tsx index eb329f1..3c11100 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -25,20 +25,24 @@ export default function App() {

)} -
-
-
-
+ {/* bg-[#ebebeb] */} +
+
+
+
-

welcome

+

welcome

-

let it rip

+

+ GO SABRES! +


@@ -52,15 +56,18 @@ export default function App() {

hi, i'm alex!

- i do QA stuff at{" "} + qa stuff & things at{" "} Medal.tv - - {" "}and write mediocre code sometimes + {" "} +
+ sabres szn ticket holder +
+ master of shenanigans


@@ -148,7 +155,7 @@ export default function App() {
-
+

setTab("home")} className={`border-r-1 border-t-1 border-black hover:cursor-pointer ${tab === "home" && "underline"}`} @@ -169,7 +176,7 @@ export default function App() {

setTab("scores")} - className={`border-r-1 border-t-1 border-black hover:cursor-pointer ${tab === "scores" && "underline"}`} + className={`border-t-1 border-black hover:cursor-pointer ${tab === "scores" && "underline"}`} > scores