feat(layout): created Layout component

Also adds a Transition component for dealing with transitions easily with tailwind
This commit is contained in:
sct
2020-08-19 06:31:36 +00:00
parent 8db2bfe44f
commit 1f497e8913
6 changed files with 476 additions and 3 deletions

View File

@@ -1,11 +1,16 @@
import React from 'react';
import '../styles/globals.css';
import App from 'next/app';
import Layout from '../components/Layout';
class CoreApp extends App {
public render(): JSX.Element {
const { Component, pageProps } = this.props;
return <Component {...pageProps} />;
return (
<Layout>
<Component {...pageProps} />
</Layout>
);
}
}