Skip to content

Commit 88209e1

Browse files
author
Ganessh Kumar R P
committed
updating versions
1 parent da64a2b commit 88209e1

File tree

4 files changed

+22
-58
lines changed

4 files changed

+22
-58
lines changed

README.md

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,10 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) and configured to use typescript and tailwindcss.
1+
# next-typescript-tailwindcss
22

3-
## Getting Started
3+
This is a [Next.js](https://nextjs.org/) starter project with [TypeScript](https://www.typescriptlang.org/) and [tailwindcss](https://tailwindcss.com/).
44

5-
First, run the development server:
6-
7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
```
12-
13-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14-
15-
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
16-
17-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
18-
19-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
20-
21-
## Learn More
22-
23-
To learn more about Next.js, take a look at the following resources:
24-
25-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27-
28-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29-
30-
## Deploy on Vercel
31-
32-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/import?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33-
34-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
5+
|Library|Version|
6+
|--|--|
7+
| Next.Js | ![10.2.0](https://img.shields.io/badge/npm-v10.2.0-blue) |
8+
| TypeScript | ![4.2.4](https://img.shields.io/badge/npm-v4.2.4-blue) |
9+
| Tailwind CSS | ![2.1.2](https://img.shields.io/badge/npm-v2.1.2-blue) |
10+
| React | ![17.0.2](https://img.shields.io/badge/npm-v17.0.2-blue) |

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
"start": "next start"
99
},
1010
"dependencies": {
11-
"autoprefixer": "^10.2.3",
12-
"next": "10.0.5",
13-
"postcss": "^8.2.4",
14-
"react": "17.0.1",
15-
"react-dom": "17.0.1",
16-
"tailwindcss": "^2.0.2"
11+
"autoprefixer": "10.2.5",
12+
"next": "10.2.0",
13+
"postcss": "8.2.15",
14+
"react": "17.0.2",
15+
"react-dom": "17.0.2",
16+
"tailwindcss": "2.1.2"
1717
},
1818
"devDependencies": {
19-
"@types/node": "^14.14.22",
20-
"@types/react": "^17.0.0",
21-
"typescript": "^4.1.3"
19+
"@types/node": "15.3.0",
20+
"@types/react": "17.0.5",
21+
"typescript": "4.2.4"
2222
}
2323
}

pages/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Head from 'next/head'
2+
import React from 'react';
23
import styles from '../styles/Home.module.css'
34

45
const Home = (): JSX.Element => {
@@ -9,7 +10,7 @@ const Home = (): JSX.Element => {
910
<link rel="icon" href="/favicon.ico" />
1011
</Head>
1112

12-
<div>Hello World</div>
13+
<div>This is a starter template using nextjs, typescript and tailwindcss </div>
1314
</div>
1415
)
1516
}

styles/globals.css

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
html,
2-
body {
3-
padding: 0;
4-
margin: 0;
5-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
6-
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
7-
}
8-
9-
a {
10-
color: inherit;
11-
text-decoration: none;
12-
}
13-
14-
* {
15-
box-sizing: border-box;
16-
}
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

0 commit comments

Comments
 (0)