feat: logo et favicon, confirmation modale, fil d'ariane, e-mails sombres (#4)
CD — Déploiement / deploy (push) Failing after 25s
CD — Déploiement / deploy (push) Failing after 25s
- logo embarque dans les e-mails (CID) et gabarit repense en mode sombre - favicon multi-tailles + icone PNG, logo a gauche du titre (app et auth) - modale de confirmation animee a la place de window.confirm - bouton retour et fil d'ariane dans l'explorateur --------- Co-authored-by: xEsiah <[email protected]> Reviewed-on: #4 Reviewed-by: Esiah <[email protected]> Co-authored-by: Gitea Actions <-[email protected]>
This commit was merged in pull request #4.
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
Poppins n'existe qu'en graisses statiques chez Google Fonts, deux fichiers sont donc
|
||||
necessaires. Elle couvre 300 Ko de plus que Cinzel et Orbitron reunis, d'ou l'arbitrage
|
||||
suivant : Poppins porte le texte courant, Cinzel et Orbitron restent deux faces de
|
||||
caractere Reserves aux chaines courtes.
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: "Poppins";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("../fonts/poppins-400.woff2") format("woff2");
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
||||
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
|
||||
U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Poppins";
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url("../fonts/poppins-600.woff2") format("woff2");
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
||||
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
|
||||
U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "JetBrains Mono";
|
||||
font-style: normal;
|
||||
font-weight: 400 700;
|
||||
font-display: swap;
|
||||
src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
||||
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
|
||||
U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Orbitron";
|
||||
font-style: normal;
|
||||
font-weight: 400 900;
|
||||
font-display: swap;
|
||||
src: url("../fonts/orbitron-latin.woff2") format("woff2");
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
||||
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
|
||||
U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Cinzel";
|
||||
font-style: normal;
|
||||
font-weight: 400 900;
|
||||
font-display: swap;
|
||||
src: url("../fonts/cinzel-latin.woff2") format("woff2");
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
||||
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
|
||||
U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
@import "tailwindcss";
|
||||
@import "./fonts.css";
|
||||
@import "./tokens.css";
|
||||
@import "./theme.css";
|
||||
@@ -0,0 +1,144 @@
|
||||
@theme inline {
|
||||
--color-background: var(--cohaise-background);
|
||||
--color-foreground: var(--cohaise-foreground);
|
||||
|
||||
--color-surface: var(--cohaise-surface);
|
||||
--color-surface-raised: var(--cohaise-surface-raised);
|
||||
--color-surface-sunken: var(--cohaise-surface-sunken);
|
||||
--color-surface-muted: var(--cohaise-surface-muted);
|
||||
--color-surface-hover: var(--cohaise-surface-hover);
|
||||
--color-surface-overlay: var(--cohaise-surface-overlay);
|
||||
|
||||
--color-muted-foreground: var(--cohaise-muted-foreground);
|
||||
--color-subtle-foreground: var(--cohaise-subtle-foreground);
|
||||
|
||||
--color-border: var(--cohaise-border);
|
||||
--color-border-strong: var(--cohaise-border-strong);
|
||||
--color-border-control: var(--cohaise-border-control);
|
||||
|
||||
--color-primary: var(--cohaise-primary);
|
||||
--color-primary-foreground: var(--cohaise-primary-foreground);
|
||||
--color-primary-hover: var(--cohaise-primary-hover);
|
||||
|
||||
--color-accent: var(--cohaise-accent);
|
||||
--color-accent-foreground: var(--cohaise-accent-foreground);
|
||||
--color-accent-hover: var(--cohaise-accent-hover);
|
||||
--color-accent-graphic: var(--cohaise-accent-graphic);
|
||||
|
||||
--color-ring: var(--cohaise-ring);
|
||||
|
||||
--color-destructive: var(--cohaise-destructive);
|
||||
--color-destructive-foreground: var(--cohaise-destructive-foreground);
|
||||
--color-destructive-hover: var(--cohaise-destructive-hover);
|
||||
|
||||
--color-success: var(--cohaise-success);
|
||||
--color-success-foreground: var(--cohaise-success-foreground);
|
||||
--color-warning: var(--cohaise-warning);
|
||||
--color-warning-foreground: var(--cohaise-warning-foreground);
|
||||
--color-info: var(--cohaise-info);
|
||||
--color-info-foreground: var(--cohaise-info-foreground);
|
||||
|
||||
--color-skeleton-base: var(--cohaise-skeleton-base);
|
||||
--color-skeleton-highlight: var(--cohaise-skeleton-highlight);
|
||||
|
||||
--shadow-sm: var(--cohaise-shadow-sm);
|
||||
--shadow-md: var(--cohaise-shadow-md);
|
||||
--shadow-lg: var(--cohaise-shadow-lg);
|
||||
--shadow-crimson: var(--cohaise-shadow-crimson, 0 0 0 0 transparent);
|
||||
|
||||
--font-display: var(--cohaise-font-display);
|
||||
--font-logo: var(--cohaise-font-logo);
|
||||
--font-sans: var(--cohaise-font-sans);
|
||||
--font-serif: var(--cohaise-font-serif);
|
||||
--font-mono: var(--cohaise-font-mono);
|
||||
|
||||
--tracking-display: var(--cohaise-tracking-display);
|
||||
--tracking-logo: var(--cohaise-tracking-logo);
|
||||
--tracking-label: var(--cohaise-tracking-label);
|
||||
--tracking-body: var(--cohaise-tracking-body);
|
||||
|
||||
--radius-sm: var(--cohaise-radius-sm);
|
||||
--radius-md: var(--cohaise-radius-md);
|
||||
--radius-lg: var(--cohaise-radius-lg);
|
||||
--radius-xl: var(--cohaise-radius-xl);
|
||||
--radius-full: var(--cohaise-radius-full);
|
||||
|
||||
--ease-out-soft: var(--cohaise-ease-out-soft);
|
||||
--ease-in-out-soft: var(--cohaise-ease-in-out-soft);
|
||||
|
||||
--default-transition-duration: var(--cohaise-duration-base);
|
||||
--default-transition-timing-function: var(--cohaise-ease-out-soft);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html,
|
||||
body {
|
||||
background-color: var(--cohaise-background);
|
||||
}
|
||||
|
||||
body {
|
||||
color: var(--cohaise-foreground);
|
||||
font-family: var(--cohaise-font-sans);
|
||||
letter-spacing: var(--cohaise-tracking-body);
|
||||
}
|
||||
|
||||
/* Orbitron sur les titres seulement, jusqu'a h3. Au-dela la chasse est trop large
|
||||
pour la taille du texte et le titre devient illisible. */
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font-family: var(--cohaise-font-display);
|
||||
letter-spacing: var(--cohaise-tracking-display);
|
||||
}
|
||||
}
|
||||
|
||||
@utility duration-fast {
|
||||
transition-duration: var(--cohaise-duration-fast);
|
||||
}
|
||||
|
||||
@utility duration-base {
|
||||
transition-duration: var(--cohaise-duration-base);
|
||||
}
|
||||
|
||||
@utility duration-slow {
|
||||
transition-duration: var(--cohaise-duration-slow);
|
||||
}
|
||||
|
||||
/* Entree des surfaces modales (overlay + panneau). */
|
||||
@keyframes cohaise-overlay-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes cohaise-panel-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(0.5rem) scale(0.98);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@utility animate-overlay-in {
|
||||
animation: cohaise-overlay-in var(--cohaise-duration-base) var(--cohaise-ease-out-soft) both;
|
||||
}
|
||||
|
||||
@utility animate-panel-in {
|
||||
animation: cohaise-panel-in var(--cohaise-duration-base) var(--cohaise-ease-out-soft) both;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
|
||||
--cohaise-gray-50: #f7f5f4;
|
||||
--cohaise-gray-100: #f0eeee;
|
||||
--cohaise-gray-200: #e4e0e0;
|
||||
--cohaise-gray-300: #d6d1d1;
|
||||
--cohaise-gray-400: #a8a0a0;
|
||||
--cohaise-gray-500: #7a7373;
|
||||
--cohaise-gray-600: #5c5656;
|
||||
--cohaise-gray-700: #423d3d;
|
||||
--cohaise-gray-800: #2a2626;
|
||||
--cohaise-gray-900: #1a1616;
|
||||
--cohaise-gray-950: #0d0909;
|
||||
|
||||
/* Echelle organisee autour de #b71c1c, la valeur reelle de --clr-accent du site.
|
||||
Les tons plus sombres servent au survol en mode clair, les plus clairs au
|
||||
survol et au focus en mode sombre. */
|
||||
--cohaise-crimson-950: #3d070e;
|
||||
--cohaise-crimson-900: #5e0a14;
|
||||
--cohaise-crimson-800: #8f1116;
|
||||
--cohaise-crimson-700: #b71c1c;
|
||||
--cohaise-crimson-600: #c92a2a;
|
||||
--cohaise-crimson-500: #d32f2f;
|
||||
|
||||
--cohaise-yellow-500: oklch(0.828 0.189 84);
|
||||
|
||||
--cohaise-background: var(--cohaise-gray-50);
|
||||
--cohaise-foreground: #1a1a1a;
|
||||
|
||||
--cohaise-surface: #ffffff;
|
||||
--cohaise-surface-raised: #ffffff;
|
||||
--cohaise-surface-sunken: #f0eeee;
|
||||
--cohaise-surface-muted: #f4f2f2;
|
||||
--cohaise-surface-hover: #ece8e8;
|
||||
--cohaise-surface-overlay: #ffffff;
|
||||
|
||||
--cohaise-muted-foreground: #5c5656;
|
||||
--cohaise-subtle-foreground: #7a7373;
|
||||
|
||||
/* Les separateurs sont des filets carmin tres desatures, pas du gris. C'est ce
|
||||
qui donne au produit son teinte plutot que celle d'une carte bancaire. */
|
||||
--cohaise-border: #e8dcdc;
|
||||
--cohaise-border-strong: #d4bfbf;
|
||||
--cohaise-border-control: #8f8181;
|
||||
|
||||
--cohaise-primary: var(--cohaise-crimson-700);
|
||||
--cohaise-primary-foreground: #ffffff;
|
||||
--cohaise-primary-hover: var(--cohaise-crimson-800);
|
||||
|
||||
--cohaise-accent: var(--cohaise-crimson-700);
|
||||
--cohaise-accent-foreground: #ffffff;
|
||||
--cohaise-accent-hover: var(--cohaise-crimson-800);
|
||||
|
||||
/* Ton dedie aux petits elements qui sont poses SUR une surface, donc lus
|
||||
comme element d'interface et non comme aplat de marque : filet de carte,
|
||||
carre de liste, anneau de focus. Le rouge de marque n'y atteint que
|
||||
2.65:1 sur la surface sombre. */
|
||||
--cohaise-accent-graphic: var(--cohaise-crimson-700);
|
||||
|
||||
--cohaise-ring: var(--cohaise-crimson-700);
|
||||
|
||||
--cohaise-destructive: #d32f2f;
|
||||
--cohaise-destructive-foreground: #ffffff;
|
||||
--cohaise-destructive-hover: #a31818;
|
||||
|
||||
--cohaise-success: oklch(0.52 0.128 155);
|
||||
--cohaise-success-foreground: #ffffff;
|
||||
|
||||
--cohaise-warning: var(--cohaise-yellow-500);
|
||||
--cohaise-warning-foreground: #1a0505;
|
||||
|
||||
--cohaise-info: #0f6d78;
|
||||
--cohaise-info-foreground: #ffffff;
|
||||
|
||||
--cohaise-skeleton-base: #e4e0e0;
|
||||
--cohaise-skeleton-highlight: #f7f5f4;
|
||||
|
||||
--cohaise-shadow-sm: 0 1px 2px 0 oklch(0.1 0.02 20 / 0.06);
|
||||
--cohaise-shadow-md: 0 4px 12px -2px oklch(0.1 0.02 20 / 0.1);
|
||||
--cohaise-shadow-lg: 0 12px 32px -8px oklch(0.1 0.02 20 / 0.16);
|
||||
|
||||
/* Orbitron porte les chaines courtes, la marque et les titres. Poppins porte le
|
||||
texte courant : Orbitron est trop large pour etre lu en flux. Cinzel reste
|
||||
disponible pour une accroche courte ou Editorial, jamais pour un paragraphe. */
|
||||
--cohaise-font-display: "Orbitron", "Cinzel", sans-serif;
|
||||
--cohaise-font-logo: "Orbitron", "Cinzel", sans-serif;
|
||||
--cohaise-font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
|
||||
sans-serif;
|
||||
--cohaise-font-serif: "Cinzel", "Times New Roman", serif;
|
||||
/* Auto-hebergee comme les trois autres. En repli systeme, la meme taille de
|
||||
chiffres se rendait differemment sur le P330, le portable et le telephone. */
|
||||
--cohaise-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Menlo",
|
||||
"Consolas", monospace;
|
||||
|
||||
/* Orbitron a des chassees tres larges : sans correction, un titre de 32 px
|
||||
parait avoir ete espace a la main et un mot-symlose des caracteres. */
|
||||
--cohaise-tracking-display: -0.015em;
|
||||
--cohaise-tracking-logo: 0.16em;
|
||||
--cohaise-tracking-label: 0.09em;
|
||||
--cohaise-tracking-body: 0;
|
||||
|
||||
/* Deux echelles et non une seule. Un conteneur qui enveloppe du contenu
|
||||
merite d'etre plus doux qu'un bouton qu'on presse : c'est ce decalage qui
|
||||
donne la hierarchie, la ou un rayon unique uniforme rend tout interchangeable. */
|
||||
--cohaise-radius-sm: 0.375rem;
|
||||
--cohaise-radius-md: 0.5rem;
|
||||
--cohaise-radius-lg: 0.75rem;
|
||||
--cohaise-radius-xl: 1rem;
|
||||
--cohaise-radius-full: 9999px;
|
||||
|
||||
--cohaise-ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
|
||||
--cohaise-ease-in-out-soft: cubic-bezier(0.65, 0, 0.35, 1);
|
||||
--cohaise-duration-fast: 150ms;
|
||||
--cohaise-duration-base: 250ms;
|
||||
--cohaise-duration-slow: 400ms;
|
||||
}
|
||||
|
||||
.dark {
|
||||
color-scheme: dark;
|
||||
|
||||
--cohaise-background: #050000;
|
||||
--cohaise-foreground: #f4f4f2;
|
||||
|
||||
/* Surfaces neutres comme sur le site, le fond porte seul la dominante rouge. */
|
||||
--cohaise-surface: #1a1a1a;
|
||||
--cohaise-surface-raised: #242424;
|
||||
--cohaise-surface-sunken: #0a0a0a;
|
||||
--cohaise-surface-muted: #1f1f1f;
|
||||
--cohaise-surface-hover: #2a2a2a;
|
||||
--cohaise-surface-overlay: #242424;
|
||||
|
||||
--cohaise-muted-foreground: #a8a0a0;
|
||||
--cohaise-subtle-foreground: #7a7373;
|
||||
|
||||
--cohaise-border: #2e1c1c;
|
||||
--cohaise-border-strong: #46262a;
|
||||
--cohaise-border-control: #a85a62;
|
||||
|
||||
/* #b71c1c reste lisible dans les deux modes : texte blanc a 6.57:1, et
|
||||
3.18:1 sur le fond, au-dessus du seuil de 3:1 pour un element d'interface. */
|
||||
--cohaise-primary: var(--cohaise-crimson-700);
|
||||
--cohaise-primary-foreground: #ffffff;
|
||||
--cohaise-primary-hover: var(--cohaise-crimson-600);
|
||||
|
||||
--cohaise-accent: var(--cohaise-crimson-700);
|
||||
--cohaise-accent-foreground: #ffffff;
|
||||
--cohaise-accent-hover: var(--cohaise-crimson-600);
|
||||
|
||||
--cohaise-accent-graphic: var(--cohaise-crimson-600);
|
||||
|
||||
--cohaise-ring: var(--cohaise-crimson-600);
|
||||
|
||||
--cohaise-destructive: #ef4444;
|
||||
--cohaise-destructive-foreground: #1a0505;
|
||||
--cohaise-destructive-hover: #f87171;
|
||||
|
||||
--cohaise-success: oklch(0.792 0.152 155);
|
||||
--cohaise-success-foreground: #050000;
|
||||
|
||||
--cohaise-warning: var(--cohaise-yellow-500);
|
||||
--cohaise-warning-foreground: #1a0505;
|
||||
|
||||
--cohaise-info: oklch(0.752 0.112 194);
|
||||
--cohaise-info-foreground: #050000;
|
||||
|
||||
--cohaise-skeleton-base: #2a1a1a;
|
||||
--cohaise-skeleton-highlight: #3a2222;
|
||||
|
||||
--cohaise-shadow-sm: 0 1px 2px 0 oklch(0 0 0 / 0.4);
|
||||
--cohaise-shadow-md: 0 4px 12px -2px oklch(0 0 0 / 0.5);
|
||||
--cohaise-shadow-lg: 0 12px 32px -8px oklch(0 0 0 / 0.6);
|
||||
|
||||
--cohaise-shadow-crimson: 0 0 0 1px oklch(0.55 0.22 15 / 0.28),
|
||||
0 8px 30px -12px oklch(0.55 0.22 15 / 0.55);
|
||||
}
|
||||
Reference in New Issue
Block a user