sidebar-things #3
@@ -12,6 +12,7 @@ import { TestSession } from './pages/TestSession';
|
||||
import FullScreenLoader from './components/FullScreenLoader';
|
||||
import Home from './pages/Home';
|
||||
import CoursePage from './pages/CoursePage';
|
||||
import Profile from './pages/Profile';
|
||||
|
||||
const AppRoutes = () => {
|
||||
const location = useLocation();
|
||||
@@ -124,6 +125,7 @@ const AppRoutes = () => {
|
||||
<Route path="booking-settings" element={<BookingSettings />} />
|
||||
<Route path="home" element={<Home />} />
|
||||
<Route path="course/:courseId" element={<CoursePage />} />
|
||||
<Route path="profile" element={<Profile />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
</>
|
||||
|
||||
@@ -53,14 +53,14 @@ const Navigation = () => {
|
||||
</div>
|
||||
|
||||
{/* User Profile Section - Desktop only */}
|
||||
<div className={styles.userSection}>
|
||||
<Link to="/profile" className={styles.userSection}>
|
||||
<div className={styles.userAvatar}>
|
||||
<div className={styles.avatarInitials}>
|
||||
{getInitials(getCurrentUser().name)}
|
||||
</div>
|
||||
</div>
|
||||
<p className={styles.userName}>{getCurrentUser().name}</p>
|
||||
</div>
|
||||
<span className={styles.userName}>{getCurrentUser().name}</span>
|
||||
</Link>
|
||||
|
||||
{/* Navigation - always visible in sidebar mode, toggleable in mobile */}
|
||||
<nav className={`${styles.nav} ${menuOpen ? styles.navOpen : ''}`}>
|
||||
@@ -115,6 +115,10 @@ const Navigation = () => {
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{/* Theme Toggle - Desktop only */}
|
||||
<div className={styles.themeToggleContainer}>
|
||||
<ThemeToggle />
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -112,6 +112,11 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Theme Toggle Container - Mobile (hidden) */
|
||||
.themeToggleContainer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
DESKTOP SIDEBAR STYLES (≥ 1024px)
|
||||
========================================== */
|
||||
@@ -150,6 +155,11 @@
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Hide mobile theme toggle on desktop */
|
||||
.right > :first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
height: 60px;
|
||||
}
|
||||
@@ -208,6 +218,13 @@
|
||||
gap: var(--spacing-md);
|
||||
padding: var(--spacing-lg) var(--spacing-xl);
|
||||
height: fit-content;
|
||||
text-decoration: none;
|
||||
transition: var(--transition-fast);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.userSection:hover {
|
||||
background-color: var(--bg-muted);
|
||||
}
|
||||
|
||||
.userAvatar {
|
||||
@@ -233,6 +250,7 @@
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.userLastName {
|
||||
@@ -292,6 +310,14 @@
|
||||
background-color: var(--bg-muted);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* Theme Toggle Container - Desktop */
|
||||
.themeToggleContainer {
|
||||
padding: var(--spacing-lg) var(--spacing-xl);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
|
||||
30
my-app/src/components/PlaceholderBanner.jsx
Normal file
30
my-app/src/components/PlaceholderBanner.jsx
Normal file
@@ -0,0 +1,30 @@
|
||||
import React, { useState } from 'react';
|
||||
import styles from './PlaceholderBanner.module.css';
|
||||
|
||||
const PlaceholderBanner = ({ message = "Detta är en platshållare för utveckling. Funktionaliteten är inte färdigimplementerad än." }) => {
|
||||
const [isDismissed, setIsDismissed] = useState(false);
|
||||
|
||||
if (isDismissed) return null;
|
||||
|
||||
return (
|
||||
<div className={styles.banner}>
|
||||
<div className={styles.content}>
|
||||
<div className={styles.iconContainer}>
|
||||
<i className="bi bi-info-circle"></i>
|
||||
</div>
|
||||
<div className={styles.message}>
|
||||
{message}
|
||||
</div>
|
||||
<button
|
||||
className={styles.dismissButton}
|
||||
onClick={() => setIsDismissed(true)}
|
||||
aria-label="Stäng banner"
|
||||
>
|
||||
<i className="bi bi-x-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default PlaceholderBanner;
|
||||
94
my-app/src/components/PlaceholderBanner.module.css
Normal file
94
my-app/src/components/PlaceholderBanner.module.css
Normal file
@@ -0,0 +1,94 @@
|
||||
.banner {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: var(--z-sticky);
|
||||
background-color: #fef3c7;
|
||||
border-bottom: 1px solid #f59e0b;
|
||||
padding: var(--spacing-md) 0;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.content {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
padding: 0 var(--spacing-xl);
|
||||
}
|
||||
|
||||
.iconContainer {
|
||||
flex-shrink: 0;
|
||||
color: #b45309;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.message {
|
||||
flex: 1;
|
||||
color: #b45309;
|
||||
font-size: 0.9rem;
|
||||
font-weight: var(--font-weight-medium);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.dismissButton {
|
||||
flex-shrink: 0;
|
||||
background: none;
|
||||
border: none;
|
||||
color: #b45309;
|
||||
cursor: pointer;
|
||||
padding: var(--spacing-xs);
|
||||
border-radius: var(--border-radius-sm);
|
||||
transition: var(--transition-fast);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1rem;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.dismissButton:hover {
|
||||
background-color: rgba(180, 83, 9, 0.1);
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
.dismissButton:focus {
|
||||
outline: 2px solid #f59e0b;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Dark mode adjustments */
|
||||
:global([data-theme="dark"]) .banner {
|
||||
background-color: #92400e;
|
||||
border-bottom-color: #fbbf24;
|
||||
}
|
||||
|
||||
:global([data-theme="dark"]) .iconContainer,
|
||||
:global([data-theme="dark"]) .message,
|
||||
:global([data-theme="dark"]) .dismissButton {
|
||||
color: #fcd34d;
|
||||
}
|
||||
|
||||
:global([data-theme="dark"]) .dismissButton:hover {
|
||||
background-color: rgba(252, 211, 77, 0.15);
|
||||
color: #fbbf24;
|
||||
}
|
||||
|
||||
:global([data-theme="dark"]) .dismissButton:focus {
|
||||
outline-color: #fbbf24;
|
||||
}
|
||||
|
||||
/* Mobile responsiveness */
|
||||
@media (max-width: 768px) {
|
||||
.content {
|
||||
padding: 0 var(--spacing-lg);
|
||||
}
|
||||
|
||||
.message {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.iconContainer {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
@@ -12,14 +12,7 @@ export const ThemeToggle = () => {
|
||||
aria-label={`Switch to ${isDarkMode ? 'light' : 'dark'} mode`}
|
||||
title={`Switch to ${isDarkMode ? 'light' : 'dark'} mode`}
|
||||
>
|
||||
<div className={styles.toggleContainer}>
|
||||
<div className={`${styles.toggle} ${isDarkMode ? styles.dark : styles.light}`}>
|
||||
<div className={styles.toggleHandle}></div>
|
||||
</div>
|
||||
<span className={styles.toggleLabel}>
|
||||
{isDarkMode ? '🌙' : '☀️'}
|
||||
</span>
|
||||
</div>
|
||||
<i className={`bi ${isDarkMode ? 'bi-sun' : 'bi-moon'}`}></i>
|
||||
</button>
|
||||
);
|
||||
};
|
||||
@@ -1,107 +1,34 @@
|
||||
.toggleButton {
|
||||
background: none;
|
||||
border: none;
|
||||
background-color: var(--bg-secondary);
|
||||
border: 1px solid var(--border-light);
|
||||
cursor: pointer;
|
||||
padding: var(--spacing-xs);
|
||||
border-radius: var(--border-radius-md);
|
||||
padding: 0;
|
||||
border-radius: 50%;
|
||||
transition: var(--transition-fast);
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
.toggleButton:hover {
|
||||
background-color: var(--bg-muted);
|
||||
border-color: var(--border-medium);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.toggleContainer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
.toggleButton:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.toggle {
|
||||
width: 44px;
|
||||
height: 24px;
|
||||
border-radius: 12px;
|
||||
position: relative;
|
||||
transition: var(--transition-medium);
|
||||
border: 1px solid var(--border-medium);
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.toggle.light {
|
||||
background: linear-gradient(to bottom, #ffffff, #f0f0f0);
|
||||
}
|
||||
|
||||
.toggle.dark {
|
||||
background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
|
||||
}
|
||||
|
||||
.toggleHandle {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(to bottom, #ffffff, #e0e0e0);
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
transition: var(--transition-medium);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.toggle.light .toggleHandle {
|
||||
left: 2px;
|
||||
background: linear-gradient(to bottom, #ffd700, #ffed4a);
|
||||
border-color: rgba(255, 165, 0, 0.3);
|
||||
}
|
||||
|
||||
.toggle.dark .toggleHandle {
|
||||
left: calc(100% - 20px);
|
||||
background: linear-gradient(to bottom, #e6e6e6, #cccccc);
|
||||
border-color: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.toggleLabel {
|
||||
font-size: var(--font-size-lg);
|
||||
line-height: 1;
|
||||
user-select: none;
|
||||
min-width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* iPhone-style pressed state */
|
||||
.toggleButton:active .toggle {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.toggleButton:active .toggleHandle {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 768px) {
|
||||
.toggleContainer {
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.toggle {
|
||||
width: 40px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.toggleHandle {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.toggle.dark .toggleHandle {
|
||||
left: calc(100% - 18px);
|
||||
}
|
||||
|
||||
.toggleLabel {
|
||||
font-size: var(--font-size-md);
|
||||
}
|
||||
.toggleButton:focus {
|
||||
outline: 2px solid var(--color-primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
102
my-app/src/pages/Profile.jsx
Normal file
102
my-app/src/pages/Profile.jsx
Normal file
@@ -0,0 +1,102 @@
|
||||
import React from 'react';
|
||||
import { useSettingsContext } from '../context/SettingsContext';
|
||||
import PlaceholderBanner from '../components/PlaceholderBanner';
|
||||
import styles from './Profile.module.css';
|
||||
|
||||
const Profile = () => {
|
||||
const { getCurrentUser } = useSettingsContext();
|
||||
const user = getCurrentUser();
|
||||
|
||||
// Helper function to get user's initials
|
||||
const getInitials = (name) => {
|
||||
return name.split(' ').map(word => word[0]).join('').toUpperCase();
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<PlaceholderBanner message="Detta är ett tillfälligt första utkast av profilsidan! Design och funktionalitet kommer se annorlunda ut i den slutgiltiga versionen." />
|
||||
<div className={styles.container}>
|
||||
<div className={styles.header}>
|
||||
<div className={styles.avatarLarge}>
|
||||
<div className={styles.avatarInitials}>
|
||||
{getInitials(user.name)}
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.userInfo}>
|
||||
<h1 className={styles.name}>{user.name}</h1>
|
||||
<p className={styles.email}>{user.email}</p>
|
||||
<p className={styles.username}>@{user.username}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.content}>
|
||||
<section className={styles.section}>
|
||||
<h2>Personlig information</h2>
|
||||
<div className={styles.infoGrid}>
|
||||
<div className={styles.infoItem}>
|
||||
<label>Namn</label>
|
||||
<span>{user.name}</span>
|
||||
</div>
|
||||
<div className={styles.infoItem}>
|
||||
<label>E-post</label>
|
||||
<span>{user.email}</span>
|
||||
</div>
|
||||
<div className={styles.infoItem}>
|
||||
<label>Användarnamn</label>
|
||||
<span>{user.username}</span>
|
||||
</div>
|
||||
<div className={styles.infoItem}>
|
||||
<label>Student-ID</label>
|
||||
<span>{user.id}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className={styles.section}>
|
||||
<h2>Inställningar</h2>
|
||||
<div className={styles.settingsGrid}>
|
||||
<div className={styles.settingItem}>
|
||||
<div className={styles.settingInfo}>
|
||||
<h3>Notifikationer</h3>
|
||||
<p>Hantera dina notifikationsinställningar</p>
|
||||
</div>
|
||||
<button className={styles.settingButton}>Konfigurera</button>
|
||||
</div>
|
||||
<div className={styles.settingItem}>
|
||||
<div className={styles.settingInfo}>
|
||||
<h3>Integritet</h3>
|
||||
<p>Kontrollera dina sekretessinställningar</p>
|
||||
</div>
|
||||
<button className={styles.settingButton}>Hantera</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className={styles.section}>
|
||||
<h2>Aktivitet</h2>
|
||||
<div className={styles.activityList}>
|
||||
<div className={styles.activityItem}>
|
||||
<div className={styles.activityIcon}>📅</div>
|
||||
<div className={styles.activityInfo}>
|
||||
<h4>Senaste bokning</h4>
|
||||
<p>Team standup - G5:7</p>
|
||||
<span className={styles.activityDate}>3 sep 2025</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.activityItem}>
|
||||
<div className={styles.activityIcon}>📚</div>
|
||||
<div className={styles.activityInfo}>
|
||||
<h4>Senaste kursaktivitet</h4>
|
||||
<p>Prototyper inom interaktionsdesign</p>
|
||||
<span className={styles.activityDate}>2 sep 2025</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Profile;
|
||||
232
my-app/src/pages/Profile.module.css
Normal file
232
my-app/src/pages/Profile.module.css
Normal file
@@ -0,0 +1,232 @@
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: var(--spacing-2xl);
|
||||
min-height: 100vh;
|
||||
background-color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-2xl);
|
||||
margin-bottom: var(--spacing-3xl);
|
||||
padding-bottom: var(--spacing-2xl);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.avatarLarge {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.avatarInitials {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-white);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 2rem;
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.userInfo {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.name {
|
||||
margin: 0 0 var(--spacing-sm) 0;
|
||||
font-size: 2.5rem;
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.email {
|
||||
margin: 0 0 var(--spacing-xs) 0;
|
||||
font-size: 1.1rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.username {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
color: var(--text-muted);
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.content {
|
||||
display: grid;
|
||||
gap: var(--spacing-3xl);
|
||||
}
|
||||
|
||||
.section {
|
||||
background-color: var(--bg-secondary);
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--border-radius-lg);
|
||||
padding: var(--spacing-2xl);
|
||||
}
|
||||
|
||||
.section h2 {
|
||||
margin: 0 0 var(--spacing-xl) 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.infoGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.infoItem {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.infoItem label {
|
||||
font-size: 0.875rem;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.infoItem span {
|
||||
font-size: 1rem;
|
||||
color: var(--text-primary);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
background-color: var(--bg-tertiary);
|
||||
border-radius: var(--border-radius-md);
|
||||
border: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.settingsGrid {
|
||||
display: grid;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.settingItem {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--spacing-lg);
|
||||
background-color: var(--bg-tertiary);
|
||||
border-radius: var(--border-radius-md);
|
||||
border: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.settingInfo h3 {
|
||||
margin: 0 0 var(--spacing-xs) 0;
|
||||
font-size: 1.1rem;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.settingInfo p {
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.settingButton {
|
||||
padding: var(--spacing-sm) var(--spacing-lg);
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-white);
|
||||
border: none;
|
||||
border-radius: var(--border-radius-md);
|
||||
font-size: 0.9rem;
|
||||
font-weight: var(--font-weight-medium);
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
flex-shrink: 0;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
}
|
||||
|
||||
.settingButton:hover {
|
||||
background-color: var(--color-primary-hover, var(--color-primary));
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.activityList {
|
||||
display: grid;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.activityItem {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-lg);
|
||||
padding: var(--spacing-lg);
|
||||
background-color: var(--bg-tertiary);
|
||||
border-radius: var(--border-radius-md);
|
||||
border: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.activityIcon {
|
||||
font-size: 1.5rem;
|
||||
flex-shrink: 0;
|
||||
margin-top: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.activityInfo {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.activityInfo h4 {
|
||||
margin: 0 0 var(--spacing-xs) 0;
|
||||
font-size: 1rem;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.activityInfo p {
|
||||
margin: 0 0 var(--spacing-xs) 0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.activityDate {
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* Mobile responsiveness */
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.header {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.infoGrid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.settingItem {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.settingButton {
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user