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
38 changes: 35 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,42 @@
<!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">
<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 class="active" href="#">About</a></li>
<li><a class="active" href="#">Dashboard</a></li>
<li><a class="active" href="#">Updates</a></li>
</ul>
</nav>
<div id="signup">
<input type="checkbox" id="link" name="checkbox" checked>
<div class="signup">
<label for="link">Sign up</label>
<form>
<div class="inputforms">
<input type="text" name="user" placeholder="Username" required>
<input type="text" name="email" placeholder="Email" required>
<input type="text" name="pass" placeholder="Password" required>
<button type="submit">Sign Up</button>
</div>
</form>
</div>
<div class="signin">
<label for="link">Sign In</label>
<form>
<div class="inputforms">
<input type="text" name="email" placeholder="Email" required>
<input type="text" name="pass" placeholder="Password" required>
<button type="submit">Sign In</button>
</div>
</form>
</div>
</div>
</body>
</html>
295 changes: 289 additions & 6 deletions public/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,290 @@
body{
margin: 0;
padding: 0;
min-height: 100vh;
font-family: 'Jost', sans-serif;
background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
}
margin: 0;
padding: 0;
min-height: 100vh;
font-family: 'Jost', sans-serif;
background: linear-gradient(to bottom, #0F0C29, #302B63, #24243E);
display: flex;
align-items: center;
justify-content: center;
}
#signup{
text-align: center;
width: 350px;
height: 500px;
background: linear-gradient(to bottom,#0F0C29, #302B63, #24243E);
border-radius: 10px;
margin-top: 70px;
box-shadow: 5px 5px 40px 10px;
overflow: hidden;
}
.inputforms{
padding: 70px 70px 70px 60px;
margin-left: 5px;
}
input{
width: 200px;
padding: 10px;
border-radius: 5px;
border: none;
margin-bottom:15px;
}
button{
background-color: blueviolet;
width: 160px;
height: 40px;
color: white;
margin-left: 5px;
cursor:pointer;
border-radius: 5px;
border: none;
}
button:hover{
background-color: #0F0C29;
}
label{
color:white;
font-size: 30px;
display: flex;
justify-content: center;
cursor: pointer;
transition: all ease-in-out;
}
.signin label{
color: #302B63;
}
#link{
display: none;
}
.signin{
background-color:white;
border-radius: 90% / 15%;
height: 500px;
width: 350px;
margin-top: 120px;
transform:translateY(-50px);
transition: 1s ease-in-out;
}
.signin input{
background-color:whitesmoke;
outline: none;
}
#link:checked ~ .signin{
transform: translateY(-400px);
}
#link:checked ~ .signin label{
transform: scale(1.25);
}
#link:checked ~ .signup label{
transform: scale(0.75);
}
nav{
display: flex;
background-color: white;
top: 0;
height: 4rem;
width: 100vw;
position: fixed;
background-color: rgb(146, 206, 234);
}
nav a{
display: flex;
align-items: center;
text-decoration: none;
color: black;
margin-left: 2px;
font-weight: bold;
font-size: 20px;
}
nav ul{
display: flex;
justify-content: flex-end;
list-style-type: none;
align-items: flex-start;
padding: 0;
margin: 0;
width: 100%;
margin-right: 2rem;
}
nav ul a{
display: flex;
align-items: center;
padding: 10px;
height: 3rem;
border-radius: 3px;
}
nav ul a:hover{
color: rgb(45, 0, 128);
}
nav a:hover{
color: rgb(76, 26, 162);
}
@media only screen and (max-width:500px){
nav{
display: inline;
justify-content: center;
top: 0;
height: 15rem;
position: absolute;
}
nav ul{
display: flex;
justify-content: center;
flex-direction: column;
margin-left: 35vw;
}
nav a{
margin-left: 5px;
display: flex;
justify-content: center;
}
#main{
margin-top: 250px;
}
}

body{
margin: 0;
padding: 0;
min-height: 100vh;
font-family: 'Jost', sans-serif;
background: linear-gradient(to bottom, #0F0C29, #302B63, #24243E);
display: flex;
align-items: center;
justify-content: center;
}
#signup{
text-align: center;
width: 350px;
height: 500px;
background: linear-gradient(to bottom,#0F0C29, #302B63, #24243E);
border-radius: 10px;
margin-top: 70px;
box-shadow: 5px 5px 40px 10px;
overflow: hidden;
}
.inputforms{
padding: 70px 70px 70px 60px;
margin-left: 5px;
}
input{
width: 200px;
padding: 10px;
border-radius: 5px;
border: none;
margin-bottom:15px;
}
button{
background-color: blueviolet;
width: 160px;
height: 40px;
color: white;
margin-left: 5px;
cursor:pointer;
border-radius: 5px;
border: none;
}
button:hover{
background-color: #0F0C29;
}
label{
color:white;
font-size: 30px;
display: flex;
justify-content: center;
cursor: pointer;
transition: all ease-in-out;
}
.signin label{
color: #302B63;
}
#link{
display: none;
}
.signin{
background-color:white;
border-radius: 90% / 15%;
height: 500px;
width: 350px;
margin-top: 120px;
transform:translateY(-50px);
transition: 1s ease-in-out;
}
.signin input{
background-color:whitesmoke;
outline: none;
}
#link:checked ~ .signin{
transform: translateY(-400px);
}
#link:checked ~ .signin label{
transform: scale(1.25);
}
#link:checked ~ .signup label{
transform: scale(0.75);
}
nav{
display: flex;
background-color: white;
top: 0;
height: 4rem;
width: 100vw;
position: fixed;
background-color: rgb(146, 206, 234);
}
nav a{
display: flex;
align-items: center;
text-decoration: none;
color: black;
margin-left: 2px;
font-weight: bold;
font-size: 20px;
}
nav ul{
display: flex;
justify-content: flex-end;
list-style-type: none;
align-items: flex-start;
padding: 0;
margin: 0;
width: 100%;
margin-right: 2rem;
}
nav ul a{
display: flex;
align-items: center;
padding: 10px;
height: 3rem;
border-radius: 3px;
}
nav ul a:hover{
color: rgb(45, 0, 128);
}
nav a:hover{
color: rgb(76, 26, 162);
}
@media only screen and (max-width:500px){
nav{
display: inline;
justify-content: center;
top: 0;
height: 15rem;
position: absolute;
}
nav ul{
display: flex;
justify-content: center;
flex-direction: column;
margin-left: 35vw;
}
nav a{
margin-left: 5px;
display: flex;
justify-content: center;
}
#main{
margin-top: 250px;
}
}