Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Forgot Password page #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 0 additions & 4 deletions com-dict-client/.env.sample

This file was deleted.

87 changes: 87 additions & 0 deletions com-dict-client/src/components/ForgotPassword/ForgotPassword.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
* {
margin: 0;
box-sizing: border-box;
font-family: "CustomFont";
}
.page {
height: 60vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 0.15em;
}

.cover {
background-color: white;
width: 70%;
height: 50%;
position: relative;
border-radius: 1em;
box-shadow: 0 0.188em 1.550em rgb(156, 156, 156);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
}

input {
border: none;
background-color: rgb(229, 226, 226);
width: 80%;
height: 3em;
border-radius: 0.9em;
text-align: center;
padding: 1em;
font-size: 0.75em;
}

input:focus {
outline-color: rgb(32, 177, 255);
}

.login-btn {
width: 40%;
height: 2em;
background-color: rgb(32, 177, 255);
display: flex;
justify-content: center;
align-items: center;
transition: 0.5s;
border-radius: 0.9em;
cursor: pointer;
}

.login-btn:hover { transform: scale(1.25);}

.text {
position: relative;
bottom: 0.5%;
}

.hide {
position: absolute;
transform: scale(0);
}

@media only screen and (min-device-width: 37em) {
.page {
font-size: 1em;
}

.cover {
width: 60%;
height: 70%;
}
}

@media only screen and (min-device-width: 64em) {
.page {
font-size: 1.25em;
}

.cover {
width: 25%;
height: 65%;
}
}
17 changes: 17 additions & 0 deletions com-dict-client/src/components/ForgotPassword/ForgotPassword.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React, {useEffect, useState} from "react";
import "./ForgotPassword.css"

const ForgotPassword = () => {

return (
<div className="cover">
<h1>Password Reset</h1>
<input type="emailId" placeholder="Register Email" />

<div className="login-btn" >Submit</div>

</div>
)
}

export default ForgotPassword
2 changes: 1 addition & 1 deletion com-dict-client/src/components/Login/loginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const NormalLoginForm = () => {
<Checkbox>Remember me</Checkbox>
</Form.Item>

<a href="#1" className="login-form-forgot">
<a href="/ForgotPassword" className="login-form-forgot">
Forgot password
</a>
</Form.Item>
Expand Down
2 changes: 2 additions & 0 deletions com-dict-client/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from "react";
import { BrowserRouter as Router, Route, Redirect } from "react-router-dom";
import HomePage from "./containers/home/home";
import SignUp from "./containers/signup/signup";
import ForgotPassword from "./components/ForgotPassword/ForgotPassword"
import AddWord from "./containers/addWord/addWord";
import LetterBased from "./containers/dictionary/letterDict";
import Browse from "./containers/browse/browse";
Expand All @@ -18,6 +19,7 @@ export default function Routes() {
<Router>
<Route exact path="/" component={HomePage} />
<Route exact path="/signup" component={SignUp} />
<Route exact path="/ForgotPassword" component={ForgotPassword} />
<Route exact path="/browse" component={Browse} />
<Route path="/search/:language/:keyword" component={Search} />
<Route exact path="/Categories" component={Categories} />
Expand Down