Add 404 page, social preview and nginx config; update .gitignore
This commit is contained in:
1 parent
986c89d87b
commit
9fe26dfe1b
15 files changed
+649
-198
No files matched your search
+21
-4
@@ -1,12 +1,29 @@
|
||||
# Secrets
|
||||
portfolio-private/smtp-config.php
|
||||
|
||||
# ---- Secrets: never commit ----
|
||||
smtp-config.php
|
||||
.env
|
||||
.env.*
|
||||
*.htpasswd
|
||||
.htpasswd
|
||||
keys/
|
||||
*.key
|
||||
*.pem
|
||||
*.crt
|
||||
|
||||
# Container data (logs with visitor IPs, TLS keys, config)
|
||||
config/
|
||||
# ---- Visitor data ----
|
||||
*.log
|
||||
log/
|
||||
logs/
|
||||
logrotate.status
|
||||
|
||||
# ---- Runtime / temporary files ----
|
||||
portfolio-contact-*
|
||||
*.tmp
|
||||
*.swp
|
||||
*~
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
|
||||
# CVs (contain email and phone number)
|
||||
www/docs/*.pdf
|
||||
@@ -1,6 +1,6 @@
|
||||
# ePortfolio – Nelson Thomas
|
||||
|
||||
My personal portfolio, live at **[nelson-thomas.fr](https://nelson-thomas.fr)**.
|
||||
My personal portfolio, live at **[www.nelson-thomas.fr](https://www.nelson-thomas.fr)**.
|
||||
|
||||
I am an engineering student in Computer Science & Telecom at INP ENSEEIHT (Toulouse), on the apprenticeship track, working in networks and cybersecurity. This site is where I present who I am, what I have built and where I am heading, in one place I own and host myself.
|
||||
|
||||
@@ -21,7 +21,8 @@ I am an engineering student in Computer Science & Telecom at INP ENSEEIHT (Toulo
|
||||
| **Career** | My CV in English and French, and my LinkedIn profile |
|
||||
| **Passions** | Self-hosting, offensive security training, photography, geopolitics |
|
||||
| **Civic engagement** | Volunteering and awareness actions, with hours tracked and links to the events |
|
||||
| **Contact** | A form that sends messages straight to my inbox |
|
||||
| **Contact** | A form that sends messages straight to my inbox, only after the visitor ticks a consent box |
|
||||
| **404 page** | A custom "page not found" page in the style of the site |
|
||||
| **Legal notice** | A separate page, in English and French, with the publisher and hosting details and how personal data from the contact form is handled (GDPR) |
|
||||
|
||||
## Design choices
|
||||
@@ -37,6 +38,7 @@ I am an engineering student in Computer Science & Telecom at INP ENSEEIHT (Toulo
|
||||
```
|
||||
www/ the website itself (the only folder served publicly)
|
||||
portfolio-private/ configuration template and mail library for the contact form
|
||||
nginx/ web server configuration of the linuxserver/nginx container (security headers, real visitor IP, masked IPs in logs, cache)
|
||||
```
|
||||
|
||||
Secrets, server logs and CVs are deliberately kept out of this repository.
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
## ePortfolio – nginx site config for the linuxserver/nginx container
|
||||
## Install: copy to ./Portfolio/config/nginx/site-confs/default.conf
|
||||
## then: docker exec nginx_Portfolio nginx -t && docker restart nginx_Portfolio
|
||||
## Based on the image's default.conf.sample. Files in site-confs/ are included
|
||||
## in the http { } block of /config/nginx/nginx.conf, so map and log_format can live here.
|
||||
|
||||
# ---------- Access logs with the last part of the IP masked (see legal.html) ----------
|
||||
# 203.0.113.42 -> 203.0.113.0 | 2001:db8:abcd:12::1 -> 2001:db8:abcd::
|
||||
map $remote_addr $remote_addr_anon {
|
||||
~(?P<ip>\d+\.\d+\.\d+)\.\d+$ $ip.0;
|
||||
~(?P<ip>[^:]+:[^:]+:[^:]+): $ip::;
|
||||
default 0.0.0.0;
|
||||
}
|
||||
log_format anon '$remote_addr_anon - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" "$http_user_agent"';
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
listen 443 ssl default_server;
|
||||
listen [::]:443 ssl default_server;
|
||||
|
||||
server_name _;
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
# ---------- Real visitor IP behind Nginx Proxy Manager ----------
|
||||
# Without this, every visitor has the proxy's IP and the contact form's
|
||||
# anti-spam limit (5 messages/hour/IP) would block everyone at once.
|
||||
# Tighter: replace the three lines with the Docker network's subnet
|
||||
# (docker network inspect proxy-portfolio | grep Subnet).
|
||||
set_real_ip_from 172.16.0.0/12;
|
||||
set_real_ip_from 10.0.0.0/8;
|
||||
set_real_ip_from 192.168.0.0/16;
|
||||
real_ip_header X-Forwarded-For;
|
||||
real_ip_recursive on;
|
||||
|
||||
access_log /config/log/nginx/access.log anon;
|
||||
|
||||
root /config/www;
|
||||
index index.html;
|
||||
error_page 404 /404.html;
|
||||
|
||||
# ---------- Security headers ----------
|
||||
# Everything (fonts, images, scripts, styles) is served from this domain,
|
||||
# and no page uses inline styles or scripts, so the policy can be strict.
|
||||
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' data:; connect-src 'self'; form-action 'self'; frame-ancestors 'none'; base-uri 'self'; object-src 'none'" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
||||
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
||||
add_header X-Frame-Options "DENY" always;
|
||||
# HSTS: Nginx Proxy Manager handles HTTPS, enable it there ("HSTS Enabled").
|
||||
|
||||
# A missing file is a real 404 (never index.html with a 200):
|
||||
# otherwise a cache could store a page in place of an image.
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# ---------- Browser cache ----------
|
||||
# "expires" does not cancel the add_header lines above (add_header would).
|
||||
# CSS and JS are loaded with ?v=…: bump that number after editing them.
|
||||
location ~* \.(?:css|js)$ {
|
||||
expires 30d;
|
||||
}
|
||||
location ~* \.(?:woff2)$ {
|
||||
expires 1y;
|
||||
}
|
||||
location ~* \.(?:png|jpe?g|svg|webp|ico)$ {
|
||||
expires 7d;
|
||||
}
|
||||
location ~* \.(?:html|xml|txt)$ {
|
||||
expires -1; # pages, sitemap, robots: always revalidated
|
||||
}
|
||||
|
||||
# ---------- PHP: only contact.php may run ----------
|
||||
location = /contact.php {
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
client_max_body_size 32k;
|
||||
}
|
||||
location ~ \.php$ {
|
||||
return 404;
|
||||
}
|
||||
|
||||
# Hidden files (.git, .htaccess, .env…), except Let's Encrypt challenges
|
||||
location ~ /\.(?!well-known) {
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -34,8 +34,9 @@ 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 = '6.10.0';
|
||||
const VERSION = '7.1.1';
|
||||
|
||||
/**
|
||||
* SMTP line break constant.
|
||||
@@ -205,6 +206,7 @@ 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/',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -273,6 +275,14 @@ 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.
|
||||
*
|
||||
@@ -493,7 +503,9 @@ 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;
|
||||
}
|
||||
|
||||
@@ -632,12 +644,50 @@ class SMTP
|
||||
if (null === $OAuth) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
$oauth = $OAuth->getOauth64();
|
||||
|
||||
//Start authentication
|
||||
} 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
|
||||
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");
|
||||
@@ -721,6 +771,7 @@ 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);
|
||||
@@ -729,6 +780,25 @@ 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,
|
||||
@@ -757,15 +827,16 @@ class SMTP
|
||||
* NOTE: this does not count towards line-length limit.
|
||||
*/
|
||||
|
||||
//Normalize line breaks before exploding
|
||||
$lines = explode("\n", str_replace(["\r\n", "\r"], "\n", $msg_data));
|
||||
//Iterate over lines with normalized line breaks
|
||||
$lines = $this->iterateLines($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.
|
||||
*/
|
||||
|
||||
$field = substr($lines[0], 0, strpos($lines[0], ':'));
|
||||
$first_line = $lines->current();
|
||||
$field = substr($first_line, 0, strpos($first_line, ':'));
|
||||
$in_headers = false;
|
||||
if (!empty($field) && strpos($field, ' ') === false) {
|
||||
$in_headers = true;
|
||||
@@ -959,7 +1030,12 @@ 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();
|
||||
@@ -1062,6 +1138,7 @@ class SMTP
|
||||
|
||||
return false;
|
||||
}
|
||||
$this->state = $command;
|
||||
$this->client_send($commandstring . static::LE, $command);
|
||||
|
||||
$this->last_reply = $this->get_lines();
|
||||
@@ -1228,7 +1305,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'
|
||||
*
|
||||
@@ -1309,7 +1386,16 @@ 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) {
|
||||
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
|
||||
)
|
||||
) {
|
||||
$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@nelson-thomas.fr',
|
||||
'smtp_user' => 'contact@your-domain.tld',
|
||||
|
||||
// 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' => 'nelson.thomas.contact@domain.com',
|
||||
'to' => 'you@example.com',
|
||||
|
||||
// Only these sites may post to the form (scheme + host, no trailing slash).
|
||||
'allowed_origins' => [
|
||||
@@ -31,13 +31,6 @@ 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',
|
||||
|
||||
+18
-10
@@ -2,24 +2,32 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>Page not found – Nelson Thomas</title>
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="/css/fonts.css?v=20261023">
|
||||
<link rel="stylesheet" href="/css/style.css?v=20261023">
|
||||
<script src="/js/theme.js?v=20261023"></script>
|
||||
<title>Page not found – Nelson Thomas</title>
|
||||
<link rel="stylesheet" href="/css/fonts.css?v=20261026">
|
||||
<link rel="stylesheet" href="/css/style.css?v=20261026">
|
||||
<script src="/js/theme.js?v=20261026"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main class="notfound">
|
||||
<div class="trace">
|
||||
<div class="cmd">$ <b>traceroute</b> this-page</div>
|
||||
<div class="hop"><span class="n">1</span><span class="h">nelson-thomas.fr</span><span class="y">ok</span><span>Reached the site</span></div>
|
||||
<div class="hop last"><span class="n">2</span><span class="h">* * *</span><span class="y">404</span><span>This page does not exist</span></div>
|
||||
<p class="code" aria-hidden="true">404</p>
|
||||
<h1>This page isn't on the network</h1>
|
||||
<p class="lead">The address you followed doesn't exist, or it has moved. Everything about me is on the home page.</p>
|
||||
<div class="trace" aria-label="Route to the requested page">
|
||||
<div class="cmd">$ <b>traceroute</b> <span id="nf-path">/this-page</span></div>
|
||||
<div class="hop"><span class="n">1</span><span class="h">nelson-thomas.fr</span><span class="y">2 ms</span><span>home page found</span></div>
|
||||
<div class="hop"><span class="n">2</span><span class="h">* * *</span><span class="y"></span><span>request timed out</span></div>
|
||||
<div class="hop fail"><span class="n">3</span><span class="h">!H</span><span class="y"></span><span>destination unreachable</span></div>
|
||||
</div>
|
||||
<h1>Page not found</h1>
|
||||
<p class="lead">The link may be old or mistyped.</p>
|
||||
<div class="cta">
|
||||
<a class="btn primary" href="/">Back to the portfolio</a>
|
||||
<a class="btn" href="/#contact">Contact me</a>
|
||||
</div>
|
||||
</main>
|
||||
<footer><p>© 2026 Nelson Thomas. Toulouse, France. · <a class="foot-legal" href="/legal.html">Legal notice & privacy</a></p></footer>
|
||||
<script src="/js/notfound.js?v=20261026" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
+17
-11
@@ -1,6 +1,6 @@
|
||||
:root{
|
||||
--night:#14122b; --surface:rgba(32,28,66,.72); --surface-2:#262249; --line:#3a3566;
|
||||
--text:#ece8f7; --muted:#a8a3c9; --rose:#f0708a; --signal:#74d4e6; --todo:#f3c969; --proton:#6d4aff; --proton-soft:#8a6eff;
|
||||
--text:#ece8f7; --muted:#a8a3c9; --rose:#f0708a; --signal:#74d4e6; --todo:#f3c969; --proton:#6d4aff; --proton-soft:#8a6eff; --accent:#a996ff;
|
||||
--display:"Chakra Petch", "Segoe UI", system-ui, sans-serif;
|
||||
--body:"IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
|
||||
--mono:"IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
|
||||
@@ -10,17 +10,17 @@
|
||||
}
|
||||
:root[data-theme="light"]{
|
||||
--night:#f4f2fb; --surface:#ffffff; --surface-2:#ebe8f7; --line:#d3cfe8;
|
||||
--text:#1c1936; --muted:#5c5780; --rose:#c43a5a; --signal:#12788c; --todo:#9a6b00; --proton:#6d4aff; --proton-soft:#5b3be6;
|
||||
--text:#1c1936; --muted:#4a456c; --rose:#c43a5a; --signal:#12788c; --todo:#9a6b00; --proton:#6d4aff; --proton-soft:#5b3be6; --accent:#4326c4;
|
||||
}
|
||||
@media (prefers-color-scheme: light){
|
||||
:root:not([data-theme="dark"]){
|
||||
--night:#f4f2fb; --surface:#ffffff; --surface-2:#ebe8f7; --line:#d3cfe8;
|
||||
--text:#1c1936; --muted:#5c5780; --rose:#c43a5a; --signal:#12788c; --todo:#9a6b00; --proton:#6d4aff; --proton-soft:#5b3be6;
|
||||
--text:#1c1936; --muted:#4a456c; --rose:#c43a5a; --signal:#12788c; --todo:#9a6b00; --proton:#6d4aff; --proton-soft:#5b3be6; --accent:#4326c4;
|
||||
}
|
||||
}
|
||||
:root[data-theme="dark"]{
|
||||
--night:#14122b; --surface:rgba(32,28,66,.72); --surface-2:#262249; --line:#3a3566;
|
||||
--text:#ece8f7; --muted:#a8a3c9; --rose:#f0708a; --signal:#74d4e6; --todo:#f3c969; --proton:#6d4aff; --proton-soft:#8a6eff;
|
||||
--text:#ece8f7; --muted:#a8a3c9; --rose:#f0708a; --signal:#74d4e6; --todo:#f3c969; --proton:#6d4aff; --proton-soft:#8a6eff; --accent:#a996ff;
|
||||
}
|
||||
*,*::before,*::after{box-sizing:inherit}
|
||||
body{margin:0;background-color:var(--night);color:var(--text);font:400 1rem/1.6 var(--body);
|
||||
@@ -67,7 +67,7 @@ p{margin:0 0 1rem;max-width:68ch}
|
||||
.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:2.5rem;align-items:center;margin-bottom:3rem}
|
||||
.avatar{box-shadow:0 0 0 4px color-mix(in srgb,var(--proton) 25%,transparent);width:96px;height:96px;border-radius:50%;display:grid;place-items:center;font:700 1.8rem var(--display);
|
||||
background:var(--grad);color:#fff;margin-bottom:1.2rem}
|
||||
.role{font:500 1.1rem var(--display);color:var(--proton-soft);margin-bottom:1rem}
|
||||
.role{font:500 1.1rem var(--display);color:var(--accent);margin-bottom:1rem}
|
||||
.trace{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:1.1rem 1.2rem;font:400 .86rem/1.75 var(--mono);overflow-x:auto}
|
||||
.trace .cmd{color:var(--muted);margin-bottom:.4rem}
|
||||
.trace .cmd b{color:var(--text);font-weight:500}
|
||||
@@ -111,7 +111,7 @@ input:focus,textarea:focus{outline:none;border-color:var(--proton-soft);box-shad
|
||||
input:user-invalid,textarea:user-invalid{border-color:var(--rose)}
|
||||
.hp{position:absolute;left:-9999px}
|
||||
.form button{display:inline-flex;align-items:center;gap:.55rem;font:600 1rem var(--body);cursor:pointer;border:0;padding:.75rem 1.4rem;border-radius:8px;background:var(--proton);color:#fff;transition:background-color .2s,transform .2s}
|
||||
.form button:hover{background:var(--proton-soft)}
|
||||
.form button:hover{background:#5b3be6}
|
||||
.form button:disabled{opacity:.6;cursor:wait}
|
||||
.status{margin:.9rem 0 0;font-size:.95rem;min-height:1.5em}
|
||||
.status.ok{color:var(--signal)} .status.err{color:var(--rose)}
|
||||
@@ -123,7 +123,7 @@ input:user-invalid,textarea:user-invalid{border-color:var(--rose)}
|
||||
.item:hover,.trace:hover,.form:hover{transform:translateY(-3px);border-color:var(--proton-soft);
|
||||
box-shadow:0 10px 28px -12px color-mix(in srgb,var(--proton) 55%,transparent)}
|
||||
.btn:hover{transform:translateY(-2px);border-color:var(--proton-soft);box-shadow:0 6px 18px -8px color-mix(in srgb,var(--proton) 70%,transparent)}
|
||||
.btn.primary:hover{background:var(--proton-soft);filter:none}
|
||||
.btn.primary:hover{background:#5b3be6;border-color:#5b3be6;filter:none}
|
||||
.item:hover .tags span{background:color-mix(in srgb,var(--proton) 22%,var(--surface-2));color:var(--text)}
|
||||
.form button:hover{transform:translateY(-1px)}
|
||||
}
|
||||
@@ -407,16 +407,22 @@ dl.facts dd{margin:0}
|
||||
nav a.active::after{transform:scaleY(1)}
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){nav,nav.open,.menu-btn span{transition:none}}
|
||||
/* ===== 404 page ===== */
|
||||
.notfound{max-width:720px;margin:0 auto;padding:clamp(3rem,10vh,6rem) 1.25rem 4rem}
|
||||
.notfound .code{font:700 clamp(4.5rem,18vw,8rem)/1 var(--display);color:var(--accent);letter-spacing:.02em;margin:0 0 .4rem}
|
||||
.notfound h1{font-size:clamp(1.6rem,4.5vw,2.2rem);margin-bottom:.8rem}
|
||||
.notfound .trace{margin:1.8rem 0 2rem}
|
||||
.notfound .hop{opacity:1;animation:none}
|
||||
.notfound .hop{grid-template-columns:1.3rem 8.8rem 2.8rem minmax(0,1fr);column-gap:.7rem}
|
||||
@media (max-width:480px){.notfound .hop{grid-template-columns:1.1rem 8.6rem minmax(0,1fr);column-gap:.5rem}.notfound .hop .y{display:none}}
|
||||
.notfound .hop.fail .h,.notfound .hop.fail span:last-child{color:var(--rose)}
|
||||
.notfound .cta{margin-top:0}
|
||||
|
||||
/* Career cards: keep the action buttons at the bottom */
|
||||
#career .item{display:flex;flex-direction:column;align-items:flex-start}
|
||||
#career .item>.btn,#career .cv-links{margin-top:auto}
|
||||
#career .cv-links{display:flex;margin-bottom:0}
|
||||
|
||||
/* 404 page */
|
||||
.notfound{max-width:640px;min-height:100vh;display:grid;align-content:center;gap:1.2rem;padding:2rem 1.25rem}
|
||||
.notfound h1{margin:0}
|
||||
|
||||
/* Former inline styles (moved here so a strict Content-Security-Policy can block inline CSS) */
|
||||
.u-019d5f{left:4.76% !important;width:78.57% !important}
|
||||
.u-054622{animation-delay:.5s !important}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 114 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
+14
-10
@@ -4,23 +4,27 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<meta name="description" content="Nelson Thomas – engineering student at INP ENSEEIHT, apprentice in networks and cybersecurity.">
|
||||
<meta name="author" content="Nelson Thomas">
|
||||
<meta name="theme-color" content="#14122b">
|
||||
<link rel="canonical" href="https://nelson-thomas.fr/">
|
||||
<link rel="canonical" href="https://www.nelson-thomas.fr/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://nelson-thomas.fr/">
|
||||
<meta property="og:site_name" content="Nelson Thomas">
|
||||
<meta property="og:title" content="Nelson Thomas – ePortfolio">
|
||||
<meta property="og:description" content="Engineering student at INP ENSEEIHT, apprentice in networks and cybersecurity.">
|
||||
<meta property="og:image" content="https://nelson-thomas.fr/img/og-card.png">
|
||||
<meta property="og:description" content="Nelson Thomas – engineering student at INP ENSEEIHT, apprentice in networks and cybersecurity.">
|
||||
<meta property="og:url" content="https://www.nelson-thomas.fr/">
|
||||
<meta property="og:image" content="https://www.nelson-thomas.fr/img/og-image.jpg">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="630">
|
||||
<meta property="og:image:alt" content="Nelson Thomas – engineering student at INP ENSEEIHT, networks and cybersecurity apprentice">
|
||||
<meta property="og:locale" content="en_GB">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="theme-color" content="#14122b">
|
||||
<meta name="author" content="Nelson Thomas">
|
||||
<link rel="icon" href="favicon.svg" type="image/svg+xml">
|
||||
<title>Nelson Thomas – ePortfolio</title>
|
||||
<link rel="preload" href="fonts/chakra-petch-latin-600-normal.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="fonts/ibm-plex-sans-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="stylesheet" href="css/fonts.css?v=20261023">
|
||||
<link rel="stylesheet" href="css/style.css?v=20261023">
|
||||
<script src="js/theme.js?v=20261023"></script>
|
||||
<link rel="stylesheet" href="css/fonts.css?v=20261026">
|
||||
<link rel="stylesheet" href="css/style.css?v=20261026">
|
||||
<script src="js/theme.js?v=20261026"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -482,6 +486,6 @@
|
||||
|
||||
<footer><div class="foot-links"><a class="foot-li" href="https://git.nelson-thomas.fr/N0Xx" target="_blank" rel="noopener" aria-label="Gitea profile"><img src="img/icons/gitea.png" alt="" width="24" height="24"></a><a class="foot-li" href="https://www.linkedin.com/in/nelson-thomas-pr/" target="_blank" rel="noopener" aria-label="LinkedIn profile"><img src="img/icons/linkedin.png" alt="" width="24" height="24"></a></div><p>© 2026 Nelson Thomas. Toulouse, France. · <a class="foot-legal" href="legal.html">Legal notice & privacy</a></p></footer>
|
||||
|
||||
<script src="js/main.js?v=20261023" defer></script>
|
||||
<script src="js/main.js?v=20261026" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
(function(){
|
||||
var p=location.pathname; if(p.length>48)p=p.slice(0,45)+'…';
|
||||
document.getElementById('nf-path').textContent=p;
|
||||
})();
|
||||
+4
-4
@@ -7,9 +7,9 @@
|
||||
<title>Legal notice – Nelson Thomas</title>
|
||||
<link rel="icon" href="favicon.svg" type="image/svg+xml">
|
||||
<title>Legal notice – Nelson Thomas</title>
|
||||
<link rel="stylesheet" href="css/fonts.css?v=20261023">
|
||||
<link rel="stylesheet" href="css/style.css?v=20261023">
|
||||
<script src="js/theme.js?v=20261023"></script>
|
||||
<link rel="stylesheet" href="css/fonts.css?v=20261026">
|
||||
<link rel="stylesheet" href="css/style.css?v=20261026">
|
||||
<script src="js/theme.js?v=20261026"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main class="legal">
|
||||
@@ -103,6 +103,6 @@
|
||||
</article>
|
||||
</main>
|
||||
<footer><p>© 2026 Nelson Thomas. Toulouse, France.</p></footer>
|
||||
<script src="js/legal.js?v=20261023" defer></script>
|
||||
<script src="js/legal.js?v=20261026" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
+1
-1
@@ -2,4 +2,4 @@ User-agent: *
|
||||
Allow: /
|
||||
Disallow: /contact.php
|
||||
|
||||
Sitemap: https://nelson-thomas.fr/sitemap.xml
|
||||
Sitemap: https://www.nelson-thomas.fr/sitemap.xml
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url><loc>https://nelson-thomas.fr/</loc><lastmod>2026-10-23</lastmod></url>
|
||||
<url><loc>https://www.nelson-thomas.fr/</loc><lastmod>2026-10-26</lastmod></url>
|
||||
</urlset>
|
||||
Reference in new issue
Block a user