www: docs: feat: add dark mode (#2820)

- Added CSS vars for dark/light colors.
- Added dark/light theme toggle as Island

Fixes #2648

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
David Monaghan
2025-02-04 11:58:05 +01:00
committed by GitHub
co-authored by Marvin Hagemeister
parent adf8b87a03
commit b1f2a989a5
16 changed files with 320 additions and 46 deletions
+6 -3
View File
@@ -18,16 +18,19 @@ const LINKS = [
export default function Footer(props: JSX.HTMLAttributes<HTMLElement>) {
return (
<footer
class={`border-t-2 border-gray-200 md:h-16 flex mt-16 justify-center md:mx-16 ${props.class}`}
class={`border-t-2 border-foreground-secondary/20 md:h-16 flex mt-16 justify-center md:mx-16 ${props.class}`}
>
<div class="flex flex-col sm:flex-row gap-4 justify-between items-center max-w-screen-xl mx-auto w-full sm:px-6 md:px-8 p-4">
<div class="text-gray-600 text-center">
<div class="text-foreground-secondary text-center">
<span>© {new Date().getFullYear()} the Fresh authors</span>
</div>
<div class="flex items-center gap-8">
{LINKS.map((link) => (
<a href={link.href} class="text-gray-600 hover:underline">
<a
href={link.href}
class="text-foreground-secondary hover:underline"
>
{link.title}
</a>
))}