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~9=Q+=vd3_4_v;uWFJYX=G1P}jm>_5Y4T
zGh+w6r4x!o#H;+_zc|l&Jx-?$q7sfxkPo8g$E69|4*+4%U0-(C9}&X%p<}3tZ-$O6
z+)f;Jv)|Qmg)lQ`35M~fj(y)MQkwclr7uM7I
ziki#4O*ymoRC6PC=pGjxNu+5+BAAFk_H^!(T_RdaKZcNi1Y
z4`Pk4q&xNo`8~%G!Yd;b&Hel(|zKw7etci`t{e1IW{&gDr<&q?aYM&K|mDS
za*}v^*(}8Y6bI^~lUw0cA4S)%DMs#!P}C*8zPXe{=pGk=Bm#M6nen8isZY{nH0p|4
zVnZO2t1>QG_L}qCFHo7!8e^@#51B5_$p4DzN)c6eKKERa4H=R|AWeZW!_>zLboEYg
zuFiry&9OwB52Qng-3+hyuUU!%Jc8VPYNHG3_hhqI6g^XP#{6t9B^|oQg=XG-`#k=D
zk>I%NWlFsD?kDE=Jy*wTmiC+T+Y4Z-pggF5wU9^Cm(`5^5y(UDDt5iTXq@=#zRDK;
zBHrvb&Tp|Uu-9`kgG7+eBOPW{`%fj8yG9OmrLnF!=+Heb;zehQT8Wy&k(#Cc(aB_O
zZ^FXoKS*JI*l{
zXD~glkdLrJx+jf}wKI^aUKfumTrJpwMG~b}-kja<
z(br%gas8cHQ)jcC{HY+gIGvy=yz+70At5(e$=&?b)-%Au7MRap_7mxwqwR9#yM
z^K0TAV{}6IxJYzFnPd7`fim8OAb%Tzn;u@!d
zrc$BL$e&Se2@t3&g^4_>4BazFzCSXddt3}`SfZd(3Nwt^xc*cpBRb9`NXSK)RVuu=#9~#M(&+
zP6|fk5JVEetqR`j+%B;i2)kJt^+>B1jNB;uQ6|
Date: Thu, 31 Oct 2024 23:43:59 -0700
Subject: [PATCH 05/13] styling changes
---
.../app/(home)/sections/Countdown/Countdown.module.scss | 8 +++++---
apps/site/src/app/(home)/sections/Countdown/Countdown.tsx | 8 ++------
.../src/app/(home)/sections/Countdown/CountdownClock.tsx | 7 ++++++-
3 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss b/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss
index 83c07706..a47ad02e 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss
@@ -1,3 +1,6 @@
+@use "bootstrap-utils" as bootstrap;
+@use "zothacks-theme" as theme;
+
.paraboloid {
position: relative;
width: 100%;
@@ -20,7 +23,6 @@
}
.countdownMaterial {
- // margin-top: 10%;
position: absolute;
top: 0px;
left: 0px;
@@ -89,8 +91,7 @@
}
.outerCircle {
- background-color: #ffffff;
- // border-color: #1a1840;
+ background-color: theme.$white;
border: 5px solid #1a1840;
width: 50px;
height: 50px;
@@ -101,6 +102,7 @@
z-index: 1;
bottom: 0;
position: absolute;
+ bottom: -20px;
}
.innerCircle {
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
index 5b253908..e1239b6a 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
@@ -24,8 +24,8 @@ interface CountdownProps {
}
const Countdown: React.FC = ({ schedule }) => {
- const hackStartTime = new Date(2024, 10, 1, 14, 0, 0); // TBD, zothacks start time
- const hackEndTime = new Date(2024, 10, 2, 18, 0, 0); // TBD, zothacks end time
+ const hackStartTime = new Date("2024-11-02T10:00:00"); // TBD, zothacks start time
+ const hackEndTime = new Date("2024-11-02T10:00:00"); // TBD, zothacks end time
const [curTime, setCurTime] = useState(new Date());
@@ -95,8 +95,6 @@ const Countdown: React.FC = ({ schedule }) => {
);
}
- console.log(percentageCrossed);
-
return (
@@ -123,7 +121,6 @@ const Countdown: React.FC
= ({ schedule }) => {
@@ -150,7 +147,6 @@ const Countdown: React.FC
= ({ schedule }) => {
diff --git a/apps/site/src/app/(home)/sections/Countdown/CountdownClock.tsx b/apps/site/src/app/(home)/sections/Countdown/CountdownClock.tsx
index d1d606f1..6f09bd70 100644
--- a/apps/site/src/app/(home)/sections/Countdown/CountdownClock.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/CountdownClock.tsx
@@ -40,6 +40,7 @@ const CountdownClock: React.FC
= ({
{Math.floor(remainingSeconds / (60 * 60 * 24))
.toString()
+ .padStart(2, "0")
.split("")
.map((el, i) => {
return (
@@ -60,7 +61,11 @@ const CountdownClock: React.FC = ({
.toString()
.split("")
.map((el, i) => {
- return {el};
+ return (
+
+ {el}
+
+ );
})}
>
) : (
From 663792d45eb3a0a5fe6d5693c86f98662e88389d Mon Sep 17 00:00:00 2001
From: Bl20052005 <88120481+Bl20052005@users.noreply.github.com>
Date: Fri, 1 Nov 2024 19:32:45 -0700
Subject: [PATCH 06/13] classname + useEffect fix
---
.../(home)/sections/Countdown/Countdown.module.scss | 4 ++--
.../src/app/(home)/sections/Countdown/Countdown.tsx | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss b/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss
index a47ad02e..5dc7e0a4 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss
@@ -13,7 +13,7 @@
position: relative;
}
-.descriptiveText {
+.countdownText {
top: 45px;
left: 20px;
position: absolute;
@@ -112,7 +112,7 @@
border-radius: 50%;
}
-.descriptiveTextTop {
+.countdownTextTop {
position: absolute;
top: -70px;
width: 150px;
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
index e1239b6a..3bfce4f9 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
@@ -25,7 +25,7 @@ interface CountdownProps {
const Countdown: React.FC = ({ schedule }) => {
const hackStartTime = new Date("2024-11-02T10:00:00"); // TBD, zothacks start time
- const hackEndTime = new Date("2024-11-02T10:00:00"); // TBD, zothacks end time
+ const hackEndTime = new Date("2024-11-02T22:00:00"); // TBD, zothacks end time
const [curTime, setCurTime] = useState(new Date());
@@ -35,7 +35,7 @@ const Countdown: React.FC = ({ schedule }) => {
}, 1000);
return () => clearInterval(i);
- });
+ }, []);
const ended = schedule.filter((el) => el.endTime > curTime);
@@ -124,7 +124,7 @@ const Countdown: React.FC = ({ schedule }) => {
left: "-20px",
}}
>
-
+
{before.location && w <= 800 ? (
{before.location}
) : null}
@@ -133,7 +133,7 @@ const Countdown: React.FC
= ({ schedule }) => {
) : null}
-
+
{before.title}
{before.location && w > 800 ? (
{before.location}
@@ -150,7 +150,7 @@ const Countdown: React.FC
= ({ schedule }) => {
right: "-38px",
}}
>
-
+
{after.location && w <= 800 ? (
{after.location}
) : null}
@@ -159,7 +159,7 @@ const Countdown: React.FC
= ({ schedule }) => {
) : null}
-
+
{after.title}
{after.location && w > 800 ?
{after.location}
: null}
{after.startTime.getTime() && w > 800 ? (
From 962b5c3b5e9b2b7fb7077f56babd93e200e1ba1b Mon Sep 17 00:00:00 2001
From: Bl20052005 <88120481+Bl20052005@users.noreply.github.com>
Date: Fri, 1 Nov 2024 19:36:39 -0700
Subject: [PATCH 07/13] styling width fix
---
apps/site/src/app/(home)/sections/Countdown/Countdown.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
index 3bfce4f9..ab9e3d9f 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
@@ -97,7 +97,7 @@ const Countdown: React.FC
= ({ schedule }) => {
return (
-
+
{w > 0 && (
{curTime >= hackStartTime ? (
From c83c5f4c2e4bc3b1c4726f5128dbddfbdc19e394 Mon Sep 17 00:00:00 2001
From: Bl20052005 <88120481+Bl20052005@users.noreply.github.com>
Date: Fri, 1 Nov 2024 19:41:22 -0700
Subject: [PATCH 08/13] changed font style
---
.../app/(home)/sections/Countdown/CountdownClock.module.scss | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/apps/site/src/app/(home)/sections/Countdown/CountdownClock.module.scss b/apps/site/src/app/(home)/sections/Countdown/CountdownClock.module.scss
index a5a6aa24..ae02935a 100644
--- a/apps/site/src/app/(home)/sections/Countdown/CountdownClock.module.scss
+++ b/apps/site/src/app/(home)/sections/Countdown/CountdownClock.module.scss
@@ -65,7 +65,8 @@
&.caption {
display: block;
- @include bootstrap.font-size(1.5rem);
+ @include bootstrap.font-size(2.5rem);
+ font-weight: bold;
}
}
}
From c492ef0ca277272ad016c6aa4d9e2a95e2e4ed24 Mon Sep 17 00:00:00 2001
From: Bl20052005 <88120481+Bl20052005@users.noreply.github.com>
Date: Fri, 1 Nov 2024 20:04:43 -0700
Subject: [PATCH 09/13] flat map
---
apps/site/src/app/(home)/sections/Countdown/Scheduling.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/site/src/app/(home)/sections/Countdown/Scheduling.tsx b/apps/site/src/app/(home)/sections/Countdown/Scheduling.tsx
index 1aff847a..532b4b8e 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Scheduling.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/Scheduling.tsx
@@ -2,7 +2,7 @@ import Countdown from "./Countdown";
import { getSchedule } from "./getSchedule";
export default async function CountdownSchedule() {
- const schedule = (await getSchedule())[0].map((el) => {
+ const schedule = (await getSchedule()).flat().map((el) => {
return {
title: el.title,
startTime: el.startTime,
From dd6a270a34bf17c0df28d8dd36ebc55e1f0ede9d Mon Sep 17 00:00:00 2001
From: Bl20052005 <88120481+Bl20052005@users.noreply.github.com>
Date: Sat, 2 Nov 2024 09:13:45 -0700
Subject: [PATCH 10/13] timer fixes
---
.../sections/Countdown/Countdown.module.scss | 6 +++++-
.../(home)/sections/Countdown/Countdown.tsx | 21 ++++++++++++-------
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss b/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss
index 5dc7e0a4..9f033ed6 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.module.scss
@@ -114,8 +114,12 @@
.countdownTextTop {
position: absolute;
- top: -70px;
+ top: -170px;
width: 150px;
+ height: 170px;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
text-align: center;
p {
margin: 0;
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
index ab9e3d9f..7c6205c8 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
@@ -37,7 +37,9 @@ const Countdown: React.FC
= ({ schedule }) => {
return () => clearInterval(i);
}, []);
- const ended = schedule.filter((el) => el.endTime > curTime);
+ const ended = schedule.filter((el) => el.endTime >= curTime);
+
+ console.log(ended);
const before =
ended.length > 0
@@ -61,8 +63,11 @@ const Countdown: React.FC = ({ schedule }) => {
const percentageCrossed =
before.endTime.getTime() > 0
- ? (before.endTime.getTime() - curTime.getTime()) /
- (before.endTime.getTime() - before.startTime.getTime())
+ ? curTime.getTime() < before.startTime.getTime()
+ ? 0
+ : ((before.endTime.getTime() - curTime.getTime()) /
+ (before.endTime.getTime() - before.startTime.getTime())) *
+ 100
: 100;
const [w, h] = useWindow();
@@ -110,7 +115,7 @@ const Countdown: React.FC = ({ schedule }) => {
left: returnPosition(i)[0],
bottom: returnPosition(i)[1],
position: "absolute",
- backgroundColor: `${i / totals.length > percentageCrossed ? "#DB9F42" : "#78cae3"}`,
+ backgroundColor: `${i / totals.length > percentageCrossed / 100 ? "#DB9F42" : "#78cae3"}`,
width: "18px",
height: "5px",
borderRadius: "6px",
@@ -129,7 +134,7 @@ const Countdown: React.FC = ({ schedule }) => {
{before.location}
) : null}
{before.startTime.getTime() && w <= 800 ? (
- {`${before.startTime.getHours() % 12}${before.startTime.getHours() == 11 ? " am" : ""}-${before.endTime.getHours() % 12} ${before.endTime.getHours() < 12 ? "am" : "pm"}`}
+ {`${before.startTime.getHours() % 12 == 0 ? 12 : before.startTime.getHours() % 12}${before.startTime.getHours() == 11 ? " am" : ""}-${before.endTime.getHours() % 12 == 0 ? 12 : before.endTime.getHours() % 12} ${before.endTime.getHours() < 12 ? "am" : "pm"}`}
) : null}
@@ -139,7 +144,7 @@ const Countdown: React.FC
= ({ schedule }) => {
{before.location}
) : null}
{before.startTime.getTime() && w > 800 ? (
- {`${before.startTime.getHours() % 12}${before.startTime.getHours() == 11 ? " am" : ""}-${before.endTime.getHours() % 12} ${before.endTime.getHours() < 12 ? "am" : "pm"}`}
+ {`${before.startTime.getHours() % 12 == 0 ? 12 : before.startTime.getHours() % 12}${before.startTime.getHours() == 11 ? " am" : ""}-${before.endTime.getHours() % 12 == 0 ? 12 : before.endTime.getHours() % 12} ${before.endTime.getHours() < 12 ? "am" : "pm"}`}
) : null}
@@ -155,7 +160,7 @@ const Countdown: React.FC
= ({ schedule }) => {
{after.location}
) : null}
{after.startTime.getTime() && w <= 800 ? (
- {`${after.startTime.getHours() % 12}${after.startTime.getHours() == 11 ? " am" : ""}-${after.endTime.getHours() % 12} ${after.endTime.getHours() < 12 ? "am" : "pm"}`}
+ {`${after.startTime.getHours() % 12 == 0 ? 12 : after.startTime.getHours() % 12}${after.startTime.getHours() == 11 ? " am" : ""}-${after.endTime.getHours() % 12 == 0 ? 12 : after.endTime.getHours() % 12} ${after.endTime.getHours() < 12 ? "am" : "pm"}`}
) : null}
@@ -163,7 +168,7 @@ const Countdown: React.FC
= ({ schedule }) => {
{after.title}
{after.location && w > 800 ? {after.location}
: null}
{after.startTime.getTime() && w > 800 ? (
- {`${after.startTime.getHours() % 12}${after.startTime.getHours() == 11 ? " am" : ""}-${after.endTime.getHours() % 12} ${after.endTime.getHours() < 12 ? "am" : "pm"}`}
+ {`${after.startTime.getHours() % 12 == 0 ? 12 : after.startTime.getHours() % 12}${after.startTime.getHours() == 11 ? " am" : ""}-${after.endTime.getHours() % 12 == 0 ? 12 : after.endTime.getHours() % 12} ${after.endTime.getHours() < 12 ? "am" : "pm"}`}
) : null}
From e263d591f1d86e5e0ac985ab4672da8b85bd6b5a Mon Sep 17 00:00:00 2001
From: Bl20052005 <88120481+Bl20052005@users.noreply.github.com>
Date: Sat, 2 Nov 2024 09:15:42 -0700
Subject: [PATCH 11/13] remove logging, style changes
---
apps/site/src/app/(home)/page.tsx | 2 +-
apps/site/src/app/(home)/sections/Countdown/Countdown.tsx | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/apps/site/src/app/(home)/page.tsx b/apps/site/src/app/(home)/page.tsx
index c63770f1..10c7cf66 100644
--- a/apps/site/src/app/(home)/page.tsx
+++ b/apps/site/src/app/(home)/page.tsx
@@ -14,7 +14,7 @@ const Home = () => {
-
+
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
index 7c6205c8..07d67487 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
@@ -39,8 +39,6 @@ const Countdown: React.FC
= ({ schedule }) => {
const ended = schedule.filter((el) => el.endTime >= curTime);
- console.log(ended);
-
const before =
ended.length > 0
? ended[0]
From 34a6f08d6fd3ae9334db40b4f5ccd58021cf6762 Mon Sep 17 00:00:00 2001
From: Bl20052005 <88120481+Bl20052005@users.noreply.github.com>
Date: Sat, 2 Nov 2024 10:53:14 -0700
Subject: [PATCH 12/13] formatting and style changes
---
.../(home)/sections/Countdown/Countdown.tsx | 19 +++++++++---------
.../(home)/sections/Countdown/useWindow.tsx | 2 +-
apps/site/src/assets/icons/boat.png | Bin 5956 -> 0 bytes
apps/site/src/assets/icons/boat.svg | 15 ++++++++++++++
4 files changed, 26 insertions(+), 10 deletions(-)
delete mode 100644 apps/site/src/assets/icons/boat.png
create mode 100644 apps/site/src/assets/icons/boat.svg
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
index 07d67487..46575812 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
@@ -1,14 +1,15 @@
"use client";
-import bg_map from "@/assets/images/maps/countdown.svg";
import Image from "next/image";
-import useWindow from "./useWindow";
+import { useEffect, useState } from "react";
-import styles from "./Countdown.module.scss";
+import useWindow from "./useWindow";
import CountdownClock from "./CountdownClock";
-import { useEffect, useState } from "react";
-import boat from "@/assets/icons/boat.png";
+import bg_map from "@/assets/images/maps/countdown.svg";
+import boat from "@/assets/icons/boat.svg";
+
+import styles from "./Countdown.module.scss";
interface CountdownProps {
schedule: {
@@ -63,12 +64,12 @@ const Countdown: React.FC = ({ schedule }) => {
before.endTime.getTime() > 0
? curTime.getTime() < before.startTime.getTime()
? 0
- : ((before.endTime.getTime() - curTime.getTime()) /
+ : 100 - ((before.endTime.getTime() - curTime.getTime()) /
(before.endTime.getTime() - before.startTime.getTime())) *
100
: 100;
- const [w, h] = useWindow();
+ const [w, ] = useWindow();
const totalLines = Math.floor(w / 66) > 7 ? Math.floor(w / 66) : 7;
@@ -90,7 +91,7 @@ const Countdown: React.FC = ({ schedule }) => {
if (curTime > hackEndTime) {
return (
-
+
Hacking has ended!
@@ -100,7 +101,7 @@ const Countdown: React.FC
= ({ schedule }) => {
return (
-
+
{w > 0 && (
{curTime >= hackStartTime ? (
diff --git a/apps/site/src/app/(home)/sections/Countdown/useWindow.tsx b/apps/site/src/app/(home)/sections/Countdown/useWindow.tsx
index 8988f639..d67fa2d9 100644
--- a/apps/site/src/app/(home)/sections/Countdown/useWindow.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/useWindow.tsx
@@ -3,10 +3,10 @@ import { useEffect, useState } from "react";
export default function useWindow() {
const [size, setSize] = useState([0, 0]);
useEffect(() => {
- setSize([window.innerWidth, window.innerHeight]);
function setWindowSize() {
setSize([window.innerWidth, window.innerHeight]);
}
+ setWindowSize();
window.addEventListener("resize", setWindowSize);
return () => window.removeEventListener("resize", setWindowSize);
}, []);
diff --git a/apps/site/src/assets/icons/boat.png b/apps/site/src/assets/icons/boat.png
deleted file mode 100644
index 98ef637f479b2c044290bb2352fd8b16ba361c28..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 5956
zcmV-K7rW?*P)
jbBhE9=`}ckCaJGZ^@b!ghO=G9H!V0#{N{YgYCx38hnWflO;B3eMak5#q
zK!1LR4nH5TNl^%~RI9NIPn^9}WGO}-LnYD2Z!Rn-oL{6rr(GU1TXn4g)6<5vY*K@OL?9r&y0z
zyK|G(t6NMk@!Gdvy!s=SVx%xo5`jS3EWb>D7J@z(BrlcC5)Tu7C<17XKU>?yZ7b)(d*Z&eE+UoR#(1|uYRbS&a(MQ
z_wA|ofA-WxmSSWuFcSUt&4nKanK0Wj+1l+QD{rg@es6324yjZ7XW9Hz^KZ`hxnKYE
z$$6GyBrp&X{r5jF%##y+-oL(XR#=G$1oISyt@XQ7t-R2)dB(ZtbT$5CmSQBJu>n9;
z`Ro35P@s)_UpD=pC>H&$72oV_z
zP@!!{xPQRm_M%%8*#QNnD(~L?%}>s;6kQ=P5>ZZQ!M_d>RgTZL=N>c{&lr-?<%BbjJ9>QRcFJ1Ws6IzAN*s_wZ8p^L`Z}h8S|Mk%dGaL
z9IBRWTUW2QMr;{MKn@P-yQ`Pa#~HG+?~w?Jvf1|XMy;~R`hgxm5UW<{xJ`m6Fg=%M
z#bY255(&{xqI#{&dWEWIWzp3OD4V|&VvJ3)fr5*3saflcL`XzVb-};R7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)c6eKKERa4H=R|AWeZW!_>zLboEYg
zuFiry&9OwB52Qng-3+hyuUU!%Jc8VPYNHG3_hhqI6g^XP#{6t9B^|oQg=XG-`#k=D
zk>I%NWlFsD?kDE=Jy*wTmiC+T+Y4Z-pggF5wU9^Cm(`5^5y(UDDt5iTXq@=#zRDK;
zBHrvb&Tp|Uu-9`kgG7+eBOPW{`%fj8yG9OmrLnF!=+Heb;zehQT8Wy&k(#Cc(aB_O
zZ^FXoKS*JI*l{
zXD~glkdLrJx+jf}wKI^aUKfumTrJpwMG~b}-kja<
z(br%gas8cHQ)jcC{HY+gIGvy=yz+70At5(e$=&?b)-%Au7MRap_7mxwqwR9#yM
z^K0TAV{}6IxJYzFnPd7`fim8OAb%Tzn;u@!d
zrc$BL$e&Se2@t3&g^4_>4BazFzCSXddt3}`SfZd(3Nwt^xc*cpBRb9`NXSK)RVuu=#9~#M(&+
zP6|fk5JVEetqR`j+%B;i2)kJt^+>B1jNB;uQ6|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From cc371a992141d8098c7462e5c1928c66dbafba3f Mon Sep 17 00:00:00 2001
From: Bl20052005 <88120481+Bl20052005@users.noreply.github.com>
Date: Sat, 2 Nov 2024 11:10:17 -0700
Subject: [PATCH 13/13] formatting fix
---
apps/site/src/app/(home)/sections/Countdown/Countdown.tsx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
index 46575812..45c25d82 100644
--- a/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
+++ b/apps/site/src/app/(home)/sections/Countdown/Countdown.tsx
@@ -64,12 +64,13 @@ const Countdown: React.FC = ({ schedule }) => {
before.endTime.getTime() > 0
? curTime.getTime() < before.startTime.getTime()
? 0
- : 100 - ((before.endTime.getTime() - curTime.getTime()) /
+ : 100 -
+ ((before.endTime.getTime() - curTime.getTime()) /
(before.endTime.getTime() - before.startTime.getTime())) *
- 100
+ 100
: 100;
- const [w, ] = useWindow();
+ const [w] = useWindow();
const totalLines = Math.floor(w / 66) > 7 ? Math.floor(w / 66) : 7;