diff --git a/src/components/footer/index.tsx b/src/components/footer/index.tsx index 7936fcde..43cbce94 100644 --- a/src/components/footer/index.tsx +++ b/src/components/footer/index.tsx @@ -1,11 +1,14 @@ import { SiDiscord, SiReplit } from 'react-icons/si' +import {FaKey} from "react-icons/fa" import Icon from '../static/Icons' import { git, npm } from '../static/icons_list' import bento from '../../assets/bento.svg' import tor from '../../assets/tor.svg' import './index.css' import { useEffect, useState } from 'react' -import { LuGlobe } from 'react-icons/lu' +import { LuGlobe, LuKey } from 'react-icons/lu' +const isDev = process.env.NODE_ENV !== "production" + type DiscordStatus = "dnd" | "idle" | "online" | "offline" type Data = { discord_status: DiscordStatus, @@ -36,6 +39,7 @@ break; } export default function Footer () { const [lanyardData, setData] = useState(null) + const [fingerprint, setFingerprint] = useState(null) useEffect(() => { const signal = new AbortController() if(!lanyardData) { @@ -46,6 +50,13 @@ export default function Footer () { } }) } + if(!fingerprint) { + if(isDev) { + setFingerprint("FDE9 95C2 8C7E E563") + } else { + fetch('http://saahild.com/creds/fingerprint.txt').then(r=>r.text()).then(d => setFingerprint(d)) + } + } // return () => signal.abort() }) return <> @@ -58,6 +69,7 @@ export default function Footer () {