diff --git a/public/favicon.ico b/public/favicon.ico index 7f48a94..fe987a9 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/favicon.svg b/public/favicon.svg deleted file mode 100644 index f157bd1..0000000 --- a/public/favicon.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/src/components/external-link.astro b/src/components/external-link.astro index 01105cf..fcb48ea 100644 --- a/src/components/external-link.astro +++ b/src/components/external-link.astro @@ -16,5 +16,7 @@ const { cssClass, href, title } = Astro.props; "flex min-w-full items-center justify-center gap-4 rounded px-6 py-2 text-lg sm:px-24", ]} {href} - {title}> diff --git a/src/components/inline-image.astro b/src/components/inline-image.astro new file mode 100644 index 0000000..a3e678b --- /dev/null +++ b/src/components/inline-image.astro @@ -0,0 +1,22 @@ +--- +import type { ImageMetadata } from "astro"; +import { Image } from "astro:assets"; + +interface Props { + priority?: boolean; + size?: number; + src: ImageMetadata; +} + +const { priority = true, size = 24, src } = Astro.props; +--- + + diff --git a/src/components/inline-svg.astro b/src/components/inline-svg.astro index 6d22a1c..8f09eb9 100644 --- a/src/components/inline-svg.astro +++ b/src/components/inline-svg.astro @@ -3,10 +3,15 @@ import type { SvgComponent } from "astro/types"; interface Props { SvgComponent: SvgComponent; - svgSize?: number; + size?: number; } -const { SvgComponent, svgSize = 24 } = Astro.props; +const { size = 24, SvgComponent } = Astro.props; --- - + diff --git a/src/images/fa-logo.webp b/src/images/fa-logo.webp new file mode 100644 index 0000000..2370d6c Binary files /dev/null and b/src/images/fa-logo.webp differ diff --git a/src/images/mastodon-logo-white.svg b/src/images/mastodon-logo.svg similarity index 95% rename from src/images/mastodon-logo-white.svg rename to src/images/mastodon-logo.svg index 39a116b..79d214d 100644 --- a/src/images/mastodon-logo-white.svg +++ b/src/images/mastodon-logo.svg @@ -1,3 +1,3 @@ - + diff --git a/src/images/matrix-logo.svg b/src/images/matrix-logo.svg new file mode 100644 index 0000000..e846fdd --- /dev/null +++ b/src/images/matrix-logo.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index b0df8fa..e4f5998 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,21 +1,22 @@ --- import { Image } from "astro:assets"; import ExternalLink from "../components/external-link.astro"; +import InlineImage from "../components/inline-image.astro"; import InlineSvg from "../components/inline-svg.astro"; import avatar from "../images/Icon Alec 150.png"; -import MastodonLogo from "../images/mastodon-logo-white.svg"; +import furAffinityLogo from "../images/fa-logo.webp"; +import MastodonLogo from "../images/mastodon-logo.svg"; +import MatrixLogo from "../images/matrix-logo.svg"; import "../styles/global.css"; - -const svgSize = 24; --- - - + + f1r3.xyz @@ -45,6 +46,7 @@ const svgSize = 24; href="https://matrix.to/#/@f1r3w4rr10r:bark.lgbt" title="My matrix account" > + @f1r3w4rr10r:bark.lgbt @@ -64,6 +66,7 @@ const svgSize = 24; href="https://www.furaffinity.net/user/f1r3w4rr10r/" title="My Fur Affinity account" > + f1r3w4rr10r diff --git a/src/styles/global.css b/src/styles/global.css index fefa047..42d04f8 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -1,14 +1,30 @@ @import "tailwindcss"; @theme { - --color-mastodon-primary: #6364ff; - --color-mastodon-dark: #17063b; - --color-mastodon-dark-hover: #2f0c7a; + --color-background-dark: oklch(from var(--color-violet-950) 24% 0.08 h); + + --link-bg-l: 53.5%; + --hover-darken: 0.05; + + --color-fur-affinity: oklch(from #353b45 var(--link-bg-l) c h); + --color-fur-affinity-hover: oklch( + from var(--color-fur-affinity) calc(l - var(--hover-darken)) c h + ); + + --color-mastodon: oklch(from #6364ff var(--link-bg-l) c h); + --color-mastodon-hover: oklch( + from var(--color-mastodon) calc(l - var(--hover-darken)) c h + ); + + --color-matrix: oklch(from #0dbd8b var(--link-bg-l) c h); + --color-matrix-hover: oklch( + from var(--color-matrix) calc(l - var(--hover-darken)) c h + ); } @layer base { body { - @apply bg-neutral-50 text-black dark:bg-neutral-800 dark:text-white; + @apply dark:bg-background-dark bg-neutral-50 text-black dark:text-white; } h1 { @@ -17,12 +33,16 @@ } @layer components { + .link-fur-affinity { + @apply bg-fur-affinity hover:bg-fur-affinity-hover text-white; + } + .link-mastodon { - @apply bg-mastodon-dark hover:bg-mastodon-dark-hover text-white; + @apply bg-mastodon hover:bg-mastodon-hover text-white; } .link-matrix { - @apply bg-black text-white hover:bg-zinc-950; + @apply bg-matrix hover:bg-matrix-hover text-white; } }