Restructure with Turborepo
This commit is contained in:
@@ -0,0 +1,347 @@
|
||||
.profile-view {
|
||||
width: 100%;
|
||||
max-width: 48rem;
|
||||
margin: 0 auto;
|
||||
padding: 2rem var(--margin-main) 2rem;
|
||||
animation: fadeInUp 0.5s ease-out;
|
||||
}
|
||||
|
||||
.profile-avatar-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.profile-avatar-circle {
|
||||
width: 8rem;
|
||||
height: 8rem;
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--secondary-container);
|
||||
color: var(--on-secondary-container);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 4px solid var(--surface-container-lowest);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.profile-name {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 700;
|
||||
color: var(--on-surface);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.profile-info-cards {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--gutter);
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.profile-info-card {
|
||||
background: var(--surface-container-lowest);
|
||||
padding: var(--card-padding);
|
||||
border-radius: var(--radius-md);
|
||||
border: 2px solid var(--surface-container-high);
|
||||
box-shadow: var(--shadow-soft);
|
||||
}
|
||||
|
||||
.info-card-label {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--on-surface-variant);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.info-card-value {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 500;
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
.profile-menu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--gutter);
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.profile-menu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
width: 100%;
|
||||
height: 5rem;
|
||||
padding: 0 1.5rem;
|
||||
background: var(--surface-container-lowest);
|
||||
border: 2px solid var(--surface-container-high);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
box-shadow: var(--shadow-soft);
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.profile-menu-item:active {
|
||||
background: var(--surface-container);
|
||||
}
|
||||
|
||||
.menu-item-icon {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
border-radius: var(--radius);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.menu-item-icon--primary {
|
||||
background: rgba(0, 69, 13, 0.08);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.menu-item-icon--error {
|
||||
background: rgba(186, 26, 26, 0.08);
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.menu-item-icon--secondary {
|
||||
background: rgba(43, 91, 181, 0.08);
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
.menu-item-icon--error-outline {
|
||||
background: rgba(186, 26, 26, 0.08);
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.menu-item-label {
|
||||
flex: 1;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 500;
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
.menu-item-chevron {
|
||||
color: var(--on-surface-variant);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.profile-location-section {
|
||||
background: var(--surface-container-lowest);
|
||||
border: 1px solid var(--outline-variant);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--card-padding);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.profile-location-section h3 {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
color: var(--on-surface);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.profile-section-sub {
|
||||
font-size: 0.9rem;
|
||||
color: var(--on-surface-variant);
|
||||
margin-bottom: 1rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.profile-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.85rem;
|
||||
}
|
||||
|
||||
.profile-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.profile-field label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--on-surface-variant);
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.profile-field input {
|
||||
padding: 0.65rem 0.85rem;
|
||||
border: 2px solid var(--outline-variant);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
color: var(--on-surface);
|
||||
font-size: 0.95rem;
|
||||
outline: none;
|
||||
transition: border-color 0.15s;
|
||||
width: 100%;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.profile-field input:focus {
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
.profile-field input:disabled {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.profile-field-row {
|
||||
display: flex;
|
||||
gap: 0.85rem;
|
||||
}
|
||||
|
||||
.profile-helper-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.profile-btn-secondary {
|
||||
background: var(--surface-container-low);
|
||||
border: 1px solid var(--outline-variant);
|
||||
color: var(--on-surface);
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: var(--radius-full);
|
||||
cursor: pointer;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
font-family: inherit;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.profile-btn-secondary:hover:not(:disabled) {
|
||||
background: var(--surface-container);
|
||||
}
|
||||
|
||||
.profile-btn-secondary:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.profile-feedback {
|
||||
margin: 0;
|
||||
font-size: 0.85rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: var(--radius);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.profile-feedback--ok {
|
||||
background: rgba(0, 69, 13, 0.08);
|
||||
color: var(--primary);
|
||||
border: 1px solid rgba(0, 69, 13, 0.2);
|
||||
}
|
||||
|
||||
.profile-feedback--err {
|
||||
background: rgba(186, 26, 26, 0.08);
|
||||
color: var(--error);
|
||||
border: 1px solid rgba(186, 26, 26, 0.2);
|
||||
}
|
||||
|
||||
.profile-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.profile-btn-primary {
|
||||
background: var(--primary);
|
||||
color: var(--on-primary);
|
||||
border: none;
|
||||
padding: 0.65rem 1.5rem;
|
||||
border-radius: var(--radius-full);
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
font-family: inherit;
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
|
||||
.profile-btn-primary:hover:not(:disabled) {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.profile-btn-primary:disabled {
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.profile-logout-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
width: 100%;
|
||||
height: 5rem;
|
||||
padding: 0 1.5rem;
|
||||
background: rgba(186, 26, 26, 0.06);
|
||||
border: 2px solid rgba(186, 26, 26, 0.2);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
color: var(--error);
|
||||
font-size: 1.125rem;
|
||||
font-weight: 700;
|
||||
font-family: inherit;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.profile-logout-btn:active {
|
||||
background: rgba(186, 26, 26, 0.12);
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.profile-view {
|
||||
padding: 1rem var(--margin-main) 1rem;
|
||||
}
|
||||
|
||||
.profile-menu-item {
|
||||
height: auto;
|
||||
padding: 0.875rem 1rem;
|
||||
min-height: 4rem;
|
||||
}
|
||||
|
||||
.menu-item-icon {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
}
|
||||
|
||||
.profile-field-row {
|
||||
flex-direction: column;
|
||||
gap: 0.85rem;
|
||||
}
|
||||
|
||||
.profile-avatar-circle {
|
||||
width: 6rem;
|
||||
height: 6rem;
|
||||
}
|
||||
|
||||
.profile-btn-secondary {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.profile-btn-primary {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.profile-actions {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.profile-logout-btn {
|
||||
height: auto;
|
||||
padding: 0.875rem 1rem;
|
||||
min-height: 4rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user