Skip to content

Commit 8f2fd53

Browse files
committed
template ok
1 parent a852bb2 commit 8f2fd53

30 files changed

+654
-8546
lines changed

.eslintrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
],
1616
"extends": [
1717
"eslint:recommended",
18+
"next/core-web-vitals",
1819
"plugin:@typescript-eslint/recommended",
1920
"prettier"
2021
],
2122
"rules": {
2223
"@typescript-eslint/no-namespace": "off",
2324
"@typescript-eslint/no-explicit-any": "off"
2425
}
25-
}
26+
}

.gitignore

+29-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
12

2-
.parcel-cache/
3-
coverage/
4-
dist/*
5-
!dist/index.html
6-
node_modules/
7-
*.log
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
87

9-
# OS generated files
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
1019
.DS_Store
11-
.DS_Store?
12-
._*
13-
.Spotlight-V100
14-
.Trashes
15-
ehthumbs.db
16-
Thumbs.db
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
1726

18-
dist/
27+
# local env files
28+
.env*.local
1929

20-
parcel-bundle-reports/
30+
# vercel
31+
.vercel
2132

22-
public/
23-
.cache/
33+
# typescript
34+
*.tsbuildinfo
35+
next-env.d.ts

README.md

+35-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1-
# fe-gatsby-template
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).
22

3-
[![CI](https://github.com/veeso-dev/fe-react-template/workflows/CI/badge.svg)](https://github.com/veeso-dev/fe-react-template/actions)
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

app/favicon.ico

25.3 KB
Binary file not shown.

src/styles.css app/globals.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import './css/animate.min.css';
1+
@import '@/src/css/animate.min.css';
22

33
@tailwind base;
44
@tailwind components;

app/layout.tsx

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { Inter } from 'next/font/google';
2+
3+
import './globals.css';
4+
import Head from '@/src/js/components/Head';
5+
import TRANSLATIONS, { getNavigatorLanguage } from '@/src/js/utils/locale';
6+
import CookieBar from '@/src/js/components/CookieBar';
7+
import Footer from '@/src/js/components/Footer';
8+
import { NextIntlClientProvider } from 'next-intl';
9+
10+
const inter = Inter({ subsets: ['latin'] });
11+
12+
export default function RootLayout({
13+
children,
14+
}: {
15+
children: React.ReactNode;
16+
}) {
17+
const locale = getNavigatorLanguage();
18+
19+
return (
20+
<html lang={getNavigatorLanguage()}>
21+
<Head />
22+
<body className={inter.className}>
23+
<NextIntlClientProvider locale={locale} messages={TRANSLATIONS[locale]}>
24+
<main>{children}</main>
25+
<Footer />
26+
<CookieBar />
27+
</NextIntlClientProvider>
28+
</body>
29+
</html>
30+
);
31+
}

app/loading.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as React from 'react';
2+
3+
import Page from '@/src/js/components/reusable/Page';
4+
5+
const Home = () => {
6+
return <Page.BlankPage></Page.BlankPage>;
7+
};
8+
9+
export default Home;

app/not-found.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as React from 'react';
2+
3+
import Page from '@/src/js/components/reusable/Page';
4+
5+
const NotFound = () => {
6+
return <Page.BlankPage></Page.BlankPage>;
7+
};
8+
9+
export default NotFound;

app/page.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as React from 'react';
2+
3+
import Page from '@/src/js/components/reusable/Page';
4+
5+
const Home = () => {
6+
return <Page.BlankPage></Page.BlankPage>;
7+
};
8+
9+
export default Home;

gatsby-config.ts

-48
This file was deleted.

gatsby-node.ts

-7
This file was deleted.

next.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {};
3+
4+
module.exports = nextConfig;

package.json

+20-49
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,36 @@
11
{
2-
"name": "fe-gatsby-template",
2+
"name": "fe-next-template",
33
"version": "0.1.0",
4-
"repository": "[email protected]:veeso/fe-gatsby-template.git",
5-
"author": "Christian Visintin <[email protected]>",
6-
"license": "MIT",
7-
"browserslist": {
8-
"production": [
9-
"> 5%",
10-
"not dead",
11-
"not op_mini all"
12-
],
13-
"development": [
14-
"> 5%",
15-
"not dead",
16-
"not op_mini all"
17-
]
18-
},
4+
"private": true,
195
"scripts": {
20-
"develop": "gatsby develop",
21-
"start": "gatsby develop",
22-
"build": "gatsby build",
23-
"serve": "gatsby serve --port 9000",
24-
"clean": "gatsby clean",
25-
"typecheck": "tsc --noEmit",
26-
"lint": "eslint . --ext .ts --ext .tsx --max-warnings=0",
27-
"prettier": "prettier --config .prettierrc --write src/",
28-
"prettier:check": "prettier --config .prettierrc --check src/"
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
2910
},
3011
"dependencies": {
3112
"flat": "^5.0",
32-
"gatsby": "^5.12",
33-
"gatsby-source-filesystem": "^5.12.0",
3413
"js-cookie": "^3.0",
35-
"react": "^18.2",
36-
"react-dom": "^18.2",
37-
"react-feather": "^2.0",
38-
"react-intl": "^6.4"
14+
"next": "13.5.4",
15+
"next-intl": "^2.20.2",
16+
"react": "^18",
17+
"react-dom": "^18",
18+
"react-feather": "^2.0"
3919
},
4020
"devDependencies": {
4121
"@types/flat": "^5.0.2",
4222
"@types/gtag.js": "^0.0.13",
4323
"@types/js-cookie": "^3.0.3",
44-
"@types/react": "^18.2",
45-
"@types/react-dom": "^18.2",
46-
"@types/react-helmet": "^6.1.6",
47-
"@types/react-lazyload": "^3.2.0",
48-
"@typescript-eslint/eslint-plugin": "^6.3",
49-
"@typescript-eslint/parser": "^6.3",
50-
"eslint": "^8.47",
24+
"@types/node": "^20",
25+
"@types/react": "^18",
26+
"@types/react-dom": "^18",
27+
"autoprefixer": "^10",
28+
"eslint": "^8",
29+
"eslint-config-next": "13.5.4",
5130
"eslint-config-prettier": "^9.0",
52-
"gatsby-plugin-google-gtag": "^5.12",
53-
"gatsby-plugin-image": "^3.12.0",
54-
"gatsby-plugin-manifest": "^5.12",
55-
"gatsby-plugin-postcss": "^6.12",
56-
"gatsby-plugin-sharp": "^5.12.0",
57-
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.31",
58-
"gatsby-transformer-sharp": "^5.12.0",
59-
"postcss": "^8.4",
31+
"postcss": "^8",
6032
"prettier": "^3",
61-
"process": "^0.11.10",
62-
"tailwindcss": "^3.3",
63-
"typescript": "^5.2"
33+
"tailwindcss": "^3",
34+
"typescript": "^5"
6435
}
6536
}

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

public/.gitkeep

Whitespace-only changes.

src/hooks/use-site-metadata.ts

-20
This file was deleted.

0 commit comments

Comments
 (0)