added easter egg

main
Midnight 3 years ago
parent e245b283ad
commit 33b0dd85f0

@ -2,20 +2,22 @@ import styles from '../styles/components/Footer.module.css'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faHeart } from '@fortawesome/free-solid-svg-icons' import { faHeart } from '@fortawesome/free-solid-svg-icons'
const Footer = () => ( export default function Footer() {
return (
<div> <div>
<div className={styles.footer}> <div className={styles.footer}>
<div className="container"> <div className="container">
<audio src="/sound/meow.mp3" id="meow" preload="auto"></audio>
<p> <p>
<b> <b>
Made with <FontAwesomeIcon icon={faHeart} style={{color: "#63C5DA"}} size="1x" /> by <a href="https://twitter.com/midblep" className="link" target="_blank">Midblep</a> Made with <FontAwesomeIcon icon={faHeart} style={{color: "#63C5DA"}} size="1x" id="clickMeow" /> by <a href="https://twitter.com/midblep" className="link" target="_blank">Midblep</a>
</b> </b>
<br/> <br/>
NextJS // Vercel // Airtable NextJS // Vercel // Airtable
</p> </p>
</div> </div>
</div> </div>
<script src="js/meow.js"></script>
</div> </div>
) )
}
export default Footer

@ -0,0 +1,6 @@
const soundBtn = document.querySelector('#clickMeow');
let myAudio = document.querySelector('#meow');
soundBtn.addEventListener('click',() => {
myAudio.volume = 0.1;
myAudio.play();
});

Binary file not shown.
Loading…
Cancel
Save