forked from BeehiveCommunity/Frontend_Mentor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
376 lines (357 loc) · 12.1 KB
/
index.html
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
366
367
368
369
370
371
372
373
374
375
376
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" type="image/jpg" href="/images/clipboard.png" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.3/gsap.min.js"></script>
<link rel="stylesheet" href="style.css" />
<title>Frontend Projects | Rajeev</title>
</head>
<body>
<!-- Scroll-to-Top Button -->
<button class="scroll-up-btn">
<main>
<header>
<div class="navbar">
<div class="logo">
<a href="#">
<img src="" alt="">
<a href="#">Frontend Mentor</a>
</a>
</div>
<div class="navbar-function">
<div class="nav-elements">
<!-- <div class="dropdown">
<a>
<p>Product
<i class="fa-solid fa-angle-down"></i>
</p>
<span class="material-symbols-outline"></span>
</a>
<div class="menu">
<a href="#">Database</a>
<a href="#">Authentication</a>
<a href="#">Storage</a>
<a href="#">Edge Functions</a>
<a href="#">Realtime</a>
<a href="#">Vector</a>
</div>
</div> -->
<a href="#">Home</a>
<a href="#">Projects</a>
<a href="#">Challenges</a>
</div>
<div class="nav-buttons">
<div class="gitstatus">
<a href="https://github.com/beRajeevKumar/Frontend_Mentor">
<i class="fa-brands fa-github"></i>
</a>
</div>
<a class="btn-1" href="login.html">Login
<div class="arrow-wrapper">
<div class="arrow"></div>
</div>
</a>
<a class="btn-2" href="signUp.html">Get Started!</a>
</div>
</div>
</div>
</header>
<!-- <nav class="navbar navbar-expand-lg bg-body-white">
=======
<!-- Scroll-to-Top Button -->
<button class="scroll-up-btn">
<i class="arrow-up"></i>
</button>
<nav class="navbar navbar-expand-lg bg-body-white">
</main>
<div class="container-fluid">
<a class="navbar-brand" href="/"
><img
src="logo.png"
alt="Logo"
width="80"
height="84"
class="d-inline-block align-text-top"
/></a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html"
>Home</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="login-sginup.html">Login</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#Projects">Challenges</a>
</li>
</ul>
</div>
</div>
</nav> -->
<section>
<h2 id="Projects" class="">Projects</h2>
<ul id="list" class="list"></ul>
</section>
<!-- FAQs Section -->
<section class="faq-section">
<h2>FAQs</h2>
<div class="faq">
<button class="accordion">
Can I use these projects in my portfolio?
</button>
<div class="panel">
<p>
Definitely! Please do feel free to use whatever you build in your
portfolio. Frontend Mentor is an excellent platform for front-end
developers who want to improve their skills and build real-world
projects.
</p>
</div>
</div>
<div class="faq">
<button class="accordion">
Can I take the challenges as a beginner?
</button>
<div class="panel">
<p>
For sure! Our challenges have different levels of difficulty. We'd
recommend starting with the newbie ones. You might also want to
start with the HTML & CSS only challenges first. As you build up
your skills and confidence, you can take on more complex projects.
</p>
</div>
</div>
<div class="faq">
<button class="accordion">How do I start?</button>
<div class="panel">
<p>
To start a challenge, click the eye button on the challenge page.
This will take you to the Challenge, where you can go through the
design. We'd recommend starting with one of our newbie level
challenges. You can then work your way up from there.
</p>
</div>
</div>
<div class="faq">
<button class="accordion">
Can I use libraries/frameworks on these projects?
</button>
<div class="panel">
<p>
Yes! Our challenges provide professional designs but there are no
rules on what tools to use. So feel free to use anything you like to
build your projects.
</p>
</div>
</div>
<div class="faq">
<button class="accordion">Is it free?</button>
<div class="panel">
<p>
The majority of our challenges are free, yes. It will say on each
challenge whether they are free or premium, so it's easy to tell the
difference.
</p>
</div>
</div>
</section>
<footer class="footer">
<div class="footer-section">
<h1>Contact Us</h1>
<ul class="footer-list">
<li>
<a href="mailto:[email protected]"
>
</li>
<li>2nd Floor, Bandra West, Mumbai, Maharashtra 400050, India</li>
<li><a href="tel:+91xxxxxxxx2020">+91 xxxxxx2020</a></li>
<li class="border-list"></li>
<li class="socials">
<a
href="https://www.linkedin.com/in/berajeevkumar/"
id="linkedin"
target="_blank"
>
<i class="fa-brands fa-linkedin"></i>
</a>
<a
href="https://github.com/beRajeevKumar/Frontend_Mentor"
id="github"
target="_blank"
>
<i class="fa-brands fa-github"></i>
</a>
<a href="https://x.com/be_rajeevkumar" id="twitter" target="_blank">
<i class="fa-brands fa-x-twitter"></i>
</a>
<a
href="https://www.instagram.com/your_instagram"
id="instagram"
target="_blank"
>
<i class="fa-brands fa-instagram"></i>
</a>
</li>
</ul>
</div>
<div class="footer-section">
<h1>Quick Links</h1>
<ul class="footer-list">
<li><a href="about.html">About Us</a></li>
<li><a href="/terms-conditions">Terms & Conditions</a></li>
<li><a href="/return-policy">Return Policy</a></li>
<li>
<a
href="https://github.com/beRajeevKumar/Frontend_Mentor"
target="_blank"
>Star Us</a
>
</li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
<div class="footer-section">
<h1>Subscribe to Newsletter</h1>
<ul class="footer-list">
<li>
Get the latest updates, exclusive offers, and industry insights
delivered straight to your inbox.
</li>
<li class="sub">
<input type="text" placeholder="Enter your email" />
<button class="btn-sub">Subscribe</button>
</li>
</ul>
</div>
</footer>
<script src="script.js"></script>
<script>
// Smooth scroll-to-top button
const btn = document.querySelector(".scroll-up-btn");
btn.addEventListener("click", () => {
document.documentElement.scrollTo({
top: 0,
behavior: "smooth",
});
});
// GSAP Animations
gsap.from(".navbar", { opacity: 0, y: -50, duration: 1.5, ease: "power3.out" });
gsap.from(".scroll-up-btn", { opacity: 0, duration: 2, ease: "power2.out", delay: 1 });
gsap.from("img", { rotation: 360, duration: 1, ease: "power2.out" });
// Navbar items animation
gsap.utils.toArray(".navbar-nav .nav-item").forEach((item, index) => {
gsap.from(item, {
x: -50,
opacity: 0,
duration: 0.5,
ease: "power2.out",
delay: index * 0.1 + 0.5,
});
});
// Section Titles Animation
gsap.utils.toArray("section h2").forEach((title) => {
gsap.from(title, {
scrollTrigger: {
trigger: title,
start: "top 80%",
toggleActions: "play none none none",
},
scale: 0.8,
opacity: 0,
duration: 1,
ease: "power2.out",
});
});
// Project List Items Animation
gsap.utils.toArray("#list li").forEach((item, index) => {
gsap.from(item, {
scrollTrigger: {
trigger: item,
start: "top 80%",
toggleActions: "play none none none",
},
y: 50,
opacity: 0,
duration: 1,
delay: index * 0.1,
ease: "power2.out",
});
});
// Accordion Animation
const accordions = document.querySelectorAll(".accordion");
accordions.forEach((accordion) => {
accordion.addEventListener("click", function () {
const panel = this.nextElementSibling;
const isOpen = panel.style.maxHeight;
gsap.to(panel, {
maxHeight: isOpen ? 0 : panel.scrollHeight,
duration: 0.5,
ease: "power2.out",
});
});
});
// Footer Social Icons Hover Animation
const socials = document.querySelectorAll(".socials a");
socials.forEach((icon) => {
icon.addEventListener("mouseover", () => {
gsap.to(icon, { rotation: 15, duration: 0.3 });
});
icon.addEventListener("mouseleave", () => {
gsap.to(icon, { rotation: 0, duration: 0.3 });
});
});
// Scroll-based animation for the FAQs and sections
gsap.utils.toArray(".faq, .footer-section").forEach((element) => {
gsap.from(element, {
scrollTrigger: {
trigger: element,
start: "top 80%",
toggleActions: "play none none none",
},
opacity: 0,
y: 50,
duration: 1.5,
ease: "power2.out",
});
});
</script>
</body>
</html>