Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152"use client";
import { useCallback, useEffect, useRef, useState } from "react";
const EMAIL = "me@objsee.org";
export function Bio({ delay = "rv-2" }: { delay?: string }) { return ( <p className={`rv ${delay} bio text-[14px] sm:text-[15.5px] max-w-[var(--wordmark-w,16rem)] sm:max-w-[44ch] text-left mx-auto sm:mx-0`}> low-level C developer. kernel and *nix internals. </p> );}
export function Links({ delay = "rv-3" }: { delay?: string }) { const [copied, setCopied] = useState(false); const t = useRef<ReturnType<typeof setTimeout> | null>(null); const onCopy = useCallback(async (e: React.MouseEvent) => { e.preventDefault(); try { await navigator.clipboard.writeText(EMAIL); setCopied(true); if (t.current) clearTimeout(t.current); t.current = setTimeout(() => setCopied(false), 1600); } catch { window.location.href = `mailto:${EMAIL}`; } }, []); useEffect(() => () => { if (t.current) clearTimeout(t.current); }, []);
return ( <nav className={`rv ${delay} flex flex-wrap items-center justify-start gap-x-5 sm:gap-x-7 gap-y-1 text-[13px] sm:text-[14.5px] max-w-[var(--wordmark-w,16rem)] sm:max-w-[44ch] mx-auto sm:mx-0`}> <a className="lnk" href="https://tangled.org/objsee.tngl.sh" target="_blank" rel="noopener noreferrer"> git </a> <a className="lnk" href="https://instagram.com/objsee" target="_blank" rel="noopener noreferrer"> ig </a> <a href={`mailto:${EMAIL}`} onClick={onCopy} className="copy" aria-label={copied ? "email copied" : `copy ${EMAIL}`} > <span key={copied ? "c" : "m"} className="copy-swap"> {copied ? "copied" : "mail"} </span> </a> </nav> );}