forked from Sahil1786/Petari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Sahil1786#108 from Laxelspal/origine-main
added reset password functionality
- Loading branch information
Showing
4 changed files
with
231 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<!-- <link rel="stylesheet" href="/public/css/index.css"> --> | ||
<style> | ||
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200&display=swap'); | ||
*{ | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: 'poppins', sans-serif; | ||
} | ||
.wrapper{ | ||
background-color: #106fde; | ||
width: 100%; | ||
height: 100vh; | ||
padding: 15px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 20px; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.container{ | ||
width: 500px; | ||
background-color: #fff; | ||
padding: 30px; | ||
border-radius: 16px; | ||
background-color: rgba(0,0,0,0.08) 0px 4px 12px; | ||
/* flex-shrink: 1; */ | ||
} | ||
.title-section{ | ||
margin-bottom: 30px; | ||
} | ||
.title{ | ||
color: #38475a; | ||
font-size: 25px; | ||
font-weight: 500; | ||
text-transform: capitalize; | ||
margin-bottom: 10px; | ||
} | ||
.input-group{ | ||
position: relative; | ||
} | ||
.input-group .label-title{ | ||
color: #38475a; | ||
text-transform: capitalize; | ||
margin-bottom: 11px; | ||
font-size: 14px; | ||
display: block; | ||
font-weight: 500; | ||
} | ||
.input-group input{ | ||
width: 100%; | ||
background-color: none; | ||
color: #38475a; | ||
height: 50px; | ||
font-size: 16px; | ||
font-weight: 300; | ||
border: 1px solid #EAECF0; | ||
padding: 9px 18px 9px 52px; | ||
outline: none; | ||
border-radius: 8px; | ||
margin-bottom: 20px; | ||
} | ||
.input-group .input::placeholder{ | ||
color: #38475a; | ||
font-size: 16px; | ||
font-weight: 400; | ||
} | ||
.input-group .icon{ | ||
position: absolute; | ||
color: #38475a; | ||
left: 13px; | ||
font-size: 23px; | ||
text-align: center; | ||
top: calc(50% - 11px); | ||
} | ||
.submit-btn{ | ||
width: 100%; | ||
background-color: #106fde; | ||
border: 1px solid transparent; | ||
border-radius: 8px; | ||
font-size: 16px; | ||
color: #fff; | ||
padding: 13px 24px; | ||
font-weight: 500; | ||
text-align: center; | ||
text-transform: capitalize; | ||
cursor: pointer; | ||
} | ||
.submit-btn:hover{ | ||
opacity: 0.95; | ||
} | ||
.logo{ | ||
width: 10%; | ||
flex: 0 0 0; | ||
} | ||
</style> | ||
<title>Password Reset</title> | ||
</head> | ||
<body> | ||
|
||
<div class="wrapper"> | ||
<img src="img/logo.png" alt="" class="logo"> | ||
<div class="container"> | ||
<div class="title-section"> | ||
<h2 class="title">Reset Password</h2> | ||
|
||
<form action="/reset-password?email=<%=email%>&token=<%=token%>" class="form" method="post"> | ||
<div class="input-group"> | ||
<label for="" class="label-title">Enter new Password</label> | ||
<input type="password" name="newPassword" placeholder="Enter your password"> | ||
<!-- <span class="icon"> </span> --> | ||
|
||
</div> | ||
<div class="input-group"> | ||
<button class="submit-btn" type="submit">Update my password</button> | ||
|
||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
</body> | ||
</html> |