Skip to content

Commit

Permalink
Fixes#32 forget password page (#43)
Browse files Browse the repository at this point in the history
* added forgot password page

* added container

Co-authored-by: Aniket Kaushik <aniket@saeloun.com>
  • Loading branch information
aniketkaushik and Aniket Kaushik authored Dec 22, 2021
1 parent c1fb960 commit 31b85ca
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
46 changes: 46 additions & 0 deletions app/javascript/components/Account/ForgotPasswordPage/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import * as React from "react";

import Container from "../../Container";

const ForgotPasswordPage = () => (
<Container>
<h2 className="font-medium text-center text-3xl lg:text-4xl text-miru-1000 mb-5">
Miru
</h2>
<div className="p-5 2xl:p-10 shadow-xl rounded-lg">
<h2 className="text-miru-1000 lg:mb-3 text-base font-medium">
Forgot Password
</h2>

<form>
<div className="field">
<label htmlFor="email" className="text-xs text-miru-1000">
Email
</label>
<br />
<input
type="email"
className="h-8 w-full focus:outline-none bg-miru-200 text-sm"
id="email"
/>
</div>

<div className="actions">
<button
type="submit"
className="mt-5 h-8 w-full bg-miru-400 font-bold text-white text-base hover:bg-miru-1000"
>
RESET PASSWORD
</button>
</div>
</form>
<div className="text-center m-2">
<p className="text-center text-miru-400 text-xs hover:text-miru-1000">
<a href="/login">Sign In</a>
</p>
</div>
</div>
</Container>
);

export default ForgotPasswordPage;
2 changes: 2 additions & 0 deletions app/javascript/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from "react";
import { Routes, Route, BrowserRouter as Router } from "react-router-dom";
import { ToastContainer } from "react-toastify";

import ForgotPasswordPage from "./Account/ForgotPasswordPage";
import LoginPage from "./Account/LoginPage";
import SignupPage from "./Account/SignupPage";

Expand All @@ -22,6 +23,7 @@ const App = () => {
<Routes>
<Route path="login" element={<LoginPage />} />
<Route path="signup" element={<SignupPage />} />
<Route path="users/password/reset" element={<ForgotPasswordPage />} />
</Routes>
</Router>
);
Expand Down
9 changes: 9 additions & 0 deletions app/javascript/components/Container.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from "react";

const Container = ({ children }) => (
<div className="pt-10/100 px-10 xsm:px-20/100 sm:px-26/100 md:px-30/100 lg:px-32/100 xl:px-36/100">
<div className="font-jakartasans">{children}</div>
</div>
);

export default Container;

0 comments on commit 31b85ca

Please sign in to comment.