mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-25 20:02:46 +01:00
Layout fix.
This commit is contained in:
parent
bab70279dd
commit
cb9dcc7300
@ -4,6 +4,11 @@
|
|||||||
margin-top: 80px;
|
margin-top: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login form {
|
||||||
|
width: 300px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -1,18 +1,9 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import classNames from 'classnames';
|
|
||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
import Header from 'components/layout/Header';
|
import Header from 'components/layout/Header';
|
||||||
import Footer from 'components/layout/Footer';
|
import Footer from 'components/layout/Footer';
|
||||||
import styles from './Layout.module.css';
|
|
||||||
|
|
||||||
export default function Layout({
|
export default function Layout({ title, children, header = true, footer = true }) {
|
||||||
title,
|
|
||||||
children,
|
|
||||||
header = true,
|
|
||||||
footer = true,
|
|
||||||
center = false,
|
|
||||||
middle = false,
|
|
||||||
}) {
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
@ -24,14 +15,7 @@ export default function Layout({
|
|||||||
/>
|
/>
|
||||||
</Head>
|
</Head>
|
||||||
{header && <Header />}
|
{header && <Header />}
|
||||||
<main
|
<main className="container">{children}</main>
|
||||||
className={classNames(styles.layout, 'container', {
|
|
||||||
[styles.center]: center,
|
|
||||||
[styles.middle]: middle,
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
{children}
|
|
||||||
</main>
|
|
||||||
{footer && <Footer />}
|
{footer && <Footer />}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
.layout {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.center {
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.middle {
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user