-
Notifications
You must be signed in to change notification settings - Fork 34
/
collage.html
314 lines (276 loc) · 7.99 KB
/
collage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multiple on Click</title>
<style>
/* General Styles */
body {
margin: 0;
font-family: 'Arial', sans-serif;
background-color: #121212;
color: #f4f4f4;
}
a {
text-decoration: none;
color: #f4f4f4;
}
/* Navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background-color: #1a1a1a;
border-bottom: 1px solid #333;
}
.logoContent img {
height:50px;
}
.links a {
margin:0 20px;
font-size: 18px;
transition: color 0.3s;
}
.links a:hover {
color: #b0b0b0; /* Muted light gray on hover */
}
/* Slider Section */
.section {
display: flex;
justify-content: center;
align-items: center;
height:400px;
overflow: hidden;
position: relative;
background-color: #1a1a1a;
}
.section img {
width: 100%;
max-width: 1200px;
height: 100%;
object-fit: cover;
border-radius: 10px;
filter: brightness(0.8);
transition: filter 0.5s;
}
.section img:hover {
filter: brightness(1);
}
/* Models Section */
.models {
display: flex;
justify-content: space-around;
padding: 20px;
background-color: #181818;
}
.model {
text-align: center;
background-color: #222;
padding: 20px;
border-radius: 10px;
width: 30%;
transition: transform 0.3s, background-color 0.3s;
}
.model h1 {
color: #b0b0b0; /* Muted light gray */
}
.model img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 10px;
margin-bottom: 15px;
}
.model:hover {
transform: scale(1.05);
background-color: #333;
}
/* Performance Section */
.performance {
margin: 20px 0;
text-align: center;
background-color: #1a1a1a;
padding: 20px;
border-radius: 10px;
}
.spec-box {
display: flex;
justify-content: space-around;
padding: 20px;
}
.spec-box li {
list-style: none;
font-size: 24px;
color: #b0b0b0; /* Muted light gray */
}
.line {
border-left: 2px solid #555;
height: 60px;
margin: auto 20px;
}
/* Footer */
.foot {
background-color: #1a1a1a;
padding: 30px 0;
color: #f4f4f4;
}
.foot h3 {
color: #b0b0b0; /* Muted light gray */
}
.foot ul {
list-style: none;
padding: 0;
}
.foot ul li {
margin-bottom: 10px;
cursor: pointer;
}
.foot ul li:hover {
color: #b0b0b0; /* Muted light gray */
}
.end {
display: flex;
justify-content: space-around;
}
.end ul {
width: 18%;
}
/* Responsive Design */
@media only screen and (max-width: 768px) {
.models {
flex-direction: column;
align-items: center;
}
.model {
width: 80%;
margin-bottom: 20px;
}
.spec-box {
flex-direction: column;
}
.line {
display: none;
}
.end {
flex-direction: column;
align-items: center;
}
.end ul {
width: 100%;
margin-bottom: 20px;
}
}
</style>
</head>
<body>
<header>
<nav class="navbar">
<div class="logoContent">
<img src="6937487_preview.png" alt="Audi Logo">
</div>
<div class="links">
<a href="#">Home</a>
<a href="#">About Us</a>
<a href="#">Products</a>
<a href="#">Contact Us</a>
</div>
</nav>
</header>
<!-- Slider Section -->
<section class="section" id="sliders">
<img src="audie-trongtconcept3-639929.jpg" alt="Car 1" class="slide">
<img src="A233029_large.jpg" alt="Car 2" class="slide">
<img src="fddf.webp" alt="Car 3" class="slide">
<img src="R8070059_large.jpg" alt="Car 4" class="slide">
</section>
<!-- Models Section -->
<div class="models">
<div class="model one">
<img src="q3_1.jpg" alt="Audi Q3">
<h1>Audi Q3</h1>
</div>
<div class="model two">
<img src="s8.jpg" alt="Audi S8">
<h1>Audi S8</h1>
</div>
<div class="model three">
<img src="rs7.jpg" alt="Audi RS 7">
<h1>Audi RS 7</h1>
</div>
</div>
<!-- Performance Section -->
<div class="performance">
<ul class="spec-box">
<li class="hp"><p>HorsePower</p> <h1>444<p>HP</p></h1></li>
<div class="line"></div>
<li class="trq"><p>Torque</p><h1>442<p>lb-ft</p></h1></li>
<div class="line"></div>
<li class="spd"><p>0-60mph</p><h1>3.7<p>sec</p></h1></li>
</ul>
</div>
<!-- Footer Section -->
<footer class="foot">
<div class="end">
<ul class="explore">
<h3>Explore</h3>
<li>Models</li>
<li>Audi Sport</li>
<li>What is e-tron®</li>
<li>SUV Models</li>
<li>Audi Experience</li>
</ul>
<ul class="shop">
<h3>Shop</h3>
<li>Special Offers</li>
<li>Find a dealer</li>
<li>New inventory</li>
<li>Pre-owned inventory</li>
<li>Certified pre-owned</li>
</ul>
<ul class="buy">
<h3>Buy</h3>
<li>Contact dealer</li>
<li>Trade-in value</li>
<li>Leasing</li>
<li>Financing</li>
<li>Apply for financing</li>
</ul>
<ul class="own">
<h3>Owner</h3>
<li>myAudi</li>
<li>About myAudi</li>
<li>Audi Financial Services</li>
<li>Service and Parts</li>
<li>Roadside Assistance</li>
</ul>
<ul class="support">
<h3>Support</h3>
<li>Contact Us</li>
<li>Help</li>
<li>About Audi</li>
<li>Careers</li>
<li>Newsroom</li>
<li>Emissions Modification Lookup</li>
<li>Accessibility</li>
<li>Recalls</li>
</ul>
</div>
</footer>
<script>
// Animation for sliders
const slides = document.querySelectorAll('.slide');
let currentSlide = 0;
function changeSlide() {
slides[currentSlide].style.display = 'none';
currentSlide = (currentSlide + 1) % slides.length;
slides[currentSlide].style.display = 'block';
}
slides.forEach((slide, index) => {
if (index !== 0) slide.style.display = 'none';
});
setInterval(changeSlide, 3000); // Change slide every 3 seconds
</script>
</body>
</html>