render an ASCII torus behind thicker glass, drop the light theme
- Replace the flat dither backdrop with a lit, rotating torus drawn the way donut.c does it: a z-buffer per cell and a luminance ramp from a dot to a solid block, sized against the shorter viewport axis. The dither field stays underneath as dust. It leads on the landing page and fades back where there is reading to do, and a scrim keeps the projects heading legible over it. - Thicken the glass: one .surface treatment with a heavier blur, more transparency and an SVG film grain, shared by the header, hero, cards, panels and footer. - Give the landing page labelled contact cards for LinkedIn, Gitea and email in place of three bare icons. - Drop the status chips from project cards and entry headers. - Remove the light theme, its toggle and theme.js outright. - Add restrained motion: underlines growing from the left on links and nav items, a lift on cards, buttons and contact cards, and tags brightening with their card. All of it is off under prefers-reduced-motion. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
54c00bf16f
commit
7078cda6c5
10 files changed
+448
-415
No files matched your search
+79
-61
@@ -5,10 +5,28 @@
|
||||
|
||||
/* The page header sits on the background; only cards get a surface. */
|
||||
.projects-hero {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
margin-bottom: 40px;
|
||||
max-width: 760px;
|
||||
}
|
||||
|
||||
/* Soft scrim so the heading stays readable over the ASCII field, without
|
||||
putting the text in a box. */
|
||||
.projects-hero::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -28px -10px -20px -10px;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
background: radial-gradient(
|
||||
ellipse at 30% 50%,
|
||||
rgba(11, 12, 15, 0.92),
|
||||
rgba(11, 12, 15, 0.6) 45%,
|
||||
transparent 75%
|
||||
);
|
||||
}
|
||||
|
||||
.projects-hero h1,
|
||||
.entry-title {
|
||||
font-size: clamp(1.5rem, 3vw, 2.1rem);
|
||||
@@ -64,15 +82,6 @@
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.section-link {
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.section-link:hover {
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
.content-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
@@ -90,33 +99,36 @@
|
||||
/* ---------------------------------------------------------------- cards */
|
||||
|
||||
.content-card {
|
||||
padding: 20px;
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(16px) saturate(130%);
|
||||
-webkit-backdrop-filter: blur(16px) saturate(130%);
|
||||
border: 1px solid var(--border);
|
||||
padding: 22px;
|
||||
border-radius: var(--radius);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
scroll-margin-top: 90px;
|
||||
transition:
|
||||
border-color 0.2s ease,
|
||||
box-shadow 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
border-color 0.24s var(--ease),
|
||||
box-shadow 0.24s var(--ease),
|
||||
transform 0.24s var(--ease);
|
||||
}
|
||||
|
||||
.content-card:hover {
|
||||
border-color: var(--border-strong);
|
||||
box-shadow: var(--shadow);
|
||||
transform: translateY(-3px);
|
||||
box-shadow:
|
||||
0 26px 60px rgba(0, 0, 0, 0.46),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.09);
|
||||
}
|
||||
|
||||
.content-card.featured {
|
||||
border-color: rgba(235, 82, 52, 0.28);
|
||||
}
|
||||
|
||||
body.light .content-card.featured {
|
||||
border-color: rgba(200, 64, 31, 0.3);
|
||||
.content-card.featured:hover {
|
||||
border-color: rgba(235, 82, 52, 0.55);
|
||||
box-shadow:
|
||||
0 26px 60px rgba(0, 0, 0, 0.46),
|
||||
0 0 32px rgba(235, 82, 52, 0.1),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.09);
|
||||
}
|
||||
|
||||
.card-meta {
|
||||
@@ -136,32 +148,6 @@ body.light .content-card.featured {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.card-status {
|
||||
margin-left: auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.card-status::before {
|
||||
content: "";
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: var(--muted);
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.card-status[data-state="active"]::before {
|
||||
background: var(--ok);
|
||||
box-shadow: 0 0 8px rgba(127, 176, 105, 0.6);
|
||||
}
|
||||
|
||||
.card-status[data-state="attention"]::before {
|
||||
background: var(--secondary);
|
||||
box-shadow: 0 0 8px rgba(235, 82, 52, 0.5);
|
||||
}
|
||||
|
||||
.content-card h3 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 1.1rem;
|
||||
@@ -191,6 +177,14 @@ body.light .content-card.featured {
|
||||
color: var(--muted);
|
||||
background: var(--bar);
|
||||
border: 1px solid var(--border);
|
||||
transition:
|
||||
color 0.2s var(--ease),
|
||||
border-color 0.2s var(--ease);
|
||||
}
|
||||
|
||||
.content-card:hover .tag {
|
||||
color: var(--primary);
|
||||
border-color: var(--border-strong);
|
||||
}
|
||||
|
||||
.card-links,
|
||||
@@ -207,21 +201,52 @@ body.light .content-card.featured {
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* Text links share one hover: colour plus an underline growing from the left. */
|
||||
.card-link,
|
||||
.entry-back,
|
||||
.inline-button {
|
||||
.inline-button,
|
||||
.section-link,
|
||||
.honor-inline-link {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.card-link::after,
|
||||
.entry-back::after,
|
||||
.inline-button::after,
|
||||
.section-link::after,
|
||||
.honor-inline-link::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: -2px;
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
background: var(--secondary);
|
||||
transform: scaleX(0);
|
||||
transform-origin: left;
|
||||
transition: transform 0.24s var(--ease);
|
||||
}
|
||||
|
||||
.card-link:hover,
|
||||
.entry-back:hover,
|
||||
.inline-button:hover {
|
||||
.inline-button:hover,
|
||||
.section-link:hover,
|
||||
.honor-inline-link:hover {
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
.card-link:hover::after,
|
||||
.entry-back:hover::after,
|
||||
.inline-button:hover::after,
|
||||
.section-link:hover::after,
|
||||
.honor-inline-link:hover::after {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
|
||||
.card-link-primary,
|
||||
.inline-button-primary {
|
||||
color: var(--primary);
|
||||
@@ -239,19 +264,21 @@ body.light .content-card.featured {
|
||||
align-items: center;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 7px 18px;
|
||||
padding: 8px 20px;
|
||||
font-size: 13px;
|
||||
background: var(--bar);
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color 0.18s ease,
|
||||
border-color 0.18s ease;
|
||||
color 0.2s var(--ease),
|
||||
border-color 0.2s var(--ease),
|
||||
transform 0.2s var(--ease);
|
||||
}
|
||||
|
||||
.projects-toggle:hover {
|
||||
color: var(--bright);
|
||||
border-color: var(--border-strong);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
@@ -266,12 +293,7 @@ body.light .content-card.featured {
|
||||
}
|
||||
|
||||
.entry-shell {
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(18px) saturate(135%);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(135%);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 32px 34px 38px;
|
||||
}
|
||||
|
||||
@@ -368,17 +390,13 @@ body.light .content-card.featured {
|
||||
.entry-content pre {
|
||||
padding: 16px 18px;
|
||||
overflow-x: auto;
|
||||
background: rgba(0, 0, 0, 0.22);
|
||||
background: rgba(0, 0, 0, 0.26);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
font-size: 0.84rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
body.light .entry-content pre {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.entry-content pre code {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
|
||||
Reference in new issue
Block a user