Add 404 page, social preview and nginx config; update .gitignore

This commit is contained in:
N0Xx committed 2026-10-26 20:42:52 +01:00
1 parent 986c89d87b
commit 9fe26dfe1b
15 files changed
+695 -244

No files matched your search

+17 -11
View File
@@ -1,6 +1,6 @@
:root{
--night:#14122b; --surface:rgba(32,28,66,.72); --surface-2:#262249; --line:#3a3566;
--text:#ece8f7; --muted:#a8a3c9; --rose:#f0708a; --signal:#74d4e6; --todo:#f3c969; --proton:#6d4aff; --proton-soft:#8a6eff;
--text:#ece8f7; --muted:#a8a3c9; --rose:#f0708a; --signal:#74d4e6; --todo:#f3c969; --proton:#6d4aff; --proton-soft:#8a6eff; --accent:#a996ff;
--display:"Chakra Petch", "Segoe UI", system-ui, sans-serif;
--body:"IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
--mono:"IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
@@ -10,17 +10,17 @@
}
:root[data-theme="light"]{
--night:#f4f2fb; --surface:#ffffff; --surface-2:#ebe8f7; --line:#d3cfe8;
--text:#1c1936; --muted:#5c5780; --rose:#c43a5a; --signal:#12788c; --todo:#9a6b00; --proton:#6d4aff; --proton-soft:#5b3be6;
--text:#1c1936; --muted:#4a456c; --rose:#c43a5a; --signal:#12788c; --todo:#9a6b00; --proton:#6d4aff; --proton-soft:#5b3be6; --accent:#4326c4;
}
@media (prefers-color-scheme: light){
:root:not([data-theme="dark"]){
--night:#f4f2fb; --surface:#ffffff; --surface-2:#ebe8f7; --line:#d3cfe8;
--text:#1c1936; --muted:#5c5780; --rose:#c43a5a; --signal:#12788c; --todo:#9a6b00; --proton:#6d4aff; --proton-soft:#5b3be6;
--text:#1c1936; --muted:#4a456c; --rose:#c43a5a; --signal:#12788c; --todo:#9a6b00; --proton:#6d4aff; --proton-soft:#5b3be6; --accent:#4326c4;
}
}
:root[data-theme="dark"]{
--night:#14122b; --surface:rgba(32,28,66,.72); --surface-2:#262249; --line:#3a3566;
--text:#ece8f7; --muted:#a8a3c9; --rose:#f0708a; --signal:#74d4e6; --todo:#f3c969; --proton:#6d4aff; --proton-soft:#8a6eff;
--text:#ece8f7; --muted:#a8a3c9; --rose:#f0708a; --signal:#74d4e6; --todo:#f3c969; --proton:#6d4aff; --proton-soft:#8a6eff; --accent:#a996ff;
}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;background-color:var(--night);color:var(--text);font:400 1rem/1.6 var(--body);
@@ -67,7 +67,7 @@ p{margin:0 0 1rem;max-width:68ch}
.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:2.5rem;align-items:center;margin-bottom:3rem}
.avatar{box-shadow:0 0 0 4px color-mix(in srgb,var(--proton) 25%,transparent);width:96px;height:96px;border-radius:50%;display:grid;place-items:center;font:700 1.8rem var(--display);
background:var(--grad);color:#fff;margin-bottom:1.2rem}
.role{font:500 1.1rem var(--display);color:var(--proton-soft);margin-bottom:1rem}
.role{font:500 1.1rem var(--display);color:var(--accent);margin-bottom:1rem}
.trace{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:1.1rem 1.2rem;font:400 .86rem/1.75 var(--mono);overflow-x:auto}
.trace .cmd{color:var(--muted);margin-bottom:.4rem}
.trace .cmd b{color:var(--text);font-weight:500}
@@ -111,7 +111,7 @@ input:focus,textarea:focus{outline:none;border-color:var(--proton-soft);box-shad
input:user-invalid,textarea:user-invalid{border-color:var(--rose)}
.hp{position:absolute;left:-9999px}
.form button{display:inline-flex;align-items:center;gap:.55rem;font:600 1rem var(--body);cursor:pointer;border:0;padding:.75rem 1.4rem;border-radius:8px;background:var(--proton);color:#fff;transition:background-color .2s,transform .2s}
.form button:hover{background:var(--proton-soft)}
.form button:hover{background:#5b3be6}
.form button:disabled{opacity:.6;cursor:wait}
.status{margin:.9rem 0 0;font-size:.95rem;min-height:1.5em}
.status.ok{color:var(--signal)} .status.err{color:var(--rose)}
@@ -123,7 +123,7 @@ input:user-invalid,textarea:user-invalid{border-color:var(--rose)}
.item:hover,.trace:hover,.form:hover{transform:translateY(-3px);border-color:var(--proton-soft);
box-shadow:0 10px 28px -12px color-mix(in srgb,var(--proton) 55%,transparent)}
.btn:hover{transform:translateY(-2px);border-color:var(--proton-soft);box-shadow:0 6px 18px -8px color-mix(in srgb,var(--proton) 70%,transparent)}
.btn.primary:hover{background:var(--proton-soft);filter:none}
.btn.primary:hover{background:#5b3be6;border-color:#5b3be6;filter:none}
.item:hover .tags span{background:color-mix(in srgb,var(--proton) 22%,var(--surface-2));color:var(--text)}
.form button:hover{transform:translateY(-1px)}
}
@@ -407,16 +407,22 @@ dl.facts dd{margin:0}
nav a.active::after{transform:scaleY(1)}
}
@media (prefers-reduced-motion:reduce){nav,nav.open,.menu-btn span{transition:none}}
/* ===== 404 page ===== */
.notfound{max-width:720px;margin:0 auto;padding:clamp(3rem,10vh,6rem) 1.25rem 4rem}
.notfound .code{font:700 clamp(4.5rem,18vw,8rem)/1 var(--display);color:var(--accent);letter-spacing:.02em;margin:0 0 .4rem}
.notfound h1{font-size:clamp(1.6rem,4.5vw,2.2rem);margin-bottom:.8rem}
.notfound .trace{margin:1.8rem 0 2rem}
.notfound .hop{opacity:1;animation:none}
.notfound .hop{grid-template-columns:1.3rem 8.8rem 2.8rem minmax(0,1fr);column-gap:.7rem}
@media (max-width:480px){.notfound .hop{grid-template-columns:1.1rem 8.6rem minmax(0,1fr);column-gap:.5rem}.notfound .hop .y{display:none}}
.notfound .hop.fail .h,.notfound .hop.fail span:last-child{color:var(--rose)}
.notfound .cta{margin-top:0}
/* Career cards: keep the action buttons at the bottom */
#career .item{display:flex;flex-direction:column;align-items:flex-start}
#career .item>.btn,#career .cv-links{margin-top:auto}
#career .cv-links{display:flex;margin-bottom:0}
/* 404 page */
.notfound{max-width:640px;min-height:100vh;display:grid;align-content:center;gap:1.2rem;padding:2rem 1.25rem}
.notfound h1{margin:0}
/* Former inline styles (moved here so a strict Content-Security-Policy can block inline CSS) */
.u-019d5f{left:4.76% !important;width:78.57% !important}
.u-054622{animation-delay:.5s !important}