-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
291 lines (261 loc) · 13.5 KB
/
home.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Elisa Wu">
<meta name="ID" content="220005803">
<!-- Latest compiled and minified CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Latest compiled JavaScript and Bootstrap bundle-->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Add icon library -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Car Hub Home</title>
<!-- External CSS Design -->
<link rel="stylesheet" href="CSSDesign/index.css">
<link rel="stylesheet" href="CSSDesign/relHome.css">
<link rel="stylesheet" href="CSSDesign/footer.css">
<!-- External JavaScript Design -->
<script src="JavaScript/index.js"></script>
</head>
<body>
<!-- header div -->
<div id="header"></div>
<!-- Navigation Bar -->
<div id="menu"></div>
<!-- It's the carousel slides as the background for my mian-section -->
<div id="main-carousel" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#main-carousel" data-bs-slide-to="0" class="active"
aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#main-carousel" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#main-carousel" data-bs-slide-to="2" aria-label="Slide 3"></button>
<button type="button" data-bs-target="#main-carousel" data-bs-slide-to="3" aria-label="Slide 4"></button>
<button type="button" data-bs-target="#main-carousel" data-bs-slide-to="4" aria-label="Slide 5"></button>
</div>
<!-- All the images for visitors to enjoy -->
<div class="carousel-inner">
<div class="carousel-item active" style="background-image: url('Pictures/automobile-5330343_1280.jpg');">
</div>
<div class="carousel-item" style="background-image: url('Pictures/pexels-mike-bird-1335077.jpg');">
</div>
<div class="carousel-item" style="background-image: url('Pictures/pexels-mike-bird-1035108.jpg');">
</div>
<div class="carousel-item" style="background-image: url('Pictures/CoolCar2.jpg');">
</div>
<div class="carousel-item" style="background-image: url('Pictures/bmw-m4-3169357_1280.jpg');">
</div>
</div>
</div>
<!-- Left and right controls -->
<button class="carousel-control-prev" type="button" data-bs-target="#main-carousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#main-carousel" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
<section class="main-section">
<div>
<h2>Welcome to the Car Hub World</h2>
<p>Your Ultimate Destination for Automotive Enthusiasts!</p>
</div>
</section>
<!-- The About Us Section -->
<!-- I used the Bootstrap Grid for the layout -->
<section id="about-us" class="about-section">
<div class="container">
<div class="row">
<div class="col-lg-4">
<div class="square-container content-container">
<h3 class="section-heading text-uppercase">Who We Are</h3>
<p class="text-muted">Passionate car enthusiasts founded Car Hub to share the love for
automobiles globally. Our diverse team appreciates every nuance of vehicles, focusing not
only on make and model but the stories and joy they bring.</p><br>
</div>
</div>
<div class="col-lg-4">
<img src="Pictures/aboutUs.png" alt="About Us Image" class="mx-auto d-block"
style="width: 220px; height:300px">
</div>
<div class="col-lg-4">
<div class="square-container content-container">
<h3 class="section-heading text-uppercase">What We Do</h3>
<p class="text-muted">Explore our meticulously curated car collections, delve into the latest
automotive insights through our blogs, and discover the thrilling stories behind
every remarkable vehicle, fostering a deeper connection with the world of automobiles.</p>
</div>
</div>
</div>
<!-- An Car icon-->
<div class="row mt-5">
<div class="col-lg-12 text-center">
<div class="car-element">
<i class="fa fa-car fa-3x text-primary" style="font-size: 32px;"></i>
<p class="mt-3">Join us on a journey through the world of cars!</p>
<div class="row">
<div class="col-lg-12 text-center">
<a href="aboutUs.html" class="btn btn-primary btn-xl text-uppercase">Come learn more
about us</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Car Gallery Section -->
<section id="car-gallery" class="gallery-section">
<div class="container">
<h3 class="section-heading text-center text-uppercase mb-4">Sections we have</h3>
<div class="row">
<!-- News&Insights section -->
<div class="col-lg-4 mb-4">
<!-- Card for News&Insights -->
<div class="card">
<img src="Pictures/news.jpg" class="card-img-top" alt="News&Insights">
<div class="card-body">
<h5 class="card-title">News & Insights</h5>
<p class="card-text">Stay informed with the latest news and insights in the automotive
industry. Dive into the elegance and power of Car Model 1. Learn about its history,
features, and more.</p>
<a href="#" class="btn btn-primary">Reading Time</a>
</div>
</div>
</div>
<!-- Car Collections section -->
<div class="col-lg-4 mb-4">
<!-- Card for Car Collections -->
<div class="card">
<img src="Pictures/knowledges.jpg" class="card-img-top" alt="Car Collections">
<div class="card-body">
<h5 class="card-title">Car Collection Gallery</h5>
<p class="card-text">Embark on a journey through our curated car collections, revealing the
innovations and style of Car Model 2. Uncover the details that make it truly
extraordinary.</p>
<a href="carCollections.html" class="btn btn-primary">Knowledge Time</a>
</div>
</div>
</div>
<!-- Car Game Section -->
<div class="col-lg-4 mb-4">
<!-- Card for Car Game -->
<div class="card">
<img src="Pictures/game.jpeg" class="card-img-top" alt="Car Game">
<div class="card-body">
<h5 class="card-title">Gaming Gaming Car</h5>
<p class="card-text">Immerse yourself in the dynamic gaming world of Car Model 3. Explore
its design, performance, and captivating anecdotes. Brace yourself for an exhilarating
gaming experience!</p>
<a href="carDrivingGame.html" class="btn btn-primary">Game Time</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Community Section -->
<section id="community">
<div class="container">
<div class="row">
<!-- Applied the bootstrap layout -->
<div class="col-lg-12 text-center">
<h2 class="section-heading text-uppercase mb-4">Community</h2>
<p class="text-muted mb-5">Join our community of car enthusiasts and share your passion with others.
Connect, discuss, and explore the fascinating world of automobiles!</p>
</div>
</div>
<div class="row">
<!-- Community Cards -->
<div class="col-md-4">
<div class="card community-card">
<div class="card-body">
<i class="fa fa-users fa-3x mb-3"></i>
<h5 class="card-title">Engage</h5>
<p class="card-text">Connect with like-minded car enthusiasts. Join discussions, forums, and
events to share your experiences.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card community-card">
<div class="card-body">
<i class="fa fa-car fa-3x mb-3"></i>
<h5 class="card-title">Explore</h5>
<p class="card-text">Explore our curated car collections and stay updated with the latest
trends and insights in the automotive world.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card community-card">
<div class="card-body">
<i class="fa fa-comments-o fa-3x mb-3"></i>
<h5 class="card-title">Discuss</h5>
<p class="card-text">Join community discussions and forums. Share your thoughts, ask
questions, and learn from fellow car lovers.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Us Section -->
<section id="contact-us" class="contact-section">
<div class="container">
<h3>Leave a Quick Message to Us!</h3>
<div class="row mt-5">
<div class="col-lg-6">
<form class="needs-validation" novalidate>
<!-- Form validation -->
<div class="mb-3">
<label for="name" class="form-label">Your Name</label>
<input type="text" class="form-control" id="name" name="name" required>
<div class="invalid-feedback">
Please enter your name.
</div>
</div>
<div class="mb-3">
<label for="email" class="form-label">Your Email</label>
<input type="email" class="form-control" id="email" name="email" required>
<div class="invalid-feedback">
Please enter a valid email address.
</div>
</div>
<div class="mb-3">
<label for="message" class="form-label">Leave a Quick Message</label>
<textarea class="form-control" id="message" name="message" rows="3" required></textarea>
<div class="invalid-feedback">
Please leave a quick message.
</div>
</div>
<center><button type="submit" class="btn btn-primary">Submit</button></center>
</form>
</div>
<div class="col-lg-6">
<img src="Pictures/ReachOutUs.png" alt="Contact Us Image" width="400px" height="350px">
</div>
</div>
</section>
<!-- Internal JavaScript -->
<script>
(function () {
'use strict';
var forms = document.querySelectorAll('.needs-validation');
Array.from(forms).forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
})();
</script>
<footer></footer>
</body>
</html>