import { useState, useEffect } from 'react'; import { GitHub, LastFM, Twitter, Medal, Link } from './SocialIcons'; export default function Footer() { const quoteArray = [ "It works on my machine", "Revert 'Revert 'Revert 'Revert Change'''", "releases on Friday. refuses to elaborate. leaves.", "this is so cooked", "TypeScript: errors not for the weak, but for the spirited", "Professional Production Tester", "I break hearts to save lives. err.. something like that", "The best error is the one that never shows up" ] // states const [mailState, setMailState] = useState(false); const [ quote, setQuote ] = useState(quoteArray[Math.floor(Math.random() * quoteArray.length)]); useEffect(() => { if (mailState) { setTimeout(() => { setMailState(false) }, 3000) } }, [mailState]) const drawNewQuote = () => { const newQuote = quoteArray[Math.floor(Math.random() * quoteArray.length)] // redraw if this quote == current quote if (newQuote !== quote) { setQuote(newQuote); } else drawNewQuote(); } return (

© {new Date().getFullYear()}, Alex Frantz. All Rights Reserved

All logos & images on this page belong to their respective owners.

{quote}


{ mailState ? (

Copied!

) : ( ) }
{/* socials */}
) }