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
35 changes: 35 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
<!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="#">Updates</a></li>
</ul>
</nav>
<div id="main">
<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="email" name="mail" placeholder="Email" required>
<input type="password" id="pwd" 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="email" name="email" placeholder="Email" required>
<input type="password" id="pwd" name="pass" placeholder="Password" required>
<button type="submit">Sign In</button>
</div>
</form>
</div>
</div>
</body>

</html>
151 changes: 150 additions & 1 deletion public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,153 @@ 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;
}

#main{
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:auto; */
margin-left: 5px;
}

input{
width: 200px;
/* height: 30px; */
padding: 10px;
border-radius: 5px;
border: none;
margin-bottom:15px;
}

button{
background-color: blueviolet;
width: 160px;
height: 40px;
color: white;
/* margin-bottom: 30px; */
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: 0.8s ease-in-out;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update the transition value to ~.8s


.signin label{
color: #302b63;
/* transition: scale(1); */
}

#link{
display: none;
}
.signin{
background-color:white;
border-radius: 90% / 15%;
height: 500px;
width: 350px;
margin-top: 120px;
transform:translateY(-50px);
transition: 1.5s 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;
}
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;
}
nav ul a:hover{
color: teal;
}
nav a:hover{
color: aquamarine;
}
@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;
}
}