Merge pull request #31 from ClicksMinutePer/safari-fix
diff --git a/pages/_app.js b/pages/_app.js
index d571c96..7d1b810 100644
--- a/pages/_app.js
+++ b/pages/_app.js
@@ -104,7 +104,6 @@
hideSubBar={hideSubBar}
showMessage={showMessage}
season={season}
- randomSeed={new Date().getMinutes() / 60} // FIXME: Janky hack mate
/>
<div className={Styles.container} style={{
pointerEvents: "none",
diff --git a/pages/index.js b/pages/index.js
index b7738ab..d47a5de 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -4,38 +4,26 @@
export default function Home(props) {
- let subtexts = []
+ let subtext = “”
switch (props.season.season) {
case "christmas": {
- subtexts = [
- "Merry Christmas!",
- "Happy Holidays!",
- "Season's Greetings!",
- "Merry Clicksmas!",
- ]
+ subtext = “Merry Christmas!"
break;
}
case "halloween": {
- subtexts = [
- "Happy Halloween!",
- "Trick or Treat!",
- "boo"
- ]
+ subtext = "Happy Halloween!"
+ break;
}
default: {
- subtexts = [
- "Creating projects that click"
- ];
+ subtext = “Creating projects that click"
}
}
- let currentSubtext = subtexts[Math.floor(props.randomSeed * subtexts.length)];
-
return (
<>
<Header
name="Clicks"
- subtext={currentSubtext}
+ subtext={subtext}
customImage="https://assets.clicks.codes/web/logos/clicks.svg"
embedImage="https://assets.clicks.codes/web/logos/clicks.png"
gradient={["6576CC", "4B5899"]}