From af1df6e06194a1991e0f06c58cb2fdb593669753 Mon Sep 17 00:00:00 2001 From: Juliet Date: Sun, 31 May 2026 14:44:50 +0200 Subject: [PATCH] Add at-proto referrer easter egg --- src/views/home.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/views/home.tsx b/src/views/home.tsx index fc36679..89fca1e 100644 --- a/src/views/home.tsx +++ b/src/views/home.tsx @@ -23,6 +23,19 @@ const accentIcon = { type Accent = "blue" | "orange" | "violet"; +const defaultAtProtocolUrl = "https://atproto.com"; +const atProtoRefererUrl = "https://at-proto.com"; + +const getAtProtocolUrl = () => { + try { + return new URL(document.referrer).hostname === "at-proto.com" + ? atProtoRefererUrl + : defaultAtProtocolUrl; + } catch { + return defaultAtProtocolUrl; + } +}; + const CardContent = (props: { icon: string | JSX.Element; title: string; @@ -104,7 +117,7 @@ export const Home = () => {

Browse the public data on the{" "} -- 2.51.2