From 527541d45bd4df4638e3e58429c0cfbaf91810d3 Mon Sep 17 00:00:00 2001 From: Saahil Date: Thu, 11 Jul 2024 09:44:03 -0400 Subject: [PATCH] Add PGP key --- src/components/footer/index.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 () {