checkpoint

This commit is contained in:
2026-10-28 11:10:46 +02:00
parent c5c9d74937
commit cce5e348b3
10 changed files with 333 additions and 46 deletions
+85 -2
View File
@@ -3,10 +3,83 @@ html, body{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
}
main {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
padding: 2rem 1rem;
}
/* Navbar */
.site-header {
--nav-bg: rgb(255 255 255 / 0.75);
--nav-text: #1e293b;
--nav-muted: #475569;
--nav-hover: rgb(15 23 42 / 0.08);
--nav-active-bg: #2563eb;
--nav-active-text: #fff;
position: sticky;
top: 0;
z-index: 10;
align-self: stretch;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem 1rem;
padding: 0.6rem 1rem;
background: var(--nav-bg);
backdrop-filter: blur(8px);
box-shadow: 0 1px 0 rgb(15 23 42 / 0.1), 0 4px 16px rgb(15 23 42 / 0.06);
}
.main-nav,
.lang-switch {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
}
.site-header a {
padding: 0.45rem 0.9rem;
border-radius: 999px;
color: var(--nav-text);
font-weight: 600;
text-decoration: none;
transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-switch a {
color: var(--nav-muted);
font-size: 0.9rem;
font-weight: 500;
}
.site-header a:hover {
background: var(--nav-hover);
color: var(--nav-text);
}
.site-header a.active {
background: var(--nav-active-bg);
color: var(--nav-active-text);
}
.site-header a:focus-visible {
outline: 3px solid rgb(37 99 235 / 0.5);
outline-offset: 2px;
}
#message-me-btn {
--btn-bg: #2563eb;
--btn-bg-hover: #1d4ed8;
@@ -49,6 +122,15 @@ html, body{
}
@media (prefers-color-scheme: dark) {
.site-header {
--nav-bg: rgb(15 23 42 / 0.85);
--nav-text: #e2e8f0;
--nav-muted: #94a3b8;
--nav-hover: rgb(255 255 255 / 0.08);
--nav-active-bg: #3b82f6;
--nav-active-text: #0b1220;
}
#message-me-btn {
--btn-bg: #3b82f6;
--btn-bg-hover: #60a5fa;
@@ -57,5 +139,6 @@ html, body{
}
@media (prefers-reduced-motion: reduce) {
#message-me-btn { transition: none; }
#message-me-btn,
.site-header a { transition: none; }
}