diff --git a/src/app/oxford-debate/page.tsx b/src/app/oxford-debate/page.tsx index 5797459..5e7ffe5 100644 --- a/src/app/oxford-debate/page.tsx +++ b/src/app/oxford-debate/page.tsx @@ -69,6 +69,7 @@ export default function OxfordDebate() { const startspeech = useLang("startspeech"); const stopspeech = useLang("stopspeech"); const debateconfig = useLang("oxfordDebateConfiguration"); + const debateFinishedEnthusiastic = useLang("debateFinishedEnthusiastic"); const conf = useContext(DebateContext).conf; @@ -103,7 +104,11 @@ export default function OxfordDebate() {

{anoxfordformatdebate}

{/* */} -
+

{debate.conf.proTeam || "Anonymous" || "The Proposition"}

@@ -118,8 +123,8 @@ export default function OxfordDebate() { {/* */} {/* */} {/* */} -
-
+
+

{!adVocem ? stage_strings[stage] : "ad vocem"}

@@ -146,12 +151,24 @@ export default function OxfordDebate() { beepProtected={debate.conf.beepProtectedTime && !adVocem} protectedTime={debate.conf.endProtectedTime} protectStart={!!debate.conf.startProtectedTime} + moreClass={stage === 8 ? "opacity-[.15]" : ""} /> + {/* debate finished */} + {stage === 8 && ( +
+

{debateFinishedEnthusiastic}

+

{"🎉"}

+
+ )}
{/* */} {/* */} {/* */} -
+

{debate.conf.oppTeam || "Anonymous" || "The Opposition"}

diff --git a/src/components/Clock.tsx b/src/components/Clock.tsx index 1f7b4f1..b3b0a7a 100644 --- a/src/components/Clock.tsx +++ b/src/components/Clock.tsx @@ -14,6 +14,7 @@ const Clock = (props: { beepProtected?: boolean; protectedTime?: number; protectStart?: boolean; + moreClass?: string; }) => { const [time, setTime] = useState(props.maxTime); const refCircle = useRef(null); @@ -35,7 +36,7 @@ const Clock = (props: { const overtime = useLang("overtime"); const delayInMs = 1000; - const clockColorsTransitionDuration = "350ms" + const clockColorsTransitionDuration = "350ms"; const fullvolume = 1; // useAudio volume range is 0-1 useEffect(() => { @@ -52,7 +53,9 @@ const Clock = (props: { useInterval(() => setTime(time - 1), props.running ? delayInMs : null); return ( <> -
+

{time > 0 && ( <> diff --git a/src/data/strings.json b/src/data/strings.json index b86ab8f..9c6a813 100644 --- a/src/data/strings.json +++ b/src/data/strings.json @@ -424,5 +424,10 @@ "en": "and", "pl": "i", "de": "und" + }, + "debateFinishedEnthusiastic": { + "en": "Debate finished!", + "pl": "Debata zakończona!", + "de": "Debatte geendet!" } -} \ No newline at end of file +} diff --git a/tailwind.config.ts b/tailwind.config.ts index e9a0944..6bfd0c8 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -13,6 +13,15 @@ const config: Config = { "gradient-conic": "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", }, + keyframes: { + wiggle: { + "0%, 100%": { transform: "rotate(-3deg)" }, + "50%": { transform: "rotate(3deg)" }, + }, + }, + animation: { + wiggle: "wiggle 1s ease-in-out infinite", + }, }, }, plugins: [],