mirror of
https://github.com/Patiun/com.gregkilmer.www.git
synced 2026-11-08 04:08:24 +00:00
Add light mode that follows the device setting
Dark stays the default. A device set to light gets the picks from the light motif board: the Dawn chart sky (dawn wash over faint star chart lines, atlas marks in the hero), deep gold line seals, Midnight, violet and gold dust, the deep gold to teal filament and the morning sky placeholder. Large standalone seals (404, Inquiries, Inquiry sent, the blog's lead) are gold foil in both modes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012aSbo2D1qP8cMFQCykf7kx
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
import Button from "@gk/ui/components/Button.astro";
|
||||
import GiltCorners from "@gk/ui/components/GiltCorners.astro";
|
||||
import Motif from "@gk/ui/components/Motif.astro";
|
||||
import Seal from "@gk/ui/components/Seal.astro";
|
||||
import Star from "@gk/ui/components/Star.astro";
|
||||
import StarPath from "@gk/ui/components/StarPath.astro";
|
||||
@@ -39,10 +40,10 @@ const now = nowStatuses(s, post);
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<img src={filamentBanner} alt="" aria-hidden="true" class="banner" />
|
||||
<Motif src={filamentBanner} alt="" aria-hidden="true" class="banner" />
|
||||
<StarPath strength="wild" steps={7} centerStar={false} class="path" seed={post.slug} />
|
||||
<TickRing size={196} class="ring">
|
||||
<Seal name="transmutation" size={150} class="seal" />
|
||||
<Seal name="transmutation" size={150} class="seal" foil />
|
||||
</TickRing>
|
||||
</>
|
||||
)
|
||||
@@ -75,11 +76,11 @@ const now = nowStatuses(s, post);
|
||||
flex-wrap: wrap;
|
||||
overflow: hidden;
|
||||
background: var(--gk-midnight);
|
||||
border: 1px solid rgba(201, 162, 74, 0.55);
|
||||
border: 1px solid rgba(var(--gk-gold-rgb), 0.55);
|
||||
border-radius: var(--gk-radius);
|
||||
box-shadow:
|
||||
inset 0 0 0 4px var(--gk-midnight),
|
||||
inset 0 0 0 5px rgba(201, 162, 74, 0.35);
|
||||
inset 0 0 0 5px rgba(var(--gk-gold-rgb), 0.35);
|
||||
}
|
||||
.art {
|
||||
flex: 1 1 440px;
|
||||
@@ -90,10 +91,10 @@ const now = nowStatuses(s, post);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background:
|
||||
radial-gradient(ellipse 70% 90% at 100% 0%, rgba(106, 47, 224, 0.28), transparent 70%),
|
||||
radial-gradient(ellipse 55% 80% at 0% 70%, rgba(20, 163, 154, 0.18), transparent 70%),
|
||||
repeating-linear-gradient(0deg, rgba(244, 242, 237, 0.035) 0 1px, transparent 1px 40px),
|
||||
repeating-linear-gradient(90deg, rgba(244, 242, 237, 0.035) 0 1px, transparent 1px 40px),
|
||||
radial-gradient(ellipse 70% 90% at 100% 0%, rgba(var(--gk-violet-rgb), calc(0.28 * var(--gk-wash))), transparent 70%),
|
||||
radial-gradient(ellipse 55% 80% at 0% 70%, rgba(var(--gk-teal-deep-rgb), calc(0.18 * var(--gk-wash))), transparent 70%),
|
||||
repeating-linear-gradient(0deg, rgba(var(--gk-star-rgb), 0.035) 0 1px, transparent 1px 40px),
|
||||
repeating-linear-gradient(90deg, rgba(var(--gk-star-rgb), 0.035) 0 1px, transparent 1px 40px),
|
||||
var(--gk-sky);
|
||||
}
|
||||
.art.photo {
|
||||
@@ -116,7 +117,14 @@ const now = nowStatuses(s, post);
|
||||
opacity: 0.8;
|
||||
}
|
||||
.art :global(.seal) {
|
||||
filter: drop-shadow(0 0 16px rgba(201, 162, 74, 0.35));
|
||||
filter: drop-shadow(0 0 16px rgba(var(--gk-gold-rgb), 0.35));
|
||||
}
|
||||
/* Glow is for the night sky; on Starlight the foil stands on its own. */
|
||||
@media (prefers-color-scheme: light) {
|
||||
.art :global(.seal) {
|
||||
opacity: 1;
|
||||
filter: none;
|
||||
}
|
||||
}
|
||||
.cover {
|
||||
position: absolute;
|
||||
@@ -129,13 +137,13 @@ const now = nowStatuses(s, post);
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background:
|
||||
linear-gradient(to top, rgba(14, 21, 34, 0.88), transparent 42%),
|
||||
linear-gradient(to bottom, rgba(14, 21, 34, 0.45), transparent 30%);
|
||||
linear-gradient(to top, rgba(var(--gk-sky-rgb), 0.88), transparent 42%),
|
||||
linear-gradient(to bottom, rgba(var(--gk-sky-rgb), 0.45), transparent 30%);
|
||||
}
|
||||
.mat {
|
||||
position: absolute;
|
||||
inset: 14px;
|
||||
border: 1px solid rgba(201, 162, 74, 0.5);
|
||||
border: 1px solid rgba(var(--gk-gold-rgb), 0.5);
|
||||
border-radius: 6px;
|
||||
}
|
||||
.no {
|
||||
@@ -196,8 +204,8 @@ const now = nowStatuses(s, post);
|
||||
border-radius: 2px;
|
||||
background:
|
||||
radial-gradient(circle at 18% 50%, var(--gk-teal-bright) 0 2px, transparent 3px),
|
||||
linear-gradient(90deg, var(--gk-gold), rgba(201, 162, 74, 0.15) 70%, transparent);
|
||||
box-shadow: 0 0 8px rgba(201, 162, 74, 0.35);
|
||||
linear-gradient(90deg, var(--gk-gold), rgba(var(--gk-gold-rgb), 0.15) 70%, transparent);
|
||||
box-shadow: 0 0 8px rgba(var(--gk-gold-rgb), 0.35);
|
||||
}
|
||||
.summary {
|
||||
margin: 4px 0 0;
|
||||
|
||||
Reference in New Issue
Block a user