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:
@@ -87,7 +87,7 @@ function isActive(to: string) {
|
||||
aria-label="Ouvrir le menu"
|
||||
@click="mobileMenuOpen = true"
|
||||
>
|
||||
<UIcon name="i-lucide-menu" class="text-lg" />
|
||||
<UIcon name="i-lucide-menu" class="text-xl" />
|
||||
</button>
|
||||
<NuxtLink to="/" class="app-header__logo">
|
||||
<UIcon name="i-lucide-gavel" class="app-header__logo-icon" />
|
||||
@@ -95,7 +95,7 @@ function isActive(to: string) {
|
||||
</NuxtLink>
|
||||
</div>
|
||||
|
||||
<!-- Center: Mood switcher -->
|
||||
<!-- Center: Mood switcher (desktop) -->
|
||||
<MoodSwitcher class="hidden sm:flex" />
|
||||
|
||||
<!-- Right: Auth -->
|
||||
@@ -126,7 +126,7 @@ function isActive(to: string) {
|
||||
</template>
|
||||
<template v-else>
|
||||
<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>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
@@ -151,15 +151,14 @@ function isActive(to: string) {
|
||||
:class="{ 'app-mobile-nav__link--active': isActive(item.to) }"
|
||||
@click="mobileMenuOpen = false"
|
||||
>
|
||||
<UIcon :name="item.icon" class="text-base" />
|
||||
<UIcon :name="item.icon" class="text-lg" />
|
||||
<span>{{ item.label }}</span>
|
||||
</NuxtLink>
|
||||
</nav>
|
||||
<div
|
||||
v-if="auth.isAuthenticated"
|
||||
class="app-mobile-nav__user"
|
||||
>
|
||||
<span>{{ auth.identity?.display_name || auth.identity?.address?.slice(0, 16) + '...' }}</span>
|
||||
<!-- Mood switcher in mobile drawer -->
|
||||
<div class="app-mobile-mood">
|
||||
<span class="app-mobile-mood__label">Ambiance</span>
|
||||
<MoodSwitcher />
|
||||
</div>
|
||||
</template>
|
||||
</USlideover>
|
||||
@@ -176,7 +175,7 @@ function isActive(to: string) {
|
||||
class="app-sidebar__link"
|
||||
: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>
|
||||
</NuxtLink>
|
||||
</nav>
|
||||
@@ -197,7 +196,7 @@ function isActive(to: string) {
|
||||
class="app-ws-banner"
|
||||
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>
|
||||
<button class="app-ws-banner__btn" @click="ws.disconnect(); ws.connect()">
|
||||
Reconnecter
|
||||
@@ -229,17 +228,16 @@ function isActive(to: string) {
|
||||
top: 0;
|
||||
z-index: 30;
|
||||
background: var(--mood-surface);
|
||||
border-bottom: 1px solid var(--mood-border);
|
||||
}
|
||||
|
||||
.app-header__inner {
|
||||
max-width: 80rem;
|
||||
margin: 0 auto;
|
||||
padding: 0 1rem;
|
||||
padding: 0 1.25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 3.25rem;
|
||||
height: 3.5rem;
|
||||
}
|
||||
|
||||
.app-header__left {
|
||||
@@ -252,13 +250,12 @@ function isActive(to: string) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border: none;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
background: none;
|
||||
color: var(--mood-text-muted);
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.app-header__menu-btn:hover {
|
||||
color: var(--mood-text);
|
||||
@@ -269,16 +266,17 @@ function isActive(to: string) {
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.app-header__logo-icon {
|
||||
font-size: 1.125rem;
|
||||
font-size: 1.375rem;
|
||||
color: var(--mood-accent);
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.app-header__logo-g {
|
||||
font-size: 1.25rem;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
color: var(--mood-accent);
|
||||
line-height: 1;
|
||||
@@ -286,51 +284,61 @@ function isActive(to: string) {
|
||||
}
|
||||
|
||||
.app-header__logo-paren {
|
||||
font-size: 0.9375rem;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 300;
|
||||
color: var(--mood-text-muted);
|
||||
letter-spacing: -0.02em;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.app-header__logo-word {
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 600;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 700;
|
||||
color: var(--mood-text);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.app-header__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
gap: 0.625rem;
|
||||
}
|
||||
|
||||
.app-header__identity {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-text);
|
||||
max-width: 10rem;
|
||||
max-width: 6rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.app-header__identity {
|
||||
max-width: 12rem;
|
||||
}
|
||||
}
|
||||
|
||||
.app-header__role {
|
||||
font-size: 0.625rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
padding: 3px 10px;
|
||||
border-radius: 20px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.app-header__role {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
.app-header__role--smith {
|
||||
background: rgba(24, 132, 59, 0.12);
|
||||
background: rgba(24, 132, 59, 0.15);
|
||||
color: var(--mood-success);
|
||||
}
|
||||
|
||||
.app-header__role--tech {
|
||||
background: rgba(24, 86, 168, 0.12);
|
||||
background: rgba(24, 86, 168, 0.15);
|
||||
color: var(--mood-status-vote, #1856a8);
|
||||
}
|
||||
|
||||
@@ -338,14 +346,13 @@ function isActive(to: string) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
border: none;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
background: none;
|
||||
color: var(--mood-text-muted);
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
font-size: 0.875rem;
|
||||
border-radius: 12px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.app-header__icon-btn:hover {
|
||||
color: var(--mood-text);
|
||||
@@ -356,20 +363,27 @@ function isActive(to: string) {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
padding: 0.375rem 0.875rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
padding: 0.5rem 0.875rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 700;
|
||||
color: var(--mood-accent-text);
|
||||
background: var(--mood-accent);
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
border-radius: 24px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.15s ease;
|
||||
letter-spacing: 0.01em;
|
||||
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||
}
|
||||
|
||||
@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 {
|
||||
opacity: 0.88;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px var(--mood-shadow);
|
||||
}
|
||||
|
||||
/* === Sidebar === */
|
||||
@@ -379,9 +393,8 @@ function isActive(to: string) {
|
||||
}
|
||||
|
||||
.app-sidebar {
|
||||
width: 13rem;
|
||||
width: 14rem;
|
||||
flex-shrink: 0;
|
||||
border-right: 1px solid var(--mood-border);
|
||||
background: var(--mood-surface);
|
||||
display: none;
|
||||
}
|
||||
@@ -394,23 +407,23 @@ function isActive(to: string) {
|
||||
|
||||
.app-sidebar__nav {
|
||||
position: sticky;
|
||||
top: 3.25rem;
|
||||
padding: 0.75rem 0.5rem;
|
||||
top: 3.5rem;
|
||||
padding: 1rem 0.75rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.app-sidebar__link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
gap: 0.625rem;
|
||||
padding: 0.625rem 0.875rem;
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-text-muted);
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
border-radius: 12px;
|
||||
transition: all 0.12s ease;
|
||||
}
|
||||
|
||||
@@ -422,43 +435,52 @@ function isActive(to: string) {
|
||||
.app-sidebar__link--active {
|
||||
color: var(--mood-accent);
|
||||
background: var(--mood-accent-soft);
|
||||
font-weight: 600;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* === Mobile nav === */
|
||||
.app-mobile-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 0.5rem;
|
||||
gap: 4px;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.app-mobile-nav__link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
padding: 0.625rem 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
gap: 0.875rem;
|
||||
padding: 1rem 1.25rem;
|
||||
font-size: 1.0625rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-text-muted);
|
||||
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);
|
||||
color: var(--mood-text);
|
||||
}
|
||||
.app-mobile-nav__link--active {
|
||||
color: var(--mood-accent);
|
||||
background: var(--mood-accent-soft);
|
||||
font-weight: 600;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.app-mobile-nav__user {
|
||||
margin-top: 1rem;
|
||||
padding: 0.75rem;
|
||||
border-top: 1px solid var(--mood-border);
|
||||
font-size: 0.75rem;
|
||||
.app-mobile-mood {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -466,18 +488,18 @@ function isActive(to: string) {
|
||||
.app-main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 1.5rem 1rem;
|
||||
padding: 1.5rem 1.25rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.app-main {
|
||||
padding: 1.5rem 1.5rem;
|
||||
padding: 2rem 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.app-main {
|
||||
padding: 2rem 2rem;
|
||||
padding: 2rem 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -491,23 +513,22 @@ function isActive(to: string) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 1rem;
|
||||
gap: 0.625rem;
|
||||
padding: 0.625rem 1rem;
|
||||
background: var(--mood-error);
|
||||
color: white;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.app-ws-banner__btn {
|
||||
margin-left: 0.5rem;
|
||||
padding: 0.25rem 0.5rem;
|
||||
padding: 0.375rem 0.75rem;
|
||||
background: rgba(255,255,255,0.2);
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
border-radius: 20px;
|
||||
color: white;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
.app-ws-banner__btn:hover {
|
||||
@@ -520,14 +541,13 @@ function isActive(to: string) {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 0.6875rem;
|
||||
padding: 1rem;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--mood-text-muted);
|
||||
border-top: 1px solid var(--mood-border);
|
||||
}
|
||||
|
||||
.app-footer__sep {
|
||||
opacity: 0.4;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
/* === Transitions === */
|
||||
|
||||
Reference in New Issue
Block a user