From 04f1eb8ec420a518c4783a22c4ea9f5c09de01ec Mon Sep 17 00:00:00 2001 From: Ani Kalpachka Date: Sat, 16 Jan 2021 15:16:17 +0200 Subject: [PATCH 1/2] add LoginPage, RegisterPage, Footer component --- src/common/routes.ts | 2 + src/components/layout/Layout.tsx | 2 + src/components/layout/Nav.tsx | 8 +- src/components/layout/footer/Footer.tsx | 14 ++++ .../layout/footer/footer.module.scss | 6 ++ src/components/login/LoginPage.tsx | 56 +++++++++++++ src/components/register/RegisterPage.tsx | 82 +++++++++++++++++++ src/pages/login.tsx | 3 + src/pages/register.tsx | 3 + 9 files changed, 173 insertions(+), 3 deletions(-) create mode 100644 src/components/layout/footer/Footer.tsx create mode 100644 src/components/layout/footer/footer.module.scss create mode 100644 src/components/login/LoginPage.tsx create mode 100644 src/components/register/RegisterPage.tsx create mode 100644 src/pages/login.tsx create mode 100644 src/pages/register.tsx diff --git a/src/common/routes.ts b/src/common/routes.ts index 18c2f2dea..d6d9272eb 100644 --- a/src/common/routes.ts +++ b/src/common/routes.ts @@ -1,4 +1,6 @@ export const routes = { index: '/', about: '/about', + login: '/login', + register: '/register', } diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index 59c220c73..9cd6a34c3 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -1,4 +1,5 @@ import Head from 'next/head' +import Footer from './footer/Footer' import { Box, Container, Typography } from '@material-ui/core' import Nav from 'components/layout/Nav' @@ -20,6 +21,7 @@ export default function Layout({ title, children }: LayoutProps) { {children} +