Something went wrong. Try again.
My website. cameron.stream
Something went wrong. Try again.
678 B · 28 lines
TSX
1234567891011121314151617181920212223242526272829type WebringProps = { name: string; label?: string; slug: string; from: string; aboutHref?: string;};
export function Webring({ name, label = `${name} webring`, slug, from, aboutHref = "https://github.com/4shub/ringdt",}: WebringProps) { const baseUrl = `https://ringdt.rapid.workers.dev/${slug}`; const fromParam = encodeURIComponent(from);
return ( <div class="webring" aria-label={`${name} webring navigation`}> <a href={`${baseUrl}/prev?from=${fromParam}`}>previous</a> <a href={aboutHref} target="_blank" rel="noopener"> {label} </a> <a href={`${baseUrl}/next?from=${fromParam}`}>next</a> </div> );}