feat: create foundations
This commit is contained in:
parent
62316d1eec
commit
dfe94f0e8e
31
pages/_app.js
Normal file
31
pages/_app.js
Normal file
@ -0,0 +1,31 @@
|
||||
import "../styles/globals.css";
|
||||
|
||||
import { Fragment } from "react";
|
||||
|
||||
import Navbar from "../components/Navbar";
|
||||
import Footer from "../components/Footer";
|
||||
|
||||
import config from "../config.json";
|
||||
|
||||
const Content = ({ children }) => (
|
||||
<div className="flex items-center justify-between w-full my-5">
|
||||
<div className="lg:w-7/12 mx-auto">{children}</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
const App = ({ Component, pageProps }) => (
|
||||
<Fragment>
|
||||
<Navbar name={config.navbar.logotype} logo={config.navbar.logo} />
|
||||
<Content>
|
||||
<Component {...pageProps} />
|
||||
</Content>
|
||||
<Footer
|
||||
repo={config.footer.repo}
|
||||
links={config.footer.links}
|
||||
license={config.footer.license}
|
||||
commitID={process.env.COMMIT_SHORT_SHA || "HEAD"}
|
||||
/>
|
||||
</Fragment>
|
||||
);
|
||||
|
||||
export default App;
|
15
pages/_document.js
Normal file
15
pages/_document.js
Normal file
@ -0,0 +1,15 @@
|
||||
import { Html, Head, Main, NextScript } from "next/document";
|
||||
|
||||
const Document = () => {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head />
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
};
|
||||
|
||||
export default Document;
|
12
styles/globals.css
Normal file
12
styles/globals.css
Normal file
@ -0,0 +1,12 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
/* Somehow tailwind doesn't include this??? */
|
||||
.aspect-photos {
|
||||
aspect-ratio: 1 / 1;
|
||||
}
|
||||
|
||||
.aspect-videos {
|
||||
aspect-ratio: 16 / 9;
|
||||
}
|
Loading…
Reference in New Issue
Block a user