-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
365 lines (328 loc) · 12.5 KB
/
index.html
File metadata and controls
365 lines (328 loc) · 12.5 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
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="google-adsense-account" content="ca-pub-9758812512099051">
<title>SwapSkill — Learn, Share & Exchange Skills</title>
<meta name="description" content="SwapSkill is a peer-to-peer platform where students exchange skills, learn together, and grow through real collaboration.">
<meta name="keywords" content="SwapSkill, Skill Exchange, Student Learning, Peer Learning, Skill Sharing, College Network">
<meta name="author" content="SwapSkill Team">
<link rel="canonical" href="https://swapskill.web.app/">
<link rel="icon" type="image/png" href="/logo.png">
<meta property="og:title" content="SwapSkill — Learn, Share & Exchange Skills">
<meta property="og:description" content="Join SwapSkill — A student skill exchange platform to learn and teach real skills.">
<meta property="og:image" content="https://swapskill.web.app/logo.png">
<meta property="og:url" content="https://swapskill.web.app/">
<meta property="og:site_name" content="SwapSkill">
<meta property="og:type" content="website">
<meta name="twitter:title" content="SwapSkill">
<meta name="twitter:description" content="Swap skills, learn from peers, and grow together.">
<meta name="twitter:image" content="https://swapskill.web.app/logo.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<meta name="google-site-verification" content="L4Ixo-_577CiodmoBct9pcAGje_pZqvbm-QZDzZwXPI">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "SwapSkill",
"alternateName": "SwapSkill — Learn, Share & Exchange Skills",
"url": "https://swapskill.web.app/"
}
</script>
<style>
:root {
--primary: #3b82f6;
--success: #22c55e;
--bg: #0f172a;
--text: #f8fafc;
--glass: rgba(30, 41, 59, 0.6);
--border: rgba(255, 255, 255, 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
body {
background: radial-gradient(circle at top right, #1e293b, #0f172a);
color: var(--text);
min-height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}
/* --- Loader --- */
#loaderOverlay {
position: fixed; inset: 0;
backdrop-filter: blur(15px);
background: rgba(15, 23, 42, 0.9);
z-index: 999999;
display: flex; align-items: center; justify-content: center;
transition: opacity 0.4s;
}
.loader {
width: 55px; height: 55px;
border: 4px solid rgba(255,255,255,0.1);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* --- Navbar --- */
header {
position: sticky; top: 0; z-index: 50;
background: rgba(15, 23, 42, 0.95); /* More opaque on mobile */
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
padding: 12px 20px; /* Adjusted padding */
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
font-size: 22px; font-weight: 800;
background: linear-gradient(90deg, #60a5fa, #3b82f6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-decoration: none;
}
.nav-menu { display: flex; gap: 32px; }
.nav-menu a {
color: #94a3b8; text-decoration: none; font-size: 15px; font-weight: 500; transition: 0.2s;
}
.nav-menu a:hover { color: #fff; }
.auth-btns { display: flex; gap: 10px; }
.btn {
padding: 10px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 14px; transition: 0.2s; display: inline-block;
}
.btn-ghost { color: #fff; border: 1px solid var(--border); background: rgba(255,255,255,0.05); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }
/* --- Hero Section --- */
.hero {
text-align: center;
padding: 80px 20px 50px;
max-width: 900px;
margin: 0 auto;
animation: fadeIn 0.8s ease-out;
}
.hero h1 {
font-size: 36px; line-height: 1.2; margin-bottom: 20px; /* Smaller font for mobile */
background: linear-gradient(to right, #fff, #94a3b8);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
font-size: 16px; color: #94a3b8; margin-bottom: 30px; line-height: 1.6;
}
.hero-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
/* --- Features Grid --- */
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Stack on small screens */
gap: 20px;
padding: 30px 20px;
max-width: 1200px;
margin: 0 auto;
}
.card {
background: var(--glass);
backdrop-filter: blur(10px);
border: 1px solid var(--border);
padding: 24px;
border-radius: 20px;
transition: 0.3s;
}
.card:hover {
transform: translateY(-5px);
border-color: rgba(59, 130, 246, 0.5);
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.icon {
width: 48px; height: 48px;
background: rgba(59, 130, 246, 0.1);
color: var(--primary);
border-radius: 12px;
display: flex; align-items: center; justify-content: center;
font-size: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.card p { color: #94a3b8; line-height: 1.5; font-size: 14px; }
/* --- How it Works (Visual) --- */
.diagram-section {
text-align: center;
padding: 50px 20px;
background: rgba(0,0,0,0.2);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.diagram-placeholder {
max-width: 800px;
margin: 30px auto;
padding: 30px;
border: 2px dashed var(--border);
border-radius: 20px;
color: #64748b;
}
/* --- Footer --- */
footer {
background: #020617;
padding: 40px 20px;
border-top: 1px solid var(--border);
text-align: center;
margin-top: auto;
}
.footer-links {
display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap;
}
.footer-links a {
color: #94a3b8; text-decoration: none; font-size: 14px; transition: 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.copyright { color: #475569; font-size: 13px; }
/* --- Popups --- */
#popupOverlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.6);
backdrop-filter: blur(4px); z-index: 999998;
opacity: 0; pointer-events: none; transition: 0.3s;
}
#popupOverlay.show { opacity: 1; pointer-events: auto; }
#globalPopup {
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
background: #1e293b; border: 1px solid var(--border); color: #fff;
border-radius: 20px; padding: 24px; width: 90%; max-width: 320px;
text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
opacity: 0; pointer-events: none; transition: 0.3s; z-index: 999999;
}
#globalPopup.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
/* Responsive Media Queries */
@media (max-width: 768px) {
.hero h1 { font-size: 32px; }
.nav-menu { display: none; } /* Hide regular menu on mobile */
header { padding: 12px 16px; }
.features { grid-template-columns: 1fr; } /* Single column features */
.diagram-placeholder div { flex-direction: column; gap: 30px; }
.hero-btns { flex-direction: column; width: 100%; }
.hero-btns .btn { width: 100%; max-width: 300px; margin: 0 auto; text-align: center; }
}
@keyframes fadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
</style>
</head>
<body>
<amp-auto-ads type="adsense"
data-ad-client="ca-pub-9758812512099051">
</amp-auto-ads>
<div id="loaderOverlay"><div class="loader"></div></div>
<div id="popupOverlay"></div>
<div id="globalPopup">
<div style="font-size:40px;margin-bottom:10px">⚠️</div>
<h3 id="popupTitle">Alert</h3>
<p id="popupMessage" style="color:#94a3b8;margin:10px 0 20px"></p>
<button onclick="closePopup()" class="btn btn-primary" style="width:100%">OK</button>
</div>
<header>
<a href="#" class="logo">SwapSkill</a>
<nav class="nav-menu">
<a href="#features">Features</a>
<a href="#howitworks">How it Works</a>
<a href="browse.html">Browse</a>
</nav>
<div class="auth-btns">
<a href="login.html" class="btn btn-ghost">Login</a>
<a href="signup.html" class="btn btn-primary">Get Started</a>
</div>
</header>
<section class="hero">
<h1>Exchange Skills.<br>Grow Together.</h1>
<p>The peer-to-peer platform for students to teach what they know and learn what they need. No money involved, just knowledge.</p>
<div class="hero-btns">
<a href="signup.html" class="btn btn-primary" style="padding:14px 32px;font-size:16px">Join Now</a>
<a href="#features" class="btn btn-ghost" style="padding:14px 32px;font-size:16px">Learn More</a>
</div>
</section>
<section id="features" class="features">
<div class="card">
<div class="icon">🌺</div>
<h3>Your Expertise</h3>
<p>Transform your academic or hobby experience into something meaningful by teaching others.</p>
</div>
<div class="card">
<div class="icon">🔗</div>
<h3>Real Connections</h3>
<p>Break the ice. Connect with classmates beyond your department and find your tribe.</p>
</div>
<div class="card">
<div class="icon">🎓</div>
<h3>Learn Faster</h3>
<p>Get direct, personalized 1-on-1 sessions from peers who have just mastered what you are learning.</p>
</div>
</section>
<section id="howitworks" class="diagram-section">
<h2 style="font-size:28px;margin-bottom:16px;color:#fff;">How it Works</h2>
<p style="color:#94a3b8;margin-bottom:24px;">Simple, transparent, and built for students.</p>
<div class="diagram-placeholder">
<div style="display:flex;justify-content:center;align-items:center;gap:20px;flex-wrap:wrap">
<div>
<div style="font-size:40px">📝</div>
<p style="color:#fff;margin-top:10px;">1. Post a Request</p>
</div>
<div style="font-size:24px;color:#3b82f6;transform: rotate(90deg) scaleX(1);">➜</div>
<div>
<div style="font-size:40px">🤝</div>
<p style="color:#fff;margin-top:10px;">2. Get Accepted</p>
</div>
<div style="font-size:24px;color:#3b82f6;transform: rotate(90deg) scaleX(1);">➜</div>
<div>
<div style="font-size:40px">🎥</div>
<p style="color:#fff;margin-top:10px;">3. Live Session</p>
</div>
</div>
</div>
</section>
<footer>
<div class="footer-links">
<a href="aboutus.html">About Us</a>
<a href="contactus.html">Contact</a>
<a href="privacypolicy.html">Privacy Policy</a>
<a href="termsconditons.html">Terms</a>
<a href="admin.html">Admin</a>
</div>
<div class="copyright">
© 2026 SwapSkill. Built for students.
</div>
</footer>
<script>
// Loader Logic
window.onload = () => {
setTimeout(() => {
document.getElementById("loaderOverlay").style.opacity = "0";
setTimeout(() => document.getElementById("loaderOverlay").style.display = "none", 400);
}, 500);
};
// Popup Logic
function showPopup(message) {
document.getElementById("popupMessage").innerText = message;
document.getElementById("popupOverlay").classList.add("show");
document.getElementById("globalPopup").classList.add("show");
}
function closePopup() {
document.getElementById("popupOverlay").classList.remove("show");
document.getElementById("globalPopup").classList.remove("show");
}
// Network Status Listeners
window.addEventListener("offline", () => showPopup("Internet disconnected! Please check your network."));
window.addEventListener("online", () => showPopup("Internet connection restored."));
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-17753241982"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-17753241982');
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9758812512099051"
crossorigin="anonymous"></script>
<script async custom-element="amp-auto-ads"
src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">
</script>
</body>
</html>