Skip to content

Commit 3e9e6e2

Browse files
committed
fix: pages index, version & readme
1 parent 73b3bff commit 3e9e6e2

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You can check [demo](https://next-typescript-starter-demo.vercel.app/)
1717

1818
## Usage
1919

20-
This project using node >= 16.14 & yarn
20+
This project using node >= 16.14 & yarn 1.22.19
2121

2222
### Installation
2323

components/nav.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import Head from 'next/head';
2+
3+
export default function Nav() {
4+
return (
5+
<nav>
6+
<Head>
7+
<title>Next Typescript Starter</title>
8+
<meta
9+
name="description"
10+
content="Generated by create next app and customized"
11+
/>
12+
<meta name="viewport" content="width=device-width, initial-scale=1" />
13+
<link rel="icon" href="/favicon.ico" />
14+
</Head>
15+
</nav>
16+
);
17+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-typescript-starter",
3-
"version": "1.0.0",
3+
"version": "0.1.0",
44
"description": "Unofficial Next.js + Typescript starter with a latest package",
55
"author": "Danang Eko Alfianto <github.com/danangekal>",
66
"homepage": "https://github.com/danangekal/next-typescript-starter#readme",

pages/index.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
import Head from 'next/head';
21
import Image from 'next/image';
32
import { Inter } from 'next/font/google';
3+
4+
import Nav from '@/components/nav';
45
import styles from '@/styles/Home.module.css';
56

67
const inter = Inter({ subsets: ['latin'] });
78

89
export default function Home() {
910
return (
1011
<>
11-
<Head>
12-
<title>Next Typescript Starter</title>
13-
<meta
14-
name="description"
15-
content="Generated by create next app and customized"
16-
/>
17-
<meta name="viewport" content="width=device-width, initial-scale=1" />
18-
<link rel="icon" href="/favicon.ico" />
19-
</Head>
12+
<Nav />
2013

2114
<main className={`${styles.main} ${inter.className}`}>
2215
<div className={styles.description}>

0 commit comments

Comments
 (0)