diff --git a/src/components/Card.astro b/src/components/Card.astro index ff8c837..ac40419 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -4,8 +4,9 @@ interface Props { description: string; href: string; cta: string; - icon: "gitea" | "github" | "steam" | "psn" | "xbox" | "switch"; + icon: "gitea" | "github" | "steam" | "psn" | "xbox" | "switch" | "link"; accent?: "primary" | "default"; + warning?: string; } const { @@ -15,6 +16,7 @@ const { cta, icon, accent = "default", + warning, } = Astro.props; const icons = { @@ -24,6 +26,7 @@ const icons = { psn: "fa-brands fa-playstation", xbox: "fa-brands fa-xbox", switch: "fa-solid fa-gamepad", + link: "fa-solid fa-link", } satisfies Record; --- @@ -44,6 +47,7 @@ const icons = {

{description}

+ {warning &&

{warning}

} {cta} diff --git a/src/data/links.ts b/src/data/links.ts index 6380bed..6fac576 100644 --- a/src/data/links.ts +++ b/src/data/links.ts @@ -3,8 +3,9 @@ export type HubLink = { description: string; href: string; cta: string; - icon: "gitea" | "github" | "steam" | "psn" | "xbox" | "switch"; + icon: "gitea" | "github" | "steam" | "psn" | "xbox" | "switch" | "link"; accent?: "primary" | "default"; + warning?: string; }; export const hero = { @@ -62,3 +63,16 @@ export const playLinks: HubLink[] = [ icon: "switch", }, ]; + +export const utilityLinks: HubLink[] = [ + { + title: "Short Tiny Link to the Internet", + description: + "Short-lived URL helper powered by Kutt for quick shares, redirects, and temporary references.", + href: "https://tinyurl.thelilfrog.com", + cta: "Open Short Link", + icon: "link", + warning: + "Tinyfied URLs can be unavailable at any moment. Use this service only to generate temporary links.", + }, +]; diff --git a/src/pages/index.astro b/src/pages/index.astro index acc5abb..c4e22b9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,7 +2,7 @@ import Card from "../components/Card.astro"; import Section from "../components/Section.astro"; import Layout from "../layouts/Layout.astro"; -import { codeLinks, hero, playLinks } from "../data/links"; +import { codeLinks, hero, playLinks, utilityLinks } from "../data/links"; --- )} + +