forked from yvv/decision
v2 : couche données complète + shell + primitives communes
- stores/collective.ts (état local-first, gabarits, import/export, seeds) + stores/decisions.ts (cycle de vie complet : capture→chemin→fenêtres→ sessions→cristallisation→épreuve du réel→révocation) - data/templates.ts : 7 gabarits (Page blanche observatoire-d'abord, 5 points de départ, Institution symétrique) - composables useFeed (13 sections du Fil en sélecteurs purs) + useSearch (index unique Cmd+K/Q0) - shell : layouts default/bare, app.vue mince, useMood v2 (Source/Margelle/ Nappe/Minuit), sceau 井 = logo, LdWorkspaceSelector avec finalité A1, LdAvatarStack (premier/second lieu), LdCountdown (suspension striée) - 338 tests vitest verts, npm run build zéro erreur Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+10
-729
@@ -1,740 +1,21 @@
|
||||
<script setup lang="ts">
|
||||
const auth = useAuthStore()
|
||||
const orgsStore = useOrganizationsStore()
|
||||
const documentsStore = useDocumentsStore()
|
||||
const decisionsStore = useDecisionsStore()
|
||||
const protocolsStore = useProtocolsStore()
|
||||
const mandatesStore = useMandatesStore()
|
||||
const route = useRoute()
|
||||
// Shell v2 — app.vue MINCE : ambiance + hydratation du collectif, rien d'autre.
|
||||
// Toute la structure (header, sidebar, drawer, sceau) vit dans layouts/default.vue.
|
||||
import { useCollectiveStore } from '~/stores/collective'
|
||||
|
||||
const { initMood } = useLibreMood()
|
||||
|
||||
const navigationItems = [
|
||||
{
|
||||
label: 'Décisions',
|
||||
icon: 'i-lucide-scale',
|
||||
to: '/decisions',
|
||||
},
|
||||
{
|
||||
label: 'Documents',
|
||||
icon: 'i-lucide-book-open',
|
||||
to: '/documents',
|
||||
},
|
||||
{
|
||||
label: 'Mandats',
|
||||
icon: 'i-lucide-user-check',
|
||||
to: '/mandates',
|
||||
},
|
||||
{
|
||||
label: 'Protocoles',
|
||||
icon: 'i-lucide-settings',
|
||||
to: '/protocols',
|
||||
},
|
||||
{
|
||||
label: 'Outils',
|
||||
icon: 'i-lucide-wrench',
|
||||
to: '/tools',
|
||||
},
|
||||
{
|
||||
label: 'Sanctuaire',
|
||||
icon: 'i-lucide-archive',
|
||||
to: '/sanctuary',
|
||||
},
|
||||
]
|
||||
|
||||
/** Mobile drawer state. */
|
||||
const mobileMenuOpen = ref(false)
|
||||
|
||||
/** Sidebar collapse state (icons-only mode). */
|
||||
const sidebarCollapsed = ref(false)
|
||||
|
||||
/** Close mobile menu on route change. */
|
||||
watch(() => route.path, () => {
|
||||
mobileMenuOpen.value = false
|
||||
})
|
||||
|
||||
/** Refetch all content stores when the active workspace changes. */
|
||||
watch(() => orgsStore.activeSlug, (newSlug, oldSlug) => {
|
||||
if (oldSlug !== null && newSlug !== null && newSlug !== oldSlug) {
|
||||
documentsStore.fetchAll()
|
||||
decisionsStore.fetchAll()
|
||||
protocolsStore.fetchProtocols()
|
||||
mandatesStore.fetchAll()
|
||||
}
|
||||
})
|
||||
|
||||
/** WebSocket connection and notifications. */
|
||||
const ws = useWebSocket()
|
||||
const { setupWsNotifications } = useNotifications()
|
||||
|
||||
watch(sidebarCollapsed, (val) => {
|
||||
localStorage.setItem('libred-sidebar-collapsed', String(val))
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
onMounted(() => {
|
||||
initMood()
|
||||
const savedCollapsed = localStorage.getItem('libred-sidebar-collapsed')
|
||||
if (savedCollapsed !== null) sidebarCollapsed.value = savedCollapsed === 'true'
|
||||
auth.hydrateFromStorage()
|
||||
if (auth.token) {
|
||||
try {
|
||||
await auth.fetchMe()
|
||||
} catch (err: any) {
|
||||
// Déconnexion seulement sur session réellement invalide (401/403)
|
||||
// Erreur réseau ou backend temporairement indisponible → conserver la session
|
||||
if (err?.status === 401 || err?.status === 403) {
|
||||
auth.logout()
|
||||
}
|
||||
}
|
||||
}
|
||||
ws.connect()
|
||||
setupWsNotifications(ws)
|
||||
// Load organizations in parallel — non-blocking, no auth required
|
||||
orgsStore.fetchOrganizations()
|
||||
useCollectiveStore().init?.()
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
ws.disconnect()
|
||||
})
|
||||
|
||||
function isActive(to: string) {
|
||||
return route.path === to || route.path.startsWith(to + '/')
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- ld-v2 -->
|
||||
<UApp>
|
||||
<OfflineBanner />
|
||||
|
||||
<div
|
||||
class="app-shell"
|
||||
:style="{
|
||||
backgroundColor: 'var(--mood-bg)',
|
||||
color: 'var(--mood-text)',
|
||||
}"
|
||||
>
|
||||
<!-- Header -->
|
||||
<header class="app-header">
|
||||
<div class="app-header__inner">
|
||||
<!-- Left: Hamburger (mobile) + Logo -->
|
||||
<div class="app-header__left">
|
||||
<button
|
||||
class="app-header__menu-btn"
|
||||
aria-label="Ouvrir le menu"
|
||||
@click="mobileMenuOpen = true"
|
||||
>
|
||||
<UIcon name="i-lucide-menu" class="text-xl" />
|
||||
</button>
|
||||
<NuxtLink to="/" class="app-header__logo">
|
||||
<span class="app-header__logo-stamp">
|
||||
<UIcon name="i-lucide-gavel" class="app-header__logo-icon" />
|
||||
</span>
|
||||
<span class="app-header__logo-text">
|
||||
<span class="app-header__logo-libre">libre</span><span class="app-header__logo-decision">Decision</span>
|
||||
</span>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
|
||||
<!-- Center: Workspace selector + Mood switcher (desktop) -->
|
||||
<div class="app-header__center">
|
||||
<WorkspaceSelector class="hidden sm:flex" />
|
||||
<MoodSwitcher class="hidden sm:flex" />
|
||||
</div>
|
||||
|
||||
<!-- Right: Auth -->
|
||||
<div class="app-header__right">
|
||||
<template v-if="auth.isAuthenticated">
|
||||
<span class="app-header__identity">
|
||||
{{ auth.identity?.display_name || auth.identity?.address?.slice(0, 10) + '...' }}
|
||||
</span>
|
||||
<span
|
||||
v-if="auth.identity?.is_smith"
|
||||
class="app-header__role app-header__role--smith"
|
||||
>
|
||||
Forgeron
|
||||
</span>
|
||||
<span
|
||||
v-if="auth.identity?.is_techcomm"
|
||||
class="app-header__role app-header__role--tech"
|
||||
>
|
||||
CoTec
|
||||
</span>
|
||||
<button
|
||||
class="app-header__icon-btn"
|
||||
aria-label="Se deconnecter"
|
||||
@click="auth.logout()"
|
||||
>
|
||||
<UIcon name="i-lucide-log-out" />
|
||||
</button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<NuxtLink to="/login" class="app-header__connect-btn">
|
||||
<UIcon name="i-lucide-log-in" />
|
||||
<span>Connexion</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Mobile navigation drawer -->
|
||||
<USlideover
|
||||
v-model:open="mobileMenuOpen"
|
||||
side="left"
|
||||
title="Navigation"
|
||||
:ui="{ width: 'max-w-xs' }"
|
||||
>
|
||||
<template #body>
|
||||
<nav class="app-mobile-nav">
|
||||
<NuxtLink
|
||||
v-for="item in navigationItems"
|
||||
:key="item.to"
|
||||
:to="item.to"
|
||||
class="app-mobile-nav__link"
|
||||
:class="{ 'app-mobile-nav__link--active': isActive(item.to) }"
|
||||
@click="mobileMenuOpen = false"
|
||||
>
|
||||
<UIcon :name="item.icon" class="text-lg" />
|
||||
<span>{{ item.label }}</span>
|
||||
</NuxtLink>
|
||||
</nav>
|
||||
<!-- Workspace + Mood in mobile drawer -->
|
||||
<div class="app-mobile-mood">
|
||||
<span class="app-mobile-mood__label">Espace</span>
|
||||
<WorkspaceSelector />
|
||||
</div>
|
||||
<div class="app-mobile-mood">
|
||||
<span class="app-mobile-mood__label">Ambiance</span>
|
||||
<MoodSwitcher />
|
||||
</div>
|
||||
</template>
|
||||
</USlideover>
|
||||
|
||||
<!-- Main content with sidebar -->
|
||||
<div class="app-body">
|
||||
<!-- Desktop sidebar -->
|
||||
<aside class="app-sidebar" :class="{ 'app-sidebar--collapsed': sidebarCollapsed }">
|
||||
<nav class="app-sidebar__nav">
|
||||
<NuxtLink
|
||||
v-for="item in navigationItems"
|
||||
:key="item.to"
|
||||
:to="item.to"
|
||||
class="app-sidebar__link"
|
||||
:class="{ 'app-sidebar__link--active': isActive(item.to) }"
|
||||
>
|
||||
<UIcon :name="item.icon" class="text-lg flex-shrink-0" />
|
||||
<span class="app-sidebar__link-label">{{ item.label }}</span>
|
||||
</NuxtLink>
|
||||
<div class="app-sidebar__divider" />
|
||||
<button
|
||||
class="app-sidebar__toggle"
|
||||
:title="sidebarCollapsed ? 'Déplier le menu' : 'Replier le menu'"
|
||||
@click="sidebarCollapsed = !sidebarCollapsed"
|
||||
>
|
||||
<UIcon
|
||||
:name="sidebarCollapsed ? 'i-lucide-panel-left-open' : 'i-lucide-panel-left-close'"
|
||||
class="text-base flex-shrink-0"
|
||||
/>
|
||||
<span class="app-sidebar__link-label">Replier</span>
|
||||
</button>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<!-- Page content -->
|
||||
<main class="app-main">
|
||||
<ErrorBoundary>
|
||||
<NuxtPage />
|
||||
</ErrorBoundary>
|
||||
|
||||
<!-- 井 Tsing — sceau (traits épais, coins nets, ~carré) -->
|
||||
<svg class="app-seal" viewBox="0 0 112 105" fill="currentColor" aria-hidden="true">
|
||||
<!-- Line 6 (top) — yin -->
|
||||
<rect x="6" y="6" width="42" height="8"/>
|
||||
<rect x="64" y="6" width="42" height="8"/>
|
||||
<!-- Line 5 — yang -->
|
||||
<rect x="6" y="23" width="100" height="8"/>
|
||||
<!-- Line 4 — yin -->
|
||||
<rect x="6" y="40" width="42" height="8"/>
|
||||
<rect x="64" y="40" width="42" height="8"/>
|
||||
<!-- Line 3 — yang -->
|
||||
<rect x="6" y="57" width="100" height="8"/>
|
||||
<!-- Line 2 — yang -->
|
||||
<rect x="6" y="74" width="100" height="8"/>
|
||||
<!-- Line 1 (bottom) — yin -->
|
||||
<rect x="6" y="91" width="42" height="8"/>
|
||||
<rect x="64" y="91" width="42" height="8"/>
|
||||
</svg>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<!-- WebSocket error banner -->
|
||||
<Transition name="slide-up">
|
||||
<div
|
||||
v-if="ws.error.value"
|
||||
class="app-ws-banner"
|
||||
role="alert"
|
||||
>
|
||||
<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
|
||||
</button>
|
||||
</div>
|
||||
</Transition>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="app-footer">
|
||||
<span>libreDecision v0.1.0</span>
|
||||
<span class="app-footer__sep">·</span>
|
||||
<span>Licence libre</span>
|
||||
</footer>
|
||||
</div>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</UApp>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* === Shell === */
|
||||
.app-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* === Header === */
|
||||
.app-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 30;
|
||||
background: var(--mood-surface);
|
||||
}
|
||||
|
||||
.app-header__inner {
|
||||
max-width: 80rem;
|
||||
margin: 0 auto;
|
||||
padding: 0 1.25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
height: 3.5rem;
|
||||
}
|
||||
|
||||
.app-header__center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.app-header__left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.app-header__menu-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
background: none;
|
||||
color: var(--mood-text-muted);
|
||||
cursor: pointer;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.app-header__menu-btn:hover {
|
||||
color: var(--mood-text);
|
||||
background: var(--mood-accent-soft);
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.app-header__menu-btn {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.app-header__logo {
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.app-header__logo-stamp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
background: var(--mood-accent);
|
||||
color: var(--mood-accent-text);
|
||||
border-radius: 8px;
|
||||
transform: rotate(-10deg);
|
||||
transition: transform 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.app-header__logo:hover .app-header__logo-stamp {
|
||||
transform: rotate(-16deg) scale(1.08);
|
||||
}
|
||||
|
||||
.app-header__logo-icon {
|
||||
font-size: 1.125rem;
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.app-header__logo-text {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.app-header__logo-libre {
|
||||
font-size: 1.0625rem;
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
color: var(--mood-text-muted);
|
||||
}
|
||||
|
||||
.app-header__logo-decision {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 700;
|
||||
color: var(--mood-text);
|
||||
}
|
||||
|
||||
.app-header__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
}
|
||||
|
||||
.app-header__identity {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-text);
|
||||
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.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.15);
|
||||
color: var(--mood-success);
|
||||
}
|
||||
|
||||
.app-header__role--tech {
|
||||
background: rgba(24, 86, 168, 0.15);
|
||||
color: var(--mood-status-vote, #1856a8);
|
||||
}
|
||||
|
||||
.app-header__icon-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
background: none;
|
||||
color: var(--mood-text-muted);
|
||||
cursor: pointer;
|
||||
border-radius: 12px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.app-header__icon-btn:hover {
|
||||
color: var(--mood-text);
|
||||
background: var(--mood-accent-soft);
|
||||
}
|
||||
|
||||
.app-header__connect-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
padding: 0.5rem 0.875rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 700;
|
||||
color: var(--mood-accent-text);
|
||||
background: var(--mood-accent);
|
||||
border-radius: 24px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
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 {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px var(--mood-shadow);
|
||||
}
|
||||
|
||||
/* === Sidebar === */
|
||||
.app-body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.app-sidebar {
|
||||
width: 14rem;
|
||||
flex-shrink: 0;
|
||||
background: var(--mood-surface);
|
||||
display: none;
|
||||
transition: width 0.22s ease;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.app-sidebar--collapsed {
|
||||
width: 3.75rem;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.app-sidebar {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.app-sidebar__nav {
|
||||
position: sticky;
|
||||
top: 3.5rem;
|
||||
padding: 1rem 0.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.app-sidebar__link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
padding: 0.625rem 0.75rem;
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-text-muted);
|
||||
text-decoration: none;
|
||||
border-radius: 12px;
|
||||
transition: all 0.12s ease;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.app-sidebar__link:hover {
|
||||
color: var(--mood-text);
|
||||
background: var(--mood-accent-soft);
|
||||
}
|
||||
|
||||
.app-sidebar__link--active {
|
||||
color: var(--mood-accent);
|
||||
background: var(--mood-accent-soft);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.app-sidebar__link-label {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
transition: opacity 0.18s ease, max-width 0.22s ease;
|
||||
max-width: 10rem;
|
||||
}
|
||||
|
||||
.app-sidebar--collapsed .app-sidebar__link-label {
|
||||
opacity: 0;
|
||||
max-width: 0;
|
||||
}
|
||||
|
||||
.app-sidebar--collapsed .app-sidebar__link {
|
||||
justify-content: center;
|
||||
padding: 0.625rem;
|
||||
}
|
||||
|
||||
.app-sidebar__divider {
|
||||
height: 1px;
|
||||
background: color-mix(in srgb, var(--mood-accent) 10%, transparent);
|
||||
margin: 0.375rem 0.25rem;
|
||||
}
|
||||
|
||||
.app-sidebar__toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-text-muted);
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
border-radius: 12px;
|
||||
width: 100%;
|
||||
transition: all 0.12s ease;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.app-sidebar__toggle:hover {
|
||||
color: var(--mood-text);
|
||||
background: var(--mood-accent-soft);
|
||||
}
|
||||
|
||||
.app-sidebar--collapsed .app-sidebar__toggle {
|
||||
justify-content: center;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
/* === Mobile nav === */
|
||||
.app-mobile-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.app-mobile-nav__link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.875rem;
|
||||
padding: 1rem 1.25rem;
|
||||
font-size: 1.0625rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-text-muted);
|
||||
text-decoration: none;
|
||||
border-radius: 14px;
|
||||
min-height: 3rem;
|
||||
}
|
||||
.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: 700;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
/* === Main === */
|
||||
.app-main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 1.5rem 1.25rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.app-main {
|
||||
padding: 2rem 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.app-main {
|
||||
padding: 2rem 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* === WS Banner === */
|
||||
.app-ws-banner {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 40;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.625rem;
|
||||
padding: 0.625rem 1rem;
|
||||
background: var(--mood-error);
|
||||
color: white;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.app-ws-banner__btn {
|
||||
margin-left: 0.5rem;
|
||||
padding: 0.375rem 0.75rem;
|
||||
background: rgba(255,255,255,0.2);
|
||||
border-radius: 20px;
|
||||
color: white;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
.app-ws-banner__btn:hover {
|
||||
background: rgba(255,255,255,0.3);
|
||||
}
|
||||
|
||||
/* === Footer === */
|
||||
.app-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
padding: 1rem;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--mood-text-muted);
|
||||
}
|
||||
|
||||
.app-footer__sep {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
/* === Seal — 井 Tsing === */
|
||||
.app-seal {
|
||||
display: block;
|
||||
width: 44px;
|
||||
margin: 1.5rem 0 0.5rem auto;
|
||||
color: var(--mood-accent);
|
||||
opacity: 0.28;
|
||||
filter: drop-shadow(1px 1px 0.5px rgba(0,0,0,0.25))
|
||||
drop-shadow(-0.5px -0.5px 0.5px rgba(255,255,255,0.15));
|
||||
}
|
||||
|
||||
/* === Transitions === */
|
||||
.slide-up-enter-active,
|
||||
.slide-up-leave-active {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.slide-up-enter-from,
|
||||
.slide-up-leave-to {
|
||||
transform: translateY(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user