From cfd151fe5c600e0383897237b2150eada7ed42d0 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Thu, 3 Mar 2022 10:53:31 +0100 Subject: [PATCH] [site,#53][l]: skeleton website based off nextjs template https://github.com/datopian/nextjs-tailwind-mdx. No real content yet. Just a skeleton. --- site/.gitignore | 34 + site/README.md | 19 + site/components/Layout.js | 37 + site/components/MDX.js | 33 + site/components/Nav.js | 83 + site/config/navLinks.js | 5 + site/config/siteConfig.js | 29 + site/lib/gtag.js | 17 + site/next.config.mjs | 20 + site/package-lock.json | 9748 +++++++++++++++++++++++++++++++++++++ site/package.json | 29 + site/pages/_app.js | 75 + site/pages/about.md | 3 + site/pages/index.md | 15 + site/postcss.config.js | 8 + site/tailwind.config.js | 14 + 16 files changed, 10169 insertions(+) create mode 100644 site/.gitignore create mode 100644 site/README.md create mode 100644 site/components/Layout.js create mode 100644 site/components/MDX.js create mode 100644 site/components/Nav.js create mode 100644 site/config/navLinks.js create mode 100644 site/config/siteConfig.js create mode 100644 site/lib/gtag.js create mode 100644 site/next.config.mjs create mode 100644 site/package-lock.json create mode 100644 site/package.json create mode 100644 site/pages/_app.js create mode 100644 site/pages/about.md create mode 100644 site/pages/index.md create mode 100644 site/postcss.config.js create mode 100644 site/tailwind.config.js diff --git a/site/.gitignore b/site/.gitignore new file mode 100644 index 0000000..1437c53 --- /dev/null +++ b/site/.gitignore @@ -0,0 +1,34 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env.local +.env.development.local +.env.test.local +.env.production.local + +# vercel +.vercel diff --git a/site/README.md b/site/README.md new file mode 100644 index 0000000..be77477 --- /dev/null +++ b/site/README.md @@ -0,0 +1,19 @@ +Life Itself Web3 Website. + +Templated off: https://github.com/datopian/nextjs-tailwind-mdx + +## Usage + +Then run the app: + +```bash +cd myapp +npm run dev +``` + +## Configuration + +See `config` directory: + +* `config/siteConfig.js` for site wide configuration especially for general theme (e.g. title) and SEO +* `config/navLinks.js` for configuration of navigation links diff --git a/site/components/Layout.js b/site/components/Layout.js new file mode 100644 index 0000000..85762f1 --- /dev/null +++ b/site/components/Layout.js @@ -0,0 +1,37 @@ +import Link from 'next/link' +import Head from 'next/head' +import { NextSeo } from 'next-seo' + +import Nav from './Nav' +import siteConfig from '../config/siteConfig' + +export default function Layout({ children, title='' }) { + return ( + <> + + + + + + +