jour-ok / index.html
mach9243's picture
Modifie ce site pour qu'il recherche le jour de la semaine actuel - Initial Deployment
0eb7b2d verified
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quel jour sommes-nous ?</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.floating-icon {
animation: float 3s ease-in-out infinite;
}
.day-card {
transition: all 0.3s ease;
}
.day-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.theme-toggle {
transition: all 0.3s ease;
}
body.dark {
background-color: #1a202c;
color: #e2e8f0;
}
body.dark .day-card {
background-color: #2d3748;
color: #e2e8f0;
}
body.dark .bg-indigo-100 {
background-color: #2d3748;
}
</style>
</head>
<body class="bg-indigo-100 min-h-screen font-sans antialiased">
<div class="container mx-auto px-4 py-8">
<!-- Header -->
<header class="flex justify-between items-center mb-12">
<h1 class="text-3xl md:text-4xl font-bold text-indigo-700 dark:text-indigo-300">
<i class="far fa-calendar-alt mr-2"></i> Quel jour sommes-nous ?
</h1>
<button id="themeToggle" class="theme-toggle p-2 rounded-full">
<i class="fas fa-moon"></i>
</button>
</header>
<!-- Jour actuel -->
<div class="text-center mt-16">
<h2 class="text-xl mb-4 dark:text-gray-300">Aujourd'hui nous sommes :</h2>
<div id="currentDay" class="text-6xl font-bold text-indigo-600 dark:text-indigo-300 mb-4"></div>
<div id="currentDate" class="text-xl text-gray-600 dark:text-gray-400"></div>
</div>
</div>
<script>
const days = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'];
const months = [
'janvier', 'février', 'mars', 'avril', 'mai', 'juin',
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'
];
function updateDate() {
const now = new Date();
document.getElementById('currentDay').textContent = days[now.getDay()];
document.getElementById('currentDate').textContent =
`${now.getDate()} ${months[now.getMonth()]} ${now.getFullYear()}`;
}
updateDate();
// Thème sombre/clair
const themeToggle = document.getElementById('themeToggle');
themeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark');
themeToggle.querySelector('i').classList.toggle('fa-moon');
themeToggle.querySelector('i').classList.toggle('fa-sun');
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=mach9243/jour-ok" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>