From e2f2a7b9a8ac1fbfaa0d7d73feada290d7fe2b4e Mon Sep 17 00:00:00 2001 From: Princesseuh <3019731+Princesseuh@users.noreply.github.com> Date: Fri, 22 Mar 2024 11:05:45 +0100 Subject: [PATCH] feat: add sponsoring CTA --- src/components/Sponsors.astro | 25 +++++++++++++++++++----- src/components/starlight/SiteTitle.astro | 21 ++++++++++---------- src/styles/custom.css | 13 ++++++++++++ 3 files changed, 44 insertions(+), 15 deletions(-) diff --git a/src/components/Sponsors.astro b/src/components/Sponsors.astro index fbc3bbd..cfc177c 100644 --- a/src/components/Sponsors.astro +++ b/src/components/Sponsors.astro @@ -34,7 +34,7 @@ const sponsors = [ const { smallPadding } = Astro.props; --- -
+
{ sponsors.map((sponsor) => ( @@ -46,9 +46,12 @@ const { smallPadding } = Astro.props; )) }
+ diff --git a/src/styles/custom.css b/src/styles/custom.css index 5e1a0ef..c6d2c28 100644 --- a/src/styles/custom.css +++ b/src/styles/custom.css @@ -53,3 +53,16 @@ :root[data-theme="dark"] mobile-starlight-toc nav { background-color: #1f1f1f; } + +a { + transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, + opacity; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 150ms; +} + +button { + transition-property: border-color; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 150ms; +}