-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (83 loc) · 5.61 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 5 Header</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg position-absolute top-0 w-100 z-2">
<div class="container">
<a href="#" class="navbar-brand text-light">Bootstrap 5 Header</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0 d-flex justify-content-end w-100">
<li class="nav-item">
<a href="#" class="nav-link text-light text-center active" aria-current="page">Home</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link text-light text-center">About</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link text-light text-center">Products</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link text-light text-center">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="carouselExampleAutoplaying" class="carousel slide position-relative" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleAutoplaying" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleAutoplaying" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleAutoplaying" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner h-100">
<div class="carousel-item h-100 active">
<img src="./img/img1.jpg" class="d-block w-100" alt="img1">
<div class="carousel-caption h-100 d-flex flex-column justify-content-center align-items-start">
<h2 class="fw-bold">Iphone X</h2>
<p class="w-50 text-start d-none d-md-block fs-5 fw-light">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Officia velit quos nisi esse.</p>
<button type="button" class="btn btn-primary shadow text-capitalize">Buy here</button>
</div>
</div>
<div class="carousel-item h-100">
<img src="./img/img2.jpg" class="d-block w-100" alt="img2">
<div class="carousel-caption h-100 d-flex flex-column justify-content-center align-items-start">
<h2 class="fw-bold">It's magic</h2>
<p class="w-50 text-start d-none d-md-block fs-5 fw-light">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Alias expedita aspernatur sit quia error sapiente vitae reprehenderit!</p>
<button type="button" class="btn btn-outline-light shadow text-capitalize">Discover more</button>
</div>
</div>
<div class="carousel-item h-100">
<img src="./img/img3.jpg" class="d-block w-100" alt="img3">
<div class="carousel-caption h-100 d-flex flex-column justify-content-center align-items-end">
<h2 class="fw-bold">New product</h2>
<p class="w-50 text-end d-none d-md-block fs-5 fw-light">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quod possimus provident unde dolores atque corrupti ex debitis tempore!</p>
<button type="button" class="btn btn-primary shadow text-capitalize">More products</button>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleAutoplaying" 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="#carouselExampleAutoplaying" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</header>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
</body>
</html>