HTML
xxxxxxxxxx
1
<!--Main Navigation-->
2
<header>
3
<!-- Intro settings -->
4
<style>
5
/* Default height for small devices */
6
#intro {
7
height: 600px;
8
/* Margin to fix overlapping fixed navbar */
9
margin-top: 58px;
10
}
11
@media (max-width: 991px) {
12
#intro {
13
/* Margin to fix overlapping fixed navbar */
14
margin-top: 45px;
15
}
16
}
17
</style>
18
19
<!-- Navbar -->
20
<nav class="navbar navbar-expand-lg navbar-light bg-white fixed-top">
21
<div class="container-fluid">
22
<!-- Navbar brand -->
23
<a class="navbar-brand" target="_blank" href="https://mdbootstrap.com/docs/standard/">
24
<img src="https://mdbootstrap.com/img/logo/mdb-transaprent-noshadows.png" height="16" alt="" loading="lazy"
25
style="margin-top: -3px;" />
26
</a>
27
<button class="navbar-toggler" type="button" data-mdb-collapse-init data-mdb-target="#navbarExample01"
28
aria-controls="navbarExample01" aria-expanded="false" aria-label="Toggle navigation">
29
<i class="fas fa-bars"></i>
30
</button>
31
<div class="collapse navbar-collapse" id="navbarExample01">
32
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
33
<li class="nav-item active">
34
<a class="nav-link" aria-current="page" href="#intro">Home</a>
35
</li>
36
<li class="nav-item">
37
<a class="nav-link" href="https://www.youtube.com/channel/UC5CF7mLQZhvx8O5GODZAhdA" rel="nofollow"
38
target="_blank">Learn Bootstrap 5</a>
39
</li>
40
<li class="nav-item">
41
<a class="nav-link" href="https://mdbootstrap.com/docs/standard/" target="_blank">Download MDB UI KIT</a>
42
</li>
43
</ul>
44
45
<ul class="navbar-nav d-flex flex-row">
46
<!-- Icons -->
47
<li class="nav-item me-3 me-lg-0">
48
<a class="nav-link" href="https://www.youtube.com/channel/UC5CF7mLQZhvx8O5GODZAhdA" rel="nofollow"
49
target="_blank">
50
<i class="fab fa-youtube"></i>
51
</a>
52
</li>
53
<li class="nav-item me-3 me-lg-0">
54
<a class="nav-link" href="https://www.facebook.com/mdbootstrap" rel="nofollow" target="_blank">
55
<i class="fab fa-facebook-f"></i>
56
</a>
57
</li>
58
<li class="nav-item me-3 me-lg-0">
59
<a class="nav-link" href="https://twitter.com/MDBootstrap" rel="nofollow" target="_blank">
60
<i class="fab fa-twitter"></i>
61
</a>
62
</li>
63
<li class="nav-item me-3 me-lg-0">
64
<a class="nav-link" href="https://github.com/mdbootstrap/mdb-ui-kit" rel="nofollow" target="_blank">
65
<i class="fab fa-github"></i>
66
</a>
67
</li>
68
</ul>
69
</div>
70
</div>
71
</nav>
72
<!-- Navbar -->
73
74
<!-- Background image -->
75
<div id="intro" class="p-5 text-center bg-image shadow-1-strong"
76
style="background-image: url('https://mdbootstrap.com/img/new/slides/205.jpg');">
77
<div class="mask" style="background-color: rgba(0, 0, 0, 0.7);">
78
<div class="d-flex justify-content-center align-items-center h-100">
79
<div class="text-white px-4" data-mdb-theme="dark">
80
<h1 class="mb-3">Coming Soon!</h1>
81
82
<!-- Time Counter -->
83
<h3 id="time-counter" class="border border-light my-4 p-4"></h3>
84
85
<p>We're working hard to finish the development of this site.</p>
86
87
<p>Until then have a look at our Free Bootstrap 5 tutorials</p>
88
89
<a class="btn btn-outline-light btn-lg m-2" href="https://www.youtube.com/watch?v=c9B4TPnak1A" role="button" data-mdb-ripple-init
90
rel="nofollow" target="_blank">Start tutorial</a>
91
<a class="btn btn-outline-light btn-lg m-2" href="https://mdbootstrap.com/docs/standard/" target="_blank" data-mdb-ripple-init
92
role="button">Download MDB UI KIT</a>
93
</div>
94
</div>
95
</div>
96
</div>
97
<!-- Background image -->
98
</header>
99
<!--Main Navigation-->
100
101
<!--Main layout-->
102
<main class="mt-5">
103
<div class="container">
104
<!--Section: Content-->
105
<section>
106
<div class="row">
107
<div class="col-md-6 gx-5 mb-4 d-lg-flex align-items-center">
108
<div>
109
<h4><strong>Subscribe to stay up to date </strong></h4>
110
<p class="text-muted">
111
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis consequatur
112
eligendi quisquam doloremque vero ex debitis veritatis placeat unde animi laborum
113
sapiente illo possimus, commodi dignissimos obcaecati illum maiores corporis.
114
</p>
115
</div>
116
</div>
117
118
<div class="col-md-6 gx-5 mb-4">
119
<form>
120
<!-- Name input -->
121
<div class="form-outline mb-4" data-mdb-input-init>
122
<input type="text" id="form5Example1" class="form-control" />
123
<label class="form-label" for="form5Example1">Name</label>
124
</div>
125
126
<!-- Email input -->
127
<div class="form-outline mb-4" data-mdb-input-init>
128
<input type="email" id="form5Example2" class="form-control" />
129
<label class="form-label" for="form5Example2">Email address</label>
130
</div>
131
132
<!-- Submit button -->
133
<button type="submit" class="btn btn-primary btn-block mb-4" data-mdb-ripple-init>
134
Subscribe
135
</button>
136
</form>
137
</div>
138
</div>
139
</section>
140
<!--Section: Content-->
141
</div>
142
</main>
143
<!--Main layout-->
144
145
<!--Footer-->
146
<footer class="bg-light text-lg-start">
147
<div class="py-4 text-center">
148
<a role="button" class="btn btn-primary btn-lg m-2" data-mdb-ripple-init
149
href="https://www.youtube.com/channel/UC5CF7mLQZhvx8O5GODZAhdA" rel="nofollow" target="_blank">
150
Learn Bootstrap 5
151
</a>
152
<a role="button" class="btn btn-primary btn-lg m-2" data-mdb-ripple-init href="https://mdbootstrap.com/docs/standard/" target="_blank">
153
Download MDB UI KIT
154
</a>
155
</div>
156
157
<hr class="m-0" />
158
159
<div class="text-center py-4 align-items-center">
160
<p>Follow MDB on social media</p>
161
<a href="https://www.youtube.com/channel/UC5CF7mLQZhvx8O5GODZAhdA" class="btn btn-primary m-1" role="button" data-mdb-ripple-init
162
rel="nofollow" target="_blank">
163
<i class="fab fa-youtube"></i>
164
</a>
165
<a href="https://www.facebook.com/mdbootstrap" class="btn btn-primary m-1" role="button" rel="nofollow" data-mdb-ripple-init
166
target="_blank">
167
<i class="fab fa-facebook-f"></i>
168
</a>
169
<a href="https://twitter.com/MDBootstrap" class="btn btn-primary m-1" role="button" rel="nofollow" data-mdb-ripple-init
170
target="_blank">
171
<i class="fab fa-twitter"></i>
172
</a>
173
<a href="https://github.com/mdbootstrap/mdb-ui-kit" class="btn btn-primary m-1" role="button" rel="nofollow" data-mdb-ripple-init
174
target="_blank">
175
<i class="fab fa-github"></i>
176
</a>
177
</div>
178
179
<!-- Copyright -->
180
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.2);">
181
© 2020 Copyright:
182
<a class="text-dark" href="https://mdbootstrap.com/">MDBootstrap.com</a>
183
</div>
184
<!-- Copyright -->
185
</footer>
186
<!--Footer-->
187
188
<!-- Time Counter -->
189
<script type="text/javascript">
190
// Set the date we're counting down to
191
var countDownDate = new Date();
192
countDownDate.setDate(countDownDate.getDate() + 30);
193
194
// Update the count down every 1 second
195
var x = setInterval(function () {
196
// Get todays date and time
197
var now = new Date().getTime();
198
199
// Find the distance between now an the count down date
200
var distance = countDownDate - now;
201
202
// Time calculations for days, hours, minutes and seconds
203
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
204
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
205
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
206
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
207
208
// Display the result in the element with id="demo"
209
document.getElementById('time-counter').innerHTML =
210
days + 'd ' + hours + 'h ' + minutes + 'm ' + seconds + 's ';
211
212
// If the count down is finished, write some text
213
if (distance < 0) {
214
clearInterval(x);
215
document.getElementById('time-counter').innerHTML = 'EXPIRED';
216
}
217
}, 1000);
218
</script>
CSS
1
1
JS
1
1
Console errors: 0