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

Fixes#32 forget password page #43

Merged
merged 2 commits into from
Dec 22, 2021
Merged
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
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";
Copy link
Contributor

Choose a reason for hiding this comment

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

@aniket-k-kaushik can you fix below warnings from GitHub actions in a new PR?

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;