Fix accessibility and mobile issues, add SEO meta tags
- Fixed HTML structure error (extra closing div in cv.html) - Updated all dates from 2025 to 2026 - Added rel="noopener noreferrer" to external LinkedIn links - Added Open Graph and Twitter Card meta tags for all pages - Added Schema.org structured data (Person) for SEO - Removed emoji badges for better accessibility - Optimized Google Fonts loading - Added mobile hamburger menu with ARIA labels - Improved touch targets (44px minimum) - Added prefers-reduced-motion support - Enhanced keyboard navigation and focus states 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+285
-13
@@ -4,10 +4,26 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Projets de Roman Felden - Homelab, Android, Minecraft modding">
|
||||
<meta name="theme-color" content="#4f46e5">
|
||||
|
||||
<!-- Open Graph / Facebook -->
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://lanro.eu/projets.html">
|
||||
<meta property="og:title" content="Projets - Roman Felden">
|
||||
<meta property="og:description" content="Découvrez les projets de Roman Felden : Homelab Proxmox, Boidelo Android, Custom Ore Gen Minecraft mod, GeoRealmCraft serveur.">
|
||||
<meta property="og:image" content="https://lanro.eu/og-image.jpg">
|
||||
|
||||
<!-- Twitter -->
|
||||
<meta property="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:url" content="https://lanro.eu/projets.html">
|
||||
<meta property="twitter:title" content="Projets - Roman Felden">
|
||||
<meta property="twitter:description" content="Découvrez les projets de Roman Felden : Homelab Proxmox, Boidelo Android, Custom Ore Gen Minecraft mod, GeoRealmCraft serveur.">
|
||||
<meta property="twitter:image" content="https://lanro.eu/og-image.jpg">
|
||||
|
||||
<title>Projets - Roman Felden</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
*,
|
||||
*::before,
|
||||
@@ -70,6 +86,7 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
@@ -80,6 +97,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
z-index: 1002;
|
||||
}
|
||||
|
||||
.navbar-brand span {
|
||||
@@ -89,6 +107,76 @@
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.navbar-brand:focus-visible,
|
||||
.navbar-menu a:focus-visible {
|
||||
outline: 3px solid var(--color-primary);
|
||||
outline-offset: 2px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Hamburger Menu Button */
|
||||
.navbar-toggle {
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0.75rem;
|
||||
margin: -0.75rem;
|
||||
z-index: 1002;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.navbar-toggle:hover {
|
||||
background: var(--color-bg-alt);
|
||||
}
|
||||
|
||||
.navbar-toggle:focus-visible {
|
||||
outline: 3px solid var(--color-primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.hamburger {
|
||||
display: block;
|
||||
width: 24px;
|
||||
height: 2px;
|
||||
background: var(--color-text);
|
||||
position: relative;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.hamburger::before,
|
||||
.hamburger::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 24px;
|
||||
height: 2px;
|
||||
background: var(--color-text);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.hamburger::before {
|
||||
top: -8px;
|
||||
}
|
||||
|
||||
.hamburger::after {
|
||||
bottom: -8px;
|
||||
}
|
||||
|
||||
.navbar-toggle.active .hamburger {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.navbar-toggle.active .hamburger::before {
|
||||
top: 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.navbar-toggle.active .hamburger::after {
|
||||
bottom: 0;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
.navbar-menu {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
@@ -99,9 +187,14 @@
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
padding: 0.5rem 1rem;
|
||||
padding: 0.75rem 1.25rem;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: all 0.3s ease;
|
||||
min-height: 44px;
|
||||
min-width: 44px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.navbar-menu a:hover,
|
||||
@@ -311,13 +404,64 @@
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.navbar {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.navbar-toggle {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.navbar-menu {
|
||||
gap: 1rem;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: -100%;
|
||||
width: 80%;
|
||||
max-width: 300px;
|
||||
height: 100vh;
|
||||
background: var(--color-bg);
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
padding: 6rem 2rem 2rem;
|
||||
box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
|
||||
transition: right 0.3s ease;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.navbar-menu.active {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.navbar-menu li {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.navbar-menu a {
|
||||
padding: 0.5rem;
|
||||
font-size: 0.9rem;
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
border-radius: var(--radius-md);
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
/* Overlay when menu is open */
|
||||
.navbar-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
.navbar-overlay.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Prevent body scroll when menu is open */
|
||||
body.menu-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
@@ -333,28 +477,86 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.project-icon {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.project-title h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.project-badges {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.feature-item {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
margin: 0 auto 0.5rem;
|
||||
}
|
||||
|
||||
.tech-stack {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* Respect prefers-reduced-motion */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* Small screens (very small phones) */
|
||||
@media (max-width: 380px) {
|
||||
.navbar-menu {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
.project-section {
|
||||
padding: 1.5rem 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar">
|
||||
<nav class="navbar" role="navigation" aria-label="Navigation principale">
|
||||
<div class="navbar-container">
|
||||
<a href="index.html" class="navbar-brand">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<a href="index.html" class="navbar-brand" aria-label="Retour à l'accueil - Roman Felden">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/>
|
||||
</svg>
|
||||
<span>RF</span>
|
||||
</a>
|
||||
<ul class="navbar-menu">
|
||||
<li><a href="index.html">Accueil</a></li>
|
||||
<li><a href="cv.html">CV</a></li>
|
||||
<li><a href="projets.html" class="active">Projets</a></li>
|
||||
<button class="navbar-toggle" aria-label="Ouvrir le menu de navigation" aria-expanded="false" aria-controls="primary-menu">
|
||||
<span class="hamburger"></span>
|
||||
</button>
|
||||
<ul class="navbar-menu" id="primary-menu" role="menubar">
|
||||
<li role="none"><a href="index.html" role="menuitem">Accueil</a></li>
|
||||
<li role="none"><a href="cv.html" role="menuitem">CV</a></li>
|
||||
<li role="none"><a href="projets.html" role="menuitem" class="active" aria-current="page">Projets</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="navbar-overlay" aria-hidden="true"></div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
@@ -698,11 +900,81 @@
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>© 2025 Roman Felden · Fait avec <span class="footer-heart">❤</span> à Grenoble, France</p>
|
||||
<p>© 2026 Roman Felden · Fait avec <span class="footer-heart">❤</span> à Grenoble, France</p>
|
||||
<p style="margin-top: 0.5rem; font-size: 0.9rem; opacity: 0.8;">
|
||||
<a href="index.html" style="color: white; text-decoration: none; opacity: 0.8;">Retour à l'accueil</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// Mobile menu toggle functionality
|
||||
(function() {
|
||||
const toggle = document.querySelector('.navbar-toggle');
|
||||
const menu = document.querySelector('.navbar-menu');
|
||||
const overlay = document.querySelector('.navbar-overlay');
|
||||
const body = document.body;
|
||||
|
||||
if (!toggle || !menu) return;
|
||||
|
||||
function toggleMenu() {
|
||||
const isOpen = toggle.classList.contains('active');
|
||||
toggle.classList.toggle('active');
|
||||
menu.classList.toggle('active');
|
||||
overlay.classList.toggle('active');
|
||||
body.classList.toggle('menu-open');
|
||||
toggle.setAttribute('aria-expanded', !isOpen);
|
||||
toggle.setAttribute('aria-label', isOpen ? 'Ouvrir le menu de navigation' : 'Fermer le menu de navigation');
|
||||
|
||||
// Trap focus in menu when open
|
||||
if (!isOpen) {
|
||||
const menuLinks = menu.querySelectorAll('a');
|
||||
if (menuLinks.length > 0) {
|
||||
menuLinks[0].focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function closeMenu() {
|
||||
if (toggle.classList.contains('active')) {
|
||||
toggleMenu();
|
||||
}
|
||||
}
|
||||
|
||||
toggle.addEventListener('click', toggleMenu);
|
||||
overlay.addEventListener('click', closeMenu);
|
||||
|
||||
// Close menu when clicking a link
|
||||
const menuLinks = menu.querySelectorAll('a');
|
||||
menuLinks.forEach(link => {
|
||||
link.addEventListener('click', closeMenu);
|
||||
});
|
||||
|
||||
// Close menu on Escape key
|
||||
document.addEventListener('keydown', function(e) {
|
||||
if (e.key === 'Escape' && toggle.classList.contains('active')) {
|
||||
closeMenu();
|
||||
toggle.focus();
|
||||
}
|
||||
});
|
||||
|
||||
// Handle tab trapping in menu
|
||||
menu.addEventListener('keydown', function(e) {
|
||||
if (e.key === 'Tab' && toggle.classList.contains('active')) {
|
||||
const focusableElements = menu.querySelectorAll('a');
|
||||
const firstElement = focusableElements[0];
|
||||
const lastElement = focusableElements[focusableElements.length - 1];
|
||||
|
||||
if (e.shiftKey && document.activeElement === firstElement) {
|
||||
e.preventDefault();
|
||||
lastElement.focus();
|
||||
} else if (!e.shiftKey && document.activeElement === lastElement) {
|
||||
e.preventDefault();
|
||||
firstElement.focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user