From 2ce596d84104617937648682e8f4ddeb8369b1ae Mon Sep 17 00:00:00 2001 From: midblep Date: Sat, 18 Dec 2021 17:14:01 +0100 Subject: [PATCH] make birthday stuff only appear on the right day --- pages/index.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pages/index.js b/pages/index.js index 8c67400..b4dfa4d 100644 --- a/pages/index.js +++ b/pages/index.js @@ -12,6 +12,9 @@ import { TwitchEmbed } from 'react-twitch-embed'; const client_id = "edpx4oisrkpnrlx47b7a2p3govy6qm"; const client_secret = "dqr2glvdhr7uyn3bf3biu48977rfwo"; +const d = new Date(); +let day = d.getDate() + " " + d.getMonth(); + export default function Index({ motto, twitch_online, about }) { return (
@@ -40,11 +43,15 @@ export default function Index({ motto, twitch_online, about }) { -

- HAPPY BIRTHDAY TRICK! -

- - + {day == "06 11" && +
+

+ HAPPY BIRTHDAY TRICK! +

+ + +
+ }