Improved contact form and responsive aspect
This commit is contained in:
1 parent
216077cd32
commit
98d513acb7
19 files changed
+527
-676
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -34,9 +34,8 @@ class SMTP
|
||||
* The PHPMailer SMTP version number.
|
||||
*
|
||||
* @var string
|
||||
* @deprecated This constant will be removed in PHPMailer 8.0. Use `PHPMailer::VERSION` instead.
|
||||
*/
|
||||
const VERSION = '7.1.1';
|
||||
const VERSION = '6.10.0';
|
||||
|
||||
/**
|
||||
* SMTP line break constant.
|
||||
@@ -206,7 +205,6 @@ class SMTP
|
||||
'Haraka' => '/[\d]{3} Message Queued \((.*)\)/',
|
||||
'ZoneMTA' => '/[\d]{3} Message queued as (.*)/',
|
||||
'Mailjet' => '/[\d]{3} OK queued as (.*)/',
|
||||
'Gsmtp' => '/[\d]{3} 2\.0\.0 OK (.*) - gsmtp/',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -275,14 +273,6 @@ class SMTP
|
||||
*/
|
||||
protected $last_reply = '';
|
||||
|
||||
/**
|
||||
* The last command sent to the server.
|
||||
* Used to avoid sending QUIT while a DATA command is still in progress.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $state = '';
|
||||
|
||||
/**
|
||||
* Output debugging info via a user-selected method.
|
||||
*
|
||||
@@ -503,9 +493,7 @@ class SMTP
|
||||
//PHP 5.6.7 dropped inclusion of TLS 1.1 and 1.2 in STREAM_CRYPTO_METHOD_TLS_CLIENT
|
||||
//so add them back in manually if we can
|
||||
if (defined('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT')) {
|
||||
// phpcs:ignore PHPCompatibility.Constants.NewConstants.stream_crypto_method_tlsv1_2_clientFound
|
||||
$crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
|
||||
// phpcs:ignore PHPCompatibility.Constants.NewConstants.stream_crypto_method_tlsv1_1_clientFound
|
||||
$crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT;
|
||||
}
|
||||
|
||||
@@ -644,50 +632,12 @@ class SMTP
|
||||
if (null === $OAuth) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
$oauth = $OAuth->getOauth64();
|
||||
} catch (\Exception $e) {
|
||||
// We catch all exceptions and convert them to PHPMailer exceptions to be able to
|
||||
// handle them correctly later
|
||||
throw new Exception("SMTP authentication error", 0, $e);
|
||||
}
|
||||
/*
|
||||
* An SMTP command line can have a maximum length of 512 bytes, including the command name,
|
||||
* so the base64-encoded OAUTH token has a maximum length of:
|
||||
* 512 - 13 (AUTH XOAUTH2) - 2 (CRLF) = 497 bytes
|
||||
* If the token is longer than that, the command and the token must be sent separately as described in
|
||||
* https://www.rfc-editor.org/rfc/rfc4954#section-4
|
||||
*/
|
||||
if ($oauth === '') {
|
||||
//Sending an empty auth token is legitimate, but it must be encoded as '='
|
||||
//to indicate it's not a 2-part command
|
||||
if (!$this->sendCommand('AUTH', 'AUTH XOAUTH2 =', 235)) {
|
||||
return false;
|
||||
}
|
||||
} elseif (strlen($oauth) <= 497) {
|
||||
//Authenticate using a token in the initial-response part
|
||||
|
||||
//Start authentication
|
||||
if (!$this->sendCommand('AUTH', 'AUTH XOAUTH2 ' . $oauth, 235)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
//The token is too long, so we need to send it in two parts.
|
||||
//Send the auth command without a token and expect a 334
|
||||
if (!$this->sendCommand('AUTH', 'AUTH XOAUTH2', 334)) {
|
||||
return false;
|
||||
}
|
||||
//Send the token
|
||||
if (!$this->sendCommand('OAuth TOKEN', $oauth, [235, 334])) {
|
||||
return false;
|
||||
}
|
||||
//If the server answers with 334, send an empty line
|
||||
//a reply other than a 235 means the authentication failed, so we don't need to send anything else
|
||||
if (
|
||||
strpos($this->last_reply, '334') === 0
|
||||
&& !$this->sendCommand('AUTH End', '', 235)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$this->setError("Authentication method \"$authtype\" is not supported");
|
||||
@@ -771,7 +721,6 @@ class SMTP
|
||||
{
|
||||
$this->server_caps = null;
|
||||
$this->helo_rply = null;
|
||||
$this->state = '';
|
||||
if (is_resource($this->smtp_conn)) {
|
||||
//Close the connection and cleanup
|
||||
fclose($this->smtp_conn);
|
||||
@@ -780,25 +729,6 @@ class SMTP
|
||||
}
|
||||
}
|
||||
|
||||
private function iterateLines($s)
|
||||
{
|
||||
$start = 0;
|
||||
$length = strlen($s);
|
||||
|
||||
for ($i = 0; $i < $length; $i++) {
|
||||
$c = $s[$i];
|
||||
if ($c === "\n" || $c === "\r") {
|
||||
yield substr($s, $start, $i - $start);
|
||||
if ($c === "\r" && $i + 1 < $length && $s[$i + 1] === "\n") {
|
||||
$i++;
|
||||
}
|
||||
$start = $i + 1;
|
||||
}
|
||||
}
|
||||
|
||||
yield substr($s, $start);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an SMTP DATA command.
|
||||
* Issues a data command and sends the msg_data to the server,
|
||||
@@ -827,16 +757,15 @@ class SMTP
|
||||
* NOTE: this does not count towards line-length limit.
|
||||
*/
|
||||
|
||||
//Iterate over lines with normalized line breaks
|
||||
$lines = $this->iterateLines($msg_data);
|
||||
//Normalize line breaks before exploding
|
||||
$lines = explode("\n", str_replace(["\r\n", "\r"], "\n", $msg_data));
|
||||
|
||||
/* To distinguish between a complete RFC822 message and a plain message body, we check if the first field
|
||||
* of the first line (':' separated) does not contain a space then it _should_ be a header, and we will
|
||||
* process all lines before a blank line as headers.
|
||||
*/
|
||||
|
||||
$first_line = $lines->current();
|
||||
$field = substr($first_line, 0, strpos($first_line, ':'));
|
||||
$field = substr($lines[0], 0, strpos($lines[0], ':'));
|
||||
$in_headers = false;
|
||||
if (!empty($field) && strpos($field, ' ') === false) {
|
||||
$in_headers = true;
|
||||
@@ -1030,12 +959,7 @@ class SMTP
|
||||
*/
|
||||
public function quit($close_on_error = true)
|
||||
{
|
||||
if ($this->state === 'DATA') {
|
||||
//The server would take QUIT as part of an unfinished message, so just close the connection
|
||||
$noerror = true;
|
||||
} else {
|
||||
$noerror = $this->sendCommand('QUIT', 'QUIT', 221);
|
||||
}
|
||||
$err = $this->error; //Save any error
|
||||
if ($noerror || $close_on_error) {
|
||||
$this->close();
|
||||
@@ -1138,7 +1062,6 @@ class SMTP
|
||||
|
||||
return false;
|
||||
}
|
||||
$this->state = $command;
|
||||
$this->client_send($commandstring . static::LE, $command);
|
||||
|
||||
$this->last_reply = $this->get_lines();
|
||||
@@ -1305,7 +1228,7 @@ class SMTP
|
||||
* 3. EHLO has been sent -
|
||||
* $name == 'HELO'|'EHLO': returns the server name
|
||||
* $name == any other string: if extension $name exists, returns True
|
||||
* or its options (e.g. AUTH mechanisms supported). Otherwise, returns False.
|
||||
* or its options (e.g. AUTH mechanisms supported). Otherwise returns False.
|
||||
*
|
||||
* @param string $name Name of SMTP extension or 'HELO'|'EHLO'
|
||||
*
|
||||
@@ -1386,16 +1309,7 @@ class SMTP
|
||||
|
||||
//stream_select returns false when the `select` system call is interrupted
|
||||
//by an incoming signal, try the select again
|
||||
if (
|
||||
stripos($message, 'interrupted system call') !== false ||
|
||||
(
|
||||
// on applications with a different locale than english, the message above is not found because
|
||||
// it's translated. So we also check for the SOCKET_EINTR constant which is defined under
|
||||
// Windows and UNIX-like platforms (if available on the platform).
|
||||
defined('SOCKET_EINTR') &&
|
||||
stripos($message, 'stream_select(): Unable to select [' . SOCKET_EINTR . ']') !== false
|
||||
)
|
||||
) {
|
||||
if (stripos($message, 'interrupted system call') !== false) {
|
||||
$this->edebug(
|
||||
'SMTP -> get_lines(): retrying stream_select',
|
||||
self::DEBUG_LOWLEVEL
|
||||
|
||||
@@ -14,13 +14,13 @@ return [
|
||||
// (Proton: Settings > All settings > Proton Mail > IMAP/SMTP > SMTP tokens).
|
||||
// A @proton.me / @pm.me address will NOT work here: Proton only issues
|
||||
// SMTP tokens for custom-domain addresses.
|
||||
'smtp_user' => 'contact@your-domain.tld',
|
||||
'smtp_user' => 'contact@nelson-thomas.fr',
|
||||
|
||||
// The token itself (not your Proton password).
|
||||
'smtp_token' => 'PASTE_YOUR_SMTP_TOKEN_HERE',
|
||||
|
||||
// Where the messages are delivered. Can be any of your addresses.
|
||||
'to' => 'you@example.com',
|
||||
'to' => 'nelson.thomas.contact@domain.com',
|
||||
|
||||
// Only these sites may post to the form (scheme + host, no trailing slash).
|
||||
'allowed_origins' => [
|
||||
@@ -31,6 +31,13 @@ return [
|
||||
// Anti-spam: messages allowed per visitor IP per hour.
|
||||
'max_per_hour' => 5,
|
||||
|
||||
// Optional: name shown in the email ("... formulaire de contact de <site_name>").
|
||||
// Leave empty to use the site's domain automatically.
|
||||
'site_name' => '',
|
||||
|
||||
// Time zone used for the date at the bottom of the email.
|
||||
'timezone' => 'Europe/Paris',
|
||||
|
||||
// Random string used to anonymise IPs in the rate-limit files.
|
||||
// Generate one with: openssl rand -hex 16
|
||||
'rate_salt' => 'CHANGE_ME_RANDOM_STRING',
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
<!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=20261012b">
|
||||
<link rel="stylesheet" href="/css/style.css?v=20261012b">
|
||||
<script src="/js/theme.js?v=20261012b"></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>
|
||||
+37
-15
@@ -38,7 +38,6 @@ 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'] ?? '';
|
||||
@@ -62,34 +61,42 @@ function field(array $in, string $key, int $max): string
|
||||
{
|
||||
return mb_substr(trim((string) ($in[$key] ?? '')), 0, $max);
|
||||
}
|
||||
$name = field($in, 'name', 100);
|
||||
$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);
|
||||
$company = field($in, 'company', 100);
|
||||
$subject = field($in, 'subject', 150);
|
||||
$message = field($in, 'message', 4000);
|
||||
|
||||
// Header-bound fields must not contain line breaks (header injection).
|
||||
foreach ([$name, $email, $company, $subject] as $v) {
|
||||
foreach ([$first, $last, $email, $phone, $company, $subject] as $v) {
|
||||
if (preg_match('/[\r\n]/', $v)) {
|
||||
reply(400, false, 'Invalid characters in the form.');
|
||||
}
|
||||
}
|
||||
if ($name === '' || $subject === '' || $message === '' || !filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
||||
reply(422, false, 'Fill in your name, a valid email, a subject and a message.');
|
||||
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 ($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.');
|
||||
}
|
||||
|
||||
// ---------- Rate limit per IP ----------
|
||||
$ip = $_SERVER['REMOTE_ADDR'] ?? 'unknown';
|
||||
$store = sys_get_temp_dir() . '/portfolio-contact-' . hash('sha256', $ip . ($cfg['rate_salt'] ?? ''));
|
||||
$now = time();
|
||||
|
||||
// Delete fingerprints older than one hour (as stated in the legal notice).
|
||||
$hits = [];
|
||||
// Forget visitors after one hour: delete expired rate-limit files
|
||||
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) {
|
||||
@@ -122,14 +129,29 @@ 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 =
|
||||
"New message from your portfolio\n"
|
||||
. "-------------------------------\n"
|
||||
. "Name: $name\n"
|
||||
. "Email: $email\n"
|
||||
. ($company !== '' ? "Company: $company\n" : '')
|
||||
. 'Date: ' . date('Y-m-d H:i:s T') . "\n\n"
|
||||
. $message . "\n";
|
||||
"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";
|
||||
|
||||
$mail->send();
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
/* Self-hosted fonts (SIL Open Font License 1.1, see fonts/OFL-*.txt), from Fontsource: latin + latin-ext subsets */
|
||||
/* Self-hosted fonts (SIL Open Font License 1.1), from Fontsource */
|
||||
@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}
|
||||
|
||||
+55
-43
@@ -42,13 +42,13 @@ header{position:sticky;top:env(safe-area-inset-top,0px);z-index:10;background:co
|
||||
.brand{font:600 1.05rem var(--display);letter-spacing:.02em;white-space:nowrap;color:var(--text);text-decoration:none}
|
||||
nav{display:flex;gap:.25rem;overflow-x:auto;scrollbar-width:none;margin-left:auto}
|
||||
nav::-webkit-scrollbar{display:none}
|
||||
nav a{position:relative;font:500 .92rem var(--body);color:var(--muted);text-decoration:none;padding:.5rem .75rem;border-radius:6px;white-space:nowrap}
|
||||
nav a{position:relative;font:500 .92rem var(--body);color:var(--muted);text-decoration:none;padding:.5rem .6rem;border-radius:6px;white-space:nowrap}
|
||||
nav a:hover{color:var(--text)}
|
||||
nav a::after{content:"";position:absolute;left:.75rem;right:.75rem;bottom:.15rem;height:2px;border-radius:2px;background:var(--proton-soft);transform:scaleX(0);transition:transform .25s ease}
|
||||
nav a::after{content:"";position:absolute;left:.6rem;right:.6rem;bottom:.15rem;height:2px;border-radius:2px;background:var(--proton-soft);transform:scaleX(0);transition:transform .25s ease}
|
||||
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{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}
|
||||
.theme{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(--grad);color:#fff;margin-bottom:1.2rem}
|
||||
background:var(--surface-2);border:2px dashed var(--todo);color:var(--todo);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,14 +94,22 @@ 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)}
|
||||
|
||||
.contact{display:grid;grid-template-columns:1fr 1.3fr;gap:2.5rem;align-items:start}
|
||||
.contact{max-width:760px}
|
||||
.contact .direct{display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;margin:0 0 1.4rem}
|
||||
.form{position:relative;background:var(--surface);border-radius:12px;padding:1.6rem;border:1px solid var(--line)}
|
||||
.field{display:grid;gap:.35rem;margin-bottom:1rem}
|
||||
.field{display:grid;gap:.35rem;margin-bottom:1rem;align-content:start}
|
||||
.row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
|
||||
label{font-size:.9rem;color:var(--muted)}
|
||||
input,textarea{font:inherit;color:var(--text);background:var(--night);border:1px solid var(--line);border-radius:8px;padding:.65rem .8rem;width:100%}
|
||||
@@ -109,25 +117,27 @@ textarea{min-height:9rem;resize:vertical}
|
||||
input:focus,textarea:focus{outline:none;border-color:var(--proton-soft);box-shadow:0 0 0 3px color-mix(in srgb,var(--proton) 30%,transparent)}
|
||||
input:user-invalid,textarea:user-invalid{border-color:var(--rose)}
|
||||
.hp{position:absolute;left:-9999px}
|
||||
.form button{font:500 1rem var(--body);cursor:pointer;border:0;padding:.7rem 1.3rem;border-radius:8px;background:var(--proton);color:#fff;transition:background-color .2s,transform .2s}
|
||||
.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: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)}
|
||||
.direct{display:grid;gap:.6rem;margin-top:1.2rem}
|
||||
@media (max-width:820px){.contact{grid-template-columns:1fr}.row{grid-template-columns:1fr}}
|
||||
.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,.trace,.form,.btn,.tags span{transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease,background-color .25s ease}
|
||||
.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}
|
||||
@media (hover:hover){
|
||||
.item:hover,.trace:hover,.form:hover{transform:translateY(-3px);border-color:var(--proton-soft);
|
||||
.item:hover,.trace:hover,.form:hover,.video: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,.btn:hover,.form button:hover{transform:none}
|
||||
.item:hover,.trace:hover,.form:hover,.video:hover,.checklist li: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}
|
||||
@@ -257,7 +267,6 @@ footer p{margin:0}
|
||||
@media (prefers-reduced-motion:reduce){.tool:hover,.tags.big li:hover,.foot-li:hover,.mini-tools li:hover .ic{transform:none}}
|
||||
@media (max-width:820px){
|
||||
.hero{grid-template-columns:1fr}
|
||||
.bar{flex-wrap:wrap} nav{margin-left:0;width:100%;order:3}
|
||||
.hop{grid-template-columns:1.2rem 7.6rem 2.6rem minmax(0,1fr);gap:.45rem}
|
||||
}
|
||||
/* Toulouse INP N7 logo in the "Now" card (white chip so it reads in dark mode) */
|
||||
@@ -373,34 +382,37 @@ dl.facts dd{margin:0}
|
||||
.data-table th,.data-table td{text-align:left;vertical-align:top;padding:.6rem .7rem;border-bottom:1px solid var(--line)}
|
||||
.data-table th{color:var(--muted);font-weight:500;width:34%}
|
||||
@media (max-width:560px){dl.facts{grid-template-columns:1fr;gap:.15rem}dl.facts dd{margin-bottom:.6rem}.data-table th{width:auto}.legal section{padding:1.2rem}}
|
||||
/* ===== Contact form details ===== */
|
||||
.req{color:var(--proton-soft);font-weight:600}
|
||||
.field label{font-weight:500;color:var(--text)}
|
||||
.hint{font-size:.8rem;color:var(--muted)}
|
||||
.consent{display:flex;gap:.7rem;align-items:flex-start;margin:.2rem 0 1.2rem;font-size:.92rem;color:var(--muted);cursor:pointer}
|
||||
.consent input{flex:none;width:1.15rem;height:1.15rem;margin:.15rem 0 0;accent-color:var(--proton);cursor:pointer}
|
||||
.consent a{color:var(--signal)}
|
||||
.privacy-note{display:flex;gap:.55rem;align-items:flex-start;margin:1rem 0 0;font-size:.82rem;color:var(--muted)}
|
||||
.privacy-note svg{flex:none;margin-top:.15rem;color:var(--proton-soft)}
|
||||
.form .status:empty{display: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}
|
||||
/* ===== Hamburger menu (phones and small tablets) ===== */
|
||||
.menu-btn{display:none;width:42px;height:38px;padding:0;border:1px solid var(--line);border-radius:8px;background:none;cursor:pointer;place-content:center;gap:5px}
|
||||
.menu-btn span{display:block;width:18px;height:2px;border-radius:2px;background:var(--text);transition:transform .25s ease,opacity .2s ease}
|
||||
.menu-btn[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
|
||||
.menu-btn[aria-expanded="true"] span:nth-child(2){opacity:0}
|
||||
.menu-btn[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
|
||||
@media (max-width:1080px){
|
||||
.bar{position:relative}
|
||||
.theme{margin-left:auto}
|
||||
.menu-btn{display:grid}
|
||||
nav{position:absolute;left:0;right:0;top:100%;margin:0;flex-direction:column;gap:0;overflow:hidden;
|
||||
padding:.4rem 1.25rem .9rem;background:color-mix(in srgb,var(--night) 96%,transparent);backdrop-filter:blur(10px);
|
||||
border-bottom:1px solid var(--line);box-shadow:0 18px 30px -18px rgba(0,0,0,.6);
|
||||
max-height:calc(100dvh - 60px);overflow-y:auto;
|
||||
visibility:hidden;opacity:0;transform:translateY(-8px);transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s}
|
||||
nav.open{visibility:visible;opacity:1;transform:none;transition:opacity .2s ease,transform .2s ease}
|
||||
nav a{padding:.8rem .2rem;font-size:1rem;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent);border-radius:0}
|
||||
nav a:last-child{border-bottom:0}
|
||||
nav a::after{left:0;right:auto;width:3px;top:.75rem;bottom:.75rem;height:auto;transform:scaleY(0)}
|
||||
nav a.active{color:var(--proton-soft);padding-left:.8rem}
|
||||
nav a.active::after{transform:scaleY(1)}
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){nav,nav.open,.menu-btn span{transition:none}}
|
||||
@@ -1 +0,0 @@
|
||||
<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>
|
||||
|
Before Width: | Height: | Size: 455 B |
File renamed without changes.
@@ -0,0 +1,93 @@
|
||||
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.
Binary file not shown.
|
Before Width: | Height: | Size: 114 KiB |
+133
-69
@@ -4,35 +4,24 @@
|
||||
<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/">
|
||||
<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">
|
||||
<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>">
|
||||
<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=20261012b">
|
||||
<link rel="stylesheet" href="css/style.css?v=20261012b">
|
||||
<script src="js/theme.js?v=20261012b"></script>
|
||||
<link rel="stylesheet" href="css/fonts.css">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</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"><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>
|
||||
<nav aria-label="Portfolio sections">
|
||||
<button class="theme" id="theme" type="button" aria-label="Switch light or dark theme">◐</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>
|
||||
<a href="#background">Background</a>
|
||||
<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>
|
||||
@@ -45,30 +34,30 @@
|
||||
<section id="welcome">
|
||||
<div class="hero">
|
||||
<div>
|
||||
<div class="avatar" aria-hidden="true">NT</div>
|
||||
<div class="avatar" title="Replace with your photo">NT</div>
|
||||
<h1>Nelson Thomas</h1>
|
||||
<p class="role">Engineering student at INP ENSEEIHT, apprentice in networks and cybersecurity</p>
|
||||
<p class="role">Engineering student at INP ENSEEIHT and cybersecurity apprentice at <span class="todo">[Company]</span></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="docs/Nelson_Thomas_CV_EN.pdf" target="_blank" rel="noopener">Download my CV</a>
|
||||
<a class="btn primary" href="#career">See my CV and pitch</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 u-d46287"><span class="n">1</span><span class="h">ups-toulouse</span><span class="y">2022</span><span>Maths & 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 & 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 class="hop" style="animation-delay:.2s"><span class="n">1</span><span class="h">ups-toulouse</span><span class="y">2022</span><span>Maths & 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 & 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>
|
||||
</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 & Telecom engineering degree at N7, alternating between school and company as an apprentice.</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 & Telecom engineering degree at N7, as an apprentice at <span class="todo">[Company – team]</span>.</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>
|
||||
@@ -114,7 +103,7 @@
|
||||
<h3 class="sub">Education</h3>
|
||||
<ol class="timeline">
|
||||
<li class="now">
|
||||
<img class="place u-925d61" src="img/places/enseeiht.jpg" alt="Entrance of INP ENSEEIHT, Toulouse" loading="lazy">
|
||||
<img class="place" style="object-position:50% 12%" 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 & Telecom (SN), apprenticeship track</h4>
|
||||
@@ -138,7 +127,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 u-465ef4" src="img/places/lycee-ernest-ferroul.jpg" alt="Lycée Ernest Ferroul, Lézignan-Corbières" loading="lazy">
|
||||
<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">
|
||||
<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>
|
||||
@@ -151,13 +140,13 @@
|
||||
<ol class="timeline">
|
||||
<li class="now">
|
||||
<div class="when">2026 – now</div>
|
||||
<h4>Apprentice engineer, networks & cybersecurity</h4>
|
||||
<div class="where">Apprenticeship with INP ENSEEIHT</div>
|
||||
<p>Three years alternating between the engineering school and the company.</p>
|
||||
<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>
|
||||
</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 class="u-7d53d2" src="img/logos/itrust.png" alt="ITRUST"><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 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>
|
||||
<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>
|
||||
@@ -190,31 +179,31 @@
|
||||
<div class="tl-scroll">
|
||||
<div class="tl" role="tablist" aria-label="Certifications by date">
|
||||
<span class="tl-axis"></span>
|
||||
<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-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-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 u-c55905" type="button" role="tab" aria-selected="false" aria-controls="cert-ccna-itn" data-target="cert-ccna-itn">
|
||||
<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%">
|
||||
<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 u-bd9c6a" type="button" role="tab" aria-selected="false" aria-controls="cert-ccna" data-target="cert-ccna">
|
||||
<button class="tl-node down" type="button" role="tab" aria-selected="false" aria-controls="cert-ccna" data-target="cert-ccna" style="left:42.86%">
|
||||
<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 u-2133b3" type="button" role="tab" aria-selected="false" aria-controls="cert-ethical-hacker" data-target="cert-ethical-hacker">
|
||||
<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%">
|
||||
<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 u-603952" type="button" role="tab" aria-selected="false" aria-controls="cert-csna" data-target="cert-csna">
|
||||
<button class="tl-node down" type="button" role="tab" aria-selected="false" aria-controls="cert-csna" data-target="cert-csna" style="left:66.67%">
|
||||
<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 u-6f748d" type="button" role="tab" aria-selected="false" aria-controls="cert-toeic" data-target="cert-toeic">
|
||||
<button class="tl-node up" type="button" role="tab" aria-selected="false" aria-controls="cert-toeic" data-target="cert-toeic" style="left:71.43%">
|
||||
<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 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-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-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 u-019d5f">BUT Networks & Telecom · IUT de Blagnac</span>
|
||||
<span class="tl-band n7 u-75bc8d">ENSEEIHT</span>
|
||||
<span class="tl-band" style="left:4.76%;width:78.57%">BUT Networks & Telecom · IUT de Blagnac</span>
|
||||
<span class="tl-band n7" style="left:90.48%;width:9.519999999999996%">ENSEEIHT</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="tl-hint">Swipe sideways to see the whole timeline.</p>
|
||||
@@ -286,7 +275,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 class="u-554682"></i></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>
|
||||
<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>
|
||||
@@ -302,7 +291,20 @@
|
||||
<!-- 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.</p>
|
||||
<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>
|
||||
|
||||
<h3 class="sub">Internships</h3>
|
||||
<div class="grid">
|
||||
@@ -378,27 +380,81 @@
|
||||
<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">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>
|
||||
<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>
|
||||
|
||||
<div class="grid">
|
||||
<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>
|
||||
<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>
|
||||
<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 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>
|
||||
</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">
|
||||
@@ -418,7 +474,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.</p></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>Geopolitics</h3><p>Following world affairs, which often explains the threats a SOC ends up seeing.</p></div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -426,8 +482,8 @@
|
||||
<!-- CIVIC -->
|
||||
<section id="civic">
|
||||
<h2>Civic engagement</h2>
|
||||
<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="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="meta">5 of 40 hours completed</p>
|
||||
<div class="grid">
|
||||
<article class="item civic">
|
||||
@@ -445,32 +501,40 @@
|
||||
<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>
|
||||
|
||||
<!-- CONTACT -->
|
||||
<section id="contact" aria-labelledby="contact-h">
|
||||
<div class="contact">
|
||||
<div>
|
||||
<h2 id="contact-h">Contact</h2>
|
||||
<p class="lead">An apprenticeship question, a project, or just a chat about security? Use the form and I'll reply within a few days. My code is on my Gitea.</p>
|
||||
<p class="lead">An apprenticeship question, a project, or just a chat about security? Write to me through the form below and I'll reply within a few days. Fields marked with <span class="req" aria-hidden="true">*</span> are required.</p>
|
||||
<div class="direct">
|
||||
<a class="link-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">git.nelson-thomas.fr/N0Xx</a>
|
||||
<a class="link-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.com/in/nelson-thomas-pr</a>
|
||||
<span class="meta">Toulouse, France</span>
|
||||
</div>
|
||||
</div>
|
||||
<form class="form" id="contact-form" novalidate>
|
||||
<div class="row">
|
||||
<div class="field"><label for="f-name">Name</label><input id="f-name" name="name" autocomplete="name" required maxlength="100"></div>
|
||||
<div class="field"><label for="f-email">Email</label><input id="f-email" name="email" type="email" autocomplete="email" required maxlength="150"></div>
|
||||
<div class="field"><label for="f-first">First name <span class="req" aria-hidden="true">*</span></label><input id="f-first" name="first_name" autocomplete="given-name" required maxlength="60"></div>
|
||||
<div class="field"><label for="f-last">Last name <span class="req" aria-hidden="true">*</span></label><input id="f-last" name="last_name" autocomplete="family-name" required maxlength="60"></div>
|
||||
</div>
|
||||
<div class="field"><label for="f-company">Company (optional)</label><input id="f-company" name="company" autocomplete="organization" maxlength="100"></div>
|
||||
<div class="field"><label for="f-subject">Subject</label><input id="f-subject" name="subject" required maxlength="150"></div>
|
||||
<div class="field"><label for="f-msg">Message</label><textarea id="f-msg" name="message" required maxlength="4000"></textarea></div>
|
||||
<div class="row">
|
||||
<div class="field"><label for="f-email">Email <span class="req" aria-hidden="true">*</span></label><input id="f-email" name="email" type="email" autocomplete="email" required maxlength="150"></div>
|
||||
<div class="field"><label for="f-phone">Phone</label><input id="f-phone" name="phone" type="tel" autocomplete="tel" maxlength="30" aria-describedby="f-phone-hint" pattern="[0-9+()./ -]{6,30}"><small class="hint" id="f-phone-hint">Optional</small></div>
|
||||
</div>
|
||||
<div class="field"><label for="f-company">Company</label><input id="f-company" name="company" autocomplete="organization" maxlength="100" aria-describedby="f-company-hint"><small class="hint" id="f-company-hint">Optional</small></div>
|
||||
<div class="field"><label for="f-subject">Subject <span class="req" aria-hidden="true">*</span></label><input id="f-subject" name="subject" required maxlength="150"></div>
|
||||
<div class="field"><label for="f-msg">Message <span class="req" aria-hidden="true">*</span></label><textarea id="f-msg" name="message" required maxlength="4000"></textarea></div>
|
||||
<label class="consent"><input type="checkbox" id="f-consent" name="consent" required><span>I agree that the information I enter is used to contact me about my request. <a href="legal.html#en-data">Learn more</a>.</span></label>
|
||||
<input class="hp" type="checkbox" name="botcheck" tabindex="-1" autocomplete="off" aria-hidden="true">
|
||||
<button type="submit" id="f-send">Send message</button>
|
||||
<button type="submit" id="f-send">Send<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path d="M22 2 11 13M22 2l-7 20-4-9-9-4z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
||||
<p class="status" id="f-status" role="status" aria-live="polite"></p>
|
||||
<p class="privacy-note"><svg viewBox="0 0 24 24" width="15" height="15" aria-hidden="true"><rect x="5" y="11" width="14" height="10" rx="2" fill="none" stroke="currentColor" stroke-width="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4" fill="none" stroke="currentColor" stroke-width="2"/></svg><span>Your details are sent by email over an encrypted connection and are not stored in a database. No tracking cookies.</span></p>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
@@ -478,6 +542,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 & privacy</a></p></footer>
|
||||
|
||||
<script src="js/main.js?v=20261012b" defer></script>
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,21 +0,0 @@
|
||||
(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));
|
||||
})();
|
||||
+22
-5
@@ -8,6 +8,7 @@ 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';
|
||||
@@ -45,6 +46,7 @@ var LINKEDIN_URL = "https://www.linkedin.com/in/nelson-thomas-pr/";
|
||||
|
||||
// Contact form
|
||||
var form=document.getElementById('contact-form'), btn=document.getElementById('f-send'), st=document.getElementById('f-status');
|
||||
var btnHTML=btn?btn.innerHTML:'';
|
||||
function say(msg,cls){st.textContent=msg;st.className='status '+(cls||'')}
|
||||
function sendFailed(){
|
||||
st.className='status err'; st.textContent='The message could not be sent. Try again in a few minutes, or reach me on ';
|
||||
@@ -53,12 +55,12 @@ var LINKEDIN_URL = "https://www.linkedin.com/in/nelson-thomas-pr/";
|
||||
}
|
||||
form.addEventListener('submit',function(e){
|
||||
e.preventDefault();
|
||||
if(!form.checkValidity()){form.reportValidity();say('Fill in your name, a valid email, a subject and a message.','err');return}
|
||||
if(!form.checkValidity()){form.reportValidity();say('Fill in the required fields (*), check your email and phone number, and tick the consent box.','err');return}
|
||||
if(form.botcheck.checked)return;
|
||||
var d={name:form.name.value.trim(),email:form.email.value.trim(),company:form.company.value.trim(),subject:form.subject.value.trim(),message:form.message.value.trim()};
|
||||
btn.disabled=true;btn.textContent='Sending...';say('');
|
||||
var d={first_name:form.first_name.value.trim(),last_name:form.last_name.value.trim(),email:form.email.value.trim(),phone:form.phone.value.trim(),company:form.company.value.trim(),subject:form.subject.value.trim(),message:form.message.value.trim(),consent:form.consent.checked};
|
||||
btn.disabled=true;btn.textContent='Sending…';say('');
|
||||
fetch(CONTACT_ENDPOINT,{method:'POST',headers:{'Content-Type':'application/json',Accept:'application/json'},
|
||||
body:JSON.stringify({name:d.name,email:d.email,company:d.company,subject:d.subject,message:d.message,botcheck:false})})
|
||||
body:JSON.stringify(Object.assign({},d,{botcheck:false}))})
|
||||
.then(function(r){
|
||||
return r.json().catch(function(){throw new Error('network')}).then(function(j){return {status:r.status,body:j}});
|
||||
})
|
||||
@@ -69,7 +71,7 @@ var LINKEDIN_URL = "https://www.linkedin.com/in/nelson-thomas-pr/";
|
||||
throw new Error('server');
|
||||
})
|
||||
.catch(sendFailed)
|
||||
.finally(function(){btn.disabled=false;btn.textContent='Send message'});
|
||||
.finally(function(){btn.disabled=false;btn.innerHTML=btnHTML});
|
||||
});
|
||||
|
||||
// Certificate viewer (native <dialog>: Esc closes, focus is handled by the browser)
|
||||
@@ -128,4 +130,19 @@ var LINKEDIN_URL = "https://www.linkedin.com/in/nelson-thomas-pr/";
|
||||
window.addEventListener('resize',tlEdges);
|
||||
tlEdges();
|
||||
}
|
||||
|
||||
// Hamburger menu on small screens
|
||||
var menuBtn=document.getElementById('menu-btn'), siteNav=document.getElementById('site-nav');
|
||||
if(menuBtn&&siteNav){
|
||||
var setMenu=function(open){
|
||||
siteNav.classList.toggle('open',open);
|
||||
menuBtn.setAttribute('aria-expanded',open);
|
||||
menuBtn.setAttribute('aria-label',open?'Close the menu':'Open the menu');
|
||||
};
|
||||
menuBtn.addEventListener('click',function(){setMenu(menuBtn.getAttribute('aria-expanded')!=='true')});
|
||||
siteNav.addEventListener('click',function(e){if(e.target.closest('a'))setMenu(false)});
|
||||
document.addEventListener('keydown',function(e){if(e.key==='Escape'&&siteNav.classList.contains('open')){setMenu(false);menuBtn.focus()}});
|
||||
document.addEventListener('click',function(e){if(siteNav.classList.contains('open')&&!e.target.closest('header'))setMenu(false)});
|
||||
window.addEventListener('resize',function(){if(window.innerWidth>1080)setMenu(false)});
|
||||
}
|
||||
})();
|
||||
@@ -1,2 +0,0 @@
|
||||
/* 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){}
|
||||
+31
-10
@@ -5,11 +5,9 @@
|
||||
<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="favicon.svg" type="image/svg+xml">
|
||||
<title>Legal notice – Nelson Thomas</title>
|
||||
<link rel="stylesheet" href="css/fonts.css?v=20261012b">
|
||||
<link rel="stylesheet" href="css/style.css?v=20261012b">
|
||||
<script src="js/theme.js?v=20261012b"></script>
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
<main class="legal">
|
||||
@@ -39,9 +37,9 @@
|
||||
<section id="en-data"><h2>Personal data</h2>
|
||||
<p>This site only collects personal data when you send a message through the contact form.</p>
|
||||
<table class="data-table">
|
||||
<tr><th scope="row">Data collected</th><td>Name, email address, company (optional), subject and message</td></tr>
|
||||
<tr><th scope="row">Data collected</th><td>First and last name, email address, phone number (optional), company (optional), subject and message, plus the IP address and time of sending (kept with the message to fight abuse)</td></tr>
|
||||
<tr><th scope="row">Purpose</th><td>Replying to your message</td></tr>
|
||||
<tr><th scope="row">Legal basis</th><td>Your consent, given when you send the form (GDPR art. 6.1.a)</td></tr>
|
||||
<tr><th scope="row">Legal basis</th><td>Your consent, given by ticking the box before sending the form (GDPR art. 6.1.a). You can withdraw it at any time.</td></tr>
|
||||
<tr><th scope="row">Recipient</th><td>Only me. Messages are delivered to my mailbox at Proton Mail (Switzerland). Nothing is sold or shared.</td></tr>
|
||||
<tr><th scope="row">Retention</th><td>As long as needed to follow up on your message, and at most 3 years after our last exchange. I review and delete older messages once a year.</td></tr>
|
||||
<tr><th scope="row">Anti-spam</th><td>A pseudonymised fingerprint of your IP address is kept for one hour to limit the number of messages, then deleted automatically.</td></tr>
|
||||
@@ -81,9 +79,9 @@
|
||||
<section id="fr-donnees"><h2>Données personnelles</h2>
|
||||
<p>Ce site ne collecte des données personnelles que lorsque vous envoyez un message via le formulaire de contact.</p>
|
||||
<table class="data-table">
|
||||
<tr><th scope="row">Données collectées</th><td>Nom, adresse e-mail, entreprise (facultatif), objet et message</td></tr>
|
||||
<tr><th scope="row">Données collectées</th><td>Prénom et nom, adresse e-mail, téléphone (facultatif), entreprise (facultatif), objet et message, ainsi que l'adresse IP et l'heure d'envoi (conservées avec le message pour lutter contre les abus)</td></tr>
|
||||
<tr><th scope="row">Finalité</th><td>Répondre à votre message</td></tr>
|
||||
<tr><th scope="row">Base légale</th><td>Votre consentement, donné à l'envoi du formulaire (art. 6.1.a du RGPD)</td></tr>
|
||||
<tr><th scope="row">Base légale</th><td>Votre consentement, donné en cochant la case avant l'envoi du formulaire (art. 6.1.a du RGPD). Vous pouvez le retirer à tout moment.</td></tr>
|
||||
<tr><th scope="row">Destinataire</th><td>Moi uniquement. Les messages arrivent dans ma boîte Proton Mail (Suisse). Rien n'est vendu ni partagé.</td></tr>
|
||||
<tr><th scope="row">Durée de conservation</th><td>Le temps nécessaire pour donner suite à votre message, et au maximum 3 ans après notre dernier échange. Je fais le tri et supprime les anciens messages une fois par an.</td></tr>
|
||||
<tr><th scope="row">Anti-spam</th><td>Une empreinte pseudonymisée de votre adresse IP est conservée une heure pour limiter le nombre de messages, puis supprimée automatiquement.</td></tr>
|
||||
@@ -103,6 +101,29 @@
|
||||
</article>
|
||||
</main>
|
||||
<footer><p>© 2026 Nelson Thomas. Toulouse, France.</p></footer>
|
||||
<script src="js/legal.js?v=20261012b" defer></script>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +0,0 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Disallow: /contact.php
|
||||
|
||||
Sitemap: https://nelson-thomas.fr/sitemap.xml
|
||||
@@ -1,4 +0,0 @@
|
||||
<?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-12</lastmod></url>
|
||||
</urlset>
|
||||
Reference in new issue
Block a user