Skip to content

Commit c93a2d3

Browse files
committed
feat(pages): home page base
1 parent 87cfc9c commit c93a2d3

37 files changed

+10242
-93
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"name": "@it-tools/root",
33
"version": "0.0.0",
44
"description": "IT Tools monorepo root",
5+
"packageManager": "[email protected]",
6+
57
"scripts": {
68
"dev": "pnpm -F @it-tools/app dev"
79
},
@@ -10,6 +12,5 @@
1012
"repository": {
1113
"type": "git",
1214
"url": "https://github.com/CorentinTh/it-tools"
13-
},
14-
"packageManager": "[email protected]"
15+
}
1516
}

packages/app/app.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<template>
2-
<div>
3-
<NuxtRouteAnnouncer />
4-
<NuxtWelcome />
5-
</div>
2+
<NuxtLayout>
3+
<NuxtPage />
4+
</NuxtLayout>
65
</template>

packages/app/assets/css/tailwind.css

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
6+
@layer base {
7+
:root {
8+
--background: 0 0% 100%;
9+
--foreground: 240 10% 3.9%;
10+
11+
--card: 0 0% 100%;
12+
--card-foreground: 240 10% 3.9%;
13+
14+
--popover: 0 0% 100%;
15+
--popover-foreground: 240 10% 3.9%;
16+
17+
--primary: 240 5.9% 10%;
18+
--primary-foreground: 0 0% 98%;
19+
20+
--secondary: 240 4.8% 95.9%;
21+
--secondary-foreground: 240 5.9% 10%;
22+
23+
--muted: 240 4.8% 95.9%;
24+
--muted-foreground: 240 3.8% 46.1%;
25+
26+
--accent: 240 4.8% 95.9%;
27+
--accent-foreground: 240 5.9% 10%;
28+
29+
--destructive: 0 84.2% 60.2%;
30+
--destructive-foreground: 0 0% 98%;
31+
32+
--border:240 5.9% 90%;
33+
--input:240 5.9% 90%;
34+
--ring:240 5.9% 10%;
35+
--radius: 0.5rem;
36+
}
37+
38+
.dark {
39+
--background:0 0% 9%;
40+
--foreground:0 0% 98%;
41+
42+
--card: 0 0% 7%;
43+
--card-foreground:0 0% 98%;
44+
45+
--popover:240 10% 3.9%;
46+
--popover-foreground:0 0% 98%;
47+
48+
--primary: 83 79% 55%;
49+
--primary-foreground:240 5.9% 10%;
50+
51+
--secondary:240 3.7% 15.9%;
52+
--secondary-foreground:0 0% 98%;
53+
54+
--muted:240 3.7% 15.9%;
55+
--muted-foreground:240 5% 64.9%;
56+
57+
--accent:240 3.7% 15.9%;
58+
--accent-foreground:0 0% 98%;
59+
60+
--destructive:0 62.8% 30.6%;
61+
--destructive-foreground:0 0% 98%;
62+
63+
--border:240 3.7% 15.9%;
64+
--input:240 3.7% 15.9%;
65+
--ring:240 4.9% 83.9%;
66+
}
67+
}
68+
69+
70+
@layer base {
71+
* {
72+
@apply border-border;
73+
}
74+
body {
75+
@apply bg-background text-foreground;
76+
}
77+
}

packages/app/components.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://shadcn-vue.com/schema.json",
3+
"style": "new-york",
4+
"typescript": true,
5+
"tsConfigPath": ".nuxt/tsconfig.json",
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "assets/css/tailwind.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"framework": "nuxt",
14+
"aliases": {
15+
"components": "@/src/modules/ui/components",
16+
"ui": "@/src/modules/ui/components",
17+
"utils": "@/src/modules/shared/style/cn"
18+
}
19+
}

packages/app/i18n.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export default defineI18nConfig(() => ({
2+
legacy: false,
3+
locale: 'en',
4+
messages: {
5+
en: {
6+
welcome: 'Welcome',
7+
},
8+
fr: {
9+
welcome: 'Bienvenue',
10+
},
11+
},
12+
}));

packages/app/nuxt.config.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,40 @@
22
export default defineNuxtConfig({
33
compatibilityDate: '2024-04-03',
44
devtools: { enabled: true },
5+
6+
extends: [
7+
'src/modules/app',
8+
],
9+
10+
modules: [
11+
'@nuxtjs/tailwindcss',
12+
'shadcn-nuxt',
13+
'@nuxt/fonts',
14+
'@nuxt/icon',
15+
'@vueuse/nuxt',
16+
'@nuxtjs/color-mode',
17+
'@nuxtjs/i18n',
18+
],
19+
20+
fonts: {
21+
provider: 'bunny',
22+
defaults: {
23+
weights: [400, 500, 600, 700, 800],
24+
},
25+
},
26+
27+
colorMode: {
28+
preference: 'system',
29+
fallback: 'dark',
30+
classSuffix: '',
31+
storage: 'cookie',
32+
storageKey: 'itts-color-mode',
33+
},
34+
35+
i18n: {
36+
strategy: 'prefix',
37+
vueI18n: './i18n.config.ts',
38+
locales: ['en', 'fr'],
39+
defaultLocale: 'en',
40+
},
541
});

0 commit comments

Comments
 (0)