make birthday stuff only appear on the right day

main
Midnight 2 years ago
parent 73fb4ef126
commit 2ce596d841

@ -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 (
<div className="page">
@ -40,11 +43,15 @@ export default function Index({ motto, twitch_online, about }) {
<TwitchPopup show={twitch_online} />
<h1 className={styles.officeBanner}>
HAPPY BIRTHDAY TRICK!
</h1>
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.4.0/dist/confetti.browser.min.js"></script>
<script src="js/confetti.js"></script>
{day == "06 11" &&
<div>
<h1 className={styles.officeBanner}>
HAPPY BIRTHDAY TRICK!
</h1>
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.4.0/dist/confetti.browser.min.js"></script>
<script src="js/confetti.js"></script>
</div>
}
<article className={styles.pages}>
<section className={styles.top}>

Loading…
Cancel
Save