the .env file worked but was cached perhaps??? also use <Meta />

This commit is contained in:
Chris Kruining 2024-11-18 15:43:29 +01:00
parent 75ff164f01
commit 7b0e4d4879
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
4 changed files with 9 additions and 11 deletions

View file

@ -1,4 +1,4 @@
import { Link, Title } from "@solidjs/meta";
import { Link, Meta, Title } from "@solidjs/meta";
import { Component, createMemo, createSignal, ErrorBoundary, ParentProps, Show } from "solid-js";
import { BsTranslate } from "solid-icons/bs";
import { FilesProvider } from "~/features/file";
@ -40,12 +40,12 @@ export default function Editor(props: ParentProps) {
return <MenuProvider commands={commands}>
<Title>Calque</Title>
<meta id="theme-scheme" name="color-scheme" content={colorScheme()} />
<meta id="theme-color" name="theme-color" content={color()} />
<Meta id="theme-scheme" name="color-scheme" content={colorScheme()} />
<Meta id="theme-color" name="theme-color" content={color()} />
<Show when={color() === undefined}>
<meta id="theme-auto-light" name="theme-color" media="(prefers-color-scheme: light)" content="#eee" />
<meta id="theme-auto-dark" name="theme-color" media="(prefers-color-scheme: dark)" content="#333" />
<Meta id="theme-auto-light" name="theme-color" media="(prefers-color-scheme: light)" content="#eee" />
<Meta id="theme-auto-dark" name="theme-color" media="(prefers-color-scheme: dark)" content="#333" />
</Show>
<Link rel="icon" href="/images/favicon.dark.svg" media="screen and (prefers-color-scheme: dark)" />