Skip to content

Commit

Permalink
Improved signup page
Browse files Browse the repository at this point in the history
  • Loading branch information
Apple authored and Apple committed Jan 13, 2023
1 parent fa5fd73 commit 8ef9948
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 15 deletions.
Binary file modified .DS_Store
Binary file not shown.
90 changes: 85 additions & 5 deletions public/css/signup.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
body{
background-color: rgb(220, 248, 233);
background: linear-gradient(-45deg, rgb(200, 221, 117),green,rgb(200, 221, 117));
background-size: 200% 200%;
animation: ani 6s infinite alternate ease-in-out;
/* background-image: url("../images/wallform.jpg"); */
overflow-y: hidden;
}

@keyframes ani{
0%{
background-position: 0% 0%;
}
100%{
background-position: 100% 100%;
}
}

nav{
position: relative;
top: 35px;
Expand Down Expand Up @@ -43,19 +55,87 @@ nav button{
margin: 10vh 5vw;
background-color: white;
box-shadow: 0px 0px 18px 2px rgb(202, 202, 202);
padding: 5vh;
display: flex;
justify-content: space-between;
justify-content: space-around;
border-radius: 10px;
align-items: center;
}

#form-container form{
text-align: center;
width: 30vw;
min-width: 288px;
margin: 4% 9%;
}

#form-container label,#form-container input{
display: block;
}

#form-img-container{
position: relative;
width: 722px;
height: 70vh;
overflow: hidden;
}

.form-img{
height: 80vh;

}
/* margin-top: 4%; */
width: 100%;
height: 100%;
position: absolute;
}

@media screen and (max-width: 1114px) {
.form-img{
margin-top: 15%;
height: 80%;
}
}

@media screen and (max-width: 910px) {
.form-img{
margin-top: 40%;
height: 60%;
}
}

@media screen and (max-width: 727px) {
#form-img-container{
display: none;
}
}

.next{
left: 724px;
}

.animate{
transition: all 0.5s;
left: 0px;
}

form h1{
margin: 20px 0px 50px 0px;
color: darkgreen;
}

form input{
width: 100%;
border: none;
border-bottom: 2px solid black;
margin: 20px 0px;
outline: none;
font-size: 20px;
}

form button{
width: 100%;
margin: 20px 0px;
height: 40px;
border-radius: 20px;
background-color: darkgreen;
color: white;
border: 1px solid black;
}
Binary file added public/images/farmwallvector.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/formwall.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/signup-img3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/js/signup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let fimg = document.querySelectorAll("#form-img-container img");
setTimeout(()=>{
fimg[1].classList.add("animate");
},5000);
Binary file added views/.DS_Store
Binary file not shown.
29 changes: 19 additions & 10 deletions views/signupadmin.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,28 @@
Sign Up
</button>
</nav>
<div id="form-container">
<div>
<img src="images/signup-img.png" class="d-block w-100 form-img" alt="...">
<div id="form-container" >
<div id="form-img-container">
<div id="slide-imgs">
<img src="images/signup-img.png" class="form-img curr" alt="">
<img src="images/signup-img3.jpeg" class="form-img next" alt="">
<img src="images/signup-img4.jpeg" class="form-img next" alt="">
</div>
</div>
<form action="">
<h1>Sign Up</h1>
<label for="name">Name</label>
<input type="text" name="name">
<label for="email">Email</label>
<input type="email" name="email">
<label for="phoneno">Phone no.</label>
<input type="tel">
<!-- <label for="name" class="">Name</label> -->
<input type="text" name="name" placeholder="User Name">
<!-- <label for="email">Email</label> -->
<input type="email" name="email" placeholder="Email">
<!-- <label for="phoneno">Phone no.</label> -->
<!-- <input type="tel" placeholder="Phone no."> -->
<input type="password" placeholder="Create Password">
<input type="password" placeholder="Confirm Password">
<button type="submit">Register</button>
<p>If you already a user? <a href="">log in</a></p>
</form>
</div>

</div>
</div>
<script src="js/signup.js"></script>

0 comments on commit 8ef9948

Please sign in to comment.