File size: 6,947 Bytes
e9a6a0d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>RetroPlay Giveaways - Winners</title>
  <style>
    /* Add these to your existing styles */
    .winner-card {
      background: linear-gradient(135deg, #111827, #1a2332);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      border-left: 4px solid var(--accent-primary);
      box-shadow: var(--shadow-md);
      transition: all var(--transition);
    }

    .winner-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
    }

    .winner-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .winner-avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--accent-primary);
    }

    .winner-info h4 {
      font-size: 1.25rem;
      margin-bottom: 0.25rem;
    }

    .winner-info p {
      color: var(--text-secondary);
      font-size: 0.9rem;
    }

    .winner-game {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem;
      background: rgba(255,255,255,0.05);
      border-radius: var(--radius-md);
      margin-top: 1rem;
    }

    .winner-game img {
      width: 80px;
      height: 45px;
      border-radius: var(--radius-sm);
      object-fit: cover;
    }

    .winner-game-info h5 {
      font-size: 1rem;
      margin-bottom: 0.25rem;
    }

    .winner-game-info small {
      color: var(--text-muted);
      font-size: 0.8rem;
    }

    .confetti {
      position: fixed;
      width: 10px;
      height: 10px;
      background: var(--accent-primary);
      opacity: 0;
      animation: confetti-fall 5s linear forwards;
      z-index: 1000;
    }

    @keyframes confetti-fall {
      0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
      }
      100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
      }
    }
  </style>
</head>
<body>
  <nav class="navbar">
    <div class="nav-container">
      <a href="index.html" class="nav-logo">
        <img src="https://linktree.retroplay.ro/images/logo-square.png" alt="RetroPlay">
        <div class="nav-logo-text">
          <h1>RetroPlay</h1>
          <p>Winners</p>
        </div>
      </a>
      
      <div class="nav-links">
        <a href="index.html" class="nav-link" data-page="home">๐ŸŽฎ Giveaways</a>
        <a href="#" class="nav-link" data-page="my-entries">๐Ÿ“ My Entries</a>
        <a href="#" class="nav-link active" data-page="winners">๐Ÿ† Winners</a>
        <a href="#" class="nav-link" data-page="leaderboard">๐Ÿ… Leaderboard</a>
      </div>

      <div class="nav-actions">
        <button class="btn-nav btn-secondary" id="btnUserMenu">
          <span>๐Ÿ‘ค</span>
          <span id="userName">Login</span>
        </button>
      </div>
    </div>
  </nav>

  <main class="container">
    <section class="hero">
      <div class="hero-content">
        <h2>๐Ÿ† Recent Winners</h2>
        <p>Celebrate our latest giveaway champions and get inspired to join the next one!</p>
      </div>
    </section>

    <div id="winnersContainer">
      <!-- Winners will be loaded here -->
    </div>
  </main>

  <script>
    // Winner data
    const winnersData = [
      {
        id: 1,
        name: "GamerPro123",
        avatar: "http://static.photos/gaming/200x200/1",
        country: "Romania",
        game: "Cyberpunk 2077",
        gameImage: "https://images.unsplash.com/photo-1542751371-adc38448a05e?w=800&q=80",
        platform: "Steam",
        date: "2023-05-15",
        points: 450
      },
      {
        id: 2,
        name: "PixelHunter",
        avatar: "http://static.photos/gaming/200x200/2",
        country: "USA",
        game: "Starfield",
        gameImage: "https://images.unsplash.com/photo-1614732414444-096e5f1122d5?w=800&q=80",
        platform: "Xbox",
        date: "2023-05-10",
        points: 380
      },
      {
        id: 3, 
        name: "IndieQueen",
        avatar: "http://static.photos/gaming/200x200/3",
        country: "Germany",
        game: "Hades II",
        gameImage: "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&q=80",
        platform: "Epic",
        date: "2023-05-05",
        points: 520
      },
      {
        id: 4,
        name: "RetroLover",
        avatar: "http://static.photos/gaming/200x200/4",
        country: "France",
        game: "Baldur's Gate 3",
        gameImage: "https://images.unsplash.com/photo-1551103782-8ab07afd45c1?w=800&q=80",
        platform: "Steam",
        date: "2023-04-28",
        points: 600
      },
      {
        id: 5,
        name: "SpeedRunner99",
        avatar: "http://static.photos/gaming/200x200/5",
        country: "UK",
        game: "Elden Ring",
        gameImage: "https://images.unsplash.com/photo-1538481199705-c710c4e965fc?w=800&q=80",
        platform: "Steam",
        date: "2023-04-20",
        points: 420
      }
    ];

    document.addEventListener('DOMContentLoaded', () => {
      renderWinners();
      createConfetti();
    });

    function renderWinners() {
      const container = document.getElementById('winnersContainer');
      
      winnersData.forEach(winner => {
        const card = document.createElement('div');
        card.className = 'winner-card';
        
        card.innerHTML = `
          <div class="winner-header">
            <img src="${winner.avatar}" alt="${winner.name}" class="winner-avatar">
            <div class="winner-info">
              <h4>${winner.name}</h4>
              <p>๐Ÿ‡บ๐Ÿ‡ธ ${winner.country} โ€ข Won on ${winner.date} with ${winner.points} points</p>
            </div>
          </div>
          <div class="winner-game">
            <img src="${winner.gameImage}" alt="${winner.game}">
            <div class="winner-game-info">
              <h5>${winner.game}</h5>
              <small>Platform: ${winner.platform}</small>
            </div>
          </div>
        `;
        
        container.appendChild(card);
      });
    }

    function createConfetti() {
      const colors = ['#6366f1', '#8b5cf6', '#ec4899', '#f43f5e', '#f59e0b'];
      
      for (let i = 0; i < 100; i++) {
        const confetti = document.createElement('div');
        confetti.className = 'confetti';
        confetti.style.left = Math.random() * 100 + 'vw';
        confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
        confetti.style.width = Math.random() * 10 + 5 + 'px';
        confetti.style.height = Math.random() * 10 + 5 + 'px';
        confetti.style.animationDelay = Math.random() * 5 + 's';
        confetti.style.animationDuration = Math.random() * 3 + 3 + 's';
        
        document.body.appendChild(confetti);
      }
    }
  </script>
</body>
</html>