建立一个h5 游戏发布的门户网站 - Follow Up Deployment
Browse files- index.html +85 -234
index.html
CHANGED
|
@@ -3,260 +3,111 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<style>
|
| 9 |
-
.
|
| 10 |
-
|
| 11 |
}
|
| 12 |
|
| 13 |
-
.
|
| 14 |
-
|
| 15 |
-
width: 200px;
|
| 16 |
-
height: 200px;
|
| 17 |
-
transform-style: preserve-3d;
|
| 18 |
-
animation: rotate 10s infinite linear;
|
| 19 |
-
transform: rotateX(20deg) rotateY(20deg);
|
| 20 |
}
|
| 21 |
|
| 22 |
-
.
|
| 23 |
-
|
| 24 |
-
width: 100%;
|
| 25 |
-
height: 100%;
|
| 26 |
-
background-color: #ff0000;
|
| 27 |
-
border: 2px solid #990000;
|
| 28 |
-
box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
|
| 29 |
}
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
clip-path: polygon(
|
| 34 |
-
50% 0%,
|
| 35 |
-
61% 35%,
|
| 36 |
-
98% 35%,
|
| 37 |
-
68% 57%,
|
| 38 |
-
79% 91%,
|
| 39 |
-
50% 70%,
|
| 40 |
-
21% 91%,
|
| 41 |
-
32% 57%,
|
| 42 |
-
2% 35%,
|
| 43 |
-
39% 35%
|
| 44 |
-
);
|
| 45 |
-
transform: translateZ(100px);
|
| 46 |
-
}
|
| 47 |
-
|
| 48 |
-
/* Back pyramid */
|
| 49 |
-
.star-face:nth-child(2) {
|
| 50 |
-
clip-path: polygon(
|
| 51 |
-
50% 100%,
|
| 52 |
-
61% 65%,
|
| 53 |
-
98% 65%,
|
| 54 |
-
68% 43%,
|
| 55 |
-
79% 9%,
|
| 56 |
-
50% 30%,
|
| 57 |
-
21% 9%,
|
| 58 |
-
32% 43%,
|
| 59 |
-
2% 65%,
|
| 60 |
-
39% 65%
|
| 61 |
-
);
|
| 62 |
-
transform: translateZ(-100px) rotateY(180deg);
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
/* Side pyramids */
|
| 66 |
-
.star-face:nth-child(3) {
|
| 67 |
-
clip-path: polygon(
|
| 68 |
-
50% 0%,
|
| 69 |
-
61% 35%,
|
| 70 |
-
98% 35%,
|
| 71 |
-
68% 57%,
|
| 72 |
-
79% 91%,
|
| 73 |
-
50% 70%,
|
| 74 |
-
21% 91%,
|
| 75 |
-
32% 57%,
|
| 76 |
-
2% 35%,
|
| 77 |
-
39% 35%
|
| 78 |
-
);
|
| 79 |
-
transform: rotateY(90deg) translateZ(100px);
|
| 80 |
-
}
|
| 81 |
-
|
| 82 |
-
.star-face:nth-child(4) {
|
| 83 |
-
clip-path: polygon(
|
| 84 |
-
50% 0%,
|
| 85 |
-
61% 35%,
|
| 86 |
-
98% 35%,
|
| 87 |
-
68% 57%,
|
| 88 |
-
79% 91%,
|
| 89 |
-
50% 70%,
|
| 90 |
-
21% 91%,
|
| 91 |
-
32% 57%,
|
| 92 |
-
2% 35%,
|
| 93 |
-
39% 35%
|
| 94 |
-
);
|
| 95 |
-
transform: rotateY(-90deg) translateZ(100px);
|
| 96 |
-
}
|
| 97 |
-
|
| 98 |
-
.star-face:nth-child(5) {
|
| 99 |
-
clip-path: polygon(
|
| 100 |
-
50% 0%,
|
| 101 |
-
61% 35%,
|
| 102 |
-
98% 35%,
|
| 103 |
-
68% 57%,
|
| 104 |
-
79% 91%,
|
| 105 |
-
50% 70%,
|
| 106 |
-
21% 91%,
|
| 107 |
-
32% 57%,
|
| 108 |
-
2% 35%,
|
| 109 |
-
39% 35%
|
| 110 |
-
);
|
| 111 |
-
transform: rotateX(90deg) translateZ(100px);
|
| 112 |
-
}
|
| 113 |
-
|
| 114 |
-
.star-face:nth-child(6) {
|
| 115 |
-
clip-path: polygon(
|
| 116 |
-
50% 0%,
|
| 117 |
-
61% 35%,
|
| 118 |
-
98% 35%,
|
| 119 |
-
68% 57%,
|
| 120 |
-
79% 91%,
|
| 121 |
-
50% 70%,
|
| 122 |
-
21% 91%,
|
| 123 |
-
32% 57%,
|
| 124 |
-
2% 35%,
|
| 125 |
-
39% 35%
|
| 126 |
-
);
|
| 127 |
-
transform: rotateX(-90deg) translateZ(100px);
|
| 128 |
-
}
|
| 129 |
-
|
| 130 |
-
@keyframes rotate {
|
| 131 |
-
0% {
|
| 132 |
-
transform: rotateX(0deg) rotateY(0deg);
|
| 133 |
-
}
|
| 134 |
-
100% {
|
| 135 |
-
transform: rotateX(360deg) rotateY(360deg);
|
| 136 |
-
}
|
| 137 |
-
}
|
| 138 |
-
|
| 139 |
-
.glow {
|
| 140 |
-
position: absolute;
|
| 141 |
-
width: 300px;
|
| 142 |
-
height: 300px;
|
| 143 |
-
background: radial-gradient(circle, rgba(255,0,0,0.8) 0%, rgba(255,0,0,0) 70%);
|
| 144 |
-
border-radius: 50%;
|
| 145 |
-
filter: blur(20px);
|
| 146 |
-
z-index: -1;
|
| 147 |
-
animation: pulse 2s infinite alternate;
|
| 148 |
-
}
|
| 149 |
-
|
| 150 |
-
@keyframes pulse {
|
| 151 |
-
0% {
|
| 152 |
-
transform: scale(0.8);
|
| 153 |
-
opacity: 0.7;
|
| 154 |
-
}
|
| 155 |
-
100% {
|
| 156 |
-
transform: scale(1.1);
|
| 157 |
-
opacity: 0.9;
|
| 158 |
-
}
|
| 159 |
-
}
|
| 160 |
-
|
| 161 |
-
.particle {
|
| 162 |
-
position: absolute;
|
| 163 |
-
background-color: rgba(255, 255, 255, 0.8);
|
| 164 |
-
border-radius: 50%;
|
| 165 |
-
pointer-events: none;
|
| 166 |
}
|
| 167 |
</style>
|
| 168 |
</head>
|
| 169 |
<body class="bg-gray-900 min-h-screen flex flex-col items-center justify-center overflow-hidden">
|
| 170 |
<div class="text-center mb-8">
|
| 171 |
-
<h1 class="text-4xl md:text-6xl font-bold text-white mb-4"
|
| 172 |
-
<p class="text-xl text-
|
| 173 |
</div>
|
| 174 |
-
|
| 175 |
-
<div class="
|
| 176 |
-
<div class="
|
| 177 |
-
|
| 178 |
-
<div class="
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
</div>
|
| 185 |
-
</div>
|
| 186 |
-
|
| 187 |
-
<div class="mt-12 text-center max-w-2xl px-4">
|
| 188 |
-
<p class="text-white text-lg mb-6">
|
| 189 |
-
The five-pointed red star is a symbol of unity and revolution. Each point represents one of the five groups that were to unite under socialism: the youth, the military, the workers, the peasants, and the intellectuals.
|
| 190 |
-
</p>
|
| 191 |
-
<button id="celebrateBtn" class="bg-red-600 hover:bg-red-700 text-white font-bold py-3 px-6 rounded-full transition-all transform hover:scale-105 shadow-lg">
|
| 192 |
-
Celebrate the Star
|
| 193 |
-
</button>
|
| 194 |
</div>
|
| 195 |
|
| 196 |
<script>
|
| 197 |
-
//
|
| 198 |
-
document.
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
const star = document.querySelector('.star');
|
| 203 |
-
star.style.animation = 'none';
|
| 204 |
-
star.style.transform = 'scale(1.5)';
|
| 205 |
-
setTimeout(() => {
|
| 206 |
-
star.style.animation = 'rotate 10s infinite linear';
|
| 207 |
-
star.style.transform = '';
|
| 208 |
-
}, 1000);
|
| 209 |
-
});
|
| 210 |
-
|
| 211 |
-
function createParticles() {
|
| 212 |
-
const container = document.querySelector('.star-container');
|
| 213 |
-
const colors = ['#ff0000', '#ffffff', '#ffcc00', '#ff6600'];
|
| 214 |
-
|
| 215 |
-
for (let i = 0; i < 50; i++) {
|
| 216 |
-
const particle = document.createElement('div');
|
| 217 |
-
particle.classList.add('particle');
|
| 218 |
|
| 219 |
-
//
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
particle.style.top = `50%`;
|
| 230 |
-
|
| 231 |
-
container.appendChild(particle);
|
| 232 |
-
|
| 233 |
-
// Animate particle
|
| 234 |
-
const animation = particle.animate([
|
| 235 |
-
{
|
| 236 |
-
transform: `translate(0, 0) scale(1)`,
|
| 237 |
-
opacity: 1
|
| 238 |
-
},
|
| 239 |
-
{
|
| 240 |
-
transform: `translate(${posX}px, ${posY}px) scale(0)`,
|
| 241 |
-
opacity: 0
|
| 242 |
-
}
|
| 243 |
-
], {
|
| 244 |
-
duration: Math.random() * 1000 + 1000,
|
| 245 |
-
easing: 'cubic-bezier(0.4, 0, 0.2, 1)'
|
| 246 |
-
});
|
| 247 |
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
// Create occasional random particles
|
| 255 |
-
setInterval(() => {
|
| 256 |
-
if (Math.random() > 0.7) {
|
| 257 |
-
createParticles();
|
| 258 |
-
}
|
| 259 |
-
}, 3000);
|
| 260 |
</script>
|
| 261 |
<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=taowei/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 262 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Game Portal - HTML5 Games</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<style>
|
| 9 |
+
.game-card {
|
| 10 |
+
transition: all 0.3s ease;
|
| 11 |
}
|
| 12 |
|
| 13 |
+
.game-card:hover {
|
| 14 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
+
.category-tag {
|
| 18 |
+
transition: all 0.2s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
+
.category-tag:hover {
|
| 22 |
+
transform: translateY(-2px);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
</style>
|
| 25 |
</head>
|
| 26 |
<body class="bg-gray-900 min-h-screen flex flex-col items-center justify-center overflow-hidden">
|
| 27 |
<div class="text-center mb-8">
|
| 28 |
+
<h1 class="text-4xl md:text-6xl font-bold text-white mb-4">HTML5 Game Portal</h1>
|
| 29 |
+
<p class="text-xl text-blue-300">Play the best free games in your browser</p>
|
| 30 |
</div>
|
| 31 |
+
|
| 32 |
+
<div class="w-full max-w-6xl px-4">
|
| 33 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 34 |
+
<!-- Game Card 1 -->
|
| 35 |
+
<div class="bg-gray-800 rounded-lg overflow-hidden shadow-lg transition-transform hover:scale-105">
|
| 36 |
+
<img src="https://via.placeholder.com/400x250" alt="Space Adventure" class="w-full h-48 object-cover">
|
| 37 |
+
<div class="p-4">
|
| 38 |
+
<h3 class="text-xl font-bold text-white mb-2">Space Adventure</h3>
|
| 39 |
+
<p class="text-gray-300 mb-4">Navigate through asteroid fields and collect power-ups!</p>
|
| 40 |
+
<button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded w-full">
|
| 41 |
+
Play Now
|
| 42 |
+
</button>
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
<!-- Game Card 2 -->
|
| 47 |
+
<div class="bg-gray-800 rounded-lg overflow-hidden shadow-lg transition-transform hover:scale-105">
|
| 48 |
+
<img src="https://via.placeholder.com/400x250" alt="Puzzle Quest" class="w-full h-48 object-cover">
|
| 49 |
+
<div class="p-4">
|
| 50 |
+
<h3 class="text-xl font-bold text-white mb-2">Puzzle Quest</h3>
|
| 51 |
+
<p class="text-gray-300 mb-4">Solve challenging puzzles to advance through levels.</p>
|
| 52 |
+
<button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded w-full">
|
| 53 |
+
Play Now
|
| 54 |
+
</button>
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
|
| 58 |
+
<!-- Game Card 3 -->
|
| 59 |
+
<div class="bg-gray-800 rounded-lg overflow-hidden shadow-lg transition-transform hover:scale-105">
|
| 60 |
+
<img src="https://via.placeholder.com/400x250" alt="Racing Legends" class="w-full h-48 object-cover">
|
| 61 |
+
<div class="p-4">
|
| 62 |
+
<h3 class="text-xl font-bold text-white mb-2">Racing Legends</h3>
|
| 63 |
+
<p class="text-gray-300 mb-4">Compete against AI in high-speed races.</p>
|
| 64 |
+
<button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded w-full">
|
| 65 |
+
Play Now
|
| 66 |
+
</button>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
|
| 71 |
+
<div class="mt-12 bg-gray-800 rounded-lg p-6">
|
| 72 |
+
<h2 class="text-2xl font-bold text-white mb-4">About Our Portal</h2>
|
| 73 |
+
<p class="text-gray-300 mb-4">
|
| 74 |
+
We host the best HTML5 games that work directly in your browser with no downloads required.
|
| 75 |
+
All games are free to play and mobile-friendly.
|
| 76 |
+
</p>
|
| 77 |
+
<div class="flex flex-wrap gap-4">
|
| 78 |
+
<span class="bg-blue-600 text-white px-3 py-1 rounded-full text-sm">Action</span>
|
| 79 |
+
<span class="bg-green-600 text-white px-3 py-1 rounded-full text-sm">Adventure</span>
|
| 80 |
+
<span class="bg-purple-600 text-white px-3 py-1 rounded-full text-sm">Puzzle</span>
|
| 81 |
+
<span class="bg-yellow-600 text-white px-3 py-1 rounded-full text-sm">Racing</span>
|
| 82 |
+
<span class="bg-red-600 text-white px-3 py-1 rounded-full text-sm">Sports</span>
|
| 83 |
+
</div>
|
| 84 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
</div>
|
| 86 |
|
| 87 |
<script>
|
| 88 |
+
// Game card click handlers
|
| 89 |
+
document.querySelectorAll('.game-card button').forEach(button => {
|
| 90 |
+
button.addEventListener('click', function() {
|
| 91 |
+
const gameTitle = this.closest('.game-card').querySelector('h3').textContent;
|
| 92 |
+
alert(`Launching ${gameTitle}... (This would load the actual game)`);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
+
// In a real implementation, this would load the game iframe or redirect
|
| 95 |
+
// window.location.href = `/games/${gameTitle.toLowerCase().replace(' ', '-')}`;
|
| 96 |
+
});
|
| 97 |
+
});
|
| 98 |
+
|
| 99 |
+
// Filter games by category (placeholder functionality)
|
| 100 |
+
document.querySelectorAll('.category-tag').forEach(tag => {
|
| 101 |
+
tag.addEventListener('click', function() {
|
| 102 |
+
const category = this.textContent;
|
| 103 |
+
alert(`Filtering by ${category} games...`);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
+
// In a real implementation, this would filter the game cards
|
| 106 |
+
// document.querySelectorAll('.game-card').forEach(card => {
|
| 107 |
+
// card.style.display = card.dataset.category.includes(category) ? 'block' : 'none';
|
| 108 |
+
// });
|
| 109 |
+
});
|
| 110 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
</script>
|
| 112 |
<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=taowei/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 113 |
</html>
|