style(person): improve layout and responsiveness of person component #109

Merged
tischer merged 1 commits from ui/improve_bio-position into dev 2026-06-04 21:11:48 +02:00
@@ -1,13 +1,27 @@
:host {
display: block;
container-type: inline-size;
}
.person-hero {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
gap: 40px;
grid-template-areas:
"profile bio"
"interesting bio";
align-items: start;
gap: 24px 40px;
padding: 28px 32px 24px;
border-bottom: 1px solid var(--sg-border);
background: var(--sg-background);
}
.person-hero app-person-interesting {
grid-area: interesting;
}
.profile-card {
grid-area: profile;
display: grid;
grid-template-columns: 112px minmax(240px, 1fr) minmax(260px, 360px);
gap: 36px;
@@ -98,12 +112,17 @@
}
.sidebar {
grid-area: bio;
display: flex;
flex-direction: column;
gap: 24px;
height: 100%;
}
.sidebar .bio-card {
flex: 1;
}
.interest-card,
.bio-card {
padding: 24px 28px;
border-radius: var(--sg-radius-sm);
@@ -111,7 +130,6 @@
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.interest-card h3,
.bio-card h3 {
margin: 0 0 18px;
font-size: 14px;
@@ -130,22 +148,6 @@
border-radius: var(--sg-radius-sm) var(--sg-radius-sm) 0 0;
}
.interest-tags {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.interest-tags span {
padding: 9px 16px;
border: 1px solid #a8c0ff;
border-radius: 7px;
background: #ffffff;
color: var(--sg-primary);
font-size: 13px;
font-weight: 600;
}
.person-tabs {
padding: 0 32px;
border-bottom: 1px solid var(--sg-border);
@@ -175,11 +177,21 @@
background: var(--sg-background);
}
@media (max-width: 1180px) {
@container (max-width: 1150px) {
.person-hero {
grid-template-columns: 1fr;
grid-template-areas:
"profile"
"bio"
"interesting";
}
.sidebar {
height: auto;
}
}
@container (max-width: 780px) {
.profile-card {
grid-template-columns: 112px 1fr;
}
@@ -187,19 +199,9 @@
.profile-contact {
grid-column: 2;
}
.sidebar {
flex-direction: row;
gap: 20px;
}
.interest-card,
.bio-card {
flex: 1;
}
}
@media (max-width: 720px) {
@container (max-width: 720px) {
.person-hero {
padding: 24px 16px;
}