xxxxxxxxxx
1
<!--Main Navigation-->
2
<header>
3
<!-- Animated navbar-->
4
<nav class="navbar navbar-expand-lg fixed-top navbar-scroll" data-mdb-navbar-init>
5
<div class="container-fluid">
6
<button
7
class="navbar-toggler ps-0"
8
type="button"
9
data-mdb-toggle="collapse"
10
data-mdb-target="#navbarExample01"
11
aria-controls="navbarExample01"
12
aria-expanded="false"
13
aria-label="Toggle navigation"
14
>
15
<span
16
class="d-flex justify-content-start align-items-center"
17
>
18
<i class="fas fa-bars"></i>
19
</span>
20
</button>
21
<div class="collapse navbar-collapse" id="navbarExample01">
22
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
23
<li class="nav-item active">
24
<a class="nav-link" aria-current="page" href="#intro">Home</a>
25
</li>
26
<li class="nav-item">
27
<a
28
class="nav-link"
29
href="https://www.youtube.com/channel/UC5CF7mLQZhvx8O5GODZAhdA"
30
rel="nofollow"
31
target="_blank"
32
>Learn Bootstrap 5</a
33
>
34
</li>
35
<li class="nav-item">
36
<a
37
class="nav-link"
38
href="https://mdbootstrap.com/docs/standard/"
39
target="_blank"
40
>Download MDB UI KIT</a
41
>
42
</li>
43
</ul>
44
45
<ul class="navbar-nav flex-row">
46
<!-- Icons -->
47
<li class="nav-item">
48
<a
49
class="nav-link pe-2"
50
href="https://www.youtube.com/channel/UC5CF7mLQZhvx8O5GODZAhdA"
51
rel="nofollow"
52
target="_blank"
53
>
54
<i class="fab fa-youtube"></i>
55
</a>
56
</li>
57
<li class="nav-item">
58
<a
59
class="nav-link px-2"
60
href="https://www.facebook.com/mdbootstrap"
61
rel="nofollow"
62
target="_blank"
63
>
64
<i class="fab fa-facebook-f"></i>
65
</a>
66
</li>
67
<li class="nav-item">
68
<a
69
class="nav-link px-2"
70
href="https://twitter.com/MDBootstrap"
71
rel="nofollow"
72
target="_blank"
73
>
74
<i class="fab fa-twitter"></i>
75
</a>
76
</li>
77
<li class="nav-item">
78
<a
79
class="nav-link ps-2"
80
href="https://github.com/mdbootstrap/mdb-ui-kit"
81
rel="nofollow"
82
target="_blank"
83
>
84
<i class="fab fa-github"></i>
85
</a>
86
</li>
87
</ul>
88
</div>
89
</div>
90
</nav>
91
<!-- Animated navbar -->
92
93
<!-- Background image -->
94
<div
95
id="intro"
96
class="bg-image"
97
style="
98
background-image: url(https://mdbcdn.b-cdn.net/img/new/fluid/city/113.jpg);
99
height: 100vh;
100
"
101
>
102
<div class="mask text-white" style="background-color: rgba(0, 0, 0, 0.8)">
103
<div class="container d-flex align-items-center text-center h-100">
104
<div>
105
<h1 class="mb-5">This is title</h1>
106
<p>
107
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Officiis molestiae
108
laboriosam numquam expedita ullam saepe ipsam, deserunt provident corporis,
109
sit non accusamus maxime, magni nulla quasi iste ipsa architecto? Autem!
110
</p>
111
</div>
112
</div>
113
</div>
114
</div>
115
<!-- Background image -->
116
</header>
117
<!--Main Navigation-->
118
119
<div class="container my-5">
120
<p> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nobis quam minima perspiciatis eos tenetur. Praesentium dolores at quos aperiam sed, sint provident consectetur incidunt, nostrum porro earum commodi, ex architecto.</p>
121
122
</div>
xxxxxxxxxx
1
/* Color of the links BEFORE scroll */
2
.navbar-scroll .nav-link,
3
.navbar-scroll .navbar-toggler .fa-bars {
4
color: #fff;
5
}
6
7
/* Color of the links AFTER scroll */
8
.navbar-scrolled .nav-link,
9
.navbar-scrolled .navbar-toggler .fa-bars {
10
color: #4f4f4f;
11
}
12
13
/* Color of the navbar AFTER scroll */
14
.navbar-scrolled {
15
background-color: #fff;
16
}
17
18
/* An optional height of the navbar AFTER scroll */
19
.navbar.navbar-scroll.navbar-scrolled {
20
padding-top: 5px;
21
padding-bottom: 5px;
22
}
23
1
1
Console errors: 0