Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions coming soon/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>coming soon </title>
<link rel="stylesheet" href="./style.css">
</head>

<body>
<main id="main">
<h1 class="txt">coming soon </h1>
<p class="countdown"></p>
<p class="copyright">&copy;Jafar Mizapoor</p>
</main>
<script>

// Countdown date is set to `Jan /1 /2030
let countDownDate = new Date("Jan 1, 2030 00:00:00").getTime();

// Update the count down every 1 second
let dateStr = setInterval(function () {

// Get todays date and time
let now = new Date().getTime();

// Find the distance between now an the count down date
let distance = countDownDate - now;

// Time calculations for days, hours, minutes and seconds
let days = Math.floor(distance / (1000 * 60 * 60 * 24));
let hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
let seconds = Math.floor((distance % (1000 * 60)) / 1000);

// Display the result in an element with id="demo"
document.querySelector(".countdown").innerHTML =
days + `${days < 10 ? `Day ` : `Days `}`
+ hours + `${hours < 10 ? `Hour ` : `Hours `}`
+ minutes + `${minutes < 10 ? `Minute ` : `Minutes `}`
+ seconds + `${seconds < 10 ? `Second ` : `Seconds `}`;

// If the count down is finished, write some text
if (distance < 0) {
clearInterval(dateStr);
document.querySelector(",countdown").innerHTML = "EXPIRED";
}
}, 1000);
</script>
</body>

</html>
45 changes: 45 additions & 0 deletions coming soon/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@200&display=swap');

* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Exo', sans-serif;
}

#main {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: #181818;
}

.txt {
font-size: 5rem;
border-radius: 10px;
text-transform: uppercase;
color: #ff4917;
text-shadow:
0 0 2rem #ff4917,
0 0 4rem #ff4917;
padding: 2rem 2.5rem;
box-shadow: 0 0 .8rem #08F,
inset 0 0 .8rem #08f;
margin: 3rem 0rem;
border: solid 3px rgb(23, 138, 240);
}

.countdown {
font-size: 22px;
margin: 1rem 0rem;
color: #f0f8ff;
}

.copyright {
color: #ffffff;
font-size: 1rem;
margin: 3rem 0rem;
}