person: remove dummy contact data in profile header
This commit is contained in:
@@ -31,12 +31,14 @@
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
@if (worksCount() !== null || citedByCount() !== null) {
|
||||
@if (
|
||||
worksCount() !== null || citedByCount() !== null || h_index() !== null
|
||||
) {
|
||||
<span class="stats-line">
|
||||
@if (worksCount() !== null) {
|
||||
<span class="stat-item">
|
||||
<mat-icon class="stat-icon">menu_book</mat-icon>
|
||||
{{ worksCount() }} Publikationen
|
||||
{{ worksCount() | number }} Publikationen
|
||||
</span>
|
||||
}
|
||||
@if (worksCount() !== null && citedByCount() !== null) {
|
||||
@@ -45,50 +47,66 @@
|
||||
@if (citedByCount() !== null) {
|
||||
<span class="stat-item">
|
||||
<mat-icon class="stat-icon">format_quote</mat-icon>
|
||||
{{ citedByCount() }} Zitationen
|
||||
{{ citedByCount() | number }} Zitationen
|
||||
</span>
|
||||
}
|
||||
@if (
|
||||
(worksCount() !== null || citedByCount() !== null) &&
|
||||
h_index() !== null
|
||||
) {
|
||||
·
|
||||
}
|
||||
@if (h_index() !== null) {
|
||||
<span
|
||||
class="stat-item has-tooltip"
|
||||
[matTooltip]="
|
||||
'Der h-Index beträgt ' +
|
||||
h_index() +
|
||||
': ' +
|
||||
h_index() +
|
||||
' Publikationen wurden jeweils mindestens ' +
|
||||
h_index() +
|
||||
'-mal zitiert.'
|
||||
"
|
||||
matTooltipPosition="right"
|
||||
[matTooltipShowDelay]="250">
|
||||
<mat-icon class="stat-icon">trending_up</mat-icon>
|
||||
h-Index {{ h_index() }}
|
||||
</span>
|
||||
}
|
||||
</span>
|
||||
<span>
|
||||
@if (h_index() !== null) {
|
||||
h_index: {{ h_index() }}
|
||||
}
|
||||
@if (displayCareerStage() || orcid()) {
|
||||
<div class="meta-line">
|
||||
@if (displayCareerStage()) {
|
||||
<div class="career-stage-line">
|
||||
<span class="career-stage-label">Karrierestufe:</span>
|
||||
<span
|
||||
class="career-stage-chip"
|
||||
[matTooltip]="careerStageTooltip()"
|
||||
matTooltipPosition="right"
|
||||
matTooltipClass="career-stage-tooltip"
|
||||
[matTooltipShowDelay]="250">
|
||||
{{ displayCareerStage() }}
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
@if (orcid(); as orcidId) {
|
||||
<a
|
||||
class="orcid-chip"
|
||||
[href]="orcidUrl()"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
matTooltip="ORCID-Profil öffnen"
|
||||
matTooltipPosition="right"
|
||||
[matTooltipShowDelay]="250">
|
||||
<mat-icon>verified</mat-icon>
|
||||
{{ orcidId }}
|
||||
</a>
|
||||
}
|
||||
</span>
|
||||
}
|
||||
@if (displayCareerStage()) {
|
||||
<div class="career-stage-line">
|
||||
<span class="career-stage-label">Career Stage:</span>
|
||||
<span
|
||||
class="career-stage-chip"
|
||||
[matTooltip]="careerStageTooltip()"
|
||||
matTooltipPosition="right"
|
||||
matTooltipClass="career-stage-tooltip"
|
||||
[matTooltipShowDelay]="250">
|
||||
{{ displayCareerStage() }}
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="profile-contact">
|
||||
<div>
|
||||
<mat-icon>mail</mat-icon>
|
||||
<span>uni-email@uni-due.de</span>
|
||||
</div>
|
||||
@if (orcid()) {
|
||||
<div>
|
||||
<mat-icon class="orcid">verified</mat-icon>
|
||||
<a [href]="orcidUrl()" target="_blank" rel="noopener">{{
|
||||
orcid()
|
||||
}}</a>
|
||||
</div>
|
||||
}
|
||||
<div>
|
||||
<mat-icon>language</mat-icon>
|
||||
<a href="https://ude.de/anna-becker" target="_blank" rel="noopener">
|
||||
ude.de/anna-becker
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<aside class="sidebar">
|
||||
<div class="bio-card">
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
.profile-card {
|
||||
grid-area: profile;
|
||||
display: grid;
|
||||
grid-template-columns: 112px minmax(240px, 1fr) minmax(260px, 360px);
|
||||
grid-template-columns: 112px minmax(240px, 1fr);
|
||||
gap: 36px;
|
||||
align-items: center;
|
||||
}
|
||||
@@ -62,8 +62,11 @@
|
||||
}
|
||||
|
||||
.name-line span {
|
||||
color: var(--sg-text);
|
||||
font-size: 14px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.name-line h1 {
|
||||
@@ -140,6 +143,18 @@
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.stat-item.has-tooltip {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.meta-line {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px 18px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.career-stage-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -167,34 +182,32 @@
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.profile-contact {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
.orcid-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-height: 24px;
|
||||
padding: 2px 10px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 999px;
|
||||
background: var(--sg-surface-muted);
|
||||
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;
|
||||
line-height: 1.2;
|
||||
text-decoration: none;
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
|
||||
.orcid-chip:hover {
|
||||
border-color: #6cc24a;
|
||||
}
|
||||
|
||||
.orcid-chip mat-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 16px;
|
||||
color: #6cc24a;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
@@ -277,16 +290,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
@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;
|
||||
@@ -297,10 +300,6 @@
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.profile-contact {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.person-tabs {
|
||||
padding: 0 16px;
|
||||
overflow-x: auto;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { DecimalPipe } from '@angular/common';
|
||||
import { Component, computed, inject, signal, DestroyRef } from '@angular/core';
|
||||
import {
|
||||
toSignal,
|
||||
@@ -27,6 +28,7 @@ import { PersonBioResolved } from '../../resolvers/person-bio.resolver';
|
||||
@Component({
|
||||
selector: 'app-person',
|
||||
imports: [
|
||||
DecimalPipe,
|
||||
MatIconModule,
|
||||
MatTabsModule,
|
||||
MatTooltipModule,
|
||||
|
||||
Reference in New Issue
Block a user