Skip to content

Commit

Permalink
[site,#4][m]: skeleton site based nextjs tailwind template.
Browse files Browse the repository at this point in the history
  • Loading branch information
rufuspollock committed Aug 17, 2021
1 parent 80e375c commit b3c890b
Show file tree
Hide file tree
Showing 8 changed files with 2,651 additions and 0 deletions.
34 changes: 34 additions & 0 deletions site/.gitignore
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions site/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Life Itself Climate website.

Built with next.js + taildwind + mdx.

## Developers

1. Clone
2. Install: `yarn install`
3. Run: `yarn dev`
18 changes: 18 additions & 0 deletions site/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"autoprefixer": "^10.2.6",
"postcss": "^8.3.5",
"tailwindcss": "^2.2.4"
}
}
7 changes: 7 additions & 0 deletions site/pages/_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import 'tailwindcss/tailwind.css'

function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}

export default MyApp
34 changes: 34 additions & 0 deletions site/pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Head from 'next/head'

export default function Home() {
return (
<div className="flex flex-col items-center justify-center min-h-screen py-2">
<Head>
<title>Life Itself Climate Inquiries</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🔥</text></svg>" />
</Head>

<main className="flex flex-col items-center justify-center w-full flex-1 px-20 text-center">
<h1 className="text-6xl font-bold">
Life Itself Climate Inquiry
</h1>

<p className="mt-3 text-2xl">
Life Itself's ongoing inquiry into climate change and the climate crisis. 🌍🔥
</p>
</main>

<footer className="flex items-center justify-center w-full h-24 border-t">
<a
className="flex items-center justify-center"
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
A Project of {' '}
<img src="/life-itself-logo.svg" alt="Life Itself Logo" className="h-4 ml-2" />
</a>
</footer>
</div>
)
}
8 changes: 8 additions & 0 deletions site/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// If you want to use other PostCSS plugins, see the following:
// https://tailwindcss.com/docs/using-with-preprocessors
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
12 changes: 12 additions & 0 deletions site/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}
Loading

0 comments on commit b3c890b

Please sign in to comment.