Design ludique arrondi + mobile responsive + fix IPv6
- ToolboxVignette: prop bullets[] remplace description, touch targets agrandis - Design arrondi: border-radius 16px cards, 20px pills, 12px inputs, no borders - Hover animations: translateY(-3px) + shadow, active states pour touch - SectionLayout: toolbox accordion mobile, pills scroll horizontal, responsive title/subtitle - app.vue: MoodSwitcher dans drawer mobile, header responsive, nav touch-friendly - Dashboard: grille 2-colonnes mobile, connect banner column layout, formula code scroll - Documents/decisions/mandates/protocols: cards responsive (padding, font-size, gap) - Login: touch targets 3rem min, iOS zoom prevention, responsive sizing - Modals: padding responsive sm:p-6 - Protocols: table compact mobile, proto items responsive - nuxt.config: host 0.0.0.0 pour fix IPv4/IPv6 binding Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -119,31 +119,37 @@ async def seed_voting_protocols(
|
|||||||
formulas: dict[str, FormulaConfig],
|
formulas: dict[str, FormulaConfig],
|
||||||
) -> dict[str, VotingProtocol]:
|
) -> dict[str, VotingProtocol]:
|
||||||
protocols: dict[str, dict] = {
|
protocols: dict[str, dict] = {
|
||||||
"Vote majoritaire": {
|
"Vote WoT standard": {
|
||||||
"description": (
|
"description": (
|
||||||
"Vote binaire a majorite simple. Le seuil d'adoption "
|
"Vote binaire (pour/contre) ouvert a tous les membres de la "
|
||||||
"s'adapte dynamiquement au taux de participation via "
|
"toile de confiance. Le seuil d'adoption s'adapte au taux de "
|
||||||
"la formule d'inertie WoT."
|
"participation via l'inertie WoT : quasi-unanimite a faible "
|
||||||
|
"participation, majorite simple a forte mobilisation. "
|
||||||
|
"Utilise pour la Licence G1 et les textes fondateurs."
|
||||||
),
|
),
|
||||||
"vote_type": "binary",
|
"vote_type": "binary",
|
||||||
"formula_config_id": formulas["Standard Licence G1"].id,
|
"formula_config_id": formulas["Standard Licence G1"].id,
|
||||||
"mode_params": "D30M50B.1G.2",
|
"mode_params": "D30M50B.1G.2",
|
||||||
},
|
},
|
||||||
"Vote quadratique": {
|
"Vote forgeron (Smith)": {
|
||||||
"description": (
|
"description": (
|
||||||
"Vote pondere par la racine carree des certifications. "
|
"Vote binaire avec double critere : seuil WoT standard + "
|
||||||
"Reduit l'influence des gros certificateurs et favorise "
|
"seuil minimal de forgerons. Garantit que toute decision "
|
||||||
"une participation large et diversifiee."
|
"impliquant les validateurs soit soutenue par les "
|
||||||
|
"operateurs du reseau. Utilise pour les engagements "
|
||||||
|
"forgerons et les decisions d'infrastructure."
|
||||||
),
|
),
|
||||||
"vote_type": "binary",
|
"vote_type": "binary",
|
||||||
"formula_config_id": formulas["Forgeron avec Smith"].id,
|
"formula_config_id": formulas["Forgeron avec Smith"].id,
|
||||||
"mode_params": "D30M50B.1G.2S.1",
|
"mode_params": "D30M50B.1G.2S.1",
|
||||||
},
|
},
|
||||||
"Vote permanent": {
|
"Vote Comite Technique": {
|
||||||
"description": (
|
"description": (
|
||||||
"Vote continu sans date de fin. Le resultat evolue en "
|
"Vote binaire avec critere TechComm obligatoire. "
|
||||||
"temps reel avec chaque nouveau vote. Adapte aux documents "
|
"Reserve aux decisions techniques critiques : runtime "
|
||||||
"de reference sous revision permanente."
|
"upgrades, modifications de parametres on-chain, "
|
||||||
|
"approbation de code. Le Comite Technique doit atteindre "
|
||||||
|
"un seuil minimal independamment du vote communautaire."
|
||||||
),
|
),
|
||||||
"vote_type": "binary",
|
"vote_type": "binary",
|
||||||
"formula_config_id": formulas["Comite Tech"].id,
|
"formula_config_id": formulas["Comite Tech"].id,
|
||||||
@@ -912,7 +918,7 @@ async def run_seed():
|
|||||||
await seed_votes_on_items(
|
await seed_votes_on_items(
|
||||||
session,
|
session,
|
||||||
doc_forgeron,
|
doc_forgeron,
|
||||||
protocols["Vote majoritaire"],
|
protocols["Vote WoT standard"],
|
||||||
voters,
|
voters,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
33
frontend/app/app.config.ts
Normal file
33
frontend/app/app.config.ts
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
export default defineAppConfig({
|
||||||
|
ui: {
|
||||||
|
button: {
|
||||||
|
variants: {
|
||||||
|
variant: {
|
||||||
|
solid: 'border-0',
|
||||||
|
outline: 'border-0',
|
||||||
|
soft: 'border-0',
|
||||||
|
subtle: 'border-0',
|
||||||
|
ghost: 'border-0',
|
||||||
|
link: 'border-0',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
badge: {
|
||||||
|
variants: {
|
||||||
|
variant: {
|
||||||
|
solid: 'border-0',
|
||||||
|
outline: 'border-0',
|
||||||
|
soft: 'border-0',
|
||||||
|
subtle: 'border-0',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
input: {
|
||||||
|
variants: {
|
||||||
|
variant: {
|
||||||
|
outline: 'border-0 ring-1 ring-[var(--mood-input-border)] focus:ring-[var(--mood-input-focus)]',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -87,7 +87,7 @@ function isActive(to: string) {
|
|||||||
aria-label="Ouvrir le menu"
|
aria-label="Ouvrir le menu"
|
||||||
@click="mobileMenuOpen = true"
|
@click="mobileMenuOpen = true"
|
||||||
>
|
>
|
||||||
<UIcon name="i-lucide-menu" class="text-lg" />
|
<UIcon name="i-lucide-menu" class="text-xl" />
|
||||||
</button>
|
</button>
|
||||||
<NuxtLink to="/" class="app-header__logo">
|
<NuxtLink to="/" class="app-header__logo">
|
||||||
<UIcon name="i-lucide-gavel" class="app-header__logo-icon" />
|
<UIcon name="i-lucide-gavel" class="app-header__logo-icon" />
|
||||||
@@ -95,7 +95,7 @@ function isActive(to: string) {
|
|||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Center: Mood switcher -->
|
<!-- Center: Mood switcher (desktop) -->
|
||||||
<MoodSwitcher class="hidden sm:flex" />
|
<MoodSwitcher class="hidden sm:flex" />
|
||||||
|
|
||||||
<!-- Right: Auth -->
|
<!-- Right: Auth -->
|
||||||
@@ -126,7 +126,7 @@ function isActive(to: string) {
|
|||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<NuxtLink to="/login" class="app-header__connect-btn">
|
<NuxtLink to="/login" class="app-header__connect-btn">
|
||||||
<UIcon name="i-lucide-log-in" class="text-sm" />
|
<UIcon name="i-lucide-log-in" />
|
||||||
<span>Connexion</span>
|
<span>Connexion</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
@@ -151,15 +151,14 @@ function isActive(to: string) {
|
|||||||
:class="{ 'app-mobile-nav__link--active': isActive(item.to) }"
|
:class="{ 'app-mobile-nav__link--active': isActive(item.to) }"
|
||||||
@click="mobileMenuOpen = false"
|
@click="mobileMenuOpen = false"
|
||||||
>
|
>
|
||||||
<UIcon :name="item.icon" class="text-base" />
|
<UIcon :name="item.icon" class="text-lg" />
|
||||||
<span>{{ item.label }}</span>
|
<span>{{ item.label }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</nav>
|
</nav>
|
||||||
<div
|
<!-- Mood switcher in mobile drawer -->
|
||||||
v-if="auth.isAuthenticated"
|
<div class="app-mobile-mood">
|
||||||
class="app-mobile-nav__user"
|
<span class="app-mobile-mood__label">Ambiance</span>
|
||||||
>
|
<MoodSwitcher />
|
||||||
<span>{{ auth.identity?.display_name || auth.identity?.address?.slice(0, 16) + '...' }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</USlideover>
|
</USlideover>
|
||||||
@@ -176,7 +175,7 @@ function isActive(to: string) {
|
|||||||
class="app-sidebar__link"
|
class="app-sidebar__link"
|
||||||
:class="{ 'app-sidebar__link--active': isActive(item.to) }"
|
:class="{ 'app-sidebar__link--active': isActive(item.to) }"
|
||||||
>
|
>
|
||||||
<UIcon :name="item.icon" class="text-base" />
|
<UIcon :name="item.icon" class="text-lg" />
|
||||||
<span>{{ item.label }}</span>
|
<span>{{ item.label }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</nav>
|
</nav>
|
||||||
@@ -197,7 +196,7 @@ function isActive(to: string) {
|
|||||||
class="app-ws-banner"
|
class="app-ws-banner"
|
||||||
role="alert"
|
role="alert"
|
||||||
>
|
>
|
||||||
<UIcon name="i-lucide-plug-zap" class="text-base" />
|
<UIcon name="i-lucide-plug-zap" class="text-lg" />
|
||||||
<span>{{ ws.error.value }}</span>
|
<span>{{ ws.error.value }}</span>
|
||||||
<button class="app-ws-banner__btn" @click="ws.disconnect(); ws.connect()">
|
<button class="app-ws-banner__btn" @click="ws.disconnect(); ws.connect()">
|
||||||
Reconnecter
|
Reconnecter
|
||||||
@@ -229,17 +228,16 @@ function isActive(to: string) {
|
|||||||
top: 0;
|
top: 0;
|
||||||
z-index: 30;
|
z-index: 30;
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border-bottom: 1px solid var(--mood-border);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-header__inner {
|
.app-header__inner {
|
||||||
max-width: 80rem;
|
max-width: 80rem;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0 1rem;
|
padding: 0 1.25rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
height: 3.25rem;
|
height: 3.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-header__left {
|
.app-header__left {
|
||||||
@@ -252,13 +250,12 @@ function isActive(to: string) {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 2rem;
|
width: 2.25rem;
|
||||||
height: 2rem;
|
height: 2.25rem;
|
||||||
border: none;
|
|
||||||
background: none;
|
background: none;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 4px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
.app-header__menu-btn:hover {
|
.app-header__menu-btn:hover {
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
@@ -269,16 +266,17 @@ function isActive(to: string) {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.375rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-header__logo-icon {
|
.app-header__logo-icon {
|
||||||
font-size: 1.125rem;
|
font-size: 1.375rem;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
|
transform: scaleX(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-header__logo-g {
|
.app-header__logo-g {
|
||||||
font-size: 1.25rem;
|
font-size: 1.5rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
@@ -286,51 +284,61 @@ function isActive(to: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.app-header__logo-paren {
|
.app-header__logo-paren {
|
||||||
font-size: 0.9375rem;
|
font-size: 1.125rem;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
letter-spacing: -0.02em;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-header__logo-word {
|
.app-header__logo-word {
|
||||||
font-size: 0.9375rem;
|
font-size: 1.125rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
letter-spacing: -0.01em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-header__right {
|
.app-header__right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.625rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-header__identity {
|
.app-header__identity {
|
||||||
font-size: 0.75rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
max-width: 10rem;
|
max-width: 6rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.app-header__identity {
|
||||||
|
max-width: 12rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.app-header__role {
|
.app-header__role {
|
||||||
font-size: 0.625rem;
|
font-size: 0.75rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
text-transform: uppercase;
|
padding: 3px 10px;
|
||||||
letter-spacing: 0.04em;
|
border-radius: 20px;
|
||||||
padding: 2px 6px;
|
display: none;
|
||||||
border-radius: 3px;
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.app-header__role {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-header__role--smith {
|
.app-header__role--smith {
|
||||||
background: rgba(24, 132, 59, 0.12);
|
background: rgba(24, 132, 59, 0.15);
|
||||||
color: var(--mood-success);
|
color: var(--mood-success);
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-header__role--tech {
|
.app-header__role--tech {
|
||||||
background: rgba(24, 86, 168, 0.12);
|
background: rgba(24, 86, 168, 0.15);
|
||||||
color: var(--mood-status-vote, #1856a8);
|
color: var(--mood-status-vote, #1856a8);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -338,14 +346,13 @@ function isActive(to: string) {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 1.75rem;
|
width: 2.25rem;
|
||||||
height: 1.75rem;
|
height: 2.25rem;
|
||||||
border: none;
|
|
||||||
background: none;
|
background: none;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 4px;
|
border-radius: 12px;
|
||||||
font-size: 0.875rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
.app-header__icon-btn:hover {
|
.app-header__icon-btn:hover {
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
@@ -356,20 +363,27 @@ function isActive(to: string) {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.375rem;
|
gap: 0.375rem;
|
||||||
padding: 0.375rem 0.875rem;
|
padding: 0.5rem 0.875rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-accent-text);
|
color: var(--mood-accent-text);
|
||||||
background: var(--mood-accent);
|
background: var(--mood-accent);
|
||||||
border: none;
|
border-radius: 24px;
|
||||||
border-radius: 4px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: opacity 0.15s ease;
|
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||||
letter-spacing: 0.01em;
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.app-header__connect-btn {
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 0.5rem 1.25rem;
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.app-header__connect-btn:hover {
|
.app-header__connect-btn:hover {
|
||||||
opacity: 0.88;
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 4px 12px var(--mood-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Sidebar === */
|
/* === Sidebar === */
|
||||||
@@ -379,9 +393,8 @@ function isActive(to: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.app-sidebar {
|
.app-sidebar {
|
||||||
width: 13rem;
|
width: 14rem;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
border-right: 1px solid var(--mood-border);
|
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -394,23 +407,23 @@ function isActive(to: string) {
|
|||||||
|
|
||||||
.app-sidebar__nav {
|
.app-sidebar__nav {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 3.25rem;
|
top: 3.5rem;
|
||||||
padding: 0.75rem 0.5rem;
|
padding: 1rem 0.75rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 2px;
|
gap: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-sidebar__link {
|
.app-sidebar__link {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.625rem;
|
||||||
padding: 0.5rem 0.75rem;
|
padding: 0.625rem 0.875rem;
|
||||||
font-size: 0.8125rem;
|
font-size: 0.9375rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-radius: 4px;
|
border-radius: 12px;
|
||||||
transition: all 0.12s ease;
|
transition: all 0.12s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -422,43 +435,52 @@ function isActive(to: string) {
|
|||||||
.app-sidebar__link--active {
|
.app-sidebar__link--active {
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
background: var(--mood-accent-soft);
|
background: var(--mood-accent-soft);
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Mobile nav === */
|
/* === Mobile nav === */
|
||||||
.app-mobile-nav {
|
.app-mobile-nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 2px;
|
gap: 4px;
|
||||||
padding: 0.5rem;
|
padding: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-mobile-nav__link {
|
.app-mobile-nav__link {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.625rem;
|
gap: 0.875rem;
|
||||||
padding: 0.625rem 0.75rem;
|
padding: 1rem 1.25rem;
|
||||||
font-size: 0.875rem;
|
font-size: 1.0625rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-radius: 4px;
|
border-radius: 14px;
|
||||||
|
min-height: 3rem;
|
||||||
}
|
}
|
||||||
.app-mobile-nav__link:hover {
|
.app-mobile-nav__link:hover,
|
||||||
|
.app-mobile-nav__link:active {
|
||||||
background: var(--mood-accent-soft);
|
background: var(--mood-accent-soft);
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
}
|
}
|
||||||
.app-mobile-nav__link--active {
|
.app-mobile-nav__link--active {
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
background: var(--mood-accent-soft);
|
background: var(--mood-accent-soft);
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-mobile-nav__user {
|
.app-mobile-mood {
|
||||||
margin-top: 1rem;
|
display: flex;
|
||||||
padding: 0.75rem;
|
align-items: center;
|
||||||
border-top: 1px solid var(--mood-border);
|
justify-content: space-between;
|
||||||
font-size: 0.75rem;
|
padding: 1rem 1.25rem;
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
border-top: 1px solid var(--mood-accent-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-mobile-mood__label {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-weight: 600;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -466,18 +488,18 @@ function isActive(to: string) {
|
|||||||
.app-main {
|
.app-main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
padding: 1.5rem 1rem;
|
padding: 1.5rem 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 640px) {
|
@media (min-width: 640px) {
|
||||||
.app-main {
|
.app-main {
|
||||||
padding: 1.5rem 1.5rem;
|
padding: 2rem 1.75rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1024px) {
|
@media (min-width: 1024px) {
|
||||||
.app-main {
|
.app-main {
|
||||||
padding: 2rem 2rem;
|
padding: 2rem 2.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -491,23 +513,22 @@ function isActive(to: string) {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0.5rem;
|
gap: 0.625rem;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.625rem 1rem;
|
||||||
background: var(--mood-error);
|
background: var(--mood-error);
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 0.75rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-ws-banner__btn {
|
.app-ws-banner__btn {
|
||||||
margin-left: 0.5rem;
|
margin-left: 0.5rem;
|
||||||
padding: 0.25rem 0.5rem;
|
padding: 0.375rem 0.75rem;
|
||||||
background: rgba(255,255,255,0.2);
|
background: rgba(255,255,255,0.2);
|
||||||
border: none;
|
border-radius: 20px;
|
||||||
border-radius: 3px;
|
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.app-ws-banner__btn:hover {
|
.app-ws-banner__btn:hover {
|
||||||
@@ -520,14 +541,13 @@ function isActive(to: string) {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.75rem 1rem;
|
padding: 1rem;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
border-top: 1px solid var(--mood-border);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-footer__sep {
|
.app-footer__sep {
|
||||||
opacity: 0.4;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Transitions === */
|
/* === Transitions === */
|
||||||
|
|||||||
@@ -39,73 +39,73 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------
|
||||||
Zen — Frais, vegetal, vivant (Light)
|
Zen — Foret profonde, vegetal et mineral (Light)
|
||||||
Palette: sauge / lavande / terre cuite / bleu ciel
|
Palette: vert sombre / brun chaud / bleu ardoise / terre
|
||||||
-------------------------------------------------------------------------- */
|
-------------------------------------------------------------------------- */
|
||||||
.mood-zen {
|
.mood-zen {
|
||||||
--mood-bg: #f6f9f5;
|
--mood-bg: #f0f4ef;
|
||||||
--mood-surface: #ffffff;
|
--mood-surface: #fafcf9;
|
||||||
--mood-surface-hover: #ecf4e8;
|
--mood-surface-hover: #e4ece0;
|
||||||
--mood-text: #172014;
|
--mood-text: #0e1a0c;
|
||||||
--mood-text-muted: #4e6d48;
|
--mood-text-muted: #3a5634;
|
||||||
--mood-accent: #2e8250;
|
--mood-accent: #1a6838;
|
||||||
--mood-accent-soft: rgba(46, 130, 80, 0.07);
|
--mood-accent-soft: rgba(26, 104, 56, 0.08);
|
||||||
--mood-accent-text: #ffffff;
|
--mood-accent-text: #ffffff;
|
||||||
--mood-border: #bdd4b8;
|
--mood-border: #a0c098;
|
||||||
--mood-secondary: #7868a6;
|
--mood-secondary: #6b5838;
|
||||||
--mood-tertiary: #b86830;
|
--mood-tertiary: #3a6878;
|
||||||
--mood-success: #1d9048;
|
--mood-success: #146830;
|
||||||
--mood-warning: #a87020;
|
--mood-warning: #8a6018;
|
||||||
--mood-error: #b83838;
|
--mood-error: #a03030;
|
||||||
--mood-gradient: linear-gradient(145deg, #f2f8ef 0%, #ffffff 40%, #f4f0f8 100%);
|
--mood-gradient: linear-gradient(145deg, #eaf2e6 0%, #fafcf9 40%, #f0ece4 100%);
|
||||||
--mood-shadow: rgba(40, 100, 60, 0.06);
|
--mood-shadow: rgba(26, 80, 40, 0.08);
|
||||||
--mood-input-bg: #ffffff;
|
--mood-input-bg: #fafcf9;
|
||||||
--mood-input-border: #a4c4a0;
|
--mood-input-border: #90b088;
|
||||||
--mood-input-focus: #2e8250;
|
--mood-input-focus: #1a6838;
|
||||||
|
|
||||||
--mood-status-prepa: #a87020;
|
--mood-status-prepa: #8a6018;
|
||||||
--mood-status-prepa-bg: rgba(168, 112, 32, 0.10);
|
--mood-status-prepa-bg: rgba(138, 96, 24, 0.10);
|
||||||
--mood-status-vote: #6858a0;
|
--mood-status-vote: #3a6878;
|
||||||
--mood-status-vote-bg: rgba(104, 88, 160, 0.10);
|
--mood-status-vote-bg: rgba(58, 104, 120, 0.10);
|
||||||
--mood-status-vigueur: #1d9048;
|
--mood-status-vigueur: #146830;
|
||||||
--mood-status-vigueur-bg: rgba(29, 144, 72, 0.10);
|
--mood-status-vigueur-bg: rgba(20, 104, 48, 0.10);
|
||||||
--mood-status-clos: #607858;
|
--mood-status-clos: #506848;
|
||||||
--mood-status-clos-bg: rgba(96, 120, 88, 0.08);
|
--mood-status-clos-bg: rgba(80, 104, 72, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------
|
||||||
Chagrine — Lumineux, electrique, profond (Dark)
|
Chagrine — Profond, electrique, bleu dominant (Dark)
|
||||||
Palette: violet vif / cyan / magenta / or
|
Palette: bleu electrique / cyan / magenta / or
|
||||||
-------------------------------------------------------------------------- */
|
-------------------------------------------------------------------------- */
|
||||||
.mood-chagrine {
|
.mood-chagrine {
|
||||||
--mood-bg: #14101e;
|
--mood-bg: #0c1018;
|
||||||
--mood-surface: #1c1628;
|
--mood-surface: #121824;
|
||||||
--mood-surface-hover: #261e38;
|
--mood-surface-hover: #1a2438;
|
||||||
--mood-text: #e4daf0;
|
--mood-text: #d8e4f0;
|
||||||
--mood-text-muted: #9888b8;
|
--mood-text-muted: #7898c0;
|
||||||
--mood-accent: #9470d8;
|
--mood-accent: #4088d8;
|
||||||
--mood-accent-soft: rgba(148, 112, 216, 0.12);
|
--mood-accent-soft: rgba(64, 136, 216, 0.12);
|
||||||
--mood-accent-text: #ffffff;
|
--mood-accent-text: #ffffff;
|
||||||
--mood-border: #302448;
|
--mood-border: #1e3050;
|
||||||
--mood-secondary: #38c8c8;
|
--mood-secondary: #38c8c8;
|
||||||
--mood-tertiary: #e07090;
|
--mood-tertiary: #d870a0;
|
||||||
--mood-success: #40d888;
|
--mood-success: #38d080;
|
||||||
--mood-warning: #e0b040;
|
--mood-warning: #e0b040;
|
||||||
--mood-error: #e86060;
|
--mood-error: #e06060;
|
||||||
--mood-gradient: linear-gradient(145deg, #14101e 0%, #1c1628 40%, #101820 100%);
|
--mood-gradient: linear-gradient(145deg, #0c1018 0%, #121824 40%, #0c1420 100%);
|
||||||
--mood-shadow: rgba(120, 80, 200, 0.12);
|
--mood-shadow: rgba(40, 100, 200, 0.15);
|
||||||
--mood-input-bg: #1c1628;
|
--mood-input-bg: #121824;
|
||||||
--mood-input-border: #3c2c58;
|
--mood-input-border: #283c58;
|
||||||
--mood-input-focus: #9470d8;
|
--mood-input-focus: #4088d8;
|
||||||
|
|
||||||
--mood-status-prepa: #e0b040;
|
--mood-status-prepa: #e0b040;
|
||||||
--mood-status-prepa-bg: rgba(224, 176, 64, 0.15);
|
--mood-status-prepa-bg: rgba(224, 176, 64, 0.15);
|
||||||
--mood-status-vote: #38c8c8;
|
--mood-status-vote: #38c8c8;
|
||||||
--mood-status-vote-bg: rgba(56, 200, 200, 0.14);
|
--mood-status-vote-bg: rgba(56, 200, 200, 0.14);
|
||||||
--mood-status-vigueur: #40d888;
|
--mood-status-vigueur: #38d080;
|
||||||
--mood-status-vigueur-bg: rgba(64, 216, 136, 0.14);
|
--mood-status-vigueur-bg: rgba(56, 208, 128, 0.14);
|
||||||
--mood-status-clos: #7868a0;
|
--mood-status-clos: #6080a8;
|
||||||
--mood-status-clos-bg: rgba(120, 104, 160, 0.12);
|
--mood-status-clos-bg: rgba(96, 128, 168, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------
|
||||||
@@ -144,35 +144,59 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
Global design tokens
|
Global design tokens — Nunito, rounded, borderless
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-family: 'Nunito', system-ui, -apple-system, sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
font-family: 'Nunito', system-ui, -apple-system, sans-serif;
|
||||||
transition: background-color 0.3s ease, color 0.3s ease;
|
transition: background-color 0.3s ease, color 0.3s ease;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* --- No borders anywhere --- */
|
||||||
|
button, input, select, textarea {
|
||||||
|
border: none !important;
|
||||||
|
outline: none;
|
||||||
|
font-family: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:focus, select:focus, textarea:focus {
|
||||||
|
outline: none;
|
||||||
|
box-shadow: 0 0 0 2.5px var(--mood-accent-soft);
|
||||||
|
}
|
||||||
|
|
||||||
/* --- Status pills --- */
|
/* --- Status pills --- */
|
||||||
.status-pill {
|
.status-pill {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 3px 10px;
|
padding: 5px 14px;
|
||||||
border-radius: 4px;
|
border-radius: 20px;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
letter-spacing: 0.02em;
|
letter-spacing: 0.01em;
|
||||||
text-transform: uppercase;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.15s ease;
|
transition: all 0.15s ease;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
border: none;
|
border: none !important;
|
||||||
}
|
}
|
||||||
.status-pill:hover {
|
.status-pill:hover {
|
||||||
filter: brightness(1.1);
|
filter: brightness(1.08);
|
||||||
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
.status-pill.active {
|
.status-pill.active {
|
||||||
box-shadow: 0 0 0 2px var(--mood-accent);
|
box-shadow: 0 0 0 2.5px var(--mood-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-prepa {
|
.status-prepa {
|
||||||
@@ -193,14 +217,32 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
Nuxt UI overrides
|
Nuxt UI overrides — borderless everything
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
:root .mood-peps,
|
:root .mood-peps,
|
||||||
:root .mood-zen,
|
:root .mood-zen,
|
||||||
:root .mood-chagrine,
|
:root .mood-chagrine,
|
||||||
:root .mood-grave {
|
:root .mood-grave {
|
||||||
--ui-border: var(--mood-input-border);
|
--ui-border: transparent;
|
||||||
--ui-bg: var(--mood-input-bg);
|
--ui-bg: var(--mood-input-bg);
|
||||||
--ui-text-highlighted: var(--mood-accent);
|
--ui-text-highlighted: var(--mood-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:root button,
|
||||||
|
:root [class*="UButton"],
|
||||||
|
:root [class*="u-button"],
|
||||||
|
:root [data-variant] {
|
||||||
|
border: none !important;
|
||||||
|
font-family: 'Nunito', system-ui, sans-serif !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root input,
|
||||||
|
:root textarea,
|
||||||
|
:root select,
|
||||||
|
:root [class*="UInput"],
|
||||||
|
:root [class*="USelect"],
|
||||||
|
:root [class*="UTextarea"] {
|
||||||
|
border: none !important;
|
||||||
|
font-family: 'Nunito', system-ui, sans-serif !important;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
/**
|
/**
|
||||||
* SectionLayout — Mise en page pour sections (documents, decisions, mandats).
|
* SectionLayout — Mise en page pour sections.
|
||||||
*
|
*
|
||||||
* Structure : titre + status pills + grille (contenu + toolbox).
|
* Status pills inside the content block (not header).
|
||||||
* Responsive : toolbox passe sous le contenu sur mobile.
|
* Toolbox sidebar with condensed content.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface StatusFilter {
|
export interface StatusFilter {
|
||||||
@@ -42,6 +42,8 @@ const emit = defineEmits<{
|
|||||||
'update:activeStatus': [status: string | null]
|
'update:activeStatus': [status: string | null]
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
|
const toolboxOpen = ref(false)
|
||||||
|
|
||||||
const statusCssMap: Record<string, string> = {
|
const statusCssMap: Record<string, string> = {
|
||||||
draft: 'status-prepa',
|
draft: 'status-prepa',
|
||||||
qualification: 'status-prepa',
|
qualification: 'status-prepa',
|
||||||
@@ -73,13 +75,16 @@ function toggleStatus(statusId: string) {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<!-- Header -->
|
<!-- Header: just title -->
|
||||||
<div class="section__header">
|
<div class="section__header">
|
||||||
<div class="section__title-block">
|
|
||||||
<h1 class="section__title">{{ title }}</h1>
|
<h1 class="section__title">{{ title }}</h1>
|
||||||
<p v-if="subtitle" class="section__subtitle">{{ subtitle }}</p>
|
<p v-if="subtitle" class="section__subtitle">{{ subtitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Body: content + toolbox -->
|
||||||
|
<div class="section__body">
|
||||||
|
<div class="section__main">
|
||||||
|
<!-- Status pills INSIDE the list block -->
|
||||||
<div v-if="statuses.length > 0" class="section__pills">
|
<div v-if="statuses.length > 0" class="section__pills">
|
||||||
<button
|
<button
|
||||||
v-for="status in statuses"
|
v-for="status in statuses"
|
||||||
@@ -93,27 +98,27 @@ function toggleStatus(statusId: string) {
|
|||||||
<span v-if="status.count > 0" class="section__pill-count">{{ status.count }}</span>
|
<span v-if="status.count > 0" class="section__pill-count">{{ status.count }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Body: content + toolbox -->
|
|
||||||
<div class="section__body">
|
|
||||||
<div class="section__main">
|
|
||||||
<div v-if="$slots.search" class="section__search">
|
<div v-if="$slots.search" class="section__search">
|
||||||
<slot name="search" />
|
<slot name="search" />
|
||||||
</div>
|
</div>
|
||||||
<div class="section__content">
|
<div class="section__content">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="$slots.empty" class="section__empty">
|
|
||||||
<slot name="empty" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<aside class="section__toolbox">
|
<aside class="section__toolbox">
|
||||||
<div class="section__toolbox-head">
|
<button class="section__toolbox-head" @click="toolboxOpen = !toolboxOpen">
|
||||||
<UIcon name="i-lucide-wrench" class="text-xs" />
|
<div class="section__toolbox-head-left">
|
||||||
|
<UIcon name="i-lucide-wrench" />
|
||||||
<span>Boite a outils</span>
|
<span>Boite a outils</span>
|
||||||
</div>
|
</div>
|
||||||
|
<UIcon
|
||||||
|
:name="toolboxOpen ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'"
|
||||||
|
class="section__toolbox-toggle"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
<div class="section__toolbox-content" :class="{ 'section__toolbox-content--open': toolboxOpen }">
|
||||||
<div v-if="$slots.toolbox" class="section__toolbox-body">
|
<div v-if="$slots.toolbox" class="section__toolbox-body">
|
||||||
<slot name="toolbox" />
|
<slot name="toolbox" />
|
||||||
</div>
|
</div>
|
||||||
@@ -122,12 +127,12 @@ function toggleStatus(statusId: string) {
|
|||||||
v-for="(item, idx) in toolboxItems"
|
v-for="(item, idx) in toolboxItems"
|
||||||
:key="idx"
|
:key="idx"
|
||||||
:title="item.title"
|
:title="item.title"
|
||||||
:description="item.description"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="section__toolbox-empty">
|
<div v-else class="section__toolbox-empty">
|
||||||
Aucun outil disponible
|
Aucun outil disponible
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -137,68 +142,93 @@ function toggleStatus(statusId: string) {
|
|||||||
.section {
|
.section {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1.25rem;
|
gap: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__header {
|
.section__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
gap: 0.25rem;
|
||||||
justify-content: space-between;
|
|
||||||
gap: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section__title-block {
|
|
||||||
flex: 1;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__title {
|
.section__title {
|
||||||
font-size: 1.375rem;
|
font-size: 1.375rem;
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.section__title {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__subtitle {
|
.section__subtitle {
|
||||||
margin-top: 0.125rem;
|
font-size: 0.875rem;
|
||||||
font-size: 0.8125rem;
|
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__pills {
|
@media (min-width: 640px) {
|
||||||
display: flex;
|
.section__subtitle {
|
||||||
flex-wrap: wrap;
|
font-size: 1rem;
|
||||||
gap: 0.375rem;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__pill-count {
|
|
||||||
margin-left: 0.25rem;
|
|
||||||
font-size: 0.5625rem;
|
|
||||||
font-weight: 700;
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__body {
|
.section__body {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 16rem;
|
grid-template-columns: 1fr 16rem;
|
||||||
gap: 1.25rem;
|
gap: 1.5rem;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__main {
|
.section__main {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.75rem;
|
gap: 1rem;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section__pills {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.5rem;
|
||||||
|
align-items: center;
|
||||||
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
scrollbar-width: none;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__pills::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.section__pills {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow-x: visible;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__pill-count {
|
||||||
|
margin-left: 0.25rem;
|
||||||
|
font-size: 0.6875rem;
|
||||||
|
font-weight: 800;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
.section__search {
|
.section__search {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
align-items: center;
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 639px) {
|
||||||
|
.section__search {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__content {
|
.section__content {
|
||||||
@@ -207,38 +237,73 @@ function toggleStatus(statusId: string) {
|
|||||||
|
|
||||||
.section__toolbox {
|
.section__toolbox {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 4rem;
|
top: 4.5rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.625rem;
|
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 16px;
|
||||||
border-radius: 6px;
|
overflow: hidden;
|
||||||
padding: 0.875rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__toolbox-head {
|
.section__toolbox-head {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25rem;
|
justify-content: space-between;
|
||||||
font-size: 0.6875rem;
|
width: 100%;
|
||||||
font-weight: 700;
|
padding: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__toolbox-head-left {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.375rem;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-weight: 800;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.05em;
|
letter-spacing: 0.04em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__toolbox-toggle {
|
||||||
|
color: var(--mood-text-muted);
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__toolbox-content {
|
||||||
|
display: none;
|
||||||
|
padding: 0 1rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__toolbox-content--open {
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__toolbox-body {
|
.section__toolbox-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.5rem;
|
gap: 0.625rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section__toolbox-empty {
|
.section__toolbox-empty {
|
||||||
font-size: 0.6875rem;
|
font-size: 0.875rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0.75rem 0;
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Desktop: toolbox always open, no toggle */
|
||||||
|
@media (min-width: 1024px) {
|
||||||
|
.section__toolbox-head {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.section__toolbox-toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.section__toolbox-content {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1023px) {
|
@media (max-width: 1023px) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
/**
|
/**
|
||||||
* ToolboxVignette — Carte compacte pour la boite a outils.
|
* ToolboxVignette — Carte compacte, bullet points, bouton Demarrer.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface ToolboxAction {
|
export interface ToolboxAction {
|
||||||
@@ -8,18 +8,17 @@ export interface ToolboxAction {
|
|||||||
icon?: string
|
icon?: string
|
||||||
to?: string
|
to?: string
|
||||||
emit?: string
|
emit?: string
|
||||||
|
primary?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
title: string
|
title: string
|
||||||
description?: string
|
bullets?: string[]
|
||||||
contextLabel?: string
|
|
||||||
actions?: ToolboxAction[]
|
actions?: ToolboxAction[]
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
description: undefined,
|
bullets: undefined,
|
||||||
contextLabel: undefined,
|
|
||||||
actions: undefined,
|
actions: undefined,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@@ -29,10 +28,9 @@ const emit = defineEmits<{
|
|||||||
}>()
|
}>()
|
||||||
|
|
||||||
const defaultActions: ToolboxAction[] = [
|
const defaultActions: ToolboxAction[] = [
|
||||||
{ label: 'Contexte', icon: 'i-lucide-info', emit: 'context' },
|
|
||||||
{ label: 'Tutos', icon: 'i-lucide-graduation-cap', emit: 'tutos' },
|
{ label: 'Tutos', icon: 'i-lucide-graduation-cap', emit: 'tutos' },
|
||||||
{ label: 'Choisir', icon: 'i-lucide-check-circle', emit: 'choisir' },
|
{ label: 'Formules', icon: 'i-lucide-calculator', emit: 'formules' },
|
||||||
{ label: 'Demarrer', icon: 'i-lucide-play', emit: 'demarrer' },
|
{ label: 'Demarrer', icon: 'i-lucide-play', emit: 'demarrer', primary: true },
|
||||||
]
|
]
|
||||||
|
|
||||||
const resolvedActions = computed(() => props.actions ?? defaultActions)
|
const resolvedActions = computed(() => props.actions ?? defaultActions)
|
||||||
@@ -50,19 +48,18 @@ function handleAction(action: ToolboxAction) {
|
|||||||
<template>
|
<template>
|
||||||
<div class="vignette">
|
<div class="vignette">
|
||||||
<h4 class="vignette__title">{{ title }}</h4>
|
<h4 class="vignette__title">{{ title }}</h4>
|
||||||
<p v-if="description" class="vignette__desc">{{ description }}</p>
|
<ul v-if="bullets && bullets.length > 0" class="vignette__bullets">
|
||||||
<div v-if="contextLabel" class="vignette__ctx">
|
<li v-for="(b, i) in bullets" :key="i">{{ b }}</li>
|
||||||
<UIcon name="i-lucide-tag" class="text-xs" />
|
</ul>
|
||||||
<span>{{ contextLabel }}</span>
|
|
||||||
</div>
|
|
||||||
<div class="vignette__actions">
|
<div class="vignette__actions">
|
||||||
<button
|
<button
|
||||||
v-for="action in resolvedActions"
|
v-for="action in resolvedActions"
|
||||||
:key="action.label"
|
:key="action.label"
|
||||||
class="vignette__btn"
|
class="vignette__btn"
|
||||||
|
:class="{ 'vignette__btn--primary': action.primary }"
|
||||||
@click="handleAction(action)"
|
@click="handleAction(action)"
|
||||||
>
|
>
|
||||||
<UIcon v-if="action.icon" :name="action.icon" class="text-xs" />
|
<UIcon v-if="action.icon" :name="action.icon" />
|
||||||
<span>{{ action.label }}</span>
|
<span>{{ action.label }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -71,45 +68,37 @@ function handleAction(action: ToolboxAction) {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.vignette {
|
.vignette {
|
||||||
background: var(--mood-surface);
|
background: var(--mood-accent-soft);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 12px;
|
||||||
border-radius: 4px;
|
padding: 0.75rem;
|
||||||
padding: 0.625rem;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.375rem;
|
gap: 0.5rem;
|
||||||
transition: border-color 0.15s ease;
|
|
||||||
}
|
|
||||||
.vignette:hover {
|
|
||||||
border-color: var(--mood-accent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.vignette__title {
|
.vignette__title {
|
||||||
font-size: 0.75rem;
|
font-size: 0.9375rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vignette__desc {
|
.vignette__bullets {
|
||||||
font-size: 0.6875rem;
|
|
||||||
color: var(--mood-text-muted);
|
|
||||||
line-height: 1.35;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
padding: 0 0 0 1rem;
|
||||||
|
font-size: 0.8125rem;
|
||||||
.vignette__ctx {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.25rem;
|
|
||||||
font-size: 0.625rem;
|
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
|
line-height: 1.5;
|
||||||
|
list-style-type: disc;
|
||||||
|
}
|
||||||
|
.vignette__bullets li::marker {
|
||||||
|
color: var(--mood-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.vignette__actions {
|
.vignette__actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.25rem;
|
gap: 0.375rem;
|
||||||
margin-top: 0.125rem;
|
margin-top: 0.125rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,18 +106,35 @@ function handleAction(action: ToolboxAction) {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25rem;
|
gap: 0.25rem;
|
||||||
padding: 0.1875rem 0.5rem;
|
padding: 0.5rem 0.875rem;
|
||||||
font-size: 0.625rem;
|
font-size: 0.8125rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
background: var(--mood-accent-soft);
|
background: var(--mood-surface);
|
||||||
border: none;
|
border-radius: 20px;
|
||||||
border-radius: 3px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: opacity 0.12s ease;
|
transition: transform 0.1s ease, box-shadow 0.1s ease;
|
||||||
letter-spacing: 0.01em;
|
min-height: 2.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.vignette__btn {
|
||||||
|
padding: 0.375rem 0.75rem;
|
||||||
|
min-height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.vignette__btn:hover {
|
.vignette__btn:hover {
|
||||||
opacity: 0.8;
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 2px 8px var(--mood-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vignette__btn:active {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vignette__btn--primary {
|
||||||
|
color: var(--mood-accent-text);
|
||||||
|
background: var(--mood-accent);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ const STORAGE_KEY = 'glibredecision_mood'
|
|||||||
|
|
||||||
const moods: Mood[] = [
|
const moods: Mood[] = [
|
||||||
{ id: 'peps', label: 'Peps', description: 'Chaud et tonique', icon: 'i-lucide-sun', color: '#d44a10', isDark: false },
|
{ id: 'peps', label: 'Peps', description: 'Chaud et tonique', icon: 'i-lucide-sun', color: '#d44a10', isDark: false },
|
||||||
{ id: 'zen', label: 'Zen', description: 'Frais et vegetal', icon: 'i-lucide-leaf', color: '#2e8250', isDark: false },
|
{ id: 'zen', label: 'Zen', description: 'Foret profonde', icon: 'i-lucide-leaf', color: '#1a6838', isDark: false },
|
||||||
{ id: 'chagrine', label: 'Chagrine', description: 'Electrique et profond', icon: 'i-lucide-moon', color: '#9470d8', isDark: true },
|
{ id: 'chagrine', label: 'Chagrine', description: 'Bleu electrique', icon: 'i-lucide-moon', color: '#4088d8', isDark: true },
|
||||||
{ id: 'grave', label: 'Grave', description: 'Mineral et lumineux', icon: 'i-lucide-shield', color: '#d09828', isDark: true },
|
{ id: 'grave', label: 'Grave', description: 'Mineral et lumineux', icon: 'i-lucide-shield', color: '#d09828', isDark: true },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -200,8 +200,7 @@ function formatDate(dateStr: string): string {
|
|||||||
v-for="protocol in protocols.protocols"
|
v-for="protocol in protocols.protocols"
|
||||||
:key="protocol.id"
|
:key="protocol.id"
|
||||||
:title="protocol.name"
|
:title="protocol.name"
|
||||||
:description="protocol.description || undefined"
|
:bullets="['Applicable aux decisions', protocol.mode_params || 'Configuration standard']"
|
||||||
context-label="Decisions"
|
|
||||||
:actions="[
|
:actions="[
|
||||||
{ label: 'Voir', icon: 'i-lucide-eye', to: `/protocols/${protocol.id}` },
|
{ label: 'Voir', icon: 'i-lucide-eye', to: `/protocols/${protocol.id}` },
|
||||||
]"
|
]"
|
||||||
@@ -219,17 +218,27 @@ function formatDate(dateStr: string): string {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.875rem 1rem;
|
padding: 1rem;
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 16px;
|
||||||
border-radius: 0.5rem;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.decision-card {
|
||||||
|
gap: 0.625rem;
|
||||||
|
padding: 1.25rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.decision-card:hover {
|
.decision-card:hover {
|
||||||
border-color: var(--mood-accent);
|
transform: translateY(-3px);
|
||||||
box-shadow: 0 2px 8px var(--mood-shadow);
|
box-shadow: 0 8px 24px var(--mood-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.decision-card:active {
|
||||||
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.decision-card__header {
|
.decision-card__header {
|
||||||
@@ -245,47 +254,71 @@ function formatDate(dateStr: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.decision-card__title {
|
.decision-card__title {
|
||||||
font-size: 0.875rem;
|
font-size: 0.9375rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.decision-card__title {
|
||||||
|
font-size: 1.0625rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.decision-card__description {
|
.decision-card__description {
|
||||||
margin-top: 0.25rem;
|
margin-top: 0.25rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
line-height: 1.4;
|
line-height: 1.5;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 1;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.decision-card__description {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.decision-card__meta {
|
.decision-card__meta {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 0.375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.decision-card__meta {
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.decision-card__steps {
|
.decision-card__steps {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25rem;
|
gap: 0.25rem;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.decision-card__date {
|
.decision-card__date {
|
||||||
font-size: 0.6875rem;
|
font-size: 0.75rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.decision-card__date {
|
||||||
|
font-size: 0.8125rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.toolbox-section-title {
|
.toolbox-section-title {
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.04em;
|
||||||
@@ -293,7 +326,7 @@ function formatDate(dateStr: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toolbox-empty-text {
|
.toolbox-empty-text {
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -258,8 +258,7 @@ async function createDocument() {
|
|||||||
v-for="protocol in protocols.protocols"
|
v-for="protocol in protocols.protocols"
|
||||||
:key="protocol.id"
|
:key="protocol.id"
|
||||||
:title="protocol.name"
|
:title="protocol.name"
|
||||||
:description="protocol.description || undefined"
|
:bullets="['Applicable aux documents', protocol.mode_params || 'Configuration standard']"
|
||||||
context-label="Documents"
|
|
||||||
:actions="[
|
:actions="[
|
||||||
{ label: 'Voir', icon: 'i-lucide-eye', to: `/protocols/${protocol.id}` },
|
{ label: 'Voir', icon: 'i-lucide-eye', to: `/protocols/${protocol.id}` },
|
||||||
]"
|
]"
|
||||||
@@ -274,8 +273,8 @@ async function createDocument() {
|
|||||||
<!-- New document modal -->
|
<!-- New document modal -->
|
||||||
<UModal v-model:open="showNewDocModal">
|
<UModal v-model:open="showNewDocModal">
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="p-6 space-y-4">
|
<div class="p-4 sm:p-6 space-y-4">
|
||||||
<h3 class="text-lg font-semibold" style="color: var(--mood-text);">
|
<h3 class="text-base sm:text-lg font-semibold" style="color: var(--mood-text);">
|
||||||
Nouveau document de reference
|
Nouveau document de reference
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
@@ -363,17 +362,27 @@ async function createDocument() {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.875rem 1rem;
|
padding: 1rem;
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 16px;
|
||||||
border-radius: 0.5rem;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.doc-card {
|
||||||
|
gap: 0.625rem;
|
||||||
|
padding: 1.25rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.doc-card:hover {
|
.doc-card:hover {
|
||||||
border-color: var(--mood-accent);
|
transform: translateY(-3px);
|
||||||
box-shadow: 0 2px 8px var(--mood-shadow);
|
box-shadow: 0 8px 24px var(--mood-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-card:active {
|
||||||
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.doc-card__header {
|
.doc-card__header {
|
||||||
@@ -384,21 +393,33 @@ async function createDocument() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.doc-card__title {
|
.doc-card__title {
|
||||||
font-size: 0.875rem;
|
font-size: 0.9375rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.doc-card__title {
|
||||||
|
font-size: 1.0625rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.doc-card__meta {
|
.doc-card__meta {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 0.375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.doc-card__meta {
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.doc-card__version {
|
.doc-card__version {
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
font-family: ui-monospace, SFMono-Regular, monospace;
|
font-family: ui-monospace, SFMono-Regular, monospace;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
@@ -407,29 +428,41 @@ async function createDocument() {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25rem;
|
gap: 0.25rem;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.doc-card__date {
|
.doc-card__date {
|
||||||
font-size: 0.6875rem;
|
font-size: 0.75rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.doc-card__date {
|
||||||
|
font-size: 0.8125rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.doc-card__description {
|
.doc-card__description {
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
line-height: 1.4;
|
line-height: 1.5;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.doc-card__description {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.toolbox-section-title {
|
.toolbox-section-title {
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.04em;
|
||||||
@@ -437,7 +470,7 @@ async function createDocument() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toolbox-empty-text {
|
.toolbox-empty-text {
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
/**
|
|
||||||
* Dashboard / Page d'accueil — Glibredecision.
|
|
||||||
*
|
|
||||||
* Accueil sobre et lisible : cartes d'entree, banniere connexion,
|
|
||||||
* apercu boite a outils et activite recente.
|
|
||||||
*/
|
|
||||||
const documents = useDocumentsStore()
|
const documents = useDocumentsStore()
|
||||||
const decisions = useDecisionsStore()
|
const decisions = useDecisionsStore()
|
||||||
const protocols = useProtocolsStore()
|
const protocols = useProtocolsStore()
|
||||||
@@ -26,7 +20,6 @@ onMounted(async () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
/** Entry cards — the 4 main doors. */
|
|
||||||
const entryCards = computed(() => [
|
const entryCards = computed(() => [
|
||||||
{
|
{
|
||||||
key: 'documents',
|
key: 'documents',
|
||||||
@@ -69,12 +62,11 @@ const entryCards = computed(() => [
|
|||||||
count: null,
|
count: null,
|
||||||
countLabel: null,
|
countLabel: null,
|
||||||
totalLabel: null,
|
totalLabel: null,
|
||||||
description: 'Un contexte, un objectif, une duree, une ou plusieurs nominations ; par defaut : nomination d\'un binome.',
|
description: 'Missions deleguees avec nomination en binome',
|
||||||
color: 'var(--mood-success)',
|
color: 'var(--mood-success)',
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
|
||||||
/** Last 5 decisions sorted by most recent. */
|
|
||||||
const recentDecisions = computed(() => {
|
const recentDecisions = computed(() => {
|
||||||
return [...decisions.list]
|
return [...decisions.list]
|
||||||
.sort((a, b) => new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime())
|
.sort((a, b) => new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime())
|
||||||
@@ -105,7 +97,9 @@ function formatDate(dateStr: string): string {
|
|||||||
<div class="dash">
|
<div class="dash">
|
||||||
<!-- Welcome -->
|
<!-- Welcome -->
|
||||||
<div class="dash__welcome">
|
<div class="dash__welcome">
|
||||||
<h1 class="dash__title"><span class="dash__title-g">ğ</span><span class="dash__title-paren">(</span>Decision<span class="dash__title-paren">)</span></h1>
|
<h1 class="dash__title">
|
||||||
|
<span class="dash__title-g">ğ</span><span class="dash__title-paren">(</span>Decision<span class="dash__title-paren">)</span>
|
||||||
|
</h1>
|
||||||
<p class="dash__subtitle">
|
<p class="dash__subtitle">
|
||||||
Decisions collectives pour la communaute Duniter / G1
|
Decisions collectives pour la communaute Duniter / G1
|
||||||
</p>
|
</p>
|
||||||
@@ -125,7 +119,7 @@ function formatDate(dateStr: string): string {
|
|||||||
:style="{ '--card-color': card.color }"
|
:style="{ '--card-color': card.color }"
|
||||||
>
|
>
|
||||||
<div class="entry-card__icon">
|
<div class="entry-card__icon">
|
||||||
<UIcon :name="card.icon" class="text-xl" />
|
<UIcon :name="card.icon" class="text-2xl" />
|
||||||
</div>
|
</div>
|
||||||
<h2 class="entry-card__title">{{ card.title }}</h2>
|
<h2 class="entry-card__title">{{ card.title }}</h2>
|
||||||
<template v-if="card.count !== null">
|
<template v-if="card.count !== null">
|
||||||
@@ -136,7 +130,7 @@ function formatDate(dateStr: string): string {
|
|||||||
<span class="entry-card__desc">{{ card.description }}</span>
|
<span class="entry-card__desc">{{ card.description }}</span>
|
||||||
</template>
|
</template>
|
||||||
<span class="entry-card__arrow">
|
<span class="entry-card__arrow">
|
||||||
<UIcon name="i-lucide-arrow-right" class="text-sm" />
|
<UIcon name="i-lucide-arrow-right" />
|
||||||
</span>
|
</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
@@ -145,28 +139,25 @@ function formatDate(dateStr: string): string {
|
|||||||
<!-- Connect banner -->
|
<!-- Connect banner -->
|
||||||
<div v-if="!auth.isAuthenticated" class="dash__connect">
|
<div v-if="!auth.isAuthenticated" class="dash__connect">
|
||||||
<div class="dash__connect-left">
|
<div class="dash__connect-left">
|
||||||
<UIcon name="i-lucide-key-round" class="text-base" />
|
<UIcon name="i-lucide-key-round" class="text-lg" />
|
||||||
<div>
|
<div>
|
||||||
<p class="dash__connect-text">Connectez-vous avec votre identite Duniter pour participer.</p>
|
<p class="dash__connect-text">Connectez-vous avec votre identite Duniter pour participer.</p>
|
||||||
<p class="dash__connect-hint">Signature Ed25519 · aucun mot de passe</p>
|
<p class="dash__connect-hint">Signature Ed25519 · aucun mot de passe</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<NuxtLink to="/login" class="dash__connect-btn">
|
<NuxtLink to="/login" class="dash__connect-btn">
|
||||||
<UIcon name="i-lucide-log-in" class="text-sm" />
|
<UIcon name="i-lucide-log-in" />
|
||||||
<span>Connexion</span>
|
<span>Connexion</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Boite a outils teaser -->
|
<!-- Toolbox teaser -->
|
||||||
<div class="dash__toolbox">
|
<div class="dash__toolbox">
|
||||||
<div class="dash__toolbox-head">
|
<div class="dash__toolbox-head">
|
||||||
<UIcon name="i-lucide-wrench" class="text-base" />
|
<UIcon name="i-lucide-wrench" class="text-lg" />
|
||||||
<h3>Boite a outils</h3>
|
<h3>Boite a outils</h3>
|
||||||
<span class="dash__toolbox-count">{{ protocols.protocols.length }}</span>
|
<span class="dash__toolbox-count">{{ protocols.protocols.length }}</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="dash__toolbox-desc">
|
|
||||||
Protocoles de vote avec formule de seuil WoT adaptative.
|
|
||||||
</p>
|
|
||||||
<div class="dash__toolbox-tags">
|
<div class="dash__toolbox-tags">
|
||||||
<template v-if="protocols.protocols.length > 0">
|
<template v-if="protocols.protocols.length > 0">
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
@@ -179,21 +170,21 @@ function formatDate(dateStr: string): string {
|
|||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<span class="dash__tag">Vote majoritaire</span>
|
<span class="dash__tag">Vote WoT</span>
|
||||||
<span class="dash__tag">Vote nuance</span>
|
<span class="dash__tag">Vote nuance</span>
|
||||||
<span class="dash__tag">Vote permanent</span>
|
<span class="dash__tag">Vote permanent</span>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<NuxtLink to="/protocols" class="dash__toolbox-link">
|
<NuxtLink to="/protocols" class="dash__toolbox-link">
|
||||||
Voir la boite a outils
|
Voir la boite a outils
|
||||||
<UIcon name="i-lucide-chevron-right" class="text-xs" />
|
<UIcon name="i-lucide-chevron-right" />
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Recent activity -->
|
<!-- Recent activity -->
|
||||||
<div v-if="recentDecisions.length > 0" class="dash__activity">
|
<div v-if="recentDecisions.length > 0" class="dash__activity">
|
||||||
<div class="dash__activity-head">
|
<div class="dash__activity-head">
|
||||||
<UIcon name="i-lucide-activity" class="text-base" />
|
<UIcon name="i-lucide-activity" class="text-lg" />
|
||||||
<h3>Activite recente</h3>
|
<h3>Activite recente</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="dash__activity-list">
|
<div class="dash__activity-list">
|
||||||
@@ -216,13 +207,10 @@ function formatDate(dateStr: string): string {
|
|||||||
<UCollapsible v-model:open="formulaOpen">
|
<UCollapsible v-model:open="formulaOpen">
|
||||||
<button class="dash__formula-trigger" @click="formulaOpen = !formulaOpen">
|
<button class="dash__formula-trigger" @click="formulaOpen = !formulaOpen">
|
||||||
<div class="dash__formula-trigger-left">
|
<div class="dash__formula-trigger-left">
|
||||||
<UIcon name="i-lucide-calculator" class="text-sm" />
|
<UIcon name="i-lucide-calculator" />
|
||||||
<span>Formule de seuil WoT</span>
|
<span>Formule de seuil WoT</span>
|
||||||
</div>
|
</div>
|
||||||
<UIcon
|
<UIcon :name="formulaOpen ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'" />
|
||||||
:name="formulaOpen ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'"
|
|
||||||
class="text-xs"
|
|
||||||
/>
|
|
||||||
</button>
|
</button>
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="dash__formula-body">
|
<div class="dash__formula-body">
|
||||||
@@ -242,7 +230,7 @@ function formatDate(dateStr: string): string {
|
|||||||
</div>
|
</div>
|
||||||
<NuxtLink to="/protocols/formulas" class="dash__formula-link">
|
<NuxtLink to="/protocols/formulas" class="dash__formula-link">
|
||||||
Ouvrir le simulateur
|
Ouvrir le simulateur
|
||||||
<UIcon name="i-lucide-chevron-right" class="text-xs" />
|
<UIcon name="i-lucide-chevron-right" />
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -254,8 +242,8 @@ function formatDate(dateStr: string): string {
|
|||||||
.dash {
|
.dash {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1.5rem;
|
gap: 2rem;
|
||||||
max-width: 52rem;
|
max-width: 56rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Welcome --- */
|
/* --- Welcome --- */
|
||||||
@@ -263,10 +251,16 @@ function formatDate(dateStr: string): string {
|
|||||||
padding: 0.5rem 0;
|
padding: 0.5rem 0;
|
||||||
}
|
}
|
||||||
.dash__title {
|
.dash__title {
|
||||||
font-size: 1.625rem;
|
font-size: 1.75rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.03em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__title {
|
||||||
|
font-size: 2.25rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.dash__title-g {
|
.dash__title-g {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
@@ -274,201 +268,260 @@ function formatDate(dateStr: string): string {
|
|||||||
.dash__title-paren {
|
.dash__title-paren {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
|
opacity: 0.4;
|
||||||
}
|
}
|
||||||
.dash__subtitle {
|
.dash__subtitle {
|
||||||
margin-top: 0.25rem;
|
margin-top: 0.375rem;
|
||||||
font-size: 0.875rem;
|
font-size: 0.9375rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__subtitle {
|
||||||
|
font-size: 1.0625rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Entry cards --- */
|
/* --- Entry cards --- */
|
||||||
.dash__entries {
|
.dash__entries {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
|
grid-template-columns: 1fr 1fr;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__entries {
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.entry-card {
|
.entry-card {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.375rem;
|
gap: 0.375rem;
|
||||||
padding: 1.25rem 1rem;
|
padding: 1rem;
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 16px;
|
||||||
border-radius: 6px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.entry-card {
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 1.5rem 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.entry-card:hover {
|
.entry-card:hover {
|
||||||
border-color: var(--card-color, var(--mood-accent));
|
transform: translateY(-3px);
|
||||||
box-shadow: 0 2px 8px var(--mood-shadow);
|
box-shadow: 0 8px 24px var(--mood-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-card:active {
|
||||||
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-card__icon {
|
.entry-card__icon {
|
||||||
width: 2.25rem;
|
width: 2.75rem;
|
||||||
height: 2.25rem;
|
height: 2.75rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 6px;
|
border-radius: 14px;
|
||||||
background: color-mix(in srgb, var(--card-color, var(--mood-accent)) 10%, transparent);
|
background: color-mix(in srgb, var(--card-color, var(--mood-accent)) 12%, transparent);
|
||||||
color: var(--card-color, var(--mood-accent));
|
color: var(--card-color, var(--mood-accent));
|
||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-card__title {
|
.entry-card__title {
|
||||||
font-size: 1rem;
|
font-size: 1.25rem;
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-card__count {
|
.entry-card__count {
|
||||||
font-size: 1.25rem;
|
font-size: 1.5rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: var(--card-color, var(--mood-accent));
|
color: var(--card-color, var(--mood-accent));
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-card__total {
|
.entry-card__total {
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-card__desc {
|
.entry-card__desc {
|
||||||
font-size: 0.75rem;
|
font-size: 0.875rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-card__arrow {
|
.entry-card__arrow {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1rem;
|
top: 1.25rem;
|
||||||
right: 1rem;
|
right: 1.25rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
opacity: 0.4;
|
opacity: 0.3;
|
||||||
transition: opacity 0.15s;
|
transition: all 0.15s;
|
||||||
}
|
}
|
||||||
.entry-card:hover .entry-card__arrow {
|
.entry-card:hover .entry-card__arrow {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
color: var(--card-color, var(--mood-accent));
|
color: var(--card-color, var(--mood-accent));
|
||||||
|
transform: translateX(3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Connect banner --- */
|
/* --- Connect banner --- */
|
||||||
.dash__connect {
|
.dash__connect {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.75rem;
|
||||||
|
padding: 1rem;
|
||||||
|
background: var(--mood-accent-soft);
|
||||||
|
border-radius: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__connect {
|
||||||
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 0.75rem;
|
gap: 1rem;
|
||||||
padding: 0.875rem 1rem;
|
padding: 1rem 1.25rem;
|
||||||
background: var(--mood-accent-soft);
|
}
|
||||||
border: 1px solid var(--mood-border);
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash__connect-left {
|
.dash__connect-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: 0.625rem;
|
gap: 0.75rem;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash__connect-text {
|
.dash__connect-text {
|
||||||
font-size: 0.8125rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__connect-text {
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dash__connect-hint {
|
.dash__connect-hint {
|
||||||
font-size: 0.6875rem;
|
font-size: 0.75rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__connect-hint {
|
||||||
|
font-size: 0.8125rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dash__connect-btn {
|
.dash__connect-btn {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.375rem;
|
justify-content: center;
|
||||||
padding: 0.375rem 0.875rem;
|
gap: 0.5rem;
|
||||||
font-size: 0.75rem;
|
padding: 0.625rem 1.25rem;
|
||||||
font-weight: 600;
|
font-size: 0.875rem;
|
||||||
|
font-weight: 700;
|
||||||
color: var(--mood-accent-text);
|
color: var(--mood-accent-text);
|
||||||
background: var(--mood-accent);
|
background: var(--mood-accent);
|
||||||
border-radius: 4px;
|
border-radius: 24px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: opacity 0.15s ease;
|
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||||
|
min-height: 2.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__connect-btn {
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
padding: 0.5rem 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dash__connect-btn:hover {
|
.dash__connect-btn:hover {
|
||||||
opacity: 0.88;
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 4px 12px var(--mood-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dash__connect-btn:active {
|
||||||
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Toolbox teaser --- */
|
/* --- Toolbox teaser --- */
|
||||||
.dash__toolbox {
|
.dash__toolbox {
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 16px;
|
||||||
border-radius: 6px;
|
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__toolbox {
|
||||||
|
padding: 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dash__toolbox-head {
|
.dash__toolbox-head {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.375rem;
|
gap: 0.5rem;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
font-size: 0.875rem;
|
font-size: 1.0625rem;
|
||||||
}
|
}
|
||||||
.dash__toolbox-head h3 { margin: 0; }
|
.dash__toolbox-head h3 { margin: 0; }
|
||||||
|
|
||||||
.dash__toolbox-count {
|
.dash__toolbox-count {
|
||||||
font-size: 0.625rem;
|
font-size: 0.75rem;
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
background: var(--mood-accent-soft);
|
background: var(--mood-accent-soft);
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
padding: 1px 5px;
|
padding: 2px 8px;
|
||||||
border-radius: 3px;
|
border-radius: 20px;
|
||||||
margin-left: 0.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dash__toolbox-desc {
|
|
||||||
margin-top: 0.25rem;
|
|
||||||
font-size: 0.75rem;
|
|
||||||
color: var(--mood-text-muted);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash__toolbox-tags {
|
.dash__toolbox-tags {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.375rem;
|
gap: 0.5rem;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash__tag {
|
.dash__tag {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0.25rem 0.625rem;
|
padding: 0.375rem 0.875rem;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
background: var(--mood-accent-soft);
|
background: var(--mood-accent-soft);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 20px;
|
||||||
border-radius: 4px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: border-color 0.15s ease;
|
transition: transform 0.1s ease;
|
||||||
}
|
}
|
||||||
.dash__tag:hover {
|
.dash__tag:hover {
|
||||||
border-color: var(--mood-accent);
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash__toolbox-link {
|
.dash__toolbox-link {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25rem;
|
gap: 0.375rem;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.75rem;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
@@ -479,19 +532,24 @@ function formatDate(dateStr: string): string {
|
|||||||
/* --- Activity --- */
|
/* --- Activity --- */
|
||||||
.dash__activity {
|
.dash__activity {
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 16px;
|
||||||
border-radius: 6px;
|
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__activity {
|
||||||
|
padding: 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dash__activity-head {
|
.dash__activity-head {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.375rem;
|
gap: 0.5rem;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
font-size: 0.875rem;
|
font-size: 1.0625rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.75rem;
|
||||||
}
|
}
|
||||||
.dash__activity-head h3 { margin: 0; }
|
.dash__activity-head h3 { margin: 0; }
|
||||||
|
|
||||||
@@ -504,19 +562,14 @@ function formatDate(dateStr: string): string {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 0.5rem;
|
gap: 0.75rem;
|
||||||
padding: 0.5rem 0;
|
padding: 0.625rem 0.5rem;
|
||||||
border-bottom: 1px solid var(--mood-border);
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: background 0.1s;
|
transition: background 0.1s;
|
||||||
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
.dash__activity-item:last-child { border-bottom: none; }
|
|
||||||
.dash__activity-item:hover {
|
.dash__activity-item:hover {
|
||||||
background: var(--mood-surface-hover);
|
background: var(--mood-surface-hover);
|
||||||
margin: 0 -0.5rem;
|
|
||||||
padding-left: 0.5rem;
|
|
||||||
padding-right: 0.5rem;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash__activity-main {
|
.dash__activity-main {
|
||||||
@@ -527,16 +580,22 @@ function formatDate(dateStr: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dash__activity-title {
|
.dash__activity-title {
|
||||||
font-size: 0.8125rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__activity-title {
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dash__activity-date {
|
.dash__activity-date {
|
||||||
font-size: 0.625rem;
|
font-size: 0.75rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -546,69 +605,82 @@ function formatDate(dateStr: string): string {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.75rem 1rem;
|
padding: 1rem 1.25rem;
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 16px;
|
||||||
border-radius: 6px;
|
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
font-size: 0.8125rem;
|
font-size: 0.9375rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: border-color 0.15s;
|
transition: box-shadow 0.15s;
|
||||||
}
|
}
|
||||||
.dash__formula-trigger:hover {
|
.dash__formula-trigger:hover {
|
||||||
border-color: var(--mood-accent);
|
box-shadow: 0 4px 12px var(--mood-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash__formula-trigger-left {
|
.dash__formula-trigger-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dash__formula-body {
|
|
||||||
padding: 0 1rem 1rem;
|
|
||||||
background: var(--mood-surface);
|
|
||||||
border: 1px solid var(--mood-border);
|
|
||||||
border-top: none;
|
|
||||||
border-radius: 0 0 6px 6px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 0.625rem;
|
gap: 0.625rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dash__formula-body {
|
||||||
|
padding: 0 1.25rem 1.25rem;
|
||||||
|
background: var(--mood-surface);
|
||||||
|
border-radius: 0 0 16px 16px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
.dash__formula-desc {
|
.dash__formula-desc {
|
||||||
font-size: 0.75rem;
|
font-size: 0.875rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash__formula-code {
|
.dash__formula-code {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0.625rem;
|
padding: 0.625rem 0.75rem;
|
||||||
background: var(--mood-accent-soft);
|
background: var(--mood-accent-soft);
|
||||||
border-radius: 4px;
|
border-radius: 12px;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
font-family: ui-monospace, SFMono-Regular, monospace;
|
font-family: ui-monospace, SFMono-Regular, monospace;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__formula-code {
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash__formula-params {
|
.dash__formula-params {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.625rem;
|
gap: 0.5rem;
|
||||||
font-size: 0.625rem;
|
font-size: 0.75rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
font-family: ui-monospace, SFMono-Regular, monospace;
|
font-family: ui-monospace, SFMono-Regular, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.dash__formula-params {
|
||||||
|
gap: 0.75rem;
|
||||||
|
font-size: 0.8125rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dash__formula-link {
|
.dash__formula-link {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25rem;
|
gap: 0.375rem;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,10 +29,10 @@ async function handleLogin() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const steps = computed(() => [
|
const steps = computed(() => [
|
||||||
{ label: 'Adresse SS58', icon: 'i-lucide-user', done: step.value !== 'input' },
|
{ label: 'Adresse', done: step.value !== 'input' },
|
||||||
{ label: 'Challenge', icon: 'i-lucide-shield', done: step.value === 'signing' || step.value === 'success' },
|
{ label: 'Challenge', done: step.value === 'signing' || step.value === 'success' },
|
||||||
{ label: 'Signature', icon: 'i-lucide-key', done: step.value === 'success' },
|
{ label: 'Signature', done: step.value === 'success' },
|
||||||
{ label: 'Connecte', icon: 'i-lucide-check', done: false },
|
{ label: 'OK', done: false },
|
||||||
])
|
])
|
||||||
|
|
||||||
const activeStepIndex = computed(() => {
|
const activeStepIndex = computed(() => {
|
||||||
@@ -58,10 +58,13 @@ onMounted(() => {
|
|||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<div class="login-card__header">
|
<div class="login-card__header">
|
||||||
<div class="login-card__logo">
|
<div class="login-card__logo">
|
||||||
<UIcon name="i-lucide-gavel" class="text-xl" />
|
<UIcon name="i-lucide-gavel" class="login-card__logo-icon" />
|
||||||
</div>
|
</div>
|
||||||
<h1 class="login-card__title">Connexion</h1>
|
<h1 class="login-card__title">Connexion</h1>
|
||||||
<p class="login-card__subtitle">ğ(Decision) · Duniter V2 · Ed25519</p>
|
<p class="login-card__subtitle">
|
||||||
|
<span class="login-card__g">ğ</span><span class="login-card__paren">(</span>Decision<span class="login-card__paren">)</span>
|
||||||
|
· Duniter V2 · Ed25519
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Steps indicator -->
|
<!-- Steps indicator -->
|
||||||
@@ -76,7 +79,7 @@ onMounted(() => {
|
|||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<div class="login-step__dot">
|
<div class="login-step__dot">
|
||||||
<UIcon v-if="s.done" name="i-lucide-check" class="text-xs" />
|
<UIcon v-if="s.done" name="i-lucide-check" />
|
||||||
<span v-else class="login-step__num">{{ i + 1 }}</span>
|
<span v-else class="login-step__num">{{ i + 1 }}</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="login-step__label">{{ s.label }}</span>
|
<span class="login-step__label">{{ s.label }}</span>
|
||||||
@@ -98,13 +101,13 @@ onMounted(() => {
|
|||||||
|
|
||||||
<!-- Error -->
|
<!-- Error -->
|
||||||
<div v-if="errorMessage || auth.error" class="login-card__error">
|
<div v-if="errorMessage || auth.error" class="login-card__error">
|
||||||
<UIcon name="i-lucide-alert-circle" class="text-sm flex-shrink-0" />
|
<UIcon name="i-lucide-alert-circle" />
|
||||||
<span>{{ errorMessage || auth.error }}</span>
|
<span>{{ errorMessage || auth.error }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Success -->
|
<!-- Success -->
|
||||||
<div v-if="step === 'success'" class="login-card__success">
|
<div v-if="step === 'success'" class="login-card__success">
|
||||||
<UIcon name="i-lucide-check-circle" class="text-sm flex-shrink-0" />
|
<UIcon name="i-lucide-check-circle" />
|
||||||
<span>Connecte. Redirection...</span>
|
<span>Connecte. Redirection...</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -114,8 +117,8 @@ onMounted(() => {
|
|||||||
:disabled="!address.trim() || step === 'success' || auth.loading"
|
:disabled="!address.trim() || step === 'success' || auth.loading"
|
||||||
@click="handleLogin"
|
@click="handleLogin"
|
||||||
>
|
>
|
||||||
<UIcon v-if="auth.loading" name="i-lucide-loader-2" class="animate-spin text-sm" />
|
<UIcon v-if="auth.loading" name="i-lucide-loader-2" class="animate-spin" />
|
||||||
<UIcon v-else name="i-lucide-log-in" class="text-sm" />
|
<UIcon v-else name="i-lucide-log-in" />
|
||||||
<span>{{ auth.loading ? 'Verification...' : 'Se connecter' }}</span>
|
<span>{{ auth.loading ? 'Verification...' : 'Se connecter' }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -132,18 +135,31 @@ onMounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
min-height: 60vh;
|
||||||
|
padding: 1.5rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.login-page {
|
||||||
min-height: 70vh;
|
min-height: 70vh;
|
||||||
padding: 2rem 1rem;
|
padding: 2rem 1rem;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.login-card {
|
.login-card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 24rem;
|
max-width: 26rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1.25rem;
|
gap: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.login-card {
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.login-card__header {
|
.login-card__header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@@ -152,28 +168,49 @@ onMounted(() => {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 3rem;
|
width: 3.5rem;
|
||||||
height: 3rem;
|
height: 3.5rem;
|
||||||
font-size: 1.5rem;
|
font-size: 1.75rem;
|
||||||
font-weight: 800;
|
|
||||||
color: var(--mood-accent-text);
|
color: var(--mood-accent-text);
|
||||||
background: var(--mood-accent);
|
background: var(--mood-accent);
|
||||||
border-radius: 8px;
|
border-radius: 16px;
|
||||||
margin-bottom: 0.75rem;
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
.login-card__logo-icon {
|
||||||
|
transform: scaleX(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card__title {
|
.login-card__title {
|
||||||
font-size: 1.375rem;
|
font-size: 1.5rem;
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.login-card__title {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.login-card__subtitle {
|
.login-card__subtitle {
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
margin-top: 0.25rem;
|
margin-top: 0.375rem;
|
||||||
letter-spacing: 0.02em;
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.login-card__subtitle {
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.login-card__g {
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.login-card__paren {
|
||||||
|
font-weight: 300;
|
||||||
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Steps */
|
/* Steps */
|
||||||
@@ -189,85 +226,85 @@ onMounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25rem;
|
gap: 0.375rem;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-step__dot {
|
.login-step__dot {
|
||||||
width: 1.5rem;
|
width: 2rem;
|
||||||
height: 1.5rem;
|
height: 2rem;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-size: 0.625rem;
|
font-size: 0.8125rem;
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
border: 1.5px solid var(--mood-border);
|
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
background: var(--mood-surface);
|
background: var(--mood-accent-soft);
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-step--active .login-step__dot {
|
.login-step--active .login-step__dot {
|
||||||
border-color: var(--mood-accent);
|
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
box-shadow: 0 0 0 3px var(--mood-accent-soft);
|
box-shadow: 0 0 0 3px var(--mood-accent-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-step--done .login-step__dot {
|
.login-step--done .login-step__dot {
|
||||||
border-color: var(--mood-success);
|
|
||||||
background: var(--mood-success);
|
background: var(--mood-success);
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-step__num {
|
.login-step__num {
|
||||||
font-size: 0.5625rem;
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-step__label {
|
.login-step__label {
|
||||||
font-size: 0.5625rem;
|
font-size: 0.75rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
letter-spacing: 0.02em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-step--active .login-step__label {
|
.login-step--active .login-step__label {
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Field */
|
/* Field */
|
||||||
.login-card__field {
|
.login-card__field {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.375rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card__label {
|
.login-card__label {
|
||||||
font-size: 0.6875rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 0.04em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card__input {
|
.login-card__input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.625rem 0.75rem;
|
padding: 0.875rem 1rem;
|
||||||
font-size: 0.8125rem;
|
font-size: 0.875rem;
|
||||||
font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', monospace;
|
font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', monospace;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
background: var(--mood-input-bg, var(--mood-surface));
|
background: var(--mood-accent-soft);
|
||||||
border: 1px solid var(--mood-input-border, var(--mood-border));
|
border-radius: 12px;
|
||||||
border-radius: 4px;
|
transition: box-shadow 0.15s ease;
|
||||||
outline: none;
|
/* Prevent iOS zoom on focus */
|
||||||
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
-webkit-text-size-adjust: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.login-card__input {
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card__input:focus {
|
.login-card__input:focus {
|
||||||
border-color: var(--mood-input-focus, var(--mood-accent));
|
box-shadow: 0 0 0 3px var(--mood-accent-soft);
|
||||||
box-shadow: 0 0 0 2px var(--mood-accent-soft);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card__input:disabled {
|
.login-card__input:disabled {
|
||||||
@@ -277,7 +314,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
.login-card__input::placeholder {
|
.login-card__input::placeholder {
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
opacity: 0.5;
|
opacity: 0.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Messages */
|
/* Messages */
|
||||||
@@ -285,24 +322,24 @@ onMounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.5rem 0.75rem;
|
padding: 0.625rem 1rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--mood-error);
|
color: var(--mood-error);
|
||||||
background: rgba(196, 43, 43, 0.08);
|
background: rgba(196, 43, 43, 0.08);
|
||||||
border-radius: 4px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card__success {
|
.login-card__success {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.5rem 0.75rem;
|
padding: 0.625rem 1rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--mood-success);
|
color: var(--mood-success);
|
||||||
background: rgba(24, 132, 59, 0.08);
|
background: rgba(24, 132, 59, 0.08);
|
||||||
border-radius: 4px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Button */
|
/* Button */
|
||||||
@@ -310,22 +347,33 @@ onMounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0.5rem;
|
gap: 0.625rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.625rem 1rem;
|
padding: 1rem 1.25rem;
|
||||||
font-size: 0.8125rem;
|
font-size: 1rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-accent-text);
|
color: var(--mood-accent-text);
|
||||||
background: var(--mood-accent);
|
background: var(--mood-accent);
|
||||||
border: none;
|
border-radius: 16px;
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: opacity 0.15s ease;
|
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||||
letter-spacing: 0.01em;
|
min-height: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.login-card__btn {
|
||||||
|
padding: 0.875rem 1.25rem;
|
||||||
|
font-size: 1.0625rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card__btn:hover:not(:disabled) {
|
.login-card__btn:hover:not(:disabled) {
|
||||||
opacity: 0.88;
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 20px var(--mood-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-card__btn:active:not(:disabled) {
|
||||||
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card__btn:disabled {
|
.login-card__btn:disabled {
|
||||||
@@ -336,7 +384,7 @@ onMounted(() => {
|
|||||||
/* Note */
|
/* Note */
|
||||||
.login-card__note {
|
.login-card__note {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -279,8 +279,7 @@ async function handleCreate() {
|
|||||||
v-for="protocol in protocols.protocols"
|
v-for="protocol in protocols.protocols"
|
||||||
:key="protocol.id"
|
:key="protocol.id"
|
||||||
:title="protocol.name"
|
:title="protocol.name"
|
||||||
:description="protocol.description || undefined"
|
:bullets="['Applicable aux mandats', protocol.mode_params || 'Configuration standard']"
|
||||||
context-label="Mandats"
|
|
||||||
:actions="[
|
:actions="[
|
||||||
{ label: 'Voir', icon: 'i-lucide-eye', to: `/protocols/${protocol.id}` },
|
{ label: 'Voir', icon: 'i-lucide-eye', to: `/protocols/${protocol.id}` },
|
||||||
]"
|
]"
|
||||||
@@ -295,8 +294,8 @@ async function handleCreate() {
|
|||||||
<!-- Create mandate modal -->
|
<!-- Create mandate modal -->
|
||||||
<UModal v-model:open="showCreateModal">
|
<UModal v-model:open="showCreateModal">
|
||||||
<template #content>
|
<template #content>
|
||||||
<form class="p-6 space-y-4" @submit.prevent="handleCreate">
|
<form class="p-4 sm:p-6 space-y-4" @submit.prevent="handleCreate">
|
||||||
<h3 class="text-lg font-semibold" style="color: var(--mood-text);">
|
<h3 class="text-base sm:text-lg font-semibold" style="color: var(--mood-text);">
|
||||||
Nouveau mandat
|
Nouveau mandat
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
@@ -358,17 +357,27 @@ async function handleCreate() {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.875rem 1rem;
|
padding: 1rem;
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border: 1px solid var(--mood-border);
|
border-radius: 16px;
|
||||||
border-radius: 0.5rem;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.mandate-card {
|
||||||
|
gap: 0.625rem;
|
||||||
|
padding: 1.25rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mandate-card:hover {
|
.mandate-card:hover {
|
||||||
border-color: var(--mood-accent);
|
transform: translateY(-3px);
|
||||||
box-shadow: 0 2px 8px var(--mood-shadow);
|
box-shadow: 0 8px 24px var(--mood-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.mandate-card:active {
|
||||||
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mandate-card__header {
|
.mandate-card__header {
|
||||||
@@ -384,35 +393,53 @@ async function handleCreate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mandate-card__title {
|
.mandate-card__title {
|
||||||
font-size: 0.875rem;
|
font-size: 0.9375rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.mandate-card__title {
|
||||||
|
font-size: 1.0625rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mandate-card__description {
|
.mandate-card__description {
|
||||||
margin-top: 0.25rem;
|
margin-top: 0.25rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
line-height: 1.4;
|
line-height: 1.5;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.mandate-card__description {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mandate-card__meta {
|
.mandate-card__meta {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 0.375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.mandate-card__meta {
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mandate-card__steps {
|
.mandate-card__steps {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25rem;
|
gap: 0.25rem;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -420,17 +447,25 @@ async function handleCreate() {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25rem;
|
gap: 0.25rem;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mandate-card__dates {
|
.mandate-card__dates {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1rem;
|
flex-wrap: wrap;
|
||||||
font-size: 0.6875rem;
|
gap: 0.5rem;
|
||||||
|
font-size: 0.75rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.mandate-card__dates {
|
||||||
|
gap: 1rem;
|
||||||
|
font-size: 0.8125rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Onboarding empty state */
|
/* Onboarding empty state */
|
||||||
.mandate-onboarding {
|
.mandate-onboarding {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -438,10 +473,16 @@ async function handleCreate() {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
padding: 2.5rem 1.5rem;
|
padding: 2rem 1.25rem;
|
||||||
background: var(--mood-surface);
|
background: var(--mood-surface);
|
||||||
border: 1px dashed var(--mood-border);
|
border-radius: 20px;
|
||||||
border-radius: 0.75rem;
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.mandate-onboarding {
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 3rem 2rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mandate-onboarding__icon {
|
.mandate-onboarding__icon {
|
||||||
@@ -453,31 +494,52 @@ async function handleCreate() {
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--mood-accent-soft);
|
background: var(--mood-accent-soft);
|
||||||
color: var(--mood-accent);
|
color: var(--mood-accent);
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.mandate-onboarding__icon {
|
||||||
|
width: 4rem;
|
||||||
|
height: 4rem;
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mandate-onboarding__title {
|
.mandate-onboarding__title {
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
color: var(--mood-text);
|
color: var(--mood-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.mandate-onboarding__title {
|
||||||
|
font-size: 1.375rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mandate-onboarding__text {
|
.mandate-onboarding__text {
|
||||||
font-size: 0.8125rem;
|
font-size: 0.875rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
line-height: 1.5;
|
line-height: 1.6;
|
||||||
max-width: 32rem;
|
max-width: 32rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.mandate-onboarding__text {
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mandate-onboarding__actions {
|
.mandate-onboarding__actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.5rem;
|
gap: 0.75rem;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbox-section-title {
|
.toolbox-section-title {
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.04em;
|
||||||
@@ -485,7 +547,7 @@ async function handleCreate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toolbox-empty-text {
|
.toolbox-empty-text {
|
||||||
font-size: 0.75rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--mood-text-muted);
|
color: var(--mood-text-muted);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -74,7 +74,7 @@ export const useDecisionsStore = defineStore('decisions', {
|
|||||||
},
|
},
|
||||||
activeDecisions: (state): Decision[] => {
|
activeDecisions: (state): Decision[] => {
|
||||||
return state.list.filter(d =>
|
return state.list.filter(d =>
|
||||||
d.status === 'qualification' || d.status === 'review' || d.status === 'voting',
|
d.status === 'draft' || d.status === 'qualification' || d.status === 'review' || d.status === 'voting',
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
completedDecisions: (state): Decision[] => {
|
completedDecisions: (state): Decision[] => {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ export default defineNuxtConfig({
|
|||||||
compatibilityDate: '2025-07-15',
|
compatibilityDate: '2025-07-15',
|
||||||
ssr: false,
|
ssr: false,
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
devServer: { port: 3002 },
|
devServer: { port: 3002, host: '0.0.0.0' },
|
||||||
components: [{ path: '~/components', pathPrefix: false }],
|
components: [{ path: '~/components', pathPrefix: false }],
|
||||||
css: ['~/assets/css/moods.css'],
|
css: ['~/assets/css/moods.css'],
|
||||||
modules: [
|
modules: [
|
||||||
@@ -27,6 +27,9 @@ export default defineNuxtConfig({
|
|||||||
],
|
],
|
||||||
title: 'Glibredecision',
|
title: 'Glibredecision',
|
||||||
link: [
|
link: [
|
||||||
|
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
||||||
|
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' },
|
||||||
|
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800&display=swap' },
|
||||||
{ rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css' },
|
{ rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css' },
|
||||||
],
|
],
|
||||||
script: [
|
script: [
|
||||||
|
|||||||
Reference in New Issue
Block a user