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

+19 -11
View File
@@ -2,24 +2,32 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="robots" content="noindex">
<title>Page not found – Nelson Thomas</title>
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="/css/fonts.css?v=20261023">
<link rel="stylesheet" href="/css/style.css?v=20261023">
<script src="/js/theme.js?v=20261023"></script>
<title>Page not found – Nelson Thomas</title>
<link rel="stylesheet" href="/css/fonts.css?v=20261026">
<link rel="stylesheet" href="/css/style.css?v=20261026">
<script src="/js/theme.js?v=20261026"></script>
</head>
<body>
<main class="notfound">
<div class="trace">
<div class="cmd">$ <b>traceroute</b> this-page</div>
<div class="hop"><span class="n">1</span><span class="h">nelson-thomas.fr</span><span class="y">ok</span><span>Reached the site</span></div>
<div class="hop last"><span class="n">2</span><span class="h">* * *</span><span class="y">404</span><span>This page does not exist</span></div>
<p class="code" aria-hidden="true">404</p>
<h1>This page isn't on the network</h1>
<p class="lead">The address you followed doesn't exist, or it has moved. Everything about me is on the home page.</p>
<div class="trace" aria-label="Route to the requested page">
<div class="cmd">$ <b>traceroute</b> <span id="nf-path">/this-page</span></div>
<div class="hop"><span class="n">1</span><span class="h">nelson-thomas.fr</span><span class="y">2 ms</span><span>home page found</span></div>
<div class="hop"><span class="n">2</span><span class="h">* * *</span><span class="y"></span><span>request timed out</span></div>
<div class="hop fail"><span class="n">3</span><span class="h">!H</span><span class="y"></span><span>destination unreachable</span></div>
</div>
<div class="cta">
<a class="btn primary" href="/">Back to the portfolio</a>
<a class="btn" href="/#contact">Contact me</a>
</div>
<h1>Page not found</h1>
<p class="lead">The link may be old or mistyped.</p>
<a class="btn primary" href="/">Back to the portfolio</a>
</main>
<footer><p>© 2026 Nelson Thomas. Toulouse, France. · <a class="foot-legal" href="/legal.html">Legal notice &amp; privacy</a></p></footer>
<script src="/js/notfound.js?v=20261026" defer></script>
</body>
</html>
+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}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

+14 -10
View File
@@ -4,23 +4,27 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="description" content="Nelson Thomas – engineering student at INP ENSEEIHT, apprentice in networks and cybersecurity.">
<meta name="author" content="Nelson Thomas">
<meta name="theme-color" content="#14122b">
<link rel="canonical" href="https://nelson-thomas.fr/">
<link rel="canonical" href="https://www.nelson-thomas.fr/">
<meta property="og:type" content="website">
<meta property="og:url" content="https://nelson-thomas.fr/">
<meta property="og:site_name" content="Nelson Thomas">
<meta property="og:title" content="Nelson Thomas – ePortfolio">
<meta property="og:description" content="Engineering student at INP ENSEEIHT, apprentice in networks and cybersecurity.">
<meta property="og:image" content="https://nelson-thomas.fr/img/og-card.png">
<meta property="og:description" content="Nelson Thomas – engineering student at INP ENSEEIHT, apprentice in networks and cybersecurity.">
<meta property="og:url" content="https://www.nelson-thomas.fr/">
<meta property="og:image" content="https://www.nelson-thomas.fr/img/og-image.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Nelson Thomas – engineering student at INP ENSEEIHT, networks and cybersecurity apprentice">
<meta property="og:locale" content="en_GB">
<meta name="twitter:card" content="summary_large_image">
<meta name="theme-color" content="#14122b">
<meta name="author" content="Nelson Thomas">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<title>Nelson Thomas – ePortfolio</title>
<link rel="preload" href="fonts/chakra-petch-latin-600-normal.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="fonts/ibm-plex-sans-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="css/fonts.css?v=20261023">
<link rel="stylesheet" href="css/style.css?v=20261023">
<script src="js/theme.js?v=20261023"></script>
<link rel="stylesheet" href="css/fonts.css?v=20261026">
<link rel="stylesheet" href="css/style.css?v=20261026">
<script src="js/theme.js?v=20261026"></script>
</head>
<body>
<header>
@@ -482,6 +486,6 @@
<footer><div class="foot-links"><a class="foot-li" href="https://git.nelson-thomas.fr/N0Xx" target="_blank" rel="noopener" aria-label="Gitea profile"><img src="img/icons/gitea.png" alt="" width="24" height="24"></a><a class="foot-li" href="https://www.linkedin.com/in/nelson-thomas-pr/" target="_blank" rel="noopener" aria-label="LinkedIn profile"><img src="img/icons/linkedin.png" alt="" width="24" height="24"></a></div><p>© 2026 Nelson Thomas. Toulouse, France. · <a class="foot-legal" href="legal.html">Legal notice &amp; privacy</a></p></footer>
<script src="js/main.js?v=20261023" defer></script>
<script src="js/main.js?v=20261026" defer></script>
</body>
</html>
+4
View File
@@ -0,0 +1,4 @@
(function(){
var p=location.pathname; if(p.length>48)p=p.slice(0,45)+'…';
document.getElementById('nf-path').textContent=p;
})();
+4 -4
View File
@@ -7,9 +7,9 @@
<title>Legal notice – Nelson Thomas</title>
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<title>Legal notice – Nelson Thomas</title>
<link rel="stylesheet" href="css/fonts.css?v=20261023">
<link rel="stylesheet" href="css/style.css?v=20261023">
<script src="js/theme.js?v=20261023"></script>
<link rel="stylesheet" href="css/fonts.css?v=20261026">
<link rel="stylesheet" href="css/style.css?v=20261026">
<script src="js/theme.js?v=20261026"></script>
</head>
<body>
<main class="legal">
@@ -103,6 +103,6 @@
</article>
</main>
<footer><p>© 2026 Nelson Thomas. Toulouse, France.</p></footer>
<script src="js/legal.js?v=20261023" defer></script>
<script src="js/legal.js?v=20261026" defer></script>
</body>
</html>
+1 -1
View File
@@ -2,4 +2,4 @@ User-agent: *
Allow: /
Disallow: /contact.php
Sitemap: https://nelson-thomas.fr/sitemap.xml
Sitemap: https://www.nelson-thomas.fr/sitemap.xml
+1 -1
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://nelson-thomas.fr/</loc><lastmod>2026-10-23</lastmod></url>
<url><loc>https://www.nelson-thomas.fr/</loc><lastmod>2026-10-26</lastmod></url>
</urlset>