-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp.html
295 lines (263 loc) · 7.35 KB
/
temp.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Vibrant Website</title>
<style>
/* Add CSS styles here */
:root {
--primary-color: #000000;
--secondary-color: #FF6B6B;
--accent-color: #6B6BFF;
}
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
/* Add styles for ribbon */
.ribbon {
background-color: var(--primary-color);
color: #fff;
padding: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
.ribbon a {
color: #fff;
text-decoration: none;
margin-left: 10px;
}
.ribbon button {
background: none;
border: none;
color: #fff;
cursor: pointer;
margin-left: 10px;
font-size: 1rem;
font-family: Arial, sans-serif;
text-decoration: underline;
}
/* Add styles for dropdown menu */
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {
background-color: #ddd;
}
/* Add styles for each section */
section {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
position: relative;
opacity: 0; /* Set initial opacity to 0 */
transition: opacity 0.8s ease-in-out;
will-change: opacity; /* Add will-change property for better performance */
}
.fade-in {
opacity: 1 !important; /* Override opacity to ensure it's fully visible */
}
#hero {
background-color: var(--primary-color);
}
#about {
background-color: var(--secondary-color);
}
#contact {
background-color: var(--accent-color);
}
#aakash {
background-color: #FF6B6B;
}
#prakhar {
background-color: #6B6BFF;
}
/* Add styles for text */
h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
p {
font-size: 1.5rem;
margin-bottom: 2rem;
}
/* Add styles for the footer */
footer {
background-color: var(--primary-color);
color: #fff;
text-align: center;
padding: 20px;
}
/* Add styles for navigation buttons */
.navigation {
display: flex;
justify-content: center;
margin-bottom: 0;
}
.navigation button {
background-color: var(--primary-color);
color: #fff;
border: none;
padding: 10px 20px;
margin: 0 10px;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
}
.navigation button:hover {
background-color: var(--accent-color);
}
/* Add styles for horizontal rule buttons */
.hr-buttons {
display: flex;
justify-content: center;
margin: 2rem 0;
}
.hr-buttons button {
background: none;
border: none;
color: #fff;
font-size: 1.5rem;
cursor: pointer;
margin: 0 10px;
transition: color 0.3s ease-in-out;
}
.hr-buttons button:hover {
color: var(--accent-color);
}
</style>
</head>
<body>
<div class="ribbon">
<div>
<div class="dropdown">
<button class="button" onclick="toggleDropdown(1)">1</button>
<div class="dropdown-content" id="dropdown-1">
<a href="#">Option 1</a>
<a href="#">Option 2</a>
<a href="#">Option 3</a>
</div>
</div>
<div class="dropdown">
<button class="button" onclick="toggleDropdown(2)">2</button>
<div class="dropdown-content" id="dropdown-2">
<a href="#">Option 1</a>
<a href="#">Option 2</a>
<a href="#">Option 3</a>
</div>
</div>
<div class="dropdown">
<button class="button" onclick="toggleDropdown(3)">3</button>
<div class="dropdown-content" id="dropdown-3">
<a href="#">Option 1</a>
<a href="#">Option 2</a>
<a href="#">Option 3</a>
</div>
</div>
<div class="dropdown">
<button class="button" onclick="toggleDropdown(4)">4</button>
<div class="dropdown-content" id="dropdown-4">
<a href="#">Option 1</a>
<a href="#">Option 2</a>
<a href="#">Option 3</a>
</div>
</div>
<div class="dropdown">
<button class="button" onclick="toggleDropdown(5)">5</button>
<div class="dropdown-content" id="dropdown-5">
<a href="#">Option 1</a>
<a href="#">Option 2</a>
<a href="#">Option 3</a>
</div>
</div>
</div>
<div>
<a href="login.html">Log In</a>
<a href="reg.html">Sign Up</a>
</div>
</div>
<div class="navigation">
<button onclick="scrollToSection('hero')">Home</button>
<button onclick="scrollToSection('about')">About Us</button>
<button onclick="scrollToSection('contact')">Contact Us</button>
<button onclick="scrollToSection('aakash')">Aakash</button>
<button onclick="scrollToSection('prakhar')">Prakhar</button>
</div>
<section id="hero">
<h1>Welcome to our Website</h1>
<p>This is the hero section of our vibrant website.</p>
</section>
<section id="about">
<h1>About Us</h1>
<p>This is the about section of our vibrant website.</p>
</section>
<section id="contact">
<h1>Contact Us</h1>
<p>This is the contact section of our vibrant website.</p>
</section>
<section id="aakash">
<h1>Aakash's Section</h1>
<p>This is Aakash's section of our vibrant website.</p>
</section>
<section id="prakhar">
<h1>Prakhar's Section</h1>
<p>This is Prakhar's section of our vibrant website.</p>
</section>
<footer>
<p>© 2023 Your Vibrant Website. All rights reserved.</p>
</footer>
<script>
// Add JavaScript code here
const sections = document.querySelectorAll('section');
// Intersection Observer options
const options = {
rootMargin: '0px',
threshold: 0.2
};
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('fade-in');
} else {
entry.target.classList.remove('fade-in');
}
});
}, options);
sections.forEach(section => {
observer.observe(section);
});
// Function to scroll to a section
function scrollToSection(sectionId) {
const section = document.getElementById(sectionId);
section.scrollIntoView({ behavior: 'smooth' });
}
// Function to toggle dropdown menu
function toggleDropdown(dropdownId) {
const dropdown = document.getElementById('dropdown-' + dropdownId);
dropdown.classList.toggle('show');
}
</script>
</body>
</html>