Bootstrap Coming Soon Pages - Component Snippets
Coming soon pages are designed to create anticipation and excitement for the launch of a product or website. A coming soon page is a web page on a website that is not yet available to the public, but will be made available in the near future.
Coming Soon Style 1
<!--====== COMING SOON PART START ======-->
<section
class="
coming-soon-area coming-soon-one
d-flex
align-items-center
bg_cover
"
style="background-image: url(https://cdn.ayroui.com/1.0/images/coming-soon/background.png)"
>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="coming-soon-content text-center">
<div class="countdown">
<ul id="countdown-example">
<li>
<span class="count days">29</span>
<p class="text days_text">Days</p>
</li>
<li>
<span class="count hours">53</span>
<p class="text hours_text">Hours</p>
</li>
<li>
<span class="count minutes">34</span>
<p class="text minutes_text">Minutes</p>
</li>
<li>
<span class="count seconds">08</span>
<p class="text seconds_text">Seconds</p>
</li>
</ul>
</div>
<h2 class="coming-soon-title">coming soon</h2>
<div class="coming-soon-btn rounded-buttons">
<ul>
<li>
<a
href="javascript:void(0)"
class="btn primary-btn-outline rounded-full"
>
LEARN MORE
</a>
</li>
<li>
<a
href="javascript:void(0)"
class="btn primary-btn rounded-full"
>
GET NOTIFY
</a>
</li>
</ul>
</div>
<!-- rounded-buttons -->
</div>
<!-- coming soon content -->
</div>
</div>
<!-- row -->
</div>
<!-- container -->
</section>
<!--====== COMING SOON PART ENDS ======-->
<script>
// ====== date countdown
const end = new Date("May 03, 2025 00:00:00").getTime();
//const end = new Date("November 09, 2020 00:00:00").getTime();
const dayEl = document.querySelector(".days");
const hoursEl = document.querySelector(".hours");
const minutesEl = document.querySelector(".minutes");
const secondsEl = document.querySelector(".seconds");
const seconds = 1000;
const minutes = seconds * 60;
const hours = minutes * 60;
const days = hours * 24;
const x = setInterval(function () {
let now = new Date().getTime();
const difference = end - now;
if (difference < 0) {
clearInterval(x);
document.getElementById("done").innerHTML = "We're married! 🎉";
return;
}
dayEl.innerText = Math.floor(difference / days);
hoursEl.innerText = Math.floor((difference % days) / hours);
minutesEl.innerText = Math.floor((difference % hours) / minutes);
secondsEl.innerText = Math.floor((difference % minutes) / seconds);
}, seconds);
</script>
/* ===== Buttons Css ===== */
.coming-soon-one .coming-soon-content .coming-soon-btn .primary-btn {
background: var(--primary);
color: var(--white);
box-shadow: var(--shadow-2);
}
.coming-soon-one .coming-soon-content .coming-soon-btn .active.primary-btn, .coming-soon-one .coming-soon-content .coming-soon-btn .primary-btn:hover, .coming-soon-one .coming-soon-content .coming-soon-btn .primary-btn:focus {
background: var(--primary-dark);
color: var(--white);
box-shadow: var(--shadow-4);
}
.coming-soon-one .coming-soon-content .coming-soon-btn .deactive.primary-btn {
background: var(--gray-4);
color: var(--dark-3);
pointer-events: none;
}
.coming-soon-one .coming-soon-content .coming-soon-btn .primary-btn-outline {
border-color: var(--primary);
color: var(--primary);
}
.coming-soon-one .coming-soon-content .coming-soon-btn .active.primary-btn-outline, .coming-soon-one .coming-soon-content .coming-soon-btn .primary-btn-outline:hover, .coming-soon-one .coming-soon-content .coming-soon-btn .primary-btn-outline:focus {
background: var(--primary-dark);
color: var(--white);
}
.coming-soon-one .coming-soon-content .coming-soon-btn .deactive.primary-btn-outline {
color: var(--dark-3);
border-color: var(--gray-4);
pointer-events: none;
}
/*===== COMING SOON ONE =====*/
.coming-soon-one {
height: 700px;
}
.coming-soon-one .coming-soon-content .countdown ul {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
}
.coming-soon-one .coming-soon-content .countdown ul li {
padding: 0 45px;
text-align: center;
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
.coming-soon-one .coming-soon-content .countdown ul li {
padding: 0px 30px;
}
}
@media (max-width: 767px) {
.coming-soon-one .coming-soon-content .countdown ul li {
padding: 0 10px;
}
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
.coming-soon-one .coming-soon-content .countdown ul li {
padding: 0 15px;
}
}
.coming-soon-one .coming-soon-content .countdown ul li .count {
font-size: 52px;
font-weight: 600;
line-height: 60px;
color: var(--white);
}
@media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px) {
.coming-soon-one .coming-soon-content .countdown ul li .count {
font-size: 55px;
}
}
@media (max-width: 767px) {
.coming-soon-one .coming-soon-content .countdown ul li .count {
font-size: 24px;
line-height: 30px;
}
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
.coming-soon-one .coming-soon-content .countdown ul li .count {
font-size: 36px;
line-height: 40px;
}
}
.coming-soon-one .coming-soon-content .countdown ul li .text {
font-size: 20px;
font-weight: 600;
margin-top: 10px;
color: var(--white);
}
@media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px) {
.coming-soon-one .coming-soon-content .countdown ul li .text {
font-size: 18px;
}
}
@media (max-width: 767px) {
.coming-soon-one .coming-soon-content .countdown ul li .text {
font-size: 14px;
margin-top: 0;
}
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
.coming-soon-one .coming-soon-content .countdown ul li .text {
font-size: 18px;
margin-top: 0;
}
}
.coming-soon-one .coming-soon-content .coming-soon-title {
font-size: 72px;
color: var(--white);
line-height: 85px;
text-transform: uppercase;
margin-top: 30px;
}
@media (max-width: 767px) {
.coming-soon-one .coming-soon-content .coming-soon-title {
font-size: 38px;
line-height: 45px;
}
}
@media (max-width: 767px) {
.coming-soon-one .coming-soon-content .coming-soon-title {
font-size: 60px;
line-height: 70px;
}
}
.coming-soon-one .coming-soon-content .coming-soon-btn {
padding-top: 20px;
}
.coming-soon-one .coming-soon-content .coming-soon-btn ul li {
display: inline-block;
margin-left: 18px;
margin-top: 20px;
}
@media (max-width: 767px) {
.coming-soon-one .coming-soon-content .coming-soon-btn ul li {
margin-left: 0;
}
}
.coming-soon-one .coming-soon-content .coming-soon-btn ul li:first-child {
margin-left: 0;
}
Coming Soon Style 2