IT crowd jokes
diff --git a/Components/Card.js b/Components/Card.js
index 5c421a0..e90a73f 100644
--- a/Components/Card.js
+++ b/Components/Card.js
@@ -39,7 +39,8 @@
key={i}
className={Styles.button}
style={{backgroundColor:`#${button.color}`, color:`#${this.props.buttonText}`}}
- href={button.link}
+ href={button.link ? button.link : null}
+ onClick={button.onClick ? button.onClick : null}
target={button.newTab ? "_blank" : undefined}
rel="noreferrer">{button.text}
</a>
diff --git a/Components/Header.js b/Components/Header.js
index da6ec92..37418c5 100644
--- a/Components/Header.js
+++ b/Components/Header.js
@@ -135,7 +135,8 @@
className={Styles.button}
style={{ backgroundColor: `#${button.color}`, color: `#${button.buttonText}` }}
href={button.link}
- onClick={() => { if (button.id) { props.callback(button.id) } }}
+ onClick={
+ button.onClick ? button.onClick : () => { if (button.id) { props.callback(button.id) } }}
target={button.target ? "_blank" : null}
draggable={false}
rel="noreferrer">
diff --git a/pages/01189998819991197253.js b/pages/01189998819991197253.js
index 01d15ef..88b3f13 100644
--- a/pages/01189998819991197253.js
+++ b/pages/01189998819991197253.js
@@ -1,6 +1,6 @@
import Header from '../Components/Header'
-export default function Error() {
+export default function Error(props) {
return (
<>
<Header
@@ -15,7 +15,18 @@
embedDescription="This is the internet"
gradient={["F27878", "D96B6B"]}
wave="web/waves/header/rsm"
- buttons={[{color: "F27878", buttonText: "ffffff", text: "No that's too formal", link: "/#"}]}
+ buttons={[{color: "F27878", buttonText: "ffffff", text: "No that's too formal", onClick: (() => {
+ const quotes = [
+ "I said, do you think you'd die if you drank wee?",
+ "Anyway, enough about our balls!",
+ "DON'T GOOGLE THE QUESTION MOSS",
+ "Hello, IT, have you tried turning it off and on again?",
+ "I'VE GOT A RUDDY GUN",
+ "I came here to drink milk and kick ass, and I've just finished my milk",
+ "I'll just put this over here... with the rest of the fire"
+ ]
+ props.showMessage(quotes[Math.floor(Math.random() * quotes.length)])
+ })}]}
fullscreen={true}
/>
</>