-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap4_project.html
More file actions
148 lines (125 loc) · 4.96 KB
/
bootstrap4_project.html
File metadata and controls
148 lines (125 loc) · 4.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dream Cars</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
scroll-behavior: smooth;
}
.hero {
background: url('https://images.unsplash.com/photo-1511919884226-fd3cad34687c') no-repeat center center/cover;
color: white;
padding: 100px 0;
text-align: center;
}
.hero h1 {
font-size: 3rem;
font-weight: bold;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="#">Dream Cars</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navMenu">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navMenu">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="#home">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#cars">Cars</a></li>
<li class="nav-item"><a class="nav-link" href="#videos">Videos</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="hero">
<div class="container">
<h1>Welcome to Dream Cars</h1>
<p class="lead">Explore luxury, speed, and performance.</p>
</div>
</section>
<!-- Cars Section -->
<section id="cars" class="p-5">
<div class="container">
<h2 class="text-center mb-4">Featured Cars</h2>
<div class="row">
<div class="col-md-4">
<div class="card mb-4">
<img src="https://images.unsplash.com/photo-1549921296-3ecf4f4f1f33" class="card-img-top" alt="Ferrari">
<div class="card-body text-center">
<h5 class="card-title">Ferrari</h5>
<p class="card-text">Luxury and speed combined.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card mb-4">
<img src="https://images.unsplash.com/photo-1502877338535-766e1452684a" class="card-img-top" alt="Lamborghini">
<div class="card-body text-center">
<h5 class="card-title">Lamborghini</h5>
<p class="card-text">Powerful and iconic design.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card mb-4">
<img src="https://images.unsplash.com/photo-1493238792000-8113da705763" class="card-img-top" alt="Porsche">
<div class="card-body text-center">
<h5 class="card-title">Porsche</h5>
<p class="card-text">Performance with style.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Video Section -->
<section id="videos" class="bg-light p-5">
<div class="container text-center">
<h2 class="mb-4">Car Videos</h2>
<iframe width="560" height="315"
src="https://www.youtube.com/embed/5qap5aO4i9A"
title="Car Video"
frameborder="0"
allowfullscreen>
</iframe>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="p-5">
<div class="container">
<h2 class="text-center mb-4">Contact Us</h2>
<form>
<div class="mb-3">
<label class="form-label">Name</label>
<input type="text" class="form-control" placeholder="Enter your name">
</div>
<div class="mb-3">
<label class="form-label">Favorite Car</label>
<input type="text" class="form-control" placeholder="Your favorite car">
</div>
<div class="mb-3">
<label class="form-label">Message</label>
<textarea class="form-control" rows="4" placeholder="Your message"></textarea>
</div>
<button type="submit" class="btn btn-dark w-100">Send Message</button>
</form>
</div>
</section>
<!-- Footer -->
<footer class="bg-dark text-white text-center p-3">
<p>© 2026 Dream Cars Website | Built with Bootstrap</p>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>