-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (96 loc) · 2.52 KB
/
index.html
File metadata and controls
100 lines (96 loc) · 2.52 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SWADrops - Airdrop Hub</title>
<link rel="stylesheet" href="styles/main.css">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
margin: 0;
padding: 0;
}
.navbar {
background-color: #333;
color: #fff;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar .logo {
font-size: 1.5rem;
font-weight: bold;
}
.nav-links a {
color: white;
margin-left: 15px;
text-decoration: none;
}
.airdrops-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
padding: 2rem;
}
.airdrop-card {
background: white;
border-radius: 12px;
padding: 1rem;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
text-align: center;
transition: transform 0.2s;
}
.airdrop-card:hover {
transform: scale(1.03);
}
.airdrop-card img {
max-width: 100%;
border-radius: 8px;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 1rem;
}
</style>
</head>
<body>
<nav class="navbar">
<div class="logo">🚀 SWADrops</div>
<div class="nav-links">
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
<a href="https://t.me/SWADrops" target="_blank">Telegram</a>
</div>
</nav>
<section class="airdrops-list">
<!-- Airdrops will be loaded here -->
</section>
<footer>
<p>© 2025 SWADrops. All rights reserved.</p>
</footer>
<script>
fetch('https://script.google.com/macros/s/AKfycbwxiw0R-XmhUUSpZ1PPrikXuzi6d6ikecqy4pkg5j1vCN19WjdmIGp4G5ZMBji9OHZ9/exec')
.then(res => res.json())
.then(data => {
const container = document.querySelector('.airdrops-list');
container.innerHTML = '';
data.forEach(drop => {
const card = document.createElement('div');
card.className = 'airdrop-card';
card.innerHTML = `
<img src="${drop.image}" alt="${drop.name}" />
<h3>${drop.name}</h3>
<a href="airdrop.html?id=${drop.id}" class="detail-link">View Details</a>
`;
container.appendChild(card);
});
});
</script>
</body>
</html>