Files
smartguide/webapp/src/app/modules/person/person.component.scss
T
Mats Paul Tončik 0025bac51a
LocationBasedServices/smartguide/pipeline/head This commit looks good
Merge branch 'dev' into network
2026-06-06 17:31:36 +02:00

268 lines
4.3 KiB
SCSS

:host {
display: block;
container-type: inline-size;
}
.person-hero {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
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;
align-items: center;
}
.profile-avatar {
display: grid;
place-items: center;
width: 112px;
height: 112px;
border-radius: 50%;
background:
radial-gradient(
circle at 50% 30%,
rgba(255, 255, 255, 0.78),
transparent 34%
),
linear-gradient(145deg, #c8d9ff, #f7faff 48%, #88a9ee);
border: 1px solid var(--sg-border);
box-shadow: var(--sg-shadow-sm);
color: var(--sg-primary);
font-family: "Montserrat", "Open Sans", Arial, sans-serif;
font-size: 28px;
font-weight: 700;
}
.profile-main {
display: flex;
flex-direction: column;
gap: 6px;
}
.name-line {
display: flex;
align-items: baseline;
gap: 12px;
}
.name-line span {
color: var(--sg-text);
font-size: 14px;
}
.name-line h1 {
margin: 0;
font-size: 24px;
line-height: 1.15;
font-weight: 700;
}
.profile-main p {
margin: 10px 0 0;
color: var(--sg-text);
font-weight: 600;
font-size: 14px;
}
.profile-main > span {
color: var(--sg-text-muted);
font-size: 13px;
}
.profile-contact {
display: grid;
gap: 16px;
color: var(--sg-text);
font-size: 13px;
}
.profile-contact div {
display: grid;
grid-template-columns: 24px 1fr;
align-items: center;
gap: 14px;
}
.profile-contact mat-icon {
color: var(--sg-text-muted);
font-size: 20px;
width: 20px;
height: 20px;
}
.profile-contact .orcid {
color: #6cc24a;
}
.profile-contact a {
text-decoration: none;
font-weight: 600;
}
.sidebar {
grid-area: bio;
display: flex;
flex-direction: column;
gap: 24px;
height: 100%;
}
.sidebar .bio-card {
flex: 1;
}
.bio-card {
padding: 24px 28px;
border-radius: var(--sg-radius-sm);
background: var(--sg-surface-muted);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.bio-card h3 {
margin: 0 0 18px;
font-size: 14px;
font-weight: 700;
}
.bio-card p {
margin: 0;
color: var(--sg-text);
font-size: 14px;
line-height: 1.5;
}
.bio-card mat-progress-bar {
margin: -24px -28px 18px -28px;
border-radius: var(--sg-radius-sm) var(--sg-radius-sm) 0 0;
}
.person-tabs {
padding: 0 32px;
border-bottom: 1px solid var(--sg-border);
background: var(--sg-background);
}
.person-tabs a {
min-width: 132px;
height: 58px;
color: var(--sg-text);
font-weight: 600;
font-size: 14px;
opacity: 1;
}
.person-tabs a.mdc-tab--active {
color: var(--sg-primary);
}
::ng-deep .person-tabs .mdc-tab-indicator__content--underline {
border-color: var(--sg-primary);
border-top-width: 3px;
}
.person-panel {
display: block;
background: var(--sg-background);
}
@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;
}
.profile-contact {
grid-column: 2;
}
}
@container (max-width: 720px) {
.person-hero {
padding: 24px 16px;
}
.profile-card {
grid-template-columns: 1fr;
gap: 18px;
}
.profile-contact {
grid-column: auto;
}
.person-tabs {
padding: 0 16px;
overflow-x: auto;
}
}
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
padding: 48px 0;
}
.spinner-container {
--spinner-size: 60px;
position: relative;
width: var(--spinner-size);
height: var(--spinner-size);
}
.spinner-icon {
position: absolute;
inset: 0;
margin: auto;
font-size: calc(var(--spinner-size) * 0.4);
width: calc(var(--spinner-size) * 0.4);
height: calc(var(--spinner-size) * 0.4);
animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.2);
opacity: 0.7;
}
}