pixel-quest / index.html
Daxime's picture
remplace les images par des images en lien avec les jeux vidéo. Réduit l'intencité du scanline - Follow Up Deployment
4b65bac verified
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PixelQuest - Le Monde Fantastique</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>
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');
:root {
--neon-pink: #ff2a6d;
--neon-blue: #05d9e8;
--neon-purple: #d300c5;
--dark-bg: #0d0221;
}
body {
font-family: 'VT323', monospace;
background-color: var(--dark-bg);
color: white;
background-image: url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
background-size: cover;
background-attachment: fixed;
background-position: center;
margin: 0;
padding: 0;
position: relative;
}
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(13, 2, 33, 0.85);
z-index: -1;
}
.pixel-border {
border-image: repeating-linear-gradient(45deg, var(--neon-pink), var(--neon-blue) 10px) 10;
border-width: 4px;
border-style: solid;
}
.pixel-text {
font-family: 'Press Start 2P', cursive;
text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple);
}
.neon-text {
text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple);
}
.glow-box {
box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-purple);
}
.pixel-btn {
position: relative;
overflow: hidden;
transition: all 0.3s;
}
.pixel-btn:hover {
transform: translateY(-2px);
box-shadow: 0 0 15px var(--neon-blue);
}
.pixel-btn:active {
transform: translateY(1px);
}
.pixel-btn::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: 0.5s;
}
.pixel-btn:hover::before {
left: 100%;
}
.news-item {
transition: all 0.3s;
}
.news-item:hover {
transform: translateY(-5px);
box-shadow: 0 0 15px var(--neon-pink);
}
.mobile-menu {
transform: translateX(-100%);
transition: transform 0.3s ease-in-out;
}
.mobile-menu.open {
transform: translateX(0);
}
@keyframes scanline {
0% { background-position: 0 0; }
100% { background-position: 0 100vh; }
}
.scanlines {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
to bottom,
transparent 50%,
rgba(0, 0, 0, 0.2) 51%
);
background-size: 100% 4px;
pointer-events: none;
z-index: 1000;
animation: scanline 6s linear infinite;
}
.pixel-divider {
height: 4px;
background: repeating-linear-gradient(to right, var(--neon-pink), var(--neon-blue) 10px);
}
.pixel-corners {
position: relative;
}
.pixel-corners::before, .pixel-corners::after {
content: "";
position: absolute;
width: 10px;
height: 10px;
border: 2px solid var(--neon-blue);
}
.pixel-corners::before {
top: -2px;
left: -2px;
border-right: none;
border-bottom: none;
}
.pixel-corners::after {
bottom: -2px;
right: -2px;
border-left: none;
border-top: none;
}
</style>
</head>
<body>
<div class="scanlines"></div>
<!-- Mobile Menu Button -->
<div class="lg:hidden fixed top-4 left-4 z-50">
<button id="mobileMenuBtn" class="pixel-btn bg-purple-900 text-white p-3 rounded-md glow-box">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
<!-- Mobile Menu -->
<div id="mobileMenu" class="mobile-menu fixed top-0 left-0 h-full w-64 bg-gray-900 bg-opacity-95 z-40 overflow-y-auto p-4">
<div class="flex justify-between items-center mb-8">
<h2 class="text-2xl pixel-text text-purple-400">MENU</h2>
<button id="closeMobileMenu" class="pixel-btn bg-red-900 text-white p-2 rounded-md">
<i class="fas fa-times"></i>
</button>
</div>
<nav class="space-y-4">
<a href="#" class="block pixel-btn bg-blue-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-home mr-2"></i> Accueil
</a>
<a href="#" class="block pixel-btn bg-purple-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-newspaper mr-2"></i> News
</a>
<a href="#" class="block pixel-btn bg-green-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-book mr-2"></i> Histoire
</a>
<a href="#" class="block pixel-btn bg-yellow-700 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-info-circle mr-2"></i> Wiki
</a>
<a href="#" class="block pixel-btn bg-red-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-comments mr-2"></i> Forum
</a>
<a href="#" class="block pixel-btn bg-indigo-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-question-circle mr-2"></i> F.A.Q.
</a>
<a href="#" class="block pixel-btn bg-pink-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-user-circle mr-2"></i> À propos
</a>
</nav>
<div class="mt-8 text-center">
<div class="pixel-divider my-4"></div>
<p class="text-sm text-gray-400">PixelQuest © 2023</p>
</div>
</div>
<div class="min-h-screen flex">
<!-- Sidebar (Desktop) -->
<div class="hidden lg:block w-64 bg-gray-900 bg-opacity-90 p-6">
<div class="flex flex-col items-center mb-8">
<h1 class="text-3xl pixel-text text-purple-400 mb-2">PixelQuest</h1>
<p class="text-green-400 text-sm">Le Monde Fantastique</p>
</div>
<nav class="space-y-4">
<a href="#" class="block pixel-btn bg-blue-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-home mr-2"></i> Accueil
</a>
<a href="#" class="block pixel-btn bg-purple-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-newspaper mr-2"></i> News
</a>
<a href="#" class="block pixel-btn bg-green-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-book mr-2"></i> Histoire
</a>
<a href="#" class="block pixel-btn bg-yellow-700 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-info-circle mr-2"></i> Wiki
</a>
<a href="#" class="block pixel-btn bg-red-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-comments mr-2"></i> Forum
</a>
<a href="#" class="block pixel-btn bg-indigo-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-question-circle mr-2"></i> F.A.Q.
</a>
<a href="#" class="block pixel-btn bg-pink-900 text-white p-3 rounded-md text-center neon-text">
<i class="fas fa-user-circle mr-2"></i> À propos
</a>
</nav>
<div class="mt-8">
<div class="pixel-divider my-4"></div>
<div class="text-center">
<h3 class="text-lg pixel-text text-blue-400 mb-2">Statistiques</h3>
<div class="bg-gray-800 bg-opacity-50 p-3 rounded-md">
<p class="text-sm text-yellow-400">Joueurs en ligne: <span class="text-white">1,247</span></p>
<p class="text-sm text-yellow-400">Nouveaux aujourd'hui: <span class="text-white">84</span></p>
</div>
</div>
</div>
<div class="mt-8 text-center">
<div class="pixel-divider my-4"></div>
<p class="text-sm text-gray-400">PixelQuest © 2023</p>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 p-4 lg:p-8">
<div class="max-w-6xl mx-auto">
<!-- Header -->
<header class="mb-8 lg:hidden">
<div class="flex justify-center">
<h1 class="text-4xl pixel-text text-purple-400 text-center">PixelQuest</h1>
</div>
<p class="text-green-400 text-center text-sm">Le Monde Fantastique</p>
</header>
<!-- News Section -->
<section class="mb-12">
<h2 class="text-2xl pixel-text text-blue-400 mb-6 flex items-center">
<i class="fas fa-newspaper mr-3"></i> Dernières News
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- News Item 1 -->
<div class="news-item bg-gray-800 bg-opacity-70 rounded-lg overflow-hidden pixel-border glow-box">
<div class="relative h-48 overflow-hidden">
<img src="https://images.unsplash.com/photo-1542751375-ad40-93abe000dfd9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
alt="Nouveau donjon"
class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black to-transparent p-4">
<span class="text-xs bg-red-900 text-white px-2 py-1 rounded">Nouveau</span>
</div>
</div>
<div class="p-4">
<h3 class="text-xl text-white mb-2">Le Donjon des Ombres</h3>
<p class="text-gray-300 mb-4">Un nouveau donjon vient d'être découvert au nord des Montagnes Brumeuses. Préparez-vous à affronter des créatures jamais vues auparavant!</p>
<div class="flex justify-between items-center text-sm">
<span class="text-yellow-400"><i class="fas fa-calendar-alt mr-1"></i> 12/10/2023</span>
<a href="#" class="text-blue-400 hover:text-blue-300">Lire la suite →</a>
</div>
</div>
</div>
<!-- News Item 2 -->
<div class="news-item bg-gray-800 bg-opacity-70 rounded-lg overflow-hidden pixel-border glow-box">
<div class="relative h-48 overflow-hidden">
<img src="https://images.unsplash.com/photo-1518709766631-a6a7f45921c3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
alt="Mise à jour"
class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black to-transparent p-4">
<span class="text-xs bg-blue-900 text-white px-2 py-1 rounded">Mise à jour</span>
</div>
</div>
<div class="p-4">
<h3 class="text-xl text-white mb-2">Patch 2.4.1</h3>
<p class="text-gray-300 mb-4">La dernière mise à jour apporte des corrections de bugs et des améliorations d'équilibrage pour les classes de mage et de guerrier.</p>
<div class="flex justify-between items-center text-sm">
<span class="text-yellow-400"><i class="fas fa-calendar-alt mr-1"></i> 08/10/2023</span>
<a href="#" class="text-blue-400 hover:text-blue-300">Lire la suite →</a>
</div>
</div>
</div>
</div>
</section>
<!-- Devlog Section -->
<section class="mb-12">
<h2 class="text-2xl pixel-text text-purple-400 mb-6 flex items-center">
<i class="fas fa-code mr-3"></i> Derniers Devlogs
</h2>
<div class="grid grid-cols-1 gap-6">
<!-- Devlog Item 1 -->
<div class="news-item bg-gray-800 bg-opacity-70 rounded-lg overflow-hidden pixel-border glow-box">
<div class="md:flex">
<div class="md:w-1/3 h-48 md:h-auto">
<img src="https://images.unsplash.com/photo-1589254065874-42d6fdd782a9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
alt="Nouveau système"
class="w-full h-full object-cover">
</div>
<div class="p-6 md:w-2/3">
<h3 class="text-xl text-white mb-2">Nouveau système de craft</h3>
<p class="text-gray-300 mb-4">Nous travaillons actuellement sur un tout nouveau système de craft qui permettra aux joueurs de créer des objets uniques avec des combinaisons de matériaux inédites. Le système introduira également des recettes secrètes à découvrir dans le monde.</p>
<div class="flex justify-between items-center text-sm">
<span class="text-yellow-400"><i class="fas fa-calendar-alt mr-1"></i> 05/10/2023</span>
<div>
<span class="bg-green-900 text-white px-2 py-1 rounded text-xs mr-2">En développement</span>
<a href="#" class="text-blue-400 hover:text-blue-300">Lire la suite →</a>
</div>
</div>
</div>
</div>
</div>
<!-- Devlog Item 2 -->
<div class="news-item bg-gray-800 bg-opacity-70 rounded-lg overflow-hidden pixel-border glow-box">
<div class="md:flex">
<div class="md:w-1/3 h-48 md:h-auto">
<img src="https://images.unsplash.com/photo-1511512578047-dfb367046420?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80"
alt="Nouvelle zone"
class="w-full h-full object-cover">
</div>
<div class="p-6 md:w-2/3">
<h3 class="text-xl text-white mb-2">Concept art: Les Îles Flottantes</h3>
<p class="text-gray-300 mb-4">Voici un premier aperçu de notre prochaine grande zone: les Îles Flottantes. Cette région mystérieuse abritera une nouvelle faction et des quêtes uniques liées à la magie ancienne des cieux.</p>
<div class="flex justify-between items-center text-sm">
<span class="text-yellow-400"><i class="fas fa-calendar-alt mr-1"></i> 28/09/2023</span>
<div>
<span class="bg-blue-900 text-white px-2 py-1 rounded text-xs mr-2">Concept</span>
<a href="#" class="text-blue-400 hover:text-blue-300">Lire la suite →</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Events Section -->
<section>
<h2 class="text-2xl pixel-text text-green-400 mb-6 flex items-center">
<i class="fas fa-calendar-star mr-3"></i> Événements à venir
</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Event 1 -->
<div class="news-item bg-gray-800 bg-opacity-70 rounded-lg overflow-hidden pixel-border glow-box">
<div class="p-4">
<div class="flex items-center mb-3">
<div class="bg-red-900 text-white p-2 rounded-md mr-3 text-center" style="min-width: 50px;">
<div class="text-xl font-bold">15</div>
<div class="text-xs">OCT</div>
</div>
<h3 class="text-lg text-white">Tournoi PvP</h3>
</div>
<p class="text-gray-300 mb-4">Le grand tournoi annuel de combat joueur contre joueur commence bientôt! Inscrivez-vous dès maintenant pour tenter de remporter des récompenses exclusives.</p>
<a href="#" class="text-blue-400 hover:text-blue-300 text-sm">Plus d'infos →</a>
</div>
</div>
<!-- Event 2 -->
<div class="news-item bg-gray-800 bg-opacity-70 rounded-lg overflow-hidden pixel-border glow-box">
<div class="p-4">
<div class="flex items-center mb-3">
<div class="bg-purple-900 text-white p-2 rounded-md mr-3 text-center" style="min-width: 50px;">
<div class="text-xl font-bold">21</div>
<div class="text-xs">OCT</div>
</div>
<h3 class="text-lg text-white">Nuit des Sorciers</h3>
</div>
<p class="text-gray-300 mb-4">Un événement spécial Halloween avec des quêtes uniques, des monstres effrayants et des récompenses thématiques. Disponible pendant une semaine!</p>
<a href="#" class="text-blue-400 hover:text-blue-300 text-sm">Plus d'infos →</a>
</div>
</div>
<!-- Event 3 -->
<div class="news-item bg-gray-800 bg-opacity-70 rounded-lg overflow-hidden pixel-border glow-box">
<div class="p-4">
<div class="flex items-center mb-3">
<div class="bg-yellow-700 text-white p-2 rounded-md mr-3 text-center" style="min-width: 50px;">
<div class="text-xl font-bold">03</div>
<div class="text-xs">NOV</div>
</div>
<h3 class="text-lg text-white">Anniversaire</h3>
</div>
<p class="text-gray-300 mb-4">Célébrez le 3ème anniversaire de PixelQuest avec nous! Des cadeaux pour tous les joueurs et des activités spéciales toute la journée.</p>
<a href="#" class="text-blue-400 hover:text-blue-300 text-sm">Plus d'infos →</a>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="mt-12 pt-6 border-t border-gray-700">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<h3 class="text-lg pixel-text text-purple-400">PixelQuest</h3>
<p class="text-gray-400 text-sm">Le Monde Fantastique © 2023</p>
</div>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-blue-400"><i class="fab fa-twitter text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-purple-400"><i class="fab fa-discord text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-red-400"><i class="fab fa-youtube text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitch text-xl"></i></a>
</div>
</div>
</footer>
</div>
</div>
</div>
<script>
// Mobile menu functionality
const mobileMenuBtn = document.getElementById('mobileMenuBtn');
const closeMobileMenu = document.getElementById('closeMobileMenu');
const mobileMenu = document.getElementById('mobileMenu');
mobileMenuBtn.addEventListener('click', () => {
mobileMenu.classList.add('open');
});
closeMobileMenu.addEventListener('click', () => {
mobileMenu.classList.remove('open');
});
// Close menu when clicking outside
document.addEventListener('click', (e) => {
if (!mobileMenu.contains(e.target) && e.target !== mobileMenuBtn) {
mobileMenu.classList.remove('open');
}
});
// Add pixel art effect to some elements
document.addEventListener('DOMContentLoaded', () => {
const titles = document.querySelectorAll('.pixel-text');
titles.forEach(title => {
title.innerHTML = title.textContent.split('').map(char =>
`<span style="display: inline-block; transform: translate(0, ${Math.random() * 2 - 1}px);">${char}</span>`
).join('');
});
// Add scanline effect to news items on hover
const newsItems = document.querySelectorAll('.news-item');
newsItems.forEach(item => {
item.addEventListener('mouseenter', () => {
const scanline = document.createElement('div');
scanline.className = 'absolute inset-0 bg-repeat-y bg-scroll opacity-10 pointer-events-none';
scanline.style.backgroundImage = 'linear-gradient(to bottom, transparent 50%, #fff 51%)';
scanline.style.backgroundSize = '100% 4px';
scanline.style.animation = 'scanline 0.5s linear infinite';
item.appendChild(scanline);
setTimeout(() => {
scanline.style.opacity = '0';
setTimeout(() => {
if (item.contains(scanline)) {
item.removeChild(scanline);
}
}, 300);
}, 300);
});
});
});
</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=Daxime/pixel-quest" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>