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
55 changes: 46 additions & 9 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>SingUp-SignIn</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@500&display=swap" rel="stylesheet">
</head>
<body>
</body>
<!DOCTYPE html>
<html>

<head>
<title>SingUp-SignIn</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@500&display=swap" rel="stylesheet">
</head>

<body>
<nav>
<a href="#">#HashInsert</a>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Dashboard</a></li>
<li><a href="#">Update</a></li>


</ul>
</nav>
<div class="main">
<input type="checkbox" name="changer" id="check">
<div class="singup-box">
<form>
<label for="check">Sign up</label>
<div class="inputs">
<input type="text" name="uname" placeholder="User name" required>
<input type="email" name="uemail" placeholder="Email" required>
<input type="password" name="upwd" placeholder="Password" required><br>
<button>Sign up</button>
</div>
</form>
</div>
<div class="signin-box">
<form>
<label for="check">Sign In</label>
<div class="inputs">
<input type="email" name="uemail" alt="signin-uname" placeholder="Email">
<input type="password" name="upwd" alt="upwd" placeholder="Password">
<button>Sign In</button>
</div>
</form>
</div>
</div>
</body>

</html>
153 changes: 153 additions & 0 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,157 @@ body{
min-height: 100vh;
font-family: 'Jost', sans-serif;
background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
display: flex;
align-items: center;
justify-content: center;
}
nav{
top:0;
height: 4rem;
width: 100vw;
position: fixed;
background-color:#a9a9d1;
display: flex;
}
nav a {
display: flex;
margin-left: 2px;
text-decoration: none;
color: black;
font-weight: bold;
font-size: 30px;
align-items: center;
}
nav ul{
display: flex;
justify-content: flex-end;
list-style: none;
padding: 0;
margin:0;
margin-right: 1.5rem;
width: 100%;
align-items: flex-start;
}
nav li{
padding-left: 30px;
margin-right: 0;
}
nav ul a{
display: flex;
align-items: center;
height: 3rem;
text-decoration: none;
color: #4e1c77;
font-size: medium;
padding-top: 10px;
}
nav ul a:hover{
color: #0f0c29;
font-weight: bold;
}
.main {
width: 350px;
height: 500px;
text-align: center;
background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
box-shadow: 0px 0px 30px 15px black;
border-radius: 10px;
margin-top: 80px;
overflow: hidden;
}


#check{
display: none;
}
label {
display: flex;
justify-content: center;
color: white;
font-size: 35px;
cursor: pointer;
transition: all ease-in-out;


}
.signin-box label{
color: #0f0c29;
transform: scale(.6);
}

.inputs{
padding: 80px 80px 80px 60px;
margin: auto;

}
input{
padding: 10px;
margin-bottom: 20px;
border-radius: 5px;
border: none;
width: 200px;
outline: none;
background-color: #e6d4f5;
}
button{
padding: 10px;
width: 180px;
border-radius: 5px;
border: none;
background-color:#0f0c29 ;
color: white;
font-size: 18px;
margin-bottom: 50PX;
margin-left: 8px;
}
button:hover{
background-color: #4e1c77;
}

.signin-box {
background-color: white;
border-radius: 60% / 10%;
height: 500px;
width: 349px;
margin-top: 80px;
transform: translateY( -120px);
transition: .10s ease-in-out;
}

.signin-box input{
background-color: #e6d4f5;
outline: none;
}


#check:checked ~ .signin-box{
transform: translateY(-470px);
}
#check:checked ~ .signin-box label{
transform: scale(1);
}
#check:checked ~ .singup-box label{
transform: scale(.6);
}
@media only screen and (max-width: 600px){
nav{
display: inline;
justify-content: center;
top:0;
height: 15rem;
position:absolute ;}
nav ul{
display: flex;
justify-content:center;
flex-direction: column;
margin-left: 40vw;
}
nav a {
margin-left: 5px;
display: flex;
justify-content: center;
}
.main{
margin-top: 260px;
}
}