From cb9dcc730009f9af7ca8375a837c86beaf4500ca Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Mon, 17 Aug 2020 17:23:46 -0700 Subject: [PATCH] Layout fix. --- components/forms/LoginForm.module.css | 5 +++++ components/layout/Layout.js | 20 ++------------------ components/layout/Layout.module.css | 12 ------------ 3 files changed, 7 insertions(+), 30 deletions(-) delete mode 100644 components/layout/Layout.module.css diff --git a/components/forms/LoginForm.module.css b/components/forms/LoginForm.module.css index 381c9865..cfbff15b 100644 --- a/components/forms/LoginForm.module.css +++ b/components/forms/LoginForm.module.css @@ -4,6 +4,11 @@ margin-top: 80px; } +.login form { + width: 300px; + margin: 0 auto; +} + .icon { display: flex; justify-content: center; diff --git a/components/layout/Layout.js b/components/layout/Layout.js index 91591ccc..1285f2c3 100644 --- a/components/layout/Layout.js +++ b/components/layout/Layout.js @@ -1,18 +1,9 @@ import React from 'react'; -import classNames from 'classnames'; import Head from 'next/head'; import Header from 'components/layout/Header'; import Footer from 'components/layout/Footer'; -import styles from './Layout.module.css'; -export default function Layout({ - title, - children, - header = true, - footer = true, - center = false, - middle = false, -}) { +export default function Layout({ title, children, header = true, footer = true }) { return ( <> @@ -24,14 +15,7 @@ export default function Layout({ /> {header &&
} -
- {children} -
+
{children}
{footer &&