vreau sa fie exact ca un site de gievaway cand apesi pe joc giveaway sa iti dea popup si sa ai optiuni de subscriben to youtbe +10 points, to twitter, steam, instagram, facebook, tiktok, etc
Browse files- index.html +22 -8
- winners.html +249 -0
index.html
CHANGED
|
@@ -834,14 +834,13 @@
|
|
| 834 |
<p>Giveaways</p>
|
| 835 |
</div>
|
| 836 |
</a>
|
| 837 |
-
|
| 838 |
<div class="nav-links">
|
| 839 |
<a href="#" class="nav-link active" data-page="home">๐ฎ Giveaways</a>
|
| 840 |
<a href="#" class="nav-link" data-page="my-entries">๐ My Entries</a>
|
| 841 |
<a href="#" class="nav-link" data-page="winners">๐ Winners</a>
|
|
|
|
| 842 |
</div>
|
| 843 |
-
|
| 844 |
-
<div class="nav-actions">
|
| 845 |
<button class="btn-nav btn-secondary" id="btnUserMenu">
|
| 846 |
<span>๐ค</span>
|
| 847 |
<span id="userName">Login</span>
|
|
@@ -952,7 +951,19 @@
|
|
| 952 |
</div>
|
| 953 |
</main>
|
| 954 |
|
| 955 |
-
<!-- MODAL -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 956 |
<div class="modal" id="giveawayModal">
|
| 957 |
<div class="modal-content">
|
| 958 |
<div class="modal-header">
|
|
@@ -1209,17 +1220,20 @@
|
|
| 1209 |
setupEventListeners();
|
| 1210 |
checkAuth();
|
| 1211 |
});
|
| 1212 |
-
|
| 1213 |
-
function initApp() {
|
| 1214 |
// Check if user is logged in
|
| 1215 |
const savedUser = localStorage.getItem('retroplay_user');
|
| 1216 |
if (savedUser) {
|
| 1217 |
currentUser = JSON.parse(savedUser);
|
| 1218 |
updateUserUI();
|
| 1219 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1220 |
}
|
| 1221 |
-
|
| 1222 |
-
function checkAuth() {
|
| 1223 |
if (currentUser) {
|
| 1224 |
document.getElementById('userName').textContent = currentUser.name;
|
| 1225 |
}
|
|
|
|
| 834 |
<p>Giveaways</p>
|
| 835 |
</div>
|
| 836 |
</a>
|
|
|
|
| 837 |
<div class="nav-links">
|
| 838 |
<a href="#" class="nav-link active" data-page="home">๐ฎ Giveaways</a>
|
| 839 |
<a href="#" class="nav-link" data-page="my-entries">๐ My Entries</a>
|
| 840 |
<a href="#" class="nav-link" data-page="winners">๐ Winners</a>
|
| 841 |
+
<a href="#" class="nav-link" data-page="leaderboard">๐
Leaderboard</a>
|
| 842 |
</div>
|
| 843 |
+
<div class="nav-actions">
|
|
|
|
| 844 |
<button class="btn-nav btn-secondary" id="btnUserMenu">
|
| 845 |
<span>๐ค</span>
|
| 846 |
<span id="userName">Login</span>
|
|
|
|
| 951 |
</div>
|
| 952 |
</main>
|
| 953 |
|
| 954 |
+
<!-- WINNERS MODAL -->
|
| 955 |
+
<div class="modal" id="winnersModal">
|
| 956 |
+
<div class="modal-content">
|
| 957 |
+
<div class="modal-header">
|
| 958 |
+
<h3>๐ Winners Announcement</h3>
|
| 959 |
+
<button class="modal-close" id="winnersModalClose">โ</button>
|
| 960 |
+
</div>
|
| 961 |
+
<div class="modal-body" id="winnersModalBody">
|
| 962 |
+
<!-- Winners content will be injected here -->
|
| 963 |
+
</div>
|
| 964 |
+
</div>
|
| 965 |
+
</div>
|
| 966 |
+
<!-- MODAL -->
|
| 967 |
<div class="modal" id="giveawayModal">
|
| 968 |
<div class="modal-content">
|
| 969 |
<div class="modal-header">
|
|
|
|
| 1220 |
setupEventListeners();
|
| 1221 |
checkAuth();
|
| 1222 |
});
|
| 1223 |
+
function initApp() {
|
|
|
|
| 1224 |
// Check if user is logged in
|
| 1225 |
const savedUser = localStorage.getItem('retroplay_user');
|
| 1226 |
if (savedUser) {
|
| 1227 |
currentUser = JSON.parse(savedUser);
|
| 1228 |
updateUserUI();
|
| 1229 |
}
|
| 1230 |
+
|
| 1231 |
+
// Add confetti effect to winners page
|
| 1232 |
+
if (window.location.hash === '#winners') {
|
| 1233 |
+
showWinnersPage();
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>RetroPlay Giveaways - Winners</title>
|
| 7 |
+
<style>
|
| 8 |
+
/* Add these to your existing styles */
|
| 9 |
+
.winner-card {
|
| 10 |
+
background: linear-gradient(135deg, #111827, #1a2332);
|
| 11 |
+
border-radius: var(--radius-lg);
|
| 12 |
+
padding: 1.5rem;
|
| 13 |
+
margin-bottom: 1.5rem;
|
| 14 |
+
border-left: 4px solid var(--accent-primary);
|
| 15 |
+
box-shadow: var(--shadow-md);
|
| 16 |
+
transition: all var(--transition);
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.winner-card:hover {
|
| 20 |
+
transform: translateY(-5px);
|
| 21 |
+
box-shadow: var(--shadow-lg);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.winner-header {
|
| 25 |
+
display: flex;
|
| 26 |
+
align-items: center;
|
| 27 |
+
gap: 1rem;
|
| 28 |
+
margin-bottom: 1rem;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.winner-avatar {
|
| 32 |
+
width: 60px;
|
| 33 |
+
height: 60px;
|
| 34 |
+
border-radius: 50%;
|
| 35 |
+
object-fit: cover;
|
| 36 |
+
border: 3px solid var(--accent-primary);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.winner-info h4 {
|
| 40 |
+
font-size: 1.25rem;
|
| 41 |
+
margin-bottom: 0.25rem;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.winner-info p {
|
| 45 |
+
color: var(--text-secondary);
|
| 46 |
+
font-size: 0.9rem;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.winner-game {
|
| 50 |
+
display: flex;
|
| 51 |
+
align-items: center;
|
| 52 |
+
gap: 1rem;
|
| 53 |
+
padding: 1rem;
|
| 54 |
+
background: rgba(255,255,255,0.05);
|
| 55 |
+
border-radius: var(--radius-md);
|
| 56 |
+
margin-top: 1rem;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.winner-game img {
|
| 60 |
+
width: 80px;
|
| 61 |
+
height: 45px;
|
| 62 |
+
border-radius: var(--radius-sm);
|
| 63 |
+
object-fit: cover;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.winner-game-info h5 {
|
| 67 |
+
font-size: 1rem;
|
| 68 |
+
margin-bottom: 0.25rem;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
.winner-game-info small {
|
| 72 |
+
color: var(--text-muted);
|
| 73 |
+
font-size: 0.8rem;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
.confetti {
|
| 77 |
+
position: fixed;
|
| 78 |
+
width: 10px;
|
| 79 |
+
height: 10px;
|
| 80 |
+
background: var(--accent-primary);
|
| 81 |
+
opacity: 0;
|
| 82 |
+
animation: confetti-fall 5s linear forwards;
|
| 83 |
+
z-index: 1000;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
@keyframes confetti-fall {
|
| 87 |
+
0% {
|
| 88 |
+
transform: translateY(-100vh) rotate(0deg);
|
| 89 |
+
opacity: 1;
|
| 90 |
+
}
|
| 91 |
+
100% {
|
| 92 |
+
transform: translateY(100vh) rotate(360deg);
|
| 93 |
+
opacity: 0;
|
| 94 |
+
}
|
| 95 |
+
}
|
| 96 |
+
</style>
|
| 97 |
+
</head>
|
| 98 |
+
<body>
|
| 99 |
+
<nav class="navbar">
|
| 100 |
+
<div class="nav-container">
|
| 101 |
+
<a href="index.html" class="nav-logo">
|
| 102 |
+
<img src="https://linktree.retroplay.ro/images/logo-square.png" alt="RetroPlay">
|
| 103 |
+
<div class="nav-logo-text">
|
| 104 |
+
<h1>RetroPlay</h1>
|
| 105 |
+
<p>Winners</p>
|
| 106 |
+
</div>
|
| 107 |
+
</a>
|
| 108 |
+
|
| 109 |
+
<div class="nav-links">
|
| 110 |
+
<a href="index.html" class="nav-link" data-page="home">๐ฎ Giveaways</a>
|
| 111 |
+
<a href="#" class="nav-link" data-page="my-entries">๐ My Entries</a>
|
| 112 |
+
<a href="#" class="nav-link active" data-page="winners">๐ Winners</a>
|
| 113 |
+
<a href="#" class="nav-link" data-page="leaderboard">๐
Leaderboard</a>
|
| 114 |
+
</div>
|
| 115 |
+
|
| 116 |
+
<div class="nav-actions">
|
| 117 |
+
<button class="btn-nav btn-secondary" id="btnUserMenu">
|
| 118 |
+
<span>๐ค</span>
|
| 119 |
+
<span id="userName">Login</span>
|
| 120 |
+
</button>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
</nav>
|
| 124 |
+
|
| 125 |
+
<main class="container">
|
| 126 |
+
<section class="hero">
|
| 127 |
+
<div class="hero-content">
|
| 128 |
+
<h2>๐ Recent Winners</h2>
|
| 129 |
+
<p>Celebrate our latest giveaway champions and get inspired to join the next one!</p>
|
| 130 |
+
</div>
|
| 131 |
+
</section>
|
| 132 |
+
|
| 133 |
+
<div id="winnersContainer">
|
| 134 |
+
<!-- Winners will be loaded here -->
|
| 135 |
+
</div>
|
| 136 |
+
</main>
|
| 137 |
+
|
| 138 |
+
<script>
|
| 139 |
+
// Winner data
|
| 140 |
+
const winnersData = [
|
| 141 |
+
{
|
| 142 |
+
id: 1,
|
| 143 |
+
name: "GamerPro123",
|
| 144 |
+
avatar: "http://static.photos/gaming/200x200/1",
|
| 145 |
+
country: "Romania",
|
| 146 |
+
game: "Cyberpunk 2077",
|
| 147 |
+
gameImage: "https://images.unsplash.com/photo-1542751371-adc38448a05e?w=800&q=80",
|
| 148 |
+
platform: "Steam",
|
| 149 |
+
date: "2023-05-15",
|
| 150 |
+
points: 450
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
id: 2,
|
| 154 |
+
name: "PixelHunter",
|
| 155 |
+
avatar: "http://static.photos/gaming/200x200/2",
|
| 156 |
+
country: "USA",
|
| 157 |
+
game: "Starfield",
|
| 158 |
+
gameImage: "https://images.unsplash.com/photo-1614732414444-096e5f1122d5?w=800&q=80",
|
| 159 |
+
platform: "Xbox",
|
| 160 |
+
date: "2023-05-10",
|
| 161 |
+
points: 380
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
id: 3,
|
| 165 |
+
name: "IndieQueen",
|
| 166 |
+
avatar: "http://static.photos/gaming/200x200/3",
|
| 167 |
+
country: "Germany",
|
| 168 |
+
game: "Hades II",
|
| 169 |
+
gameImage: "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&q=80",
|
| 170 |
+
platform: "Epic",
|
| 171 |
+
date: "2023-05-05",
|
| 172 |
+
points: 520
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
id: 4,
|
| 176 |
+
name: "RetroLover",
|
| 177 |
+
avatar: "http://static.photos/gaming/200x200/4",
|
| 178 |
+
country: "France",
|
| 179 |
+
game: "Baldur's Gate 3",
|
| 180 |
+
gameImage: "https://images.unsplash.com/photo-1551103782-8ab07afd45c1?w=800&q=80",
|
| 181 |
+
platform: "Steam",
|
| 182 |
+
date: "2023-04-28",
|
| 183 |
+
points: 600
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
id: 5,
|
| 187 |
+
name: "SpeedRunner99",
|
| 188 |
+
avatar: "http://static.photos/gaming/200x200/5",
|
| 189 |
+
country: "UK",
|
| 190 |
+
game: "Elden Ring",
|
| 191 |
+
gameImage: "https://images.unsplash.com/photo-1538481199705-c710c4e965fc?w=800&q=80",
|
| 192 |
+
platform: "Steam",
|
| 193 |
+
date: "2023-04-20",
|
| 194 |
+
points: 420
|
| 195 |
+
}
|
| 196 |
+
];
|
| 197 |
+
|
| 198 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 199 |
+
renderWinners();
|
| 200 |
+
createConfetti();
|
| 201 |
+
});
|
| 202 |
+
|
| 203 |
+
function renderWinners() {
|
| 204 |
+
const container = document.getElementById('winnersContainer');
|
| 205 |
+
|
| 206 |
+
winnersData.forEach(winner => {
|
| 207 |
+
const card = document.createElement('div');
|
| 208 |
+
card.className = 'winner-card';
|
| 209 |
+
|
| 210 |
+
card.innerHTML = `
|
| 211 |
+
<div class="winner-header">
|
| 212 |
+
<img src="${winner.avatar}" alt="${winner.name}" class="winner-avatar">
|
| 213 |
+
<div class="winner-info">
|
| 214 |
+
<h4>${winner.name}</h4>
|
| 215 |
+
<p>๐บ๐ธ ${winner.country} โข Won on ${winner.date} with ${winner.points} points</p>
|
| 216 |
+
</div>
|
| 217 |
+
</div>
|
| 218 |
+
<div class="winner-game">
|
| 219 |
+
<img src="${winner.gameImage}" alt="${winner.game}">
|
| 220 |
+
<div class="winner-game-info">
|
| 221 |
+
<h5>${winner.game}</h5>
|
| 222 |
+
<small>Platform: ${winner.platform}</small>
|
| 223 |
+
</div>
|
| 224 |
+
</div>
|
| 225 |
+
`;
|
| 226 |
+
|
| 227 |
+
container.appendChild(card);
|
| 228 |
+
});
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
function createConfetti() {
|
| 232 |
+
const colors = ['#6366f1', '#8b5cf6', '#ec4899', '#f43f5e', '#f59e0b'];
|
| 233 |
+
|
| 234 |
+
for (let i = 0; i < 100; i++) {
|
| 235 |
+
const confetti = document.createElement('div');
|
| 236 |
+
confetti.className = 'confetti';
|
| 237 |
+
confetti.style.left = Math.random() * 100 + 'vw';
|
| 238 |
+
confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
|
| 239 |
+
confetti.style.width = Math.random() * 10 + 5 + 'px';
|
| 240 |
+
confetti.style.height = Math.random() * 10 + 5 + 'px';
|
| 241 |
+
confetti.style.animationDelay = Math.random() * 5 + 's';
|
| 242 |
+
confetti.style.animationDuration = Math.random() * 3 + 3 + 's';
|
| 243 |
+
|
| 244 |
+
document.body.appendChild(confetti);
|
| 245 |
+
}
|
| 246 |
+
}
|
| 247 |
+
</script>
|
| 248 |
+
</body>
|
| 249 |
+
</html>
|