Improved contact form and responsive aspect

This commit is contained in:
N0Xx committed 2026-10-22 23:30:54 +02:00
1 parent 98d513acb7
commit 3b50843125
16 files changed
+184 -287

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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=20261022">
<link rel="stylesheet" href="/css/style.css?v=20261022">
<script src="/js/theme.js?v=20261022"></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>
</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>
</body>
</html>
+25 -33
View File
@@ -31,6 +31,7 @@ if (!is_readable($configFile)) {
reply(500, false, 'The contact form is not configured yet.');
}
$cfg = require $configFile;
date_default_timezone_set($cfg['timezone'] ?? 'Europe/Paris');
require $private . '/PHPMailer/Exception.php';
require $private . '/PHPMailer/PHPMailer.php';
@@ -38,6 +39,7 @@ require $private . '/PHPMailer/SMTP.php';
// ---------- Request checks ----------
if (($_SERVER['REQUEST_METHOD'] ?? '') !== 'POST') {
header('Allow: POST');
reply(405, false, 'Method not allowed.');
}
$origin = $_SERVER['HTTP_ORIGIN'] ?? '';
@@ -63,12 +65,13 @@ function field(array $in, string $key, int $max): string
}
$first = field($in, 'first_name', 60);
$last = field($in, 'last_name', 60);
$name = trim($first . ' ' . $last);
$phone = field($in, 'phone', 30);
$email = field($in, 'email', 150);
$phone = field($in, 'phone', 30);
$company = field($in, 'company', 100);
$subject = field($in, 'subject', 150);
$message = field($in, 'message', 4000);
$consent = ($in['consent'] ?? false) === true;
$name = trim($first . ' ' . $last);
// Header-bound fields must not contain line breaks (header injection).
foreach ([$first, $last, $email, $phone, $company, $subject] as $v) {
@@ -76,27 +79,28 @@ foreach ([$first, $last, $email, $phone, $company, $subject] as $v) {
reply(400, false, 'Invalid characters in the form.');
}
}
if ($first === '' || $last === '' || $subject === '' || $message === '' || !filter_var($email, FILTER_VALIDATE_EMAIL)) {
reply(422, false, 'Fill in the required fields (*) with a valid email address.');
if ($first === '' || $last === '' || $subject === '' || $message === ''
|| !filter_var($email, FILTER_VALIDATE_EMAIL)
|| ($phone !== '' && !preg_match('~^[0-9+()./ -]{6,30}$~', $phone))) {
reply(422, false, 'Fill in the required fields (*), and check your email and phone number.');
}
if ($phone !== '' && !preg_match('/^[0-9+().\/ -]{6,30}$/', $phone)) {
reply(422, false, 'The phone number looks invalid.');
}
if (empty($in['consent'])) {
reply(422, false, 'Please tick the consent box so I can reply to you.');
// GDPR: nothing is sent without the visitor's explicit consent.
if (!$consent) {
reply(422, false, 'Please tick the consent box so I can use your details to reply.');
}
// ---------- Rate limit per IP ----------
$ip = $_SERVER['REMOTE_ADDR'] ?? 'unknown';
$store = sys_get_temp_dir() . '/portfolio-contact-' . hash('sha256', $ip . ($cfg['rate_salt'] ?? ''));
$now = time();
$hits = [];
// Forget visitors after one hour: delete expired rate-limit files
// Delete fingerprints older than one hour (as stated in the legal notice).
foreach (glob(sys_get_temp_dir() . '/portfolio-contact-*') ?: [] as $old) {
if (@filemtime($old) < $now - 3600) {
@unlink($old);
}
}
$hits = [];
if (is_readable($store)) {
foreach (explode(',', (string) file_get_contents($store)) as $t) {
if ((int) $t > $now - 3600) {
@@ -129,29 +133,17 @@ try {
$mail->Subject = '[Portfolio] ' . $subject;
$mail->isHTML(false);
// Site name: from the (already validated) Origin, else the configured name
$site = $cfg['site_name'] ?? '';
if ($site === '') {
$site = (string) (parse_url($origin, PHP_URL_HOST) ?: ($_SERVER['HTTP_HOST'] ?? 'portfolio'));
}
date_default_timezone_set($cfg['timezone'] ?? 'Europe/Paris');
$line = str_repeat('-', 60);
$or = fn(string $v): string => $v !== '' ? $v : '-';
$body = str_replace(["\r\n", "\r"], "\n", $message);
$mail->Body =
"Nouveau message depuis le formulaire de contact de $site\n"
. "$line\n"
. "Prénom : $first\n"
. "Nom : $last\n"
. "E-mail : $email\n"
. 'Téléphone: ' . $or($phone) . "\n"
. 'Société : ' . $or($company) . "\n"
. "Objet : $subject\n"
. "$line\n\n"
. $body . "\n\n"
. "$line\n"
. "IP: $ip — " . date('Y-m-d H:i:s') . "\n";
"New message from your portfolio\n"
. "-------------------------------\n"
. "Name: $name\n"
. "Email: $email\n"
. ($phone !== '' ? "Phone: $phone\n" : '')
. ($company !== '' ? "Company: $company\n" : '')
. 'Date: ' . date('Y-m-d H:i:s T') . "\n"
. "IP: $ip\n"
. "Consent: given (form checkbox)\n\n"
. $message . "\n";
$mail->send();
+1 -1
View File
@@ -1,4 +1,4 @@
/* Self-hosted fonts (SIL Open Font License 1.1), from Fontsource */
/* Self-hosted fonts (SIL Open Font License 1.1, see fonts/OFL-*.txt), from Fontsource: latin + latin-ext subsets */
@font-face{font-family:'Chakra Petch';font-style:normal;font-display:swap;font-weight:500;src:url(../fonts/chakra-petch-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Chakra Petch';font-style:normal;font-display:swap;font-weight:500;src:url(../fonts/chakra-petch-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Chakra Petch';font-style:normal;font-display:swap;font-weight:600;src:url(../fonts/chakra-petch-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
+36 -14
View File
@@ -48,7 +48,7 @@ nav a::after{content:"";position:absolute;left:.6rem;right:.6rem;bottom:.15rem;h
nav a.active{color:var(--text)}
nav a.active::after{transform:scaleX(1)}
header::after{content:"";position:absolute;left:0;bottom:-1px;height:1px;width:var(--progress,0%);background:var(--proton-soft)}
.theme{background:none;border:1px solid var(--line);color:var(--muted);border-radius:6px;padding:.35rem .55rem;cursor:pointer;font-size:.9rem}
.theme{display:inline-grid;place-items:center;background:none;border:1px solid var(--line);color:var(--muted);border-radius:6px;padding:.35rem .55rem;cursor:pointer;font-size:.9rem}
main{max-width:1080px;margin:0 auto;padding:2.5rem 1.25rem 2rem}
html{scroll-behavior:smooth;scroll-padding-top:calc(env(safe-area-inset-top,0px) + 4.5rem)}
@@ -66,7 +66,7 @@ p{margin:0 0 1rem;max-width:68ch}
/* Hero: traceroute */
.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(--surface-2);border:2px dashed var(--todo);color:var(--todo);margin-bottom:1.2rem}
background:var(--grad);color:#fff;margin-bottom:1.2rem}
.role{font:500 1.1rem var(--display);color:var(--proton-soft);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}
@@ -94,15 +94,8 @@ dl.star dt{color:var(--muted)} dl.star dd{margin:0}
.tags span{font-size:.8rem;padding:.15rem .55rem;border-radius:4px;background:var(--surface-2);color:var(--muted)}
.result{color:var(--signal);font-weight:500}
.todo{border:1px dashed var(--todo);border-radius:6px;padding:.1rem .4rem;color:var(--todo);font-size:.95em}
.item.todo-box{border-style:dashed;border-color:var(--todo)}
.sub{margin:2.5rem 0 1rem;font:600 1.25rem var(--display);color:var(--text)}
.checklist{list-style:none;padding:0;margin:0 0 2rem;display:grid;gap:.5rem;max-width:720px}
.checklist li{display:flex;gap:.7rem;align-items:flex-start;padding:.7rem .9rem;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.checklist .st{flex:none;width:1.3rem;height:1.3rem;border-radius:50%;border:2px solid var(--todo);margin-top:.15rem}
.checklist .st.ok{border-color:var(--signal);background:var(--signal)}
.video{aspect-ratio:16/9;display:grid;place-items:center;background:var(--surface-2);border:1px dashed var(--todo);border-radius:10px;color:var(--todo);text-align:center;padding:1rem}
.meter{height:10px;background:var(--surface-2);border-radius:5px;overflow:hidden;margin:.6rem 0 .3rem;max-width:520px}
.meter i{display:block;height:100%;width:0;background:var(--proton-soft)}
@@ -125,19 +118,17 @@ input:user-invalid,textarea:user-invalid{border-color:var(--rose)}
.direct{display:grid;gap:.6rem}
@media (max-width:600px){.row{grid-template-columns:1fr}}
/* Hover: frames lift slightly and pick up the Proton purple */
.item,.checklist li,.trace,.form,.video,.btn,.tags span{transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease,background-color .25s ease}
.item,.trace,.form,.btn,.tags span{transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease,background-color .25s ease}
@media (hover:hover){
.item:hover,.trace:hover,.form:hover,.video:hover{transform:translateY(-3px);border-color:var(--proton-soft);
.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)}
.item.todo-box:hover{border-color:var(--todo)}
.checklist li:hover{transform:translateX(4px);border-color:var(--proton-soft)}
.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}
.item:hover .tags span{background:color-mix(in srgb,var(--proton) 22%,var(--surface-2));color:var(--text)}
.form button:hover{transform:translateY(-1px)}
}
@media (prefers-reduced-motion:reduce){
.item:hover,.trace:hover,.form:hover,.video:hover,.checklist li:hover,.btn:hover,.form button:hover{transform:none}
.item:hover,.trace:hover,.form:hover,.btn:hover,.form button:hover{transform:none}
}
.cover{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;margin-bottom:1rem;background:var(--surface-2)}
.civic-head{display:flex;justify-content:space-between;align-items:baseline;gap:.8rem}
@@ -416,3 +407,34 @@ 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}}
/* 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}
.u-084650{animation-delay:1.4s !important}
.u-2133b3{left:47.62% !important}
.u-465ef4{object-position:50% 38% !important}
.u-4913bb{left:9.52% !important}
.u-51037d{width:12.5% !important}
.u-554682{width:34.9% !important}
.u-603952{left:66.67% !important}
.u-6e5a89{animation-delay:1.1s !important}
.u-6f748d{left:71.43% !important}
.u-75bc8d{left:90.48% !important;width:9.52% !important}
.u-7d53d2{height:20px !important;margin:4px 2px !important}
.u-925d61{object-position:50% 12% !important}
.u-ae93b7{animation-delay:.8s !important}
.u-bd9c6a{left:42.86% !important}
.u-c55905{left:21.43% !important}
.u-cf3fb6{left:14.29% !important}
.u-d46287{animation-delay:.2s !important}
.u-ed50ea{left:92.86% !important}
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#6d4aff"/><stop offset=".55" stop-color="#8a6eff"/><stop offset="1" stop-color="#f0708a"/></linearGradient></defs><rect width="64" height="64" rx="14" fill="url(#g)"/><text x="32" y="42" text-anchor="middle" font-family="Segoe UI,Arial,sans-serif" font-weight="700" font-size="26" fill="#fff">NT</text></svg>

After

Width:  |  Height:  |  Size: 455 B

-93
View File
@@ -1,93 +0,0 @@
Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ThinItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLight.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Light.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-LightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Regular.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Italic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Medium.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-MediumItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Bold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-BoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
File renamed without changes.
File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

+58 -118
View File
@@ -4,16 +4,29 @@
<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.">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🛰️</text></svg>">
<meta name="author" content="Nelson Thomas">
<meta name="theme-color" content="#14122b">
<link rel="canonical" href="https://nelson-thomas.fr/">
<meta property="og:type" content="website">
<meta property="og:url" content="https://nelson-thomas.fr/">
<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:locale" content="en_GB">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<title>Nelson Thomas – ePortfolio</title>
<link rel="stylesheet" href="css/fonts.css">
<link rel="stylesheet" href="css/style.css">
<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=20261022">
<link rel="stylesheet" href="css/style.css?v=20261022">
<script src="js/theme.js?v=20261022"></script>
</head>
<body>
<header>
<div class="bar">
<a class="brand" href="#welcome">Nelson Thomas</a>
<button class="theme" id="theme" type="button" aria-label="Switch light or dark theme">◐</button>
<button class="theme" id="theme" type="button" aria-label="Switch light or dark theme"><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5a6.5 6.5 0 0 1 0 13z" fill="currentColor"/></svg></button>
<button class="menu-btn" id="menu-btn" type="button" aria-label="Open the menu" aria-expanded="false" aria-controls="site-nav"><span></span><span></span><span></span></button>
<nav id="site-nav" aria-label="Portfolio sections">
<a href="#welcome">Welcome</a>
@@ -21,7 +34,6 @@
<a href="#certifications">Certifications</a>
<a href="#projects">Projects</a>
<a href="#career">Career</a>
<a href="#mobility">Mobility</a>
<a href="#passions">Passions</a>
<a href="#civic">Civic engagement</a>
<a href="#contact">Contact</a>
@@ -34,30 +46,30 @@
<section id="welcome">
<div class="hero">
<div>
<div class="avatar" title="Replace with your photo">NT</div>
<div class="avatar" aria-hidden="true">NT</div>
<h1>Nelson Thomas</h1>
<p class="role">Engineering student at INP ENSEEIHT and cybersecurity apprentice at <span class="todo">[Company]</span></p>
<p class="role">Engineering student at INP ENSEEIHT, apprentice in networks and cybersecurity</p>
<p class="lead">I keep networks running and find out when someone is trying to break in. From SOC alert triage to Proxmox clusters, I like work where a script or a well-read log saves real time.</p>
<div class="cta">
<a class="btn primary" href="#career">See my CV and pitch</a>
<a class="btn primary" href="docs/Nelson_Thomas_CV_EN.pdf" target="_blank" rel="noopener">Download my CV</a>
<a class="btn btn-icon" href="https://www.linkedin.com/in/nelson-thomas-pr/" target="_blank" rel="noopener"><img class="li" src="img/icons/linkedin.png" alt="" width="18" height="18">LinkedIn</a>
<a class="btn btn-icon" href="https://git.nelson-thomas.fr/N0Xx" target="_blank" rel="noopener"><img class="li" src="img/icons/gitea.png" alt="" width="18" height="18">My Gitea</a>
</div>
</div>
<div class="trace" aria-label="My path so far">
<div class="cmd">$ <b>traceroute</b> nelson-thomas</div>
<div class="hop" style="animation-delay:.2s"><span class="n">1</span><span class="h">ups-toulouse</span><span class="y">2022</span><span>Maths &amp; CS double degree, year 1</span></div>
<div class="hop" style="animation-delay:.5s"><span class="n">2</span><span class="h">iut-blagnac</span><span class="y">2023</span><span>BUT Networks &amp; Telecom, cyber track</span></div>
<div class="hop" style="animation-delay:.8s"><span class="n">3</span><span class="h">iut-blagnac.lab</span><span class="y">2025</span><span>Network technician intern</span></div>
<div class="hop" style="animation-delay:1.1s"><span class="n">4</span><span class="h">itrust.soc</span><span class="y">2026</span><span>SOC analyst L1 intern</span></div>
<div class="hop last" style="animation-delay:1.4s"><span class="n">5</span><span class="h">enseeiht.n7</span><span class="y">2026</span><span>Engineering apprentice, 3 years</span></div>
<div class="hop u-d46287"><span class="n">1</span><span class="h">ups-toulouse</span><span class="y">2022</span><span>Maths &amp; CS double degree, year 1</span></div>
<div class="hop u-054622"><span class="n">2</span><span class="h">iut-blagnac</span><span class="y">2023</span><span>BUT Networks &amp; Telecom, cyber track</span></div>
<div class="hop u-ae93b7"><span class="n">3</span><span class="h">iut-blagnac.lab</span><span class="y">2025</span><span>Network technician intern</span></div>
<div class="hop u-6e5a89"><span class="n">4</span><span class="h">itrust.soc</span><span class="y">2026</span><span>SOC analyst L1 intern</span></div>
<div class="hop last u-084650"><span class="n">5</span><span class="h">enseeiht.n7</span><span class="y">2026</span><span>Engineering apprentice, 3 years</span></div>
</div>
</div>
<p class="uvp">I bring both sides of a network: I build the infrastructure, and I've sat in a SOC watching what attacks on it look like.</p>
<div class="grid">
<div class="item"><div class="card-head"><h3>Now</h3><a class="school-logo" href="https://www.enseeiht.fr/fr/index.html" target="_blank" rel="noopener"><img src="img/logos/toulouse-inp-n7.png" alt="Toulouse INP – N7" width="72" height="26"><span class="sr-only"> (enseeiht.fr, opens in a new tab)</span></a></div><p>First year of the Computer Science &amp; Telecom engineering degree at N7, as an apprentice at <span class="todo">[Company – team]</span>.</p></div>
<div class="item"><div class="card-head"><h3>Now</h3><a class="school-logo" href="https://www.enseeiht.fr/fr/index.html" target="_blank" rel="noopener"><img src="img/logos/toulouse-inp-n7.png" alt="Toulouse INP – N7" width="72" height="26"><span class="sr-only"> (enseeiht.fr, opens in a new tab)</span></a></div><p>First year of the Computer Science &amp; Telecom engineering degree at N7, alternating between school and company as an apprentice.</p></div>
<div class="item"><h3>Certified</h3><ul class="mini-certs" aria-hidden="true"><li><img src="img/certs/badge-stormshield-csna.png" alt=""></li><li><img src="img/certs/icon-cisco.png" alt=""></li><li><img src="img/certs/badge-secnumacademie.png" alt=""></li><li class="score">845</li></ul><p>Stormshield CSNA, Cisco Ethical Hacker, Cisco CCNA: Introduction to Networks and Switching, Routing and Wireless Essentials, ANSSI SecNumacadémie. TOEIC 845. Currently preparing the HTB CJCA.</p><a class="more" href="#certifications">See my certifications</a></div>
<div class="item"><h3>Heading for</h3><p>Defensive security: detection engineering, SOC and secure network architecture.</p></div>
</div>
@@ -103,7 +115,7 @@
<h3 class="sub">Education</h3>
<ol class="timeline">
<li class="now">
<img class="place" style="object-position:50% 12%" src="img/places/enseeiht.jpg" alt="Entrance of INP ENSEEIHT, Toulouse" loading="lazy">
<img class="place u-925d61" src="img/places/enseeiht.jpg" alt="Entrance of INP ENSEEIHT, Toulouse" loading="lazy">
<a class="place-logo" href="https://www.enseeiht.fr/fr/index.html" target="_blank" rel="noopener"><img src="img/logos/toulouse-inp-n7.png" alt="Toulouse INP – N7"><span class="sr-only"> (enseeiht.fr, opens in a new tab)</span></a>
<div class="when">2026 – now</div>
<h4>Engineering degree in Computer Science &amp; Telecom (SN), apprenticeship track</h4>
@@ -127,7 +139,7 @@
<p>Programming in C and Python. Moved to a more hands-on networks and security path after the first year.</p>
</li>
<li>
<img class="place" style="object-position:50% 38%" src="img/places/lycee-ernest-ferroul.jpg" alt="Lycée Ernest Ferroul, Lézignan-Corbières" loading="lazy">
<img class="place u-465ef4" src="img/places/lycee-ernest-ferroul.jpg" alt="Lycée Ernest Ferroul, Lézignan-Corbières" loading="lazy">
<div class="when">2019 – 2022</div>
<h4>French Baccalauréat (general), with highest honours</h4>
<div class="where"><a href="https://ernest-ferroul.mon-ent-occitanie.fr/" target="_blank" rel="noopener">Lycée Ernest Ferroul<span class="sr-only"> (ernest-ferroul.mon-ent-occitanie.fr, opens in a new tab)</span></a>, Lézignan-Corbières</div>
@@ -140,13 +152,13 @@
<ol class="timeline">
<li class="now">
<div class="when">2026 – now</div>
<h4>Apprentice engineer <span class="todo">[job title]</span></h4>
<div class="where"><span class="todo">[Company, city]</span></div>
<p><span class="todo">[One or two lines on your team and missions, nothing confidential]</span></p>
<h4>Apprentice engineer, networks &amp; cybersecurity</h4>
<div class="where">Apprenticeship with INP ENSEEIHT</div>
<p>Three years alternating between the engineering school and the company.</p>
</li>
<li>
<img class="place" src="img/places/itrust-soc.jpg" alt="ITRUST security operations centre" loading="lazy">
<a class="place-logo" href="https://www.itrust.fr/" target="_blank" rel="noopener"><img src="img/logos/itrust.png" alt="ITRUST" style="height:20px;margin:4px 2px"><span class="sr-only"> (itrust.fr, opens in a new tab)</span></a>
<a class="place-logo" href="https://www.itrust.fr/" target="_blank" rel="noopener"><img class="u-7d53d2" src="img/logos/itrust.png" alt="ITRUST"><span class="sr-only"> (itrust.fr, opens in a new tab)</span></a>
<div class="when">Mar – Jun 2026 · 12 weeks</div>
<h4>SOC Analyst (Level 1), intern</h4>
<div class="where"><a href="https://www.itrust.fr/" target="_blank" rel="noopener">ITRUST<span class="sr-only"> (itrust.fr, opens in a new tab)</span></a>, Toulouse</div>
@@ -179,31 +191,31 @@
<div class="tl-scroll">
<div class="tl" role="tablist" aria-label="Certifications by date">
<span class="tl-axis"></span>
<span class="tl-year" style="left:14.29%">2024</span><span class="tl-year" style="left:42.86%">2025</span><span class="tl-year" style="left:71.43%">2026</span>
<button class="tl-node up" type="button" role="tab" aria-selected="false" aria-controls="cert-anssi" data-target="cert-anssi" style="left:9.52%">
<span class="tl-year u-cf3fb6">2024</span><span class="tl-year u-bd9c6a">2025</span><span class="tl-year u-6f748d">2026</span>
<button class="tl-node up u-4913bb" type="button" role="tab" aria-selected="false" aria-controls="cert-anssi" data-target="cert-anssi">
<span class="tl-badge"><img src="img/certs/badge-secnumacademie.png" alt=""></span><span class="tl-label"><strong>SecNumacadémie</strong><span>Nov 2023</span></span><span class="tl-stem"></span><span class="tl-dot"></span>
</button>
<button class="tl-node down" type="button" role="tab" aria-selected="false" aria-controls="cert-ccna-itn" data-target="cert-ccna-itn" style="left:21.43%">
<button class="tl-node down u-c55905" type="button" role="tab" aria-selected="false" aria-controls="cert-ccna-itn" data-target="cert-ccna-itn">
<span class="tl-badge"><img src="img/certs/icon-cisco.png" alt=""></span><span class="tl-label"><strong>CCNA ITN</strong><span>Apr 2024</span></span><span class="tl-stem"></span><span class="tl-dot"></span>
</button>
<button class="tl-node down" type="button" role="tab" aria-selected="false" aria-controls="cert-ccna" data-target="cert-ccna" style="left:42.86%">
<button class="tl-node down u-bd9c6a" type="button" role="tab" aria-selected="false" aria-controls="cert-ccna" data-target="cert-ccna">
<span class="tl-badge"><img src="img/certs/icon-cisco.png" alt=""></span><span class="tl-label"><strong>CCNA SRWE</strong><span>Jan 2025</span></span><span class="tl-stem"></span><span class="tl-dot"></span>
</button>
<button class="tl-node up" type="button" role="tab" aria-selected="false" aria-controls="cert-ethical-hacker" data-target="cert-ethical-hacker" style="left:47.62%">
<button class="tl-node up u-2133b3" type="button" role="tab" aria-selected="false" aria-controls="cert-ethical-hacker" data-target="cert-ethical-hacker">
<span class="tl-badge"><img src="img/certs/icon-cisco.png" alt=""></span><span class="tl-label"><strong>Ethical Hacker</strong><span>Mar 2025</span></span><span class="tl-stem"></span><span class="tl-dot"></span>
</button>
<button class="tl-node down" type="button" role="tab" aria-selected="false" aria-controls="cert-csna" data-target="cert-csna" style="left:66.67%">
<button class="tl-node down u-603952" type="button" role="tab" aria-selected="false" aria-controls="cert-csna" data-target="cert-csna">
<span class="tl-badge"><img src="img/certs/badge-stormshield-csna.png" alt=""></span><span class="tl-label"><strong>Stormshield CSNA</strong><span>Nov 2025</span></span><span class="tl-stem"></span><span class="tl-dot"></span>
</button>
<button class="tl-node up" type="button" role="tab" aria-selected="false" aria-controls="cert-toeic" data-target="cert-toeic" style="left:71.43%">
<button class="tl-node up u-6f748d" type="button" role="tab" aria-selected="false" aria-controls="cert-toeic" data-target="cert-toeic">
<span class="tl-badge"><span class="mini-score">845</span></span><span class="tl-label"><strong>TOEIC 845</strong><span>Jan 2026</span></span><span class="tl-stem"></span><span class="tl-dot"></span>
</button>
<span class="tl-future" style="left:92.86%"></span>
<button class="tl-node down planned" type="button" role="tab" aria-selected="false" aria-controls="cert-cjca" data-target="cert-cjca" style="left:92.86%">
<span class="tl-future u-ed50ea"></span>
<button class="tl-node down planned u-ed50ea" type="button" role="tab" aria-selected="false" aria-controls="cert-cjca" data-target="cert-cjca">
<span class="tl-badge round"><img src="img/certs/badge-htb-cjca.png" alt=""></span><span class="tl-label"><strong>HTB CJCA</strong><span>In progress</span></span><span class="tl-stem"></span><span class="tl-dot"></span>
</button>
<span class="tl-band" style="left:4.76%;width:78.57%">BUT Networks &amp; Telecom · IUT de Blagnac</span>
<span class="tl-band n7" style="left:90.48%;width:9.519999999999996%">ENSEEIHT</span>
<span class="tl-band u-019d5f">BUT Networks &amp; Telecom · IUT de Blagnac</span>
<span class="tl-band n7 u-75bc8d">ENSEEIHT</span>
</div>
</div>
<p class="tl-hint">Swipe sideways to see the whole timeline.</p>
@@ -275,7 +287,7 @@
<p>A hands-on certification covering both offensive and defensive basics: finding common vulnerabilities, basic exploitation and post-exploitation, SIEM-assisted monitoring, network traffic and log analysis, intrusion detection, and reporting on security issues in enterprise environments.</p>
<div class="progress">
<div class="progress-head"><span>Junior Cybersecurity Analyst path</span><strong>34.9%</strong></div>
<div class="meter" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="34.9" aria-label="Job-role path progress"><i style="width:34.9%"></i></div>
<div class="meter" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="34.9" aria-label="Job-role path progress"><i class="u-554682"></i></div>
</div>
<div class="tags"><span>Pentesting</span><span>SIEM monitoring</span><span>Log analysis</span><span>Intrusion detection</span></div>
<div class="cert-actions"><a class="cert-btn" href="https://academy.hackthebox.com/preview/certifications/htb-certified-junior-cybersecurity-associate" target="_blank" rel="noopener">About this certification<span class="sr-only"> (Hack The Box Academy, opens in a new tab)</span></a></div>
@@ -291,20 +303,7 @@
<!-- PROJECTS -->
<section id="projects">
<h2>Projects</h2>
<p class="lead">Each project follows the same frame: the context, what I did, the tools, and what came out of it. Company work is described without confidential details.</p>
<h3 class="sub">In my company</h3>
<div class="grid">
<article class="item todo-box wide">
<h3><span class="todo">[Apprenticeship mission title]</span></h3>
<div class="meta"><span class="todo">[Company]</span>, 2026 to now</div>
<dl class="star">
<dt>Context</dt><dd><span class="todo">[Team and need, in one line, no client names]</span></dd>
<dt>My part</dt><dd><span class="todo">[What you are responsible for]</span></dd>
<dt>Result</dt><dd><span class="todo">[A number, a delivery or a decision. Check with your tutor before publishing.]</span></dd>
</dl>
</article>
</div>
<p class="lead">Each project follows the same frame: the context, what I did, the tools, and what came out of it.</p>
<h3 class="sub">Internships</h3>
<div class="grid">
@@ -380,81 +379,27 @@
<p>Small network secured with VLAN segmentation, VRF and firewalling.</p>
<div class="tags"><span>VLAN</span><span>VRF</span><span>Firewall</span></div>
</article>
<article class="item todo-box">
<h3><span class="todo">[First N7 project]</span></h3>
<div class="meta">ENSEEIHT, 2026–2027</div>
<p><span class="todo">[Add it as soon as it starts, then update it: the portfolio should show progress.]</span></p>
</article>
</div>
</section>
<!-- CAREER -->
<section id="career">
<h2>Career</h2>
<p class="lead">One real job ad drives everything below: the CV, the cover letter, my LinkedIn headline and my pitch.</p>
<ul class="checklist" aria-label="Career tab progress">
<li><span class="st"></span><div><strong>Target job ad</strong><br><span class="todo">[Title, company, link or screenshot]</span></div></li>
<li><span class="st ok"></span><div><strong>CV</strong><br><span class="cv-links"><a class="btn btn-sm" href="docs/Nelson_Thomas_CV_EN.pdf" target="_blank" rel="noopener" hreflang="en">CV in English (PDF)</a><a class="btn btn-sm" href="docs/Nelson_Thomas_CV_FR.pdf" target="_blank" rel="noopener" hreflang="fr">CV in French (PDF)</a></span> <span class="todo">[tailor the English one to the ad, add the apprenticeship]</span></div></li>
<li><span class="st"></span><div><strong>Cover letter in English</strong><br><span class="todo">[Answer the ad point by point]</span></div></li>
<li><span class="st ok"></span><div><strong>LinkedIn</strong><br><a href="https://www.linkedin.com/in/nelson-thomas-pr/" target="_blank" rel="noopener">linkedin.com/in/nelson-thomas-pr</a> <span class="todo">[set the apprenticeship as current position]</span></div></li>
<li><span class="st"></span><div><strong>Two My Job Glasses interviews</strong><br><span class="todo">[0 of 2 done]</span></div></li>
<li><span class="st"></span><div><strong>Elevator pitch video</strong><br><span class="todo">[3 min ± 30 s, spoken, not read]</span></div></li>
</ul>
<p class="lead">I'm aiming for defensive security: detection engineering, SOC work and secure network architecture. Here is where to find my CV and follow my path.</p>
<div class="grid">
<div class="item wide">
<h3>Elevator pitch</h3>
<div class="video">Embed your YouTube (unlisted) or Vimeo video here.<br>Present, then a very short past, then where you're heading.</div>
</div>
<article class="item todo-box">
<h3>Interview 1: <span class="todo">[Name, job, company]</span></h3>
<dl class="star">
<dt>Why</dt><dd><span class="todo">[e.g. a SOC or CERT analyst, the job I'm aiming for]</span></dd>
<dt>Learnt</dt><dd><span class="todo">[2–3 concrete takeaways]</span></dd>
</dl>
<article class="item">
<h3>CV</h3>
<p>Education, internships, certifications and skills on one page, in English or in French.</p>
<span class="cv-links"><a class="btn primary" href="docs/Nelson_Thomas_CV_EN.pdf" target="_blank" rel="noopener" hreflang="en">CV in English (PDF)</a><a class="btn" href="docs/Nelson_Thomas_CV_FR.pdf" target="_blank" rel="noopener" hreflang="fr">CV in French (PDF)</a></span>
</article>
<article class="item todo-box">
<h3>Interview 2: <span class="todo">[Name, job, company]</span></h3>
<dl class="star">
<dt>Why</dt><dd><span class="todo">[e.g. a network security architect, the other path]</span></dd>
<dt>Learnt</dt><dd><span class="todo">[2–3 concrete takeaways]</span></dd>
</dl>
<article class="item">
<h3>LinkedIn</h3>
<p>My up-to-date profile, experience and recommendations.</p>
<a class="btn btn-icon" href="https://www.linkedin.com/in/nelson-thomas-pr/" target="_blank" rel="noopener"><img class="li" src="img/icons/linkedin.png" alt="" width="18" height="18">View my profile</a>
</article>
</div>
</section>
<!-- MOBILITY -->
<section id="mobility">
<h2>Mobility</h2>
<p class="lead">Seventeen weeks abroad in S9. Three options, why each one fits, and whether my employer can make it work. <span class="todo">[The three below are suggestions: keep, swap or rewrite them.]</span></p>
<div class="grid">
<article class="item">
<h3>Tallinn, Estonia</h3>
<div class="meta">Option 1</div>
<dl class="star">
<dt>Why</dt><dd>Home of the NATO cyber defence centre and one of Europe's most digitised states.</dd>
<dt>Employer fit</dt><dd><span class="todo">[Does the company have partners or clients in the Baltics?]</span></dd>
</dl>
</article>
<article class="item">
<h3>Montréal, Canada</h3>
<div class="meta">Option 2</div>
<dl class="star">
<dt>Why</dt><dd>Large cybersecurity sector, French and English working environment.</dd>
<dt>Employer fit</dt><dd><span class="todo">[Subsidiary, partner lab, or university exchange?]</span></dd>
</dl>
</article>
<article class="item">
<h3>Dublin, Ireland</h3>
<div class="meta">Option 3</div>
<dl class="star">
<dt>Why</dt><dd>European base for many cloud providers, full English immersion to push past B2.</dd>
<dt>Employer fit</dt><dd><span class="todo">[Ask your tutor about timing within the apprenticeship calendar]</span></dd>
</dl>
</article>
</div>
</section>
<!-- PASSIONS -->
<section id="passions">
@@ -474,7 +419,7 @@
<li><a class="svc" href="https://tryhackme.com" target="_blank" rel="noopener"><span class="ic"><img src="img/icons/tryhackme.png" alt="" width="32" height="32" loading="lazy"></span>TryHackMe<span class="sr-only"> (tryhackme.com, opens in a new tab)</span></a></li>
<li><a class="svc" href="https://www.root-me.org" target="_blank" rel="noopener"><span class="ic"><img src="img/icons/rootme.png" alt="" width="32" height="32" loading="lazy"></span>Root-Me<span class="sr-only"> (root-me.org, opens in a new tab)</span></a></li>
</ul></div>
<div class="item"><h3>Photography</h3><p>Nature, wildlife and landmarks, including drone shots. <span class="todo">[Add 3–4 of your photos]</span></p></div>
<div class="item"><h3>Photography</h3><p>Nature, wildlife and landmarks, including drone shots.</p></div>
<div class="item"><h3>Geopolitics</h3><p>Following world affairs, which often explains the threats a SOC ends up seeing.</p></div>
</div>
</section>
@@ -482,8 +427,8 @@
<!-- CIVIC -->
<section id="civic">
<h2>Civic engagement</h2>
<p class="lead">Forty hours required by S9. Here is what's done and what's planned.</p>
<div class="meter" role="progressbar" aria-valuemin="0" aria-valuemax="40" aria-valuenow="5" aria-label="Hours completed"><i style="width:12.5%"></i></div>
<p class="lead">Volunteering and awareness actions, with a goal of forty hours over my engineering degree.</p>
<div class="meter" role="progressbar" aria-valuemin="0" aria-valuemax="40" aria-valuenow="5" aria-label="Hours completed"><i class="u-51037d"></i></div>
<p class="meta">5 of 40 hours completed</p>
<div class="grid">
<article class="item civic">
@@ -501,11 +446,6 @@
<p>A group walk through the streets of Toulouse to collect litter and keep it out of drains and green spaces.</p>
<div class="tags"><span>Environment</span><span>Local action</span></div>
</article>
<article class="item todo-box">
<h3><span class="todo">[Next action]</span></h3>
<p><span class="todo">[35 hours to go: e.g. cyber-awareness sessions for a school or an association, digital help for seniors, N7 student association]</span></p>
<div class="meta"><span class="todo">[hours, dates]</span></div>
</article>
</div>
</section>
@@ -542,6 +482,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"></script>
<script src="js/main.js?v=20261022" defer></script>
</body>
</html>
+21
View File
@@ -0,0 +1,21 @@
(function(){
// Land at the top, even when the page is shown inside a frame (scrollIntoView also scrolls the parent page)
if('scrollRestoration' in history)history.scrollRestoration='manual';
function toTop(){window.scrollTo(0,0);var m=document.body;if(m&&m.scrollIntoView)m.scrollIntoView({block:'start',behavior:'instant'})}
window.addEventListener('load',function(){if(!/^#(en|fr)-/.test(location.hash))toTop()});
var arts={en:document.getElementById('en'),fr:document.getElementById('fr')};
var links=[].slice.call(document.querySelectorAll('.lang-switch a'));
function show(lang,top){
Object.keys(arts).forEach(function(k){arts[k].hidden=k!==lang});
links.forEach(function(a){a.setAttribute('aria-current',a.getAttribute('href')==='#'+lang)});
document.documentElement.lang=lang;
document.title=lang==='fr'?'Mentions légales – Nelson Thomas':'Legal notice – Nelson Thomas';
if(top)toTop();
}
links.forEach(function(a){a.addEventListener('click',function(e){
e.preventDefault(); var l=a.getAttribute('href').slice(1);
history.replaceState(null,'','#'+l); show(l,true);
})});
var h=location.hash.slice(1,3);
show(h==='fr'||h==='en'?h:(/^fr\b/i.test(navigator.language||'')?'fr':'en'),!/^#(en|fr)-/.test(location.hash));
})();
-1
View File
@@ -8,7 +8,6 @@ var LINKEDIN_URL = "https://www.linkedin.com/in/nelson-thomas-pr/";
(function(){
var root=document.documentElement;
try{var s=localStorage.getItem('theme');if(s)root.dataset.theme=s}catch(e){}
document.getElementById('theme').addEventListener('click',function(){
var dark=root.dataset.theme?root.dataset.theme==='dark':!matchMedia('(prefers-color-scheme: light)').matches;
root.dataset.theme=dark?'light':'dark';
+2
View File
@@ -0,0 +1,2 @@
/* Apply the saved light/dark choice before the page paints (no flash). */
try{var t=localStorage.getItem('theme');if(t==='light'||t==='dark')document.documentElement.dataset.theme=t}catch(e){}
+6 -27
View File
@@ -5,9 +5,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="robots" content="noindex">
<title>Legal notice – Nelson Thomas</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🛰️</text></svg>">
<link rel="stylesheet" href="css/fonts.css">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<title>Legal notice – Nelson Thomas</title>
<link rel="stylesheet" href="css/fonts.css?v=20261022">
<link rel="stylesheet" href="css/style.css?v=20261022">
<script src="js/theme.js?v=20261022"></script>
</head>
<body>
<main class="legal">
@@ -101,29 +103,6 @@
</article>
</main>
<footer><p>© 2026 Nelson Thomas. Toulouse, France.</p></footer>
<script>
(function(){
try{var t=localStorage.getItem('theme'); if(t)document.documentElement.dataset.theme=t}catch(e){}
// Land at the top, even when the page is shown inside a frame (scrollIntoView also scrolls the parent page)
if('scrollRestoration' in history)history.scrollRestoration='manual';
function toTop(){window.scrollTo(0,0);var m=document.body;if(m&&m.scrollIntoView)m.scrollIntoView({block:'start',behavior:'instant'})}
window.addEventListener('load',function(){if(!/^#(en|fr)-/.test(location.hash))toTop()});
var arts={en:document.getElementById('en'),fr:document.getElementById('fr')};
var links=[].slice.call(document.querySelectorAll('.lang-switch a'));
function show(lang,top){
Object.keys(arts).forEach(function(k){arts[k].hidden=k!==lang});
links.forEach(function(a){a.setAttribute('aria-current',a.getAttribute('href')==='#'+lang)});
document.documentElement.lang=lang;
document.title=lang==='fr'?'Mentions légales – Nelson Thomas':'Legal notice – Nelson Thomas';
if(top)toTop();
}
links.forEach(function(a){a.addEventListener('click',function(e){
e.preventDefault(); var l=a.getAttribute('href').slice(1);
history.replaceState(null,'','#'+l); show(l,true);
})});
var h=location.hash.slice(1,3);
show(h==='fr'||h==='en'?h:(/^fr\b/i.test(navigator.language||'')?'fr':'en'),!/^#(en|fr)-/.test(location.hash));
})();
</script>
<script src="js/legal.js?v=20261022" defer></script>
</body>
</html>
+5
View File
@@ -0,0 +1,5 @@
User-agent: *
Allow: /
Disallow: /contact.php
Sitemap: https://nelson-thomas.fr/sitemap.xml
+4
View File
@@ -0,0 +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-22</lastmod></url>
</urlset>