-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
181 lines (180 loc) · 5.88 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
<!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" />
<title>Carousel Page</title>
<link
rel="canonical"
href="https://getbootstrap.com/docs/5.0/examples/carousel/"
/>
<!-- Bootstrap core CSS -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
crossorigin="anonymous"
/>
<!-- Custom styles for this template -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container-fluid">
<a href="#" class="navbar-brand">Carousel</a>
<!-- Nút toggle nav menu -->
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarCollapse"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<!-- Menu -->
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav me-auto mb-2 mb-md-0">
<li class="nav-item">
<a href="#" class="nav-link active" aria-current="page">Home</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Link</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link disabled">Disabled</a>
</li>
</ul>
<form action="" class="d-flex">
<input
type="search"
class="form-control me-2"
placeholder="Search"
aria-label="Search"
/>
<button class="btn btn-outline-success" type="submit">
Search
</button>
</form>
</div>
</div>
</nav>
</header>
<!-- Carousel -->
<div id="myCarousel" class="carousel slide" data-bs-ride="carousel">
<!-- Nội dung bên trong carousel -->
<div class="carousel-inner">
<!-- img1 -->
<div class="carousel-item active bg-img1">
<div class="container">
<!-- Cách dùng img là theo mẫu của bootstrap docs -->
<!-- <img src="images/senda-banner.jpg" class="d-block w-100" /> -->
<div class="carousel-caption text-start">
<h1>Example headline.</h1>
<p>
Some representative placeholder content for the first slide of
the carousel.
</p>
<p>
<a href="#" class="btn btn-lg btn-primary">Sign up today</a>
</p>
</div>
</div>
</div>
<!-- img 2 -->
<div class="carousel-item bg-img2">
<div class="container">
<div class="carousel-caption">
<h1>Another example headline.</h1>
<p>
Some representative placeholder content for the second slide of
the carousel.
</p>
<p>
<a href="#" class="btn btn-lg btn-primary">Learn more</a>
</p>
</div>
</div>
</div>
<!-- img 3 -->
<div class="carousel-item bg-img3">
<div class="container">
<div class="carousel-caption text-end">
<h1>One more for good measure.</h1>
<p>
Some representative placeholder content for the third slide of
the carousel.
</p>
<p>
<a href="#" class="btn btn-lg btn-primary">Browse gallery</a>
</p>
</div>
</div>
</div>
</div>
<!-- Khối thể hiện vị trí item đang active -->
<div class="carousel-indicators">
<button
class="active"
type="button"
data-bs-target="#myCarousel"
data-bs-slide-to="0"
aria-label="Slide 1"
aria-current="true"
></button>
<button
type="button"
data-bs-target="#myCarousel"
data-bs-slide-to="1"
aria-label="Slide 2"
></button>
<button
type="button"
data-bs-target="#myCarousel"
data-bs-slide-to="2"
aria-label="Slide 3"
></button>
</div>
<!-- Khối điều khiển với hai button next, prev -->
<button
class="carousel-control-prev"
type="button"
data-bs-target="#myCarousel"
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="#myCarousel"
data-bs-slide="next"
>
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<!-- Footer -->
<footer>
<div class="container">
<p class="float-end">
<a href="#">Back to top</a>
</p>
<p>
© 2017–2021 Company, Inc. · <a href="#">Privacy</a> ·
<a href="#">Terms</a>
</p>
</div>
</footer>
<!-- JavaScript Bundle with Popper -->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
crossorigin="anonymous"
></script>
</body>
</html>