odoro 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -0
- package/dist/build-KI7IEVRJ.js +4 -0
- package/dist/{chunk-R6PMAMXA.js → chunk-2EE5QUCW.js} +16 -3
- package/dist/{chunk-CJIUP7A3.js → chunk-FJYUQALD.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/{create-LTT3SAWT.js → create-VUSKHXBN.js} +109 -65
- package/dist/index.js +2 -2
- package/dist/{package-LK46RV2I.js → package-2JOBLFXE.js} +3 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/{server-ATGFRVSW.js → server-DXOQAPVX.js} +1 -1
- package/package.json +3 -2
- package/templates/react-ts/_variantes/avec-moteur/src/{sections/Fond.tsx → fond.tsx} +13 -13
- package/templates/react-ts/_variantes/sans-libs/src/App.tsx +363 -23
- package/templates/{react-ts-server/_variantes/sans-libs/client/src/sections/Fond.tsx → react-ts/_variantes/sans-libs/src/fond.tsx} +1 -1
- package/templates/react-ts/_variantes/sans-libs/src/styles.css +115 -38
- package/templates/react-ts/_variantes/sans-routeur/src/App.tsx +427 -22
- package/templates/react-ts/index.html +11 -0
- package/templates/react-ts/public/favicon.svg +2 -3
- package/templates/react-ts/src/App.tsx +585 -57
- package/templates/{react-ts-server/client/src/sections/Fond.tsx → react-ts/src/fond.tsx} +9 -9
- package/templates/react-ts/src/router.tsx +72 -0
- package/templates/react-ts-server/_variantes/avec-moteur/client/src/{sections/Fond.tsx → fond.tsx} +13 -13
- package/templates/react-ts-server/_variantes/sans-libs/client/src/App.tsx +363 -23
- package/templates/{react-ts/_variantes/sans-libs/src/sections/Fond.tsx → react-ts-server/_variantes/sans-libs/client/src/fond.tsx} +1 -1
- package/templates/react-ts-server/_variantes/sans-libs/client/src/styles.css +115 -38
- package/templates/react-ts-server/_variantes/sans-routeur/client/src/App.tsx +427 -22
- package/templates/react-ts-server/client/index.html +11 -0
- package/templates/react-ts-server/client/public/favicon.svg +2 -3
- package/templates/react-ts-server/client/src/App.tsx +585 -57
- package/templates/{react-ts/src/sections/Fond.tsx → react-ts-server/client/src/fond.tsx} +9 -9
- package/templates/react-ts-server/client/src/router.tsx +72 -0
- package/dist/build-GIPMPYJ3.js +0 -4
- package/templates/react-ts/_variantes/sans-libs/src/composants/Marque.tsx +0 -37
- package/templates/react-ts/_variantes/sans-libs/src/sections/Cloture.tsx +0 -60
- package/templates/react-ts/_variantes/sans-libs/src/sections/Hero.tsx +0 -92
- package/templates/react-ts/_variantes/sans-libs/src/sections/Piliers.tsx +0 -44
- package/templates/react-ts/src/composants/Marque.tsx +0 -50
- package/templates/react-ts/src/routes/About.tsx +0 -43
- package/templates/react-ts/src/routes/Home.tsx +0 -28
- package/templates/react-ts/src/routes/NotFound.tsx +0 -14
- package/templates/react-ts/src/sections/Cloture.tsx +0 -69
- package/templates/react-ts/src/sections/Hero.tsx +0 -119
- package/templates/react-ts/src/sections/Piliers.tsx +0 -68
- package/templates/react-ts-server/_variantes/sans-libs/client/src/composants/Marque.tsx +0 -37
- package/templates/react-ts-server/_variantes/sans-libs/client/src/sections/Cloture.tsx +0 -60
- package/templates/react-ts-server/_variantes/sans-libs/client/src/sections/Hero.tsx +0 -92
- package/templates/react-ts-server/_variantes/sans-libs/client/src/sections/Piliers.tsx +0 -44
- package/templates/react-ts-server/client/src/composants/Marque.tsx +0 -50
- package/templates/react-ts-server/client/src/routes/About.tsx +0 -43
- package/templates/react-ts-server/client/src/routes/Home.tsx +0 -28
- package/templates/react-ts-server/client/src/routes/NotFound.tsx +0 -14
- package/templates/react-ts-server/client/src/sections/Cloture.tsx +0 -69
- package/templates/react-ts-server/client/src/sections/Hero.tsx +0 -119
- package/templates/react-ts-server/client/src/sections/Piliers.tsx +0 -68
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Les bibliotheques Odoro n'ont pas ete retenues a la creation : il n'y a donc
|
|
4
4
|
ni jetons ni classes utilitaires, et cette feuille porte tout. Le dessin est
|
|
5
|
-
celui de la version complete — meme
|
|
6
|
-
de marque — en CSS ordinaire.
|
|
5
|
+
celui de la version complete — meme barre en gelules, meme typographie,
|
|
6
|
+
memes cartes, meme teinte de marque — en CSS ordinaire.
|
|
7
7
|
|
|
8
8
|
Une seule variable commande la couleur : `--marque`. La changer repeint le
|
|
9
9
|
signe, les accents et les boutons d'un seul coup.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
`@odoro-cli/libs/styles.css` dans `main.tsx` avant cette feuille. */
|
|
13
13
|
|
|
14
14
|
:root {
|
|
15
|
-
--marque: #
|
|
15
|
+
--marque: #3b82f6;
|
|
16
16
|
--fond: #ffffff;
|
|
17
17
|
--encre: #18181b;
|
|
18
18
|
--doux: #71717a;
|
|
@@ -21,11 +21,14 @@
|
|
|
21
21
|
color-scheme: light dark;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
/*
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
/* Les valeurs du theme sombre, ecrites une fois et reprises deux fois.
|
|
25
|
+
|
|
26
|
+
La bascule pose `data-theme` sur la racine ; sans attribut, la preference du
|
|
27
|
+
navigateur decide. Les deux regles sont donc necessaires : la seconde sans la
|
|
28
|
+
premiere ignorerait le choix du visiteur, la premiere sans la seconde
|
|
29
|
+
rendrait un fond blanc au milieu de la nuit. */
|
|
27
30
|
@media (prefers-color-scheme: dark) {
|
|
28
|
-
:root {
|
|
31
|
+
:root:not([data-theme='light']) {
|
|
29
32
|
--fond: #09090b;
|
|
30
33
|
--encre: #fafafa;
|
|
31
34
|
--doux: #a1a1aa;
|
|
@@ -34,6 +37,25 @@
|
|
|
34
37
|
}
|
|
35
38
|
}
|
|
36
39
|
|
|
40
|
+
:root[data-theme='dark'] {
|
|
41
|
+
--fond: #09090b;
|
|
42
|
+
--encre: #fafafa;
|
|
43
|
+
--doux: #a1a1aa;
|
|
44
|
+
--filet: #27272a;
|
|
45
|
+
--surface: #18181b;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Le choix explicite est dit au navigateur : sans cela, `light-dark()`, les
|
|
49
|
+
controles natifs et les barres de defilement continuent de suivre un systeme
|
|
50
|
+
en nuit alors que le visiteur a demande le clair. */
|
|
51
|
+
:root[data-theme='light'] {
|
|
52
|
+
color-scheme: light;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:root[data-theme='dark'] {
|
|
56
|
+
color-scheme: dark;
|
|
57
|
+
}
|
|
58
|
+
|
|
37
59
|
* {
|
|
38
60
|
box-sizing: border-box;
|
|
39
61
|
}
|
|
@@ -57,52 +79,94 @@ pre {
|
|
|
57
79
|
grid-template-rows: auto 1fr auto;
|
|
58
80
|
}
|
|
59
81
|
|
|
60
|
-
/* -----
|
|
82
|
+
/* ----- Barre en gelules --------------------------------------------------- */
|
|
61
83
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
gap: 0.5rem;
|
|
66
|
-
font-weight: 600;
|
|
67
|
-
letter-spacing: -0.01em;
|
|
68
|
-
}
|
|
84
|
+
/* La barre ne peint pas de bandeau : ce sont les gelules qui portent la
|
|
85
|
+
surface, posees sur ce qu'il y a derriere. Le fond decoratif continue donc
|
|
86
|
+
de passer dessous, au lieu d'etre coupe par une bande opaque. */
|
|
69
87
|
|
|
70
|
-
.
|
|
71
|
-
|
|
72
|
-
|
|
88
|
+
.barre {
|
|
89
|
+
position: sticky;
|
|
90
|
+
top: 0;
|
|
91
|
+
z-index: 20;
|
|
92
|
+
padding: 0 1.25rem;
|
|
73
93
|
}
|
|
74
94
|
|
|
75
|
-
.
|
|
76
|
-
|
|
77
|
-
|
|
95
|
+
.barre-contenu {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
gap: 0.75rem;
|
|
99
|
+
height: 5rem;
|
|
100
|
+
width: 100%;
|
|
101
|
+
max-width: 64rem;
|
|
102
|
+
margin: 0 auto;
|
|
78
103
|
}
|
|
79
104
|
|
|
80
|
-
|
|
105
|
+
.gelule {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
height: 3.5rem;
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
padding: 0 1.25rem;
|
|
111
|
+
border: 1px solid color-mix(in oklab, var(--encre) 12%, transparent);
|
|
112
|
+
border-radius: 9999px;
|
|
113
|
+
background: color-mix(in oklab, var(--fond) 72%, transparent);
|
|
114
|
+
backdrop-filter: blur(16px);
|
|
115
|
+
text-decoration: none;
|
|
116
|
+
}
|
|
81
117
|
|
|
82
|
-
.
|
|
83
|
-
|
|
84
|
-
top: 0;
|
|
85
|
-
z-index: 20;
|
|
118
|
+
.barre-fin {
|
|
119
|
+
margin-left: auto;
|
|
86
120
|
display: flex;
|
|
87
121
|
align-items: center;
|
|
88
|
-
gap:
|
|
89
|
-
padding: 1rem 1.5rem;
|
|
90
|
-
border-bottom: 1px solid var(--filet);
|
|
91
|
-
background: color-mix(in oklab, var(--fond) 75%, transparent);
|
|
92
|
-
backdrop-filter: blur(10px);
|
|
122
|
+
gap: 0.75rem;
|
|
93
123
|
}
|
|
94
124
|
|
|
95
|
-
.
|
|
96
|
-
.lien-discret {
|
|
97
|
-
margin-left: auto;
|
|
125
|
+
.gelule-lien {
|
|
98
126
|
color: var(--doux);
|
|
99
127
|
font-size: 0.875rem;
|
|
100
|
-
text-decoration: none;
|
|
101
128
|
}
|
|
102
129
|
|
|
103
|
-
.
|
|
104
|
-
|
|
130
|
+
.bascule {
|
|
131
|
+
width: 3.5rem;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
padding: 0;
|
|
134
|
+
color: var(--doux);
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.bascule:hover {
|
|
139
|
+
color: var(--encre);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.gelule-lien:hover {
|
|
143
|
+
color: var(--encre);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* ----- Marque ------------------------------------------------------------- */
|
|
147
|
+
|
|
148
|
+
.marque {
|
|
149
|
+
display: inline-flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
gap: 0.625rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.marque-signe {
|
|
105
155
|
color: var(--marque);
|
|
156
|
+
display: inline-flex;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.marque-mot {
|
|
160
|
+
font-size: 1.125rem;
|
|
161
|
+
font-weight: 700;
|
|
162
|
+
letter-spacing: 0.025em;
|
|
163
|
+
color: var(--encre);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* ----- Coquille ----------------------------------------------------------- */
|
|
167
|
+
|
|
168
|
+
.app-shell-fond {
|
|
169
|
+
position: relative;
|
|
106
170
|
}
|
|
107
171
|
|
|
108
172
|
.principal {
|
|
@@ -120,6 +184,11 @@ pre {
|
|
|
120
184
|
font-size: 0.875rem;
|
|
121
185
|
}
|
|
122
186
|
|
|
187
|
+
.pied .marque-mot {
|
|
188
|
+
font-size: 0.875rem;
|
|
189
|
+
color: inherit;
|
|
190
|
+
}
|
|
191
|
+
|
|
123
192
|
/* ----- Fond decoratif ----------------------------------------------------- */
|
|
124
193
|
|
|
125
194
|
.fond {
|
|
@@ -175,7 +244,7 @@ pre {
|
|
|
175
244
|
}
|
|
176
245
|
|
|
177
246
|
.hero {
|
|
178
|
-
padding:
|
|
247
|
+
padding: 4rem 1.5rem 5rem;
|
|
179
248
|
}
|
|
180
249
|
|
|
181
250
|
.section {
|
|
@@ -193,6 +262,7 @@ pre {
|
|
|
193
262
|
display: inline-flex;
|
|
194
263
|
align-items: center;
|
|
195
264
|
gap: 0.5rem;
|
|
265
|
+
white-space: nowrap;
|
|
196
266
|
padding: 0.25rem 0.75rem;
|
|
197
267
|
border-radius: 9999px;
|
|
198
268
|
border: 1px solid color-mix(in oklab, var(--marque) 30%, transparent);
|
|
@@ -373,6 +443,13 @@ pre {
|
|
|
373
443
|
.lien-discret {
|
|
374
444
|
display: inline-block;
|
|
375
445
|
margin: 1.5rem auto 0;
|
|
446
|
+
color: var(--doux);
|
|
447
|
+
font-size: 0.875rem;
|
|
448
|
+
text-decoration: none;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.lien-discret:hover {
|
|
452
|
+
color: var(--marque);
|
|
376
453
|
}
|
|
377
454
|
|
|
378
455
|
/* ----- Boutons ------------------------------------------------------------ */
|