From dde27e13fb9b538b5cd1d1235dbc9efcf8a6a773 Mon Sep 17 00:00:00 2001
From: Brendan F <EpicWolverine@users.noreply.github.com>
Date: Sat, 2 Dec 2023 14:55:03 -0800
Subject: Add Christmas emotes

---
 src/components/Result/index.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/components/Result/index.tsx')

diff --git a/src/components/Result/index.tsx b/src/components/Result/index.tsx
index 259525b..ccf393d 100644
--- a/src/components/Result/index.tsx
+++ b/src/components/Result/index.tsx
@@ -21,11 +21,18 @@ function Solution({
   todaysSolution,
   currentTry,
 }: SolutionProps) {
+  const todaysDate = new Date();
+  const christmasSongDay = todaysDate.getFullYear() == 2023 && todaysDate.getMonth() == 11 && todaysDate.getDate() >= 1 && todaysDate.getDate() <= 25
+  const gifs = ["923701894117982238", "655441669893914664", "919955833264160810"]
+  const randomGif = gifs[Math.floor(Math.random() * gifs.length)];
   return (
     <>
       <Styled.SongTitle>
         Today&apos;s song is {todaysSolution.artist} - {todaysSolution.name}
       </Styled.SongTitle>
+      {christmasSongDay &&
+        <img src={"https://cdn.discordapp.com/emojis/" + randomGif + ".gif?size=44&amp;quality=lossless"}></img>
+      }
       {didGuess &&
         <Styled.Tries>
           You guessed it in {currentTry} {currentTry === 1 ? 'try' : 'tries'}.
-- 
cgit v1.2.3

