*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 100%; height: 100%; overflow: hidden; } body { font-family: ‘Jost’, sans-serif; background: #000; } .hero { position: fixed; inset: 0; background-image: url(‘https://tarrade.com/wp-content/uploads/sites/6/2024/01/IMG_1054-2-scaled.jpeg’); background-size: cover; background-position: center; background-repeat: no-repeat; } .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.38); pointer-events: none; } nav { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; align-items: center; gap: 36px; padding: 28px 80px; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); z-index: 10; } nav a { color: #fff; text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: .5px; white-space: nowrap; transition: color .2s; } nav a:hover { color: #b8911a; } .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; } .center p.eyebrow { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 16px; } .center h1 { font-family: ‘Playfair Display’, serif; font-size: clamp(48px, 8vw, 88px); font-weight: 700; color: #fff; line-height: 1; text-align: center; } .center h1 em { color: #b8911a; font-style: italic; } .center p.tagline { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.5); margin-top: 20px; letter-spacing: 4px; text-transform: uppercase; } .weather { position: absolute; bottom: 48px; left: 80px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 16px 24px; display: flex; align-items: center; gap: 20px; z-index: 10; } .weather-icon { font-size: 36px; line-height: 1; } .weather-info p { margin: 0; } .weather-info .city { font-size: 11px; font-weight: 600; color: #b8911a; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; } .weather-info .temp { font-family: ‘Playfair Display’, serif; font-size: 30px; font-weight: 700; color: #fff; line-height: 1; } .weather-info .desc { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; text-transform: capitalize; } .weather-details { border-left: 1px solid rgba(255,255,255,.2); padding-left: 20px; font-size: 12px; color: rgba(255,255,255,.6); line-height: 2.2; } .weather-details strong { color: #fff; } .site-footer, .site-header, footer, header.site-header { display: none !important; } @media (max-width: 640px) { nav { gap: 20px; padding: 20px 24px; } nav a { font-size: 14px; } .weather { left: 24px; bottom: 24px; } .weather-details { display: none; } }

Personal website

Tarrade x4

A Picard’s Adventure

Monchy-Humières

–°C

chargement…

var icons = {’01d’:’☀️’,’01n’:’🌙’,’02d’:’⛅’,’02n’:’⛅’,’03d’:’☁️’,’03n’:’☁️’,’04d’:’☁️’,’04n’:’☁️’,’09d’:’🌧️’,’09n’:’🌧️’,’10d’:’🌦️’,’10n’:’🌦️’,’11d’:’⛈️’,’11n’:’⛈️’,’13d’:’❄️’,’13n’:’❄️’,’50d’:’🌫️’,’50n’:’🌫️’}; fetch(‘https://api.openweathermap.org/data/2.5/weather?lat=49.457&lon=2.712&units=metric&lang=fr&appid=4f45db597412babba1a9eebe4220e2c2’) .then(function(r){ return r.json(); }) .then(function(d){ document.getElementById(‘w-icon’).textContent = icons[d.weather[0].icon] || ‘🌤️’; document.getElementById(‘w-temp’).textContent = Math.round(d.main.temp) + ‘°C’; document.getElementById(‘w-desc’).textContent = d.weather[0].description; document.getElementById(‘w-details’).innerHTML = ‘Ressenti ‘ + Math.round(d.main.feels_like) + ‘°C
Humidité ‘ + d.main.humidity + ‘%
Vent ‘ + Math.round(d.wind.speed * 3.6) + ‘ km/h‘; }) .catch(function(){ document.getElementById(‘w-icon’).textContent = ‘—’; document.getElementById(‘w-desc’).textContent = ‘indisponible’; });