zt-pause / index.html
Taallion's picture
Add 3 files
0c31fb5 verified
Raw History Blame Contribute Delete
23.4 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ZenTech Pause - Votre pause bien-être numérique</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 breatheIn {
0%, 100% { transform: scale(1); opacity: 0.8; }
50% { transform: scale(1.1); opacity: 1; }
}
@keyframes breatheText {
0%, 100% { content: "Inspirez..."; }
50% { content: "Expirez..."; }
}
.breathe-animation {
animation: breatheIn 8s infinite ease-in-out;
}
.breathe-text::after {
content: "Inspirez...";
animation: breatheText 8s infinite;
}
.bubble {
position: absolute;
border-radius: 50%;
cursor: pointer;
transition: transform 0.2s;
}
.bubble:hover {
transform: scale(1.1);
}
.sound-btn.active {
background-color: #4ade80;
color: white;
}
.section {
min-height: 100vh;
scroll-margin-top: 80px;
}
.nav-link {
position: relative;
}
.nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: #4ade80;
transition: width 0.3s;
}
.nav-link:hover::after {
width: 100%;
}
</style>
</head>
<body class="font-sans bg-white text-gray-800">
<!-- Navigation -->
<nav class="fixed w-full bg-white shadow-sm z-50">
<div class="max-w-6xl mx-auto px-4">
<div class="flex justify-between items-center h-20">
<div class="flex items-center space-x-2">
<i class="fas fa-spa text-2xl text-green-500"></i>
<span class="text-xl font-semibold">ZenTech Pause</span>
</div>
<div class="hidden md:flex space-x-8">
<a href="#home" class="nav-link px-3 py-2">Accueil</a>
<a href="#pauses" class="nav-link px-3 py-2">Pauses</a>
<a href="#game" class="nav-link px-3 py-2">Mini-jeu</a>
<a href="#tips" class="nav-link px-3 py-2">Astuces</a>
</div>
<button class="md:hidden p-2" id="mobile-menu-button">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
<!-- Mobile menu -->
<div class="md:hidden hidden bg-white shadow-lg" id="mobile-menu">
<div class="px-2 pt-2 pb-3 space-y-1">
<a href="#home" class="block px-3 py-2 rounded-md hover:bg-gray-100">Accueil</a>
<a href="#pauses" class="block px-3 py-2 rounded-md hover:bg-gray-100">Pauses</a>
<a href="#game" class="block px-3 py-2 rounded-md hover:bg-gray-100">Mini-jeu</a>
<a href="#tips" class="block px-3 py-2 rounded-md hover:bg-gray-100">Astuces</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="section pt-20 flex items-center justify-center bg-gradient-to-b from-white to-blue-50">
<div class="max-w-4xl mx-auto px-4 text-center">
<div class="mb-8 breathe-animation inline-block">
<i class="fas fa-spa text-6xl text-green-500"></i>
</div>
<h1 class="text-4xl md:text-5xl font-bold mb-6">Faites une vraie pause.</h1>
<p class="text-xl mb-8 text-gray-600">Prenez un moment pour vous détendre et recharger vos batteries.</p>
<div class="text-2xl font-medium text-green-600 breathe-text mb-12"></div>
<div class="flex justify-center space-x-4">
<a href="#pauses" class="px-6 py-3 bg-green-500 text-white rounded-full hover:bg-green-600 transition duration-300">
Essayer une pause
</a>
<a href="#game" class="px-6 py-3 border border-green-500 text-green-500 rounded-full hover:bg-green-50 transition duration-300">
Jouer
</a>
</div>
</div>
</section>
<!-- Pause Options Section -->
<section id="pauses" class="section py-20 bg-white">
<div class="max-w-6xl mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Choisissez votre pause</h2>
<div class="grid md:grid-cols-3 gap-8">
<!-- Sound Pauses -->
<div class="bg-blue-50 rounded-xl p-6 shadow-sm">
<div class="text-center mb-6">
<i class="fas fa-music text-4xl text-blue-500 mb-4"></i>
<h3 class="text-xl font-semibold mb-2">Sons relaxants</h3>
<p class="text-gray-600">Écoutez des sons apaisants pour vous détendre.</p>
</div>
<div class="space-y-3">
<button class="sound-btn w-full flex items-center justify-between px-4 py-3 bg-white rounded-lg border border-gray-200 hover:border-blue-300 transition" data-sound="tibetan">
<span>Bol tibétain</span>
<i class="fas fa-play"></i>
</button>
<button class="sound-btn w-full flex items-center justify-between px-4 py-3 bg-white rounded-lg border border-gray-200 hover:border-blue-300 transition" data-sound="waves">
<span>Bruits de vagues</span>
<i class="fas fa-play"></i>
</button>
<button class="sound-btn w-full flex items-center justify-between px-4 py-3 bg-white rounded-lg border border-gray-200 hover:border-blue-300 transition" data-sound="wind">
<span>Bruit de vent</span>
<i class="fas fa-play"></i>
</button>
</div>
<audio id="tibetan-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-singing-bowl-1683.mp3"></audio>
<audio id="waves-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-waves-on-a-rocky-shore-1186.mp3"></audio>
<audio id="wind-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-wind-in-the-trees-1185.mp3"></audio>
</div>
<!-- Quick Stretches -->
<div class="bg-green-50 rounded-xl p-6 shadow-sm">
<div class="text-center mb-6">
<i class="fas fa-child text-4xl text-green-500 mb-4"></i>
<h3 class="text-xl font-semibold mb-2">Étirements rapides</h3>
<p class="text-gray-600">Exercices simples pour détendre votre corps.</p>
</div>
<div class="space-y-4">
<div class="bg-white p-4 rounded-lg border border-gray-200">
<h4 class="font-medium mb-2">Nuque et épaules</h4>
<p class="text-sm text-gray-600">Inclinez doucement la tête de chaque côté pendant 5 secondes.</p>
</div>
<div class="bg-white p-4 rounded-lg border border-gray-200">
<h4 class="font-medium mb-2">Poignets</h4>
<p class="text-sm text-gray-600">Faites des rotations douces des poignets dans les deux sens.</p>
</div>
<div class="bg-white p-4 rounded-lg border border-gray-200">
<h4 class="font-medium mb-2">Dos</h4>
<p class="text-sm text-gray-600">Joignez les mains devant vous et étirez-vous vers l'avant.</p>
</div>
</div>
</div>
<!-- Breathing Exercise -->
<div class="bg-purple-50 rounded-xl p-6 shadow-sm">
<div class="text-center mb-6">
<i class="fas fa-wind text-4xl text-purple-500 mb-4"></i>
<h3 class="text-xl font-semibold mb-2">Respiration guidée</h3>
<p class="text-gray-600">Technique simple pour réduire le stress.</p>
</div>
<div class="text-center">
<div class="inline-block mb-6">
<div class="w-32 h-32 rounded-full bg-white border-4 border-purple-300 flex items-center justify-center breathe-animation">
<span class="text-lg font-medium" id="breath-text">Inspirez...</span>
</div>
</div>
<p class="text-gray-600 mb-4">Suivez l'animation pour une respiration équilibrée.</p>
<button id="start-breathing" class="px-4 py-2 bg-purple-500 text-white rounded-full hover:bg-purple-600 transition">
Commencer
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Bubble Game Section -->
<section id="game" class="section py-20 bg-blue-50">
<div class="max-w-6xl mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-6">Bubbles Burst</h2>
<p class="text-center text-gray-600 mb-12">Cliquez sur les bulles pour les faire éclater et vous détendre.</p>
<div class="relative bg-white rounded-xl shadow-sm overflow-hidden h-96 mb-8" id="game-container">
<div class="absolute top-4 right-4 bg-green-500 text-white px-4 py-2 rounded-full shadow-lg">
Bulles éclatées: <span id="bubble-count">0</span>
</div>
</div>
<div class="text-center">
<button id="start-game" class="px-6 py-3 bg-green-500 text-white rounded-full hover:bg-green-600 transition">
Commencer le jeu
</button>
<button id="reset-game" class="ml-4 px-6 py-3 border border-green-500 text-green-500 rounded-full hover:bg-green-50 transition">
Réinitialiser
</button>
</div>
</div>
</section>
<!-- Tech Tips Section -->
<section id="tips" class="section py-20 bg-white">
<div class="max-w-6xl mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Astuces pour assistants techniques</h2>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="bg-gray-50 p-6 rounded-xl border border-gray-200">
<div class="flex items-center mb-4">
<div class="bg-blue-100 p-3 rounded-full mr-4">
<i class="fas fa-keyboard text-blue-500"></i>
</div>
<h3 class="text-lg font-semibold">Raccourcis clavier</h3>
</div>
<ul class="space-y-2 text-gray-600">
<li><span class="font-mono bg-gray-200 px-2 py-1 rounded">Win + L</span> - Verrouiller l'ordinateur</li>
<li><span class="font-mono bg-gray-200 px-2 py-1 rounded">Alt + Tab</span> - Basculer entre les fenêtres</li>
<li><span class="font-mono bg-gray-200 px-2 py-1 rounded">Ctrl + Shift + Esc</span> - Gestionnaire des tâches</li>
</ul>
</div>
<div class="bg-gray-50 p-6 rounded-xl border border-gray-200">
<div class="flex items-center mb-4">
<div class="bg-green-100 p-3 rounded-full mr-4">
<i class="fas fa-tools text-green-500"></i>
</div>
<h3 class="text-lg font-semibold">Outils utiles</h3>
</div>
<ul class="space-y-2 text-gray-600">
<li><span class="font-medium">Everything</span> - Recherche ultra-rapide de fichiers</li>
<li><span class="font-medium">Notepad++</span> - Éditeur de texte avancé</li>
<li><span class="font-medium">Greenshot</span> - Capture d'écran avec annotations</li>
</ul>
</div>
<div class="bg-gray-50 p-6 rounded-xl border border-gray-200">
<div class="flex items-center mb-4">
<div class="bg-purple-100 p-3 rounded-full mr-4">
<i class="fas fa-heartbeat text-purple-500"></i>
</div>
<h3 class="text-lg font-semibold">Bien-être au travail</h3>
</div>
<ul class="space-y-2 text-gray-600">
<li>Faites une pause de 5 minutes toutes les heures</li>
<li>Hydratez-vous régulièrement</li>
<li>Ajustez votre écran à la hauteur des yeux</li>
<li>Utilisez la règle 20-20-20 (20 secondes toutes les 20 minutes)</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-50 py-12">
<div class="max-w-6xl mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-6 md:mb-0">
<div class="flex items-center space-x-2">
<i class="fas fa-spa text-2xl text-green-500"></i>
<span class="text-xl font-semibold">ZenTech Pause</span>
</div>
<p class="text-gray-500 mt-2">Votre pause bien-être numérique</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-500 hover:text-green-500 transition">
<i class="fab fa-twitter text-xl"></i>
</a>
<a href="#" class="text-gray-500 hover:text-green-500 transition">
<i class="fab fa-linkedin text-xl"></i>
</a>
<a href="#" class="text-gray-500 hover:text-green-500 transition">
<i class="fab fa-github text-xl"></i>
</a>
</div>
</div>
<div class="border-t border-gray-200 mt-8 pt-8 text-center text-gray-500">
<p>© 2023 ZenTech Pause. Un projet de <a href="https://techassistlab.com" class="text-green-500 hover:underline">TechAssist Lab</a>.</p>
</div>
</div>
</footer>
<script>
// Mobile menu toggle
document.getElementById('mobile-menu-button').addEventListener('click', function() {
const menu = document.getElementById('mobile-menu');
menu.classList.toggle('hidden');
});
// Smooth scrolling for navigation links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
// Close mobile menu if open
document.getElementById('mobile-menu').classList.add('hidden');
});
});
// Sound buttons functionality
document.querySelectorAll('.sound-btn').forEach(button => {
button.addEventListener('click', function() {
const soundType = this.getAttribute('data-sound');
const audio = document.getElementById(`${soundType}-sound`);
// Stop all other sounds
document.querySelectorAll('audio').forEach(a => {
if (a !== audio) {
a.pause();
a.currentTime = 0;
}
});
// Reset all buttons
document.querySelectorAll('.sound-btn').forEach(btn => {
btn.classList.remove('active');
btn.querySelector('i').className = 'fas fa-play';
});
if (audio.paused) {
audio.play();
this.classList.add('active');
this.querySelector('i').className = 'fas fa-pause';
} else {
audio.pause();
audio.currentTime = 0;
this.classList.remove('active');
this.querySelector('i').className = 'fas fa-play';
}
});
});
// Breathing exercise
let breathInterval;
document.getElementById('start-breathing').addEventListener('click', function() {
const button = this;
const breathText = document.getElementById('breath-text');
if (button.textContent === 'Commencer') {
button.textContent = 'Arrêter';
button.classList.remove('bg-purple-500', 'hover:bg-purple-600');
button.classList.add('bg-red-500', 'hover:bg-red-600');
let isInhale = true;
breathText.textContent = 'Inspirez...';
breathInterval = setInterval(() => {
isInhale = !isInhale;
breathText.textContent = isInhale ? 'Inspirez...' : 'Expirez...';
}, 4000);
} else {
button.textContent = 'Commencer';
button.classList.remove('bg-red-500', 'hover:bg-red-600');
button.classList.add('bg-purple-500', 'hover:bg-purple-600');
clearInterval(breathInterval);
breathText.textContent = 'Prêt';
}
});
// Bubble game
let gameInterval;
let bubbleCount = 0;
const gameContainer = document.getElementById('game-container');
const bubbleCountDisplay = document.getElementById('bubble-count');
document.getElementById('start-game').addEventListener('click', function() {
if (gameInterval) clearInterval(gameInterval);
bubbleCount = 0;
bubbleCountDisplay.textContent = '0';
gameContainer.innerHTML = '<div class="absolute top-4 right-4 bg-green-500 text-white px-4 py-2 rounded-full shadow-lg">Bulles éclatées: <span id="bubble-count">0</span></div>';
gameInterval = setInterval(createBubble, 800);
this.textContent = 'Jeu en cours...';
this.disabled = true;
document.getElementById('reset-game').classList.remove('hidden');
});
document.getElementById('reset-game').addEventListener('click', function() {
clearInterval(gameInterval);
gameContainer.innerHTML = '<div class="absolute top-4 right-4 bg-green-500 text-white px-4 py-2 rounded-full shadow-lg">Bulles éclatées: <span id="bubble-count">0</span></div>';
document.getElementById('start-game').textContent = 'Commencer le jeu';
document.getElementById('start-game').disabled = false;
});
function createBubble() {
const bubble = document.createElement('div');
bubble.className = 'bubble';
// Random properties
const size = Math.random() * 60 + 30;
const colors = ['bg-blue-300', 'bg-green-300', 'bg-purple-300', 'bg-yellow-300', 'bg-pink-300'];
const color = colors[Math.floor(Math.random() * colors.length)];
bubble.classList.add(color);
bubble.style.width = `${size}px`;
bubble.style.height = `${size}px`;
// Random position within container
const containerRect = gameContainer.getBoundingClientRect();
const maxX = containerRect.width - size;
const maxY = containerRect.height - size;
const x = Math.random() * maxX;
const y = Math.random() * maxY;
bubble.style.left = `${x}px`;
bubble.style.top = `${y}px`;
// Click event
bubble.addEventListener('click', function() {
this.remove();
bubbleCount++;
bubbleCountDisplay.textContent = bubbleCount;
// Create pop effect
const pop = document.createElement('div');
pop.className = 'absolute rounded-full bg-white bg-opacity-70';
pop.style.width = `${size}px`;
pop.style.height = `${size}px`;
pop.style.left = `${x}px`;
pop.style.top = `${y}px`;
pop.style.transform = 'scale(0)';
pop.style.transition = 'transform 0.3s, opacity 0.3s';
gameContainer.appendChild(pop);
setTimeout(() => {
pop.style.transform = 'scale(1.5)';
pop.style.opacity = '0';
}, 10);
setTimeout(() => {
pop.remove();
}, 300);
});
gameContainer.appendChild(bubble);
// Remove bubble after some time if not clicked
setTimeout(() => {
if (bubble.parentNode === gameContainer) {
bubble.style.opacity = '0';
bubble.style.transition = 'opacity 0.5s';
setTimeout(() => {
bubble.remove();
}, 500);
}
}, 5000);
}
</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=Taallion/zt-pause" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>