Redesign SettingsPage with two-column desktop layout

- Implement responsive two-column grid (1fr + 1.5fr ratio) for desktop
- Left column: Quick settings (Appearance, Security) with compact styling
- Right column: Data-heavy sections (Integrations, Data & Privacy)
- Single column flow for mobile devices
- Redesign profile hero with horizontal layout on desktop
- Reduce avatar size (90px -> 70px) for better proportion
- Add side-by-side layout for avatar, user info, and stats
- Increase max-width to 1400px to utilize screen space
- Remove 'Local Storage' section (merged into Data & Privacy)
- Maintain responsive mobile layout with centered vertical flow
This commit is contained in:
2026-02-27 19:01:38 +01:00
parent 01987372dc
commit 7274d0639a

View File

@@ -1,16 +1,21 @@
<template> <template>
<section class="settings"> <section class="settings">
<div class="settings__container"> <div class="settings__container">
<!-- Large Profile Hero Card --> <!-- Profile Hero Card -->
<div class="profile-hero"> <div class="profile-hero">
<div class="profile-hero__main">
<div class="profile-hero__avatar"> <div class="profile-hero__avatar">
<div class="avatar-large">{{ userInitials }}</div> <div class="avatar-large">{{ userInitials }}</div>
</div> </div>
<div class="profile-hero__info">
<h1 class="profile-hero__name">{{ username }}</h1> <h1 class="profile-hero__name">{{ username }}</h1>
<span :class="['profile-hero__badge', `badge--${userRole}`]"> <span :class="['profile-hero__badge', `badge--${userRole}`]">
{{ userRole }} <a v-if="userRole === 'admin'" href="/admin">{{ userRole }}</a>
<span v-else>{{ userRole }}</span>
</span> </span>
<p class="profile-hero__member">Member since {{ memberSince }}</p> <p class="profile-hero__member">Member since {{ memberSince }}</p>
</div>
</div>
<div class="profile-hero__stats"> <div class="profile-hero__stats">
<div class="stat-large"> <div class="stat-large">
@@ -25,29 +30,35 @@
</div> </div>
</div> </div>
<!-- Settings Sections --> <!-- Settings Grid -->
<div class="settings__sections"> <div class="settings__grid">
<section class="settings-section"> <!-- Left Column: Quick Settings -->
<div class="settings__column settings__column--left">
<section class="settings-section settings-section--compact">
<h2 class="section-header">Appearance</h2> <h2 class="section-header">Appearance</h2>
<theme-preferences /> <theme-preferences />
</section> </section>
<section class="settings-section settings-section--compact">
<h2 class="section-header">Security</h2>
<change-password />
</section>
</div>
<!-- Right Column: Data-Heavy Sections -->
<div class="settings__column settings__column--right">
<section class="settings-section"> <section class="settings-section">
<h2 class="section-header">Integrations</h2> <h2 class="section-header">Integrations</h2>
<plex-settings @reload="reloadSettings" /> <plex-settings @reload="reloadSettings" />
</section> </section>
<section class="settings-section">
<h2 class="section-header">Security</h2>
<change-password />
</section>
<section class="settings-section"> <section class="settings-section">
<h2 class="section-header">Data & Privacy</h2> <h2 class="section-header">Data & Privacy</h2>
<data-export /> <data-export />
</section> </section>
</div> </div>
</div> </div>
</div>
</section> </section>
</template> </template>
@@ -126,19 +137,43 @@
} }
&__container { &__container {
max-width: 800px; max-width: 1400px;
margin: 0 auto; margin: 0 auto;
@include mobile-only {
max-width: 100%;
}
} }
&__sections { &__grid {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 1.25rem;
margin-top: 1.25rem;
align-items: start;
@include mobile-only {
grid-template-columns: 1fr;
gap: 1rem;
margin-top: 1rem;
}
}
&__column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1.25rem; gap: 1.25rem;
margin-top: 1.25rem;
@include mobile-only { @include mobile-only {
gap: 1rem; gap: 1rem;
margin-top: 1rem; }
&--left {
// Quick settings - lighter, more concise
}
&--right {
// Data-heavy sections
} }
} }
} }
@@ -146,32 +181,54 @@
.profile-hero { .profile-hero {
background-color: var(--background-color-secondary); background-color: var(--background-color-secondary);
border-radius: 0.75rem; border-radius: 0.75rem;
padding: 2rem 1.5rem 1.5rem; padding: 1.5rem;
text-align: center;
border: 1px solid var(--background-40); border: 1px solid var(--background-40);
display: flex;
align-items: center;
justify-content: space-between;
gap: 2rem;
@include mobile-only { @include mobile-only {
padding: 1.5rem 1.25rem 1.25rem; flex-direction: column;
padding: 1.5rem 1.25rem;
border-radius: 0.5rem; border-radius: 0.5rem;
text-align: center;
gap: 1rem;
}
&__main {
display: flex;
align-items: center;
gap: 1.5rem;
@include mobile-only {
flex-direction: column;
gap: 0.75rem;
}
} }
&__avatar { &__avatar {
margin-bottom: 1rem; flex-shrink: 0;
}
&__info {
display: flex;
flex-direction: column;
gap: 0.35rem;
@include mobile-only { @include mobile-only {
margin-bottom: 0.75rem; align-items: center;
} }
} }
&__name { &__name {
margin: 0 0 0.4rem 0; margin: 0;
font-size: 1.85rem; font-size: 1.75rem;
font-weight: 600; font-weight: 600;
line-height: 1; line-height: 1.1;
@include mobile-only { @include mobile-only {
font-size: 1.5rem; font-size: 1.5rem;
margin-bottom: 0.3rem;
} }
} }
@@ -179,14 +236,14 @@
display: inline-block; display: inline-block;
padding: 0.25rem 0.7rem; padding: 0.25rem 0.7rem;
border-radius: 2rem; border-radius: 2rem;
font-size: 0.8rem; font-size: 0.75rem;
text-transform: uppercase; text-transform: uppercase;
font-weight: 600; font-weight: 600;
margin-bottom: 0.4rem; width: fit-content;
@include mobile-only { @include mobile-only {
padding: 0.2rem 0.6rem; padding: 0.2rem 0.6rem;
font-size: 0.75rem; font-size: 0.7rem;
} }
&.badge--admin { &.badge--admin {
@@ -200,33 +257,36 @@
} }
&__member { &__member {
margin: 0 0 1.25rem 0; margin: 0;
font-size: 0.9rem; font-size: 0.85rem;
color: $text-color-70;
@include mobile-only { @include mobile-only {
font-size: 0.85rem; font-size: 0.8rem;
margin-bottom: 1rem;
} }
} }
&__stats { &__stats {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
gap: 1.75rem; gap: 1.75rem;
padding-top: 1.25rem; padding-left: 1.75rem;
border-top: 1px solid var(--background-40); border-left: 1px solid var(--background-40);
@include mobile-only { @include mobile-only {
width: 100%;
padding: 1rem 0 0 0;
border-left: none;
border-top: 1px solid var(--background-40);
justify-content: center;
gap: 1.25rem; gap: 1.25rem;
padding-top: 1rem;
} }
} }
} }
.avatar-large { .avatar-large {
width: 90px; width: 70px;
height: 90px; height: 70px;
border-radius: 50%; border-radius: 50%;
background: linear-gradient( background: linear-gradient(
135deg, 135deg,
@@ -236,10 +296,10 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 2.25rem; font-size: 1.75rem;
font-weight: 700; font-weight: 700;
color: $white; color: $white;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
@include mobile-only { @include mobile-only {
width: 80px; width: 80px;
@@ -252,10 +312,10 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 0.3rem; gap: 0.25rem;
&__value { &__value {
font-size: 2rem; font-size: 1.75rem;
font-weight: 700; font-weight: 700;
color: var(--highlight-color); color: var(--highlight-color);
line-height: 1; line-height: 1;
@@ -266,10 +326,11 @@
} }
&__label { &__label {
font-size: 0.8rem; font-size: 0.75rem;
color: $text-color-70; color: $text-color-70;
text-transform: uppercase; text-transform: uppercase;
font-weight: 500; font-weight: 500;
letter-spacing: 0.5px;
@include mobile-only { @include mobile-only {
font-size: 0.75rem; font-size: 0.75rem;
@@ -279,7 +340,7 @@
.stat-divider { .stat-divider {
width: 1px; width: 1px;
height: 50px; height: 45px;
background-color: var(--background-40); background-color: var(--background-40);
@include mobile-only { @include mobile-only {
@@ -296,6 +357,21 @@
@include mobile-only { @include mobile-only {
padding: 1rem; padding: 1rem;
} }
&--compact {
// Tighter spacing for quick settings
.section-header {
font-size: 1.25rem;
margin-bottom: 0.85rem;
padding-bottom: 0.65rem;
@include mobile-only {
font-size: 1.2rem;
margin-bottom: 0.75rem;
padding-bottom: 0.6rem;
}
}
}
} }
.section-header { .section-header {