File size: 6,395 Bytes
94bdbfa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Poki-Style Game Hub</title>
<style>
/* Animated Background */
body {
font-family: Arial, sans-serif;
background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #533483);
background-size: 400% 400%;
animation: bgAnimation 8s infinite alternate ease-in-out;
color: white;
margin: 0;
padding: 0;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
transition: background 0.5s ease;
}
@keyframes bgAnimation {
0% { background-position: 0% 50%; }
100% { background-position: 100% 50%; }
}
/* Game Selection Grid */
.game-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 20px;
width: 90%;
max-width: 600px;
margin-top: 20px;
}
/* Game Cards */
.game-card {
background: rgba(255, 255, 255, 0.1);
padding: 15px;
border-radius: 12px;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
backdrop-filter: blur(5px);
border: 2px solid transparent;
position: relative;
}
.game-card:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.1) rotate(-2deg);
box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.6);
border-color: white;
}
.game-card:active {
transform: scale(0.95);
}
.game-card img {
width: 100px;
height: 100px;
border-radius: 12px;
transition: transform 0.3s ease;
}
.game-card:hover img {
transform: scale(1.1);
}
.game-card p {
margin: 8px 0 0;
font-size: 18px;
font-weight: bold;
}
/* Game Frame */
#game-frame {
width: 100%;
height: 90vh;
border: none;
display: none;
opacity: 0;
transition: opacity 0.5s ease-in-out;
}
/* Full Screen View */
.full-view {
width: 100%;
height: 100vh;
}
/* Back Button */
.back-btn {
display: none;
position: absolute;
top: 15px;
left: 15px;
background: rgba(255, 255, 255, 0.8);
color: black;
border: none;
padding: 12px 18px;
border-radius: 8px;
font-size: 18px;
cursor: pointer;
transition: all 0.3s ease-in-out;
opacity: 0;
}
.back-btn.show {
opacity: 1;
display: block;
animation: pulse 1.5s infinite alternate;
}
.back-btn:hover {
background: white;
transform: scale(1.1);
}
@keyframes pulse {
0% { transform: scale(1); }
100% { transform: scale(1.05); }
}
/* Mobile Optimized */
@media (max-width: 600px) {
.game-grid {
grid-template-columns: repeat(2, 1fr);
}
.game-card img {
width: 80px;
height: 80px;
}
}
</style>
</head>
<body>
<h1>🎮 Poki-Style Game Hub</h1>
<!-- Game Selection Grid -->
<div id="game-grid" class="game-grid">
<div class="game-card" onclick="openGame('media-pipe-pong.html')">
<img src="game1.png" alt="Game 1">
<p>MediaPipe Pong</p>
</div>
<div class="game-card" onclick="openGame('gt.html')">
<img src="game2.png" alt="Game 2">
<p>Hong Game</p>
</div>
<div class="game-card" onclick="openGame('media-pipe-pong.html')">
<img src="game3.png" alt="Game 3">
<p>PONG</p>
</div>
<div class="game-card" onclick="openGame('profile.html')">
<img src="profile.png" alt="Profile">
<p>Profile</p>
</div>
<div class="game-card" onclick="openGame('mk.html')">
<img src="game5.png" alt="Game 5">
<p>MK</p>
</div>
<div class="game-card" onclick="openGame('mk2.html')">
<img src="game6.png" alt="Game 6">
<p>MK2</p>
</div>
</div>
<!-- Game Iframe -->
<iframe id="game-frame"></iframe>
<!-- Back Button -->
<button class="back-btn" onclick="goBack()">🔙 Back</button>
<script>
function openGame(gameUrl) {
document.getElementById("game-grid").style.display = "none"; // Hide game menu
document.getElementById("game-frame").src = gameUrl;
document.getElementById("game-frame").classList.add("full-view"); // Fullscreen view
document.getElementById("game-frame").style.display = "block";
setTimeout(() => document.getElementById("game-frame").style.opacity = "1", 100); // Smooth fade-in
document.querySelector(".back-btn").classList.add("show"); // Show back button
}
function goBack() {
document.getElementById("game-grid").style.display = "grid"; // Show game menu
document.getElementById("game-frame").classList.remove("full-view");
document.getElementById("game-frame").style.opacity = "0";
setTimeout(() => document.getElementById("game-frame").style.display = "none", 500);
document.querySelector(".back-btn").classList.remove("show"); // Hide back button
}
</script>
</body>
</html>
|