Skip to content

Commit

Permalink
Template customization
Browse files Browse the repository at this point in the history
  • Loading branch information
liarco committed Jul 29, 2022
1 parent c4edaec commit 28a29e8
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 1,939 deletions.
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: {
images: {
unoptimized: true,
},
},
}

module.exports = nextConfig
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "next-app",
"name": "nextjs-app",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -17,8 +17,12 @@
"@types/node": "18.6.2",
"@types/react": "18.0.15",
"@types/react-dom": "18.0.6",
"autoprefixer": "^10.4.8",
"eslint": "8.20.0",
"eslint-config-next": "12.2.3",
"postcss": "^8.4.14",
"sass": "^1.54.0",
"tailwindcss": "^3.1.7",
"typescript": "4.7.4"
}
}
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../styles/globals.css'
import '../styles/globals.scss'
import type { AppProps } from 'next/app'

function MyApp({ Component, pageProps }: AppProps) {
Expand Down
53 changes: 2 additions & 51 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { NextPage } from 'next'
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'
import styles from '../styles/Home.module.scss'

const Home: NextPage = () => {
return (
Expand All @@ -14,57 +13,9 @@ const Home: NextPage = () => {

<main className={styles.main}>
<h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">Next.js!</a>
Hello world!
</h1>

<p className={styles.description}>
Get started by editing{' '}
<code className={styles.code}>pages/index.tsx</code>
</p>

<div className={styles.grid}>
<a href="https://nextjs.org/docs" className={styles.card}>
<h2>Documentation &rarr;</h2>
<p>Find in-depth information about Next.js features and API.</p>
</a>

<a href="https://nextjs.org/learn" className={styles.card}>
<h2>Learn &rarr;</h2>
<p>Learn about Next.js in an interactive course with quizzes!</p>
</a>

<a
href="https://github.com/vercel/next.js/tree/canary/examples"
className={styles.card}
>
<h2>Examples &rarr;</h2>
<p>Discover and deploy boilerplate example Next.js projects.</p>
</a>

<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
className={styles.card}
>
<h2>Deploy &rarr;</h2>
<p>
Instantly deploy your Next.js site to a public URL with Vercel.
</p>
</a>
</div>
</main>

<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
)
}
Expand Down
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
129 changes: 0 additions & 129 deletions styles/Home.module.css

This file was deleted.

16 changes: 16 additions & 0 deletions styles/Home.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.container {
@apply p-0;
}

.main {
@apply flex flex-1 flex-col justify-center items-center;
@apply px-16 py-0;
@apply min-h-screen;
}

.title {
@apply m-0;

@apply font-bold;
@apply text-7xl text-center;
}
26 changes: 0 additions & 26 deletions styles/globals.css

This file was deleted.

18 changes: 18 additions & 0 deletions styles/globals.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

html,
body {
@apply font-sans;
}

@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
body {
@apply bg-black;
@apply text-white;
}
}
11 changes: 11 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}

0 comments on commit 28a29e8

Please sign in to comment.