Untitled
2 years ago in Plain Text
<!DOCTYPE html>
<html>
<head>
<title>BAKMISS</title>
<style>
*{
margin: 0px;
padding: 0px;
font-family: 'Raleway';
}
.banner{
width: 100%;
height: 100vh;
background-image: none;
background-size: cover;
background-position: center;
z-index: -10;
}
.navbar{
width: 85%;
margin: auto;
padding: 35px 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.navbar button{
border: none;
background: transparent;
cursor: pointer;
position: relative;
overflow: hidden;
}
.logo{
width: 75px;
cursor: pointer;
border-radius: 50
}
.profile{
width: 40px;
padding: 5px;
cursor: pointer;
border-radius: 50%;
outline: none;
transform: scale 1;
transition: 200ms;
}
.profile:hover{
transform: scale(1.15);
}
.navbar ul {
margin-right: 30px;
}
.navbar ul li{
list-style: none;
display: inline-block;
margin: 0 20px;
position: relative;
}
.navbar ul li a{
text-decoration: none;
font-size: 20px;
color: #000;
opacity: 0.7;
text-transform: uppercase;
font-weight: bold;
transition: opacity 0.3s ease-in-out;
}
.navbar ul li a:hover{
text-decoration: none;
opacity: 1;
}
.navbar ul li ::after{
content: "";
height: 3px;
width: 0;
background: #00ff00;
position: absolute;
left: 0;
bottom: -5px;
transition: 0.3s;
}
.navbar ul li :hover::after{
width: 100%;
}
.content{
width: 100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
text-align: center;
}
.content h1{
font-size: 70px;
margin-top: 80px;
color: #000;
}
.content h2{
margin: 20px auto;
font-weight: 100;
list-style: 25px;
color: #000;
}
.content button{
width: 200px;
padding: 15px 0;
text-align: center;
margin: 20px 10px;
border-radius: 25px;
font-weight: bold;
border: 2px solid #00ff00;
background: transparent;
color: #000;
cursor: pointer;
position: relative;
overflow: hidden;
}
span{
background: #00ff00;
height: 100%;
width: 0;
border-radius: 25px;
position: absolute;
left: 0;
bottom: 0;
z-index: -1;
transition: 0.3s;
}
.content button:hover span{
width: 100%;
}
.popup{
position: absolute;
display: block;
top: -150%;
left: 50%;
opacity: 0;
z-index: 10;
transform: translate(-50%, 50%) scale(0.8);
width: 300px;
padding: 20px 30px;
background: #fff;
box-shadow: 2px 2px 5px 5px rgba(0, 0, 0, 0.15);
border-radius: 10px;
transition: top 0ms ease-in-out 200ms,
opacity 200ms ease-in-out 0ms,
transform 200ms ease-in-out 0ms;
}
.popup.active{
top: 50%;
opacity: 1;
transform: translate(-50%, 50%) scale(1);
transition: top 0ms ease-in-out 0ms,
opacity 200ms ease-in-out 0ms,
transform 200ms ease-in-out 0ms;
}
.popup .close-btn{
position: absolute;
top: 10px;
right: 10px;
width: 15px;
background: #888;
color: #eee;
text-align: center;
line-height: 15px;
border-radius: 15px;
cursor: pointer;
}
.popup .form h2{
text-align: center;
color: #222;
margin: 10px 0px 20px;
font-size: 30px;
font-weight: bold;
}
.popup .form .form-element{
margin: 17px 0px;
text-align: left;
}
.popup .form .form-element label{
font-size: 14px;
color: #222;
}
.popup .form .form-element input[type="text"],
.popup .form .form-element input[type="password"]{
margin-top: 5px;
display: block;
width: 100%;
padding: 10px;
outline: none;
border: 1px solid #aaa;
border-radius: 5px;
}
.popup .form .form-element input[type="checkbox"]{
margin-right: 5px;
}
.popup .form .form-element button{
width: 100%;
height: 40px;
border: none;
outline: none;
font-size: 18px;
background: #222;
color: #f5f5f5;
border-radius: 10px;
padding: 0;
cursor: pointer;
}
.popup .form .form-element a{
display: block;
text-align: right;
font-size: 15px;
color: #1a79ca;
text-decoration: none;
font-weight: 600;
}
.darkmode{
background-color: rgb(35, 35, 35);
color: all white;
}
</style>
<link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet'>
</head>
<body>
<div class="banner">
<div class="navbar">
<a href="https://instagram.com/bakmiss/"><img src="Bakmiss.png" class="logo"></a>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Sweet</a></li>
<li><a href="#">Home</a></li>
<li><a href="#">Sweet</a></li>
<li><a href="#">Home</a></li>
</ul>
<button id="show-login"><img src="profile.jpg" class="profile"></button>
</div>
<div class="content">
<h1>COMING SOON!</h1>
<h2>Stay tune for the latest updates!</h2>
<div>
<button type="button" onclick="crash()"><span></span>WAIT FASTER</button>
<button type="button" onclick="darkmode()"><span></span>Dark mode would be cool!</button>
</div>
</div>
</div>
<div class="popup">
<div class="close-btn">&times;</div>
<div class="form">
<h2>Log in</h2>
<div class="form-element">
<label for="email">Email</label>
<input type="text" id="email" placeholder="Enter email">
</div>
<div class="form-element">
<label for="password">Password</label>
<input type="password" id="password" placeholder="Enter password">
</div>
<div class="form-element">
<input type="checkbox" id="rememberMe">
<label for="rememberMe">Remember me</label>
</div>
<div class="form-element">
<button>Sign in</button>
</div>
<div class="form-element">
<a href="#">Forgot password?</a>
</div>
</div>
</div>
<script>
function darkmode(){
var element = document.body;
element.classList.toggle("darkmode");
}
function crash(){
alert("sabar ya dek")
}
document.querySelector("#show-login").addEventListener("click", function(){
document.querySelector(".popup").classList.add("active");
})
document.querySelector(".popup .close-btn").addEventListener("click", function(){
document.querySelector(".popup").classList.remove("active");
})
</script>
</body>
</html>