From ac3cb106346492dd6e8e705ba7c239505dcf9b16 Mon Sep 17 00:00:00 2001 From: reidlab Date: Fri, 7 Mar 2025 00:44:25 -0800 Subject: [PATCH] make css fruity --- src/components/Background.astro | 45 +++++++++++++++++++++++++++++++++ src/components/Badges.astro | 18 ++++++++++--- src/layouts/Layout.astro | 29 +++++++++------------ src/pages/about.astro | 13 +++++++++- src/pages/index.astro | 2 +- src/styles/main.css | 15 +++++++++-- 6 files changed, 98 insertions(+), 24 deletions(-) create mode 100644 src/components/Background.astro diff --git a/src/components/Background.astro b/src/components/Background.astro new file mode 100644 index 0000000..2426e45 --- /dev/null +++ b/src/components/Background.astro @@ -0,0 +1,45 @@ + + diff --git a/src/components/Badges.astro b/src/components/Badges.astro index 1b993db..aaa0202 100644 --- a/src/components/Badges.astro +++ b/src/components/Badges.astro @@ -11,15 +11,15 @@ const badges = await getCollection("badges"); // ugh. // i wish we could dedupe this, but im not sure how return <> - {hasHref ? + {hasHref ? {typeof badge.data.path !== "string" ? {badge.data.alt} : {badge.data.alt} } : <> {typeof badge.data.path !== "string" - ? {badge.data.alt} - : {badge.data.alt} + ? {badge.data.alt} + : {badge.data.alt} } } ; @@ -41,4 +41,16 @@ const badges = await getCollection("badges"); height: 31px; } } + + .badge { + transition: + transform 0.15s, + box-shadow 0.15s, + background 0.15s; + } + .badge:hover { + transform: scale(1.5); + box-shadow: 0 0 0.2em var(--foreground); + background: var(--foreground); + } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 4d9d89f..009d262 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -9,6 +9,7 @@ const { title, description } = Astro.props; import { ClientRouter } from "astro:transitions"; import ReplacementSwap from "astro-vtbot/components/ReplacementSwap.astro"; +import Background from "../components/Background.astro"; import Sidebar from "../components/Sidebar.astro"; import "modern-normalize"; @@ -37,17 +38,16 @@ import "../styles/main.css"; + - -
-
- -
-
+ +
+ +