refactor(dashboard): migrate member/dashboard to PageShell + ColumnsLayout
- Replace outer .dashboard wrapper with <PageShell> - Replace <SidebarLayout> with <ColumnsLayout cols=events-sidebar :limit=5> - Replace bespoke <div class=welcome> with <PageHeader> containing slotted meta - Drop .dashboard and .welcome scoped CSS (flex chain + bespoke header) - Update visual snapshots (welcome header now uses canonical PageHeader padding)
This commit is contained in:
parent
eb2544a42d
commit
b93c8c7b2f
4 changed files with 10 additions and 40 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="dashboard">
|
<PageShell>
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<!-- Loading State -->
|
<!-- Loading State -->
|
||||||
<div v-if="authPending" class="loading-state">
|
<div v-if="authPending" class="loading-state">
|
||||||
|
|
@ -26,19 +26,18 @@
|
||||||
|
|
||||||
<!-- Dashboard Content -->
|
<!-- Dashboard Content -->
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<SidebarLayout :limit="5">
|
<ColumnsLayout cols="events-sidebar" :limit="5">
|
||||||
<div class="dashboard-body">
|
<div class="dashboard-body">
|
||||||
<!-- Member Status Banner -->
|
<!-- Member Status Banner -->
|
||||||
<MemberStatusBanner />
|
<MemberStatusBanner />
|
||||||
|
|
||||||
<!-- Welcome Header -->
|
<!-- Welcome Header -->
|
||||||
<div class="welcome">
|
<PageHeader :title="`Welcome back, ${memberData?.name || ''}`">
|
||||||
<h1>Welcome back, {{ memberData?.name }}</h1>
|
<div class="dashboard-meta">
|
||||||
<div class="meta">
|
|
||||||
<CircleBadge :circle="memberData?.circle || 'community'" />
|
<CircleBadge :circle="memberData?.circle || 'community'" />
|
||||||
<span>${{ memberData?.contributionTier }} CAD/mo</span>
|
<span>${{ memberData?.contributionTier }} CAD/mo</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</PageHeader>
|
||||||
|
|
||||||
<!-- Upcoming Events + Quick Actions -->
|
<!-- Upcoming Events + Quick Actions -->
|
||||||
<div class="content-row">
|
<div class="content-row">
|
||||||
|
|
@ -204,7 +203,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</SidebarLayout>
|
</ColumnsLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #fallback>
|
<template #fallback>
|
||||||
|
|
@ -214,7 +213,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
</div>
|
</PageShell>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
@ -376,15 +375,6 @@ useHead({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/* ---- DASHBOARD LAYOUT ---- */
|
|
||||||
.dashboard {
|
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
min-height: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---- LOADING / UNAUTH STATES ---- */
|
/* ---- LOADING / UNAUTH STATES ---- */
|
||||||
.loading-state {
|
.loading-state {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
@ -451,30 +441,14 @@ useHead({
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---- WELCOME HEADER ---- */
|
/* ---- WELCOME HEADER META ---- */
|
||||||
.welcome {
|
.dashboard-meta {
|
||||||
padding: 28px 28px;
|
|
||||||
border-bottom: 1px dashed var(--border);
|
|
||||||
display: flex;
|
|
||||||
align-items: baseline;
|
|
||||||
gap: 16px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.welcome h1 {
|
|
||||||
font-family: "Brygada 1918", serif;
|
|
||||||
font-size: 24px;
|
|
||||||
font-weight: 500;
|
|
||||||
color: var(--text-bright);
|
|
||||||
line-height: 1.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.welcome .meta {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--text-dim);
|
color: var(--text-dim);
|
||||||
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dashboard-body {
|
.dashboard-body {
|
||||||
|
|
@ -722,10 +696,6 @@ useHead({
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome {
|
|
||||||
padding: 24px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content-block {
|
.content-block {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 51 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 251 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 135 KiB |
Loading…
Add table
Add a link
Reference in a new issue