Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 6a60cc9

Browse files
committed
feat(frontend): add theming to next
1 parent 279eb59 commit 6a60cc9

File tree

7 files changed

+242
-38
lines changed

7 files changed

+242
-38
lines changed

.development.docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: "3"
22
services:
3-
app:
4-
container_name: app
3+
web:
4+
container_name: web
55
environment:
66
- CMS_API=http://cms:1337/api
77
build:
8-
context: ./app
8+
context: ./web
99
dockerfile: Dockerfile
1010
volumes:
11-
- ./app/src/app:/opt/app/src/app
11+
- ./web/src/web:/opt/web/src/web
1212
ports:
1313
- 3000:3000
1414
networks:

web/.eslintrc.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "tsconfig.json",
5+
"sourceType": "module"
6+
},
7+
"plugins": ["@typescript-eslint", "eslint-plugin-import-helpers"],
8+
"extends": [
9+
"next/core-web-vitals",
10+
"plugin:@typescript-eslint/recommended",
11+
"prettier"
12+
],
13+
"rules": {
14+
"@typescript-eslint/no-unused-vars": "error",
15+
"@typescript-eslint/no-explicit-any": "error",
16+
"react/no-unescaped-entities": "off",
17+
"no-console": "warn",
18+
"@typescript-eslint/ban-ts-comment": "off",
19+
"import-helpers/order-imports": [
20+
"error",
21+
{
22+
"newlinesBetween": "never",
23+
"groups": [
24+
"/^react$/",
25+
"/next/",
26+
"module",
27+
"/@components/",
28+
"/@helpers/",
29+
"/@hooks/",
30+
"/types/",
31+
"/module.scss/",
32+
"/public/",
33+
["parent", "sibling", "index"]
34+
],
35+
"alphabetize": { "order": "desc", "ignoreCase": true }
36+
}
37+
]
38+
}
339
}

web/.prettierrc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2-
"trailingComma": "es5",
3-
"tabWidth": 2,
4-
"semi": false,
5-
"singleQuote": true
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"tabWidth": 4,
6+
"printWidth": 120,
7+
"useTabs": false
68
}

web/package-lock.json

Lines changed: 173 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,23 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"next": "13.5.6",
1213
"react": "^18",
13-
"react-dom": "^18",
14-
"next": "13.5.6"
14+
"react-dom": "^18"
1515
},
1616
"devDependencies": {
17-
"typescript": "^5",
1817
"@types/node": "^20",
1918
"@types/react": "^18",
2019
"@types/react-dom": "^18",
20+
"@typescript-eslint/eslint-plugin": "^6.16.0",
21+
"@typescript-eslint/parser": "^6.16.0",
2122
"autoprefixer": "^10",
23+
"eslint": "^8",
24+
"eslint-config-next": "13.5.6",
25+
"eslint-config-prettier": "^9.1.0",
26+
"eslint-plugin-import-helpers": "^1.3.1",
2227
"postcss": "^8",
2328
"tailwindcss": "^3",
24-
"eslint": "^8",
25-
"eslint-config-next": "13.5.6"
29+
"typescript": "^5"
2630
}
2731
}

web/src/app/globals.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
--foreground-rgb: 0, 0, 0;
77
--background-start-rgb: 214, 219, 220;
88
--background-end-rgb: 255, 255, 255;
9+
--color-primary: #3498db;
10+
--color-secondary: #2ecc71;
11+
--color-tertiary: #e74c3c;
12+
--primary-text: #333;
13+
--secondary-text: #555;
914
}
1015

1116
@media (prefers-color-scheme: dark) {

0 commit comments

Comments
 (0)