From bf1e1bbfef69861533a9237ecf30367ceda65cbd Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 6 Nov 2026 12:55:23 +0100 Subject: [PATCH] reorganized layout. Standartized the component containers and headers --- .../modules/account/account.component.html | 4 + .../modules/account/account.component.scss | 2 +- .../app/modules/account/account.component.ts | 2 + .../modules/accounts/accounts.component.html | 19 +- .../modules/accounts/accounts.component.scss | 17 - .../modules/accounts/accounts.component.ts | 2 + .../bookmarks/bookmarks.component.html | 22 +- .../bookmarks/bookmarks.component.scss | 40 +- .../modules/bookmarks/bookmarks.component.ts | 9 +- .../compare-authors.component.html | 4 +- .../compare-authors.component.scss | 11 +- .../compare-authors.component.ts | 2 + .../dashboard/dashboard.component.html | 171 ++--- .../dashboard/dashboard.component.scss | 4 +- .../modules/dashboard/dashboard.component.ts | 2 + .../founder-dashboard.component.html | 590 +++++++++--------- .../founder-dashboard.component.scss | 44 +- .../founder-dashboard.component.ts | 2 + .../multipliers-dashboard.component.html | 369 +++++------ .../multipliers-dashboard.component.scss | 46 +- .../multipliers-dashboard.component.ts | 2 + .../researcher-network.component.html | 19 +- .../researcher-network.component.scss | 43 +- .../researcher-network.component.ts | 2 + .../hierarchy/hierarchy.component.html | 9 +- .../hierarchy/hierarchy.component.scss | 3 +- .../modules/hierarchy/hierarchy.component.ts | 2 + .../institution-projects.component.html | 8 +- .../institution-projects.component.scss | 2 +- .../institution-projects.component.ts | 2 + .../institution-publications.component.html | 8 +- .../institution-publications.component.scss | 2 +- .../institution-publications.component.ts | 2 + .../institution-overview.component.scss | 9 +- .../institution/institution.component.html | 16 +- .../institution/institution.component.scss | 4 +- .../institution/institution.component.ts | 2 + .../institutions/institutions.component.html | 13 +- .../institutions/institutions.component.scss | 6 - .../institutions/institutions.component.ts | 4 +- .../src/app/modules/jobs/jobs.component.html | 14 +- .../src/app/modules/jobs/jobs.component.scss | 28 - webapp/src/app/modules/jobs/jobs.component.ts | 2 + .../keywords-search.component.html | 4 + .../keywords-search.component.scss | 4 +- .../keywords-search.component.ts | 2 + .../projects-results.component.scss | 2 +- .../search-results.component.html | 12 +- .../search-results.component.scss | 22 +- .../search-results.component.ts | 2 + .../news-detail/news-detail.component.html | 4 +- .../news-detail/news-detail.component.scss | 12 +- .../news-detail/news-detail.component.ts | 2 + .../src/app/modules/news/news.component.html | 11 +- .../src/app/modules/news/news.component.scss | 29 - webapp/src/app/modules/news/news.component.ts | 2 + .../organizations.component.html | 30 +- .../organizations.component.scss | 28 - .../organizations/organizations.component.ts | 2 + .../patent-detail.component.html | 2 + .../patent-detail.component.scss | 17 +- .../patent-detail/patent-detail.component.ts | 2 + .../modules/patents/patents.component.html | 25 +- .../modules/patents/patents.component.scss | 26 +- .../app/modules/patents/patents.component.ts | 2 + .../person-company-connections.component.html | 7 +- .../person-company-connections.component.scss | 20 +- .../person-company-connections.component.ts | 2 + .../person-list/person-list.component.html | 46 +- .../person-list/person-list.component.scss | 36 +- .../person-list/person-list.component.ts | 2 + .../person-network.component.scss | 2 +- .../person-patents.component.scss | 2 +- .../app/modules/person/person.component.html | 2 + .../app/modules/person/person.component.scss | 17 +- .../app/modules/person/person.component.ts | 2 + .../bund-details/bund-details.component.html | 2 + .../bund-details/bund-details.component.scss | 17 +- .../bund-details/bund-details.component.ts | 2 + .../dfg-details/dfg-details.component.html | 2 + .../dfg-details/dfg-details.component.scss | 17 +- .../dfg-details/dfg-details.component.ts | 2 + .../deliverables-cards.component.scss | 5 +- .../eu-details.component.html | 2 + .../eu-details.component.scss | 17 +- .../eu-cordis-details/eu-details.component.ts | 2 + .../organizations-table.component.scss | 5 +- .../patents-cards.component.scss | 5 +- .../publications-table.component.scss | 5 +- .../modules/projects/projects.component.html | 9 +- .../modules/projects/projects.component.scss | 9 +- .../modules/projects/projects.component.ts | 4 +- .../publication-detail.component.html | 2 + .../publication-detail.component.scss | 17 +- .../publication-detail.component.ts | 2 + .../publications/publications.component.html | 10 +- .../publications/publications.component.scss | 9 +- .../publications/publications.component.ts | 4 +- .../app/modules/topic/topic.component.html | 8 +- .../app/modules/topic/topic.component.scss | 13 +- .../src/app/modules/topic/topic.component.ts | 2 + .../app/modules/topics/topics.component.html | 13 +- .../app/modules/topics/topics.component.scss | 6 - .../app/modules/topics/topics.component.ts | 8 +- .../ui/card-search/card-search.component.scss | 3 - .../page-container.component.html | 15 + .../page-container.component.scss | 23 + .../page-container.component.ts | 16 + .../ui/page-header/page-header.component.html | 27 + .../ui/page-header/page-header.component.scss | 81 +++ .../ui/page-header/page-header.component.ts | 15 + webapp/src/styles.scss | 10 + 112 files changed, 1132 insertions(+), 1201 deletions(-) create mode 100644 webapp/src/app/shared/ui/page-container/page-container.component.html create mode 100644 webapp/src/app/shared/ui/page-container/page-container.component.scss create mode 100644 webapp/src/app/shared/ui/page-container/page-container.component.ts create mode 100644 webapp/src/app/shared/ui/page-header/page-header.component.html create mode 100644 webapp/src/app/shared/ui/page-header/page-header.component.scss create mode 100644 webapp/src/app/shared/ui/page-header/page-header.component.ts diff --git a/webapp/src/app/modules/account/account.component.html b/webapp/src/app/modules/account/account.component.html index 098a8e75..02fefd5b 100644 --- a/webapp/src/app/modules/account/account.component.html +++ b/webapp/src/app/modules/account/account.component.html @@ -1,3 +1,6 @@ +
+ } +
+
diff --git a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.scss b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.scss index 634a2305..32162166 100644 --- a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.scss +++ b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.scss @@ -1,39 +1,6 @@ .founder-dashboard { - max-width: 1080px; - margin: 0 auto; - padding: 24px 8px 64px; -} - -.hero { - margin-bottom: 8px; - - .eyebrow { - font-size: 11px; - letter-spacing: 0.14em; - text-transform: uppercase; - color: var(--sg-text-soft); - margin: 0 0 10px; - } - - h1 { - font-size: 30px; - line-height: 1.15; - margin: 0 0 12px; - font-weight: 700; - color: var(--sg-text); - } - - .lede { - color: var(--sg-text-muted); - font-size: 15.5px; - margin: 0; - max-width: 66ch; - - strong { - color: var(--sg-text); - font-weight: 600; - } - } + width: 100%; + min-width: 0; } section { @@ -42,7 +9,7 @@ section { .empty-state { margin-top: 28px; - max-width: 72ch; + width: 100%; background: var(--sg-surface-muted); .mat-mdc-card-content { @@ -77,9 +44,10 @@ section { } h2 { - font-size: 20px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); margin: 0 0 4px; - font-weight: 700; + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } diff --git a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.ts b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.ts index 72f04534..c9866bc2 100644 --- a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.ts +++ b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.ts @@ -39,6 +39,7 @@ import { GenericColumn, } from '../../../shared/ui/data-table/data-table.component'; import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; import { FOUNDER_ICON } from '../../../shared/ui/icons'; import { CredentialService } from '../../../shared/services/credential.service'; @@ -73,6 +74,7 @@ interface FounderRow { ChipComponent, DataTableComponent, MethodologyNoteComponent, + PageContainerComponent, ], templateUrl: './founder-dashboard.component.html', styleUrl: './founder-dashboard.component.scss', diff --git a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html index 8dab5248..99ee0dbf 100644 --- a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html +++ b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html @@ -1,191 +1,202 @@ -
-
-

Multiplikatoren · {{ universityName() }}

-

Wer stärkt das Innovationsökosystem?

-

- Entdecke Forschende, die Forschungsgruppen verbinden, Nachwuchs fördern - oder Wissen in Wirtschaft und Öffentlichkeit tragen. Die Rollen-Scores - vergleichen Forschende derselben Karrierestufe an der - {{ universityName() }}. -

-
+ +
+ +

+ Datenbasis: Die UDE-Kohorte umfasst die Universität und + acht zugehörige Einrichtungen. Forschende werden anhand jüngerer + OpenAlex-Affiliationen ausgewählt; ihre Publikationen und + Koautorenschaften werden anschließend institutionsübergreifend + ausgewertet. Die Rollen-Scores vergleichen nur Personen derselben + Karrierestufe. +

+
    +
  • + Bridger: Netzwerkvermittlung, Verbindungen zwischen + Fachgebieten und Institutionen. +
  • +
  • + Mentor: gemeinsame Publikationen mit Nachwuchs sowie + Hinweise auf Betreuung und deren berufliche Entwicklung. +
  • +
  • + Amplifier: Industriekooperationen, verknüpfte + Patente, EU-Projekte und relevante Medienerwähnungen. +
  • +
+

+ Rohmetriken werden zunächst innerhalb der vier Karrierestufen + Early, Emerging, Established, Senior in Peer-Ränge + umgerechnet. Die drei Rollen-Scores sind gewichtete Mittel dieser Ränge: + Bridger (35 % Betweenness, 25 % Brokerage, 20 % + Feldbreite, 20 % institutionsübergreifende Zusammenarbeit), Mentor + (35 % Nachwuchs, 25 % Mentoring-Rate, 25 % typische + Autor:innenrollen, 15 % Nachwuchsentwicklung) und Amplifier + (50 % Industrie, 25 % Patente, 15 % EU-Projekte, + 10 % Medien). Ab 85 % und mindestens zwei aktiven Jahren wird + ein Badge vergeben. Ein Score beschreibt ein relatives Signal, keinen + kausalen Nachweis. +

+

+ Die aktuelle Multiplikator-Auswertung ist für die definierte UDE-Kohorte + berechnet. Für andere Universitäten erscheinen Daten erst, wenn deren + Kohorte ebenfalls durch die Pipeline verarbeitet wurde. +

+
- -

- Datenbasis: Die UDE-Kohorte umfasst die Universität und - acht zugehörige Einrichtungen. Forschende werden anhand jüngerer - OpenAlex-Affiliationen ausgewählt; ihre Publikationen und - Koautorenschaften werden anschließend institutionsübergreifend - ausgewertet. Die Rollen-Scores vergleichen nur Personen derselben - Karrierestufe. -

-
    -
  • - Bridger: Netzwerkvermittlung, Verbindungen zwischen - Fachgebieten und Institutionen. -
  • -
  • - Mentor: gemeinsame Publikationen mit Nachwuchs sowie - Hinweise auf Betreuung und deren berufliche Entwicklung. -
  • -
  • - Amplifier: Industriekooperationen, verknüpfte Patente, - EU-Projekte und relevante Medienerwähnungen. -
  • -
-

- Rohmetriken werden zunächst innerhalb der vier Karrierestufen - Early, Emerging, Established, Senior in Peer-Ränge - umgerechnet. Die drei Rollen-Scores sind gewichtete Mittel dieser Ränge: - Bridger (35 % Betweenness, 25 % Brokerage, 20 % Feldbreite, - 20 % institutionsübergreifende Zusammenarbeit), Mentor (35 % - Nachwuchs, 25 % Mentoring-Rate, 25 % typische Autor:innenrollen, - 15 % Nachwuchsentwicklung) und Amplifier (50 % Industrie, - 25 % Patente, 15 % EU-Projekte, 10 % Medien). Ab 85 % - und mindestens zwei aktiven Jahren wird ein Badge vergeben. Ein Score - beschreibt ein relatives Signal, keinen kausalen Nachweis. -

-

- Die aktuelle Multiplikator-Auswertung ist für die definierte UDE-Kohorte - berechnet. Für andere Universitäten erscheinen Daten erst, wenn deren - Kohorte ebenfalls durch die Pipeline verarbeitet wurde. -

-
- -
- - -
- - Name suchen - - {{ SEARCH_ICON }} - - - - Rollen-Badge - - @for (role of roleOptions; track role.value) { - {{ role.label }} - } - - - - - Karrierestufe - - @for (bucket of careerOptions; track bucket) { - {{ bucket }} - } - - - - - Rolle für Mindest-Rang - - @for (field of peerRankFields; track field.value) { - {{ field.label }} - } - - - -
- - +
+ + +
+ + Name suchen - + placeholder="Name oder Namensanfang" /> + {{ SEARCH_ICON }} + + + + Rollen-Badge + + @for (role of roleOptions; track role.value) { + {{ role.label }} + } + + + + + Karrierestufe + + @for (bucket of careerOptions; track bucket) { + {{ bucket }} + } + + + + + Rolle für Mindest-Rang + + @for (field of peerRankFields; track field.value) { + {{ + field.label + }} + } + + + +
+ + + + +
-
-
- - {{ fmtInt(pageTotal()) }} - {{ pageTotal() === 1 ? 'Forschende:r' : 'Forschende' }} - - - -
- - -
+
+ + {{ fmtInt(pageTotal()) }} + {{ pageTotal() === 1 ? 'Forschende:r' : 'Forschende' }} + + + +
+ + + -
-
-
-

Multiplikator:innen in der Kohorte

-

- Nach dem stärksten Rollen-Rang sortiert. Öffne das Netzwerk, um - Kooperationen und die zugrunde liegenden Metriken anzusehen. -

+
+
+
+

Multiplikator:innen in der Kohorte

+

+ Nach dem stärksten Rollen-Rang sortiert. Öffne das Netzwerk, um + Kooperationen und die zugrunde liegenden Metriken anzusehen. +

+
-
- - - @if (rows().length > 0) { - - } @else if (pageTotal() === 0 && selectedTags().length === 0 && selectedCareerBuckets().length === 0 && !nameDraft() && appliedMinPeerRank() === 0) { -
- hub -

Noch keine Multiplikator-Daten

-

- Für die {{ universityName() }} wurden noch keine - Multiplikator-Scores berechnet. -

-
- } @else { -
-

Keine passenden Forschenden gefunden

-

Ändere oder entferne einen Filter, um weitere Ergebnisse zu sehen.

-
- } -
-
+ + + @if (rows().length > 0) { + + } @else if ( + pageTotal() === 0 && + selectedTags().length === 0 && + selectedCareerBuckets().length === 0 && + !nameDraft() && + appliedMinPeerRank() === 0 + ) { +
+ hub +

Noch keine Multiplikator-Daten

+

+ Für die {{ universityName() }} wurden noch + keine Multiplikator-Scores berechnet. +

+
+ } @else { +
+

Keine passenden Forschenden gefunden

+

+ Ändere oder entferne einen Filter, um weitere Ergebnisse zu + sehen. +

+
+ } +
+
- -
-
+ + +
+
diff --git a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss index 9c9d3409..06426990 100644 --- a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss +++ b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss @@ -1,37 +1,6 @@ .multipliers-dashboard { - max-width: 1280px; - margin: 0 auto; - padding: 24px 8px 64px; -} - -.hero { - max-width: 75ch; - - .eyebrow { - margin: 0 0 10px; - color: var(--sg-text-soft); - font-size: 11px; - letter-spacing: 0.14em; - text-transform: uppercase; - } - - h1 { - margin: 0 0 12px; - color: var(--sg-text); - font-size: 30px; - line-height: 1.15; - } - - .lede { - margin: 0; - color: var(--sg-text-muted); - font-size: 15px; - line-height: 1.55; - - strong { - color: var(--sg-text); - } - } + width: 100%; + min-width: 0; } .filters-section, @@ -107,7 +76,9 @@ h2 { margin: 0 0 4px; color: var(--sg-text); - font-size: 20px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } .note { @@ -220,10 +191,6 @@ } @media (max-width: 640px) { - .hero h1 { - font-size: 25px; - } - .filters-grid { grid-template-columns: 1fr; gap: 2px; @@ -233,7 +200,4 @@ flex-wrap: wrap; } - .section-heading h2 { - font-size: 18px; - } } diff --git a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts index 58f32638..a97e79ce 100644 --- a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts +++ b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts @@ -36,6 +36,7 @@ import { GenericColumn, } from '../../../shared/ui/data-table/data-table.component'; import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; import { MultiplierRoleScoresComponent } from '../../../shared/ui/multiplier-role-scores/multiplier-role-scores.component'; import { QueryParamPaginatorComponent } from '../../../shared/ui/query-param-paginator/query-param-paginator.component'; import { CredentialService } from '../../../shared/services/credential.service'; @@ -71,6 +72,7 @@ interface MultiplierRow { ChipComponent, DataTableComponent, MethodologyNoteComponent, + PageContainerComponent, MultiplierRoleScoresComponent, QueryParamPaginatorComponent, ], diff --git a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.html b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.html index f451e1ee..e092b0ba 100644 --- a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.html +++ b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.html @@ -1,15 +1,17 @@ -
- + + {{ ARROW_BACK_ICON }} Zurück zu den Multiplikatoren +
@if (unavailable(); as empty) { {{ PERSON_OFF_ICON }} -

{{ empty.title }}

-

{{ empty.body }}

@if (empty.hint) {

{{ empty.hint }}

} @@ -20,11 +22,7 @@
} @else { -
-

- Smart-Guide · Multiplikatoren · {{ universityName() }} -

-

{{ name() }}

+
@if (careerBucket()) { } -
+

@@ -156,6 +154,7 @@ }

+ {{ row.label }} diff --git a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss index ce199262..e1cacfe8 100644 --- a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss +++ b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss @@ -1,7 +1,6 @@ .researcher-network { - max-width: 1440px; - margin: 0 auto; - padding: 24px 8px 64px; + width: 100%; + min-width: 0; } .back-link { @@ -21,26 +20,6 @@ } } -.page { - max-width: 72ch; - - .eyebrow { - font-size: 11px; - letter-spacing: 0.14em; - text-transform: uppercase; - color: var(--sg-text-soft); - margin: 0 0 10px; - } - - h1 { - font-size: 30px; - line-height: 1.15; - margin: 0 0 12px; - font-weight: 700; - color: var(--sg-text); - } -} - .meta-line { display: flex; flex-wrap: wrap; @@ -164,8 +143,9 @@ h2 { margin: 0; color: var(--sg-text); - font-size: 17px; - font-weight: 650; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } } @@ -183,7 +163,9 @@ h2 { margin: 0 0 6px; color: var(--sg-text); - font-size: 17px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } } @@ -200,7 +182,7 @@ .unavailable { margin-top: 32px; - max-width: 68ch; + width: 100%; background: var(--sg-surface-muted); .mat-mdc-card-content { @@ -215,13 +197,6 @@ margin-bottom: 10px; } - h1 { - font-size: 24px; - line-height: 1.2; - margin: 0 0 10px; - color: var(--sg-text); - } - &__body { font-size: 15px; line-height: 1.55; diff --git a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts index 2e7bc872..4b5a4ee2 100644 --- a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts +++ b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts @@ -26,6 +26,7 @@ import { CareerStageChipComponent } from '../../../shared/ui/career-stage-chip/c import { ChipComponent } from '../../../shared/ui/chip/chip.component'; import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component'; import { MultiplierRoleScoresComponent } from '../../../shared/ui/multiplier-role-scores/multiplier-role-scores.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; import { ChartThemeService } from '../../../shared/services/chart-theme.service'; import { CredentialService } from '../../../shared/services/credential.service'; import { ARROW_BACK_ICON, PERSON_OFF_ICON, WARNING_ICON } from '../../../shared/ui/icons'; @@ -61,6 +62,7 @@ interface MetricRow { ChipComponent, MethodologyNoteComponent, MultiplierRoleScoresComponent, + PageContainerComponent, ], templateUrl: './researcher-network.component.html', styleUrl: './researcher-network.component.scss', diff --git a/webapp/src/app/modules/hierarchy/hierarchy.component.html b/webapp/src/app/modules/hierarchy/hierarchy.component.html index fd478628..52d11f97 100644 --- a/webapp/src/app/modules/hierarchy/hierarchy.component.html +++ b/webapp/src/app/modules/hierarchy/hierarchy.component.html @@ -1,9 +1,7 @@ +
- @if (suggestionsOnly()) { -
Hierarchie-Vorschläge
- } @else { -
Organizationsstruktur
- } @if (!hierarchyData()) {
Keine Hierarchie-Daten verfügbar. @@ -63,3 +61,4 @@ } }
+ diff --git a/webapp/src/app/modules/hierarchy/hierarchy.component.scss b/webapp/src/app/modules/hierarchy/hierarchy.component.scss index 5c656d1d..b825165e 100644 --- a/webapp/src/app/modules/hierarchy/hierarchy.component.scss +++ b/webapp/src/app/modules/hierarchy/hierarchy.component.scss @@ -1,8 +1,7 @@ .content { display: flex; flex-direction: column; - gap: 1rem; - padding: 1rem; + gap: 12px; } mat-expansion-panel { diff --git a/webapp/src/app/modules/hierarchy/hierarchy.component.ts b/webapp/src/app/modules/hierarchy/hierarchy.component.ts index 2f39b3a7..ab3ff918 100644 --- a/webapp/src/app/modules/hierarchy/hierarchy.component.ts +++ b/webapp/src/app/modules/hierarchy/hierarchy.component.ts @@ -18,6 +18,7 @@ import { HierarchyResponse } from '../../api/model/hierarchyResponse'; import { CredentialService } from '../../shared/services/credential.service'; import { HierarchySuggestionsComponent } from './hierarchy-suggestions/hierarchy-suggestions.component'; import { HierarchySuggestion } from '../../api/model/hierarchySuggestion'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; const ORGANIZATION_URL_PARAM = 'orgUrl'; const ORGANIZATION_NAME_PARAM = 'orgName'; const ORGMINER_EXPANDED_PARAM = 'orgExpanded'; @@ -38,6 +39,7 @@ const CLASSIFIED_PAGES_PANEL_PARAM = 'classifiedPagesExpanded'; MatExpansionModule, MatIconModule, HierarchySuggestionsComponent, + PageContainerComponent, ], templateUrl: './hierarchy.component.html', styleUrl: './hierarchy.component.scss', diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.html b/webapp/src/app/modules/institution-projects/institution-projects.component.html index 41f85171..3f5a0e5f 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.html +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.html @@ -1,8 +1,8 @@
-
-
Projekte
-

Übersicht der Projekte, die von der Institution durchgeführt werden.

-
+ diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.scss b/webapp/src/app/modules/institution-projects/institution-projects.component.scss index 2d0d7b0b..1343ea76 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.scss +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.scss @@ -2,7 +2,7 @@ display: flex; flex-direction: column; gap: 1rem; - padding: 2rem; + padding: 0; } mat-expansion-panel { diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.ts b/webapp/src/app/modules/institution-projects/institution-projects.component.ts index 67bfcf66..1d52e845 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.ts +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.ts @@ -33,6 +33,7 @@ import { LinkTabNavBarItem, } from '../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component'; import { OPEN_IN_NEW_ICON } from '../../shared/ui/icons'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; type BundProjectRow = { id: string; @@ -62,6 +63,7 @@ type EuProjectRow = { MatInputModule, DatePipe, CurrencyPipe, + PageHeaderComponent, MatIconModule, MatButtonModule, InstitutionProjectsFundingGraphComponent, diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.html b/webapp/src/app/modules/institution-publications/institution-publications.component.html index 6228de7e..9fe43aaa 100644 --- a/webapp/src/app/modules/institution-publications/institution-publications.component.html +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.html @@ -1,8 +1,8 @@
-
-
Publikationen
-

Übersicht der wissenschaftlichen Veröffentlichungen.

-
+ @if (canViewClassificationChart()) { diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.scss b/webapp/src/app/modules/institution-publications/institution-publications.component.scss index 55442f6c..5617c97d 100644 --- a/webapp/src/app/modules/institution-publications/institution-publications.component.scss +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.scss @@ -2,7 +2,7 @@ display: flex; flex-direction: column; gap: 1rem; - padding: 2rem; + padding: 0; } mat-expansion-panel { diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.ts b/webapp/src/app/modules/institution-publications/institution-publications.component.ts index 0b46e75c..552dd406 100644 --- a/webapp/src/app/modules/institution-publications/institution-publications.component.ts +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.ts @@ -12,6 +12,7 @@ import { PrimaryCategoryYearAggregationChartComponent } from '../../shared/ui/pr import { MatExpansionModule } from '@angular/material/expansion'; import { CommonModule } from '@angular/common'; import { ActivatedRoute } from '@angular/router'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; @Component({ selector: 'app-institution-publications', @@ -22,6 +23,7 @@ import { ActivatedRoute } from '@angular/router'; PrimaryCategoryYearAggregationChartComponent, MatExpansionModule, CommonModule, + PageHeaderComponent, ], templateUrl: './institution-publications.component.html', styleUrl: './institution-publications.component.scss', diff --git a/webapp/src/app/modules/institution/components/institution-overview/institution-overview.component.scss b/webapp/src/app/modules/institution/components/institution-overview/institution-overview.component.scss index 746957bd..94118d6b 100644 --- a/webapp/src/app/modules/institution/components/institution-overview/institution-overview.component.scss +++ b/webapp/src/app/modules/institution/components/institution-overview/institution-overview.component.scss @@ -99,11 +99,12 @@ } .institution-name { - font-size: 1.6rem; - font-weight: 700; - color: var(--sg-text-primary); margin: 0; - line-height: 1.25; + color: var(--sg-text-primary); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .type-badge { diff --git a/webapp/src/app/modules/institution/institution.component.html b/webapp/src/app/modules/institution/institution.component.html index f258e8f5..5ef100d9 100644 --- a/webapp/src/app/modules/institution/institution.component.html +++ b/webapp/src/app/modules/institution/institution.component.html @@ -1,7 +1,9 @@ -
- - -
- - - + +
+ + +
+ + + +
diff --git a/webapp/src/app/modules/institution/institution.component.scss b/webapp/src/app/modules/institution/institution.component.scss index 4d1beda5..d53add80 100644 --- a/webapp/src/app/modules/institution/institution.component.scss +++ b/webapp/src/app/modules/institution/institution.component.scss @@ -1,6 +1,6 @@ .institution-container { display: flex; flex-direction: column; - gap: 1rem; - margin: 1rem; + gap: 12px; + width: 100%; } diff --git a/webapp/src/app/modules/institution/institution.component.ts b/webapp/src/app/modules/institution/institution.component.ts index 6891599f..516003b8 100644 --- a/webapp/src/app/modules/institution/institution.component.ts +++ b/webapp/src/app/modules/institution/institution.component.ts @@ -12,6 +12,7 @@ import { PROJECT_ICON, PUBLICATION_ICON, } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-institution', @@ -20,6 +21,7 @@ import { LinkTabNavBarComponent, MatTabsModule, RouterModule, + PageContainerComponent, ], templateUrl: './institution.component.html', styleUrl: './institution.component.scss', diff --git a/webapp/src/app/modules/institutions/institutions.component.html b/webapp/src/app/modules/institutions/institutions.component.html index 03d2d427..2dc57df2 100644 --- a/webapp/src/app/modules/institutions/institutions.component.html +++ b/webapp/src/app/modules/institutions/institutions.component.html @@ -1,18 +1,15 @@ -
-

Passende Institutionen finden

- - - + -
+ diff --git a/webapp/src/app/modules/institutions/institutions.component.scss b/webapp/src/app/modules/institutions/institutions.component.scss index ef8c12a0..e69de29b 100644 --- a/webapp/src/app/modules/institutions/institutions.component.scss +++ b/webapp/src/app/modules/institutions/institutions.component.scss @@ -1,6 +0,0 @@ -.content { - display: flex; - flex-direction: column; - gap: 1rem; - padding: 1rem; -} diff --git a/webapp/src/app/modules/institutions/institutions.component.ts b/webapp/src/app/modules/institutions/institutions.component.ts index 49022b02..ff7b42de 100644 --- a/webapp/src/app/modules/institutions/institutions.component.ts +++ b/webapp/src/app/modules/institutions/institutions.component.ts @@ -4,7 +4,6 @@ import { MatButtonModule } from '@angular/material/button'; import { MatCardModule } from '@angular/material/card'; import { RouterModule } from '@angular/router'; import { MatIconModule } from '@angular/material/icon'; -import { MatDividerModule } from '@angular/material/divider'; import { SelectorOption } from '../../shared/ui/query-param-selector/query-param-selector.component'; import { @@ -14,6 +13,7 @@ import { import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component'; import { AppInstitutionCardComponent } from '../../shared/ui/app-institution-card/app-institution-card.component'; import { SEARCH_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-institutions', @@ -21,10 +21,10 @@ import { SEARCH_ICON } from '../../shared/ui/icons'; MatButtonModule, MatCardModule, MatIconModule, - MatDividerModule, RouterModule, CardSearchComponent, AppInstitutionCardComponent, + PageContainerComponent, ], templateUrl: './institutions.component.html', styleUrl: './institutions.component.scss', diff --git a/webapp/src/app/modules/jobs/jobs.component.html b/webapp/src/app/modules/jobs/jobs.component.html index 21370cef..2d3532bb 100644 --- a/webapp/src/app/modules/jobs/jobs.component.html +++ b/webapp/src/app/modules/jobs/jobs.component.html @@ -1,13 +1,9 @@
- +
diff --git a/webapp/src/app/modules/jobs/jobs.component.scss b/webapp/src/app/modules/jobs/jobs.component.scss index 8f726798..a3b24bcb 100644 --- a/webapp/src/app/modules/jobs/jobs.component.scss +++ b/webapp/src/app/modules/jobs/jobs.component.scss @@ -5,34 +5,11 @@ padding: 24px; } -.page-header { - display: flex; - align-items: center; - justify-content: space-between; - gap: 16px; -} - .new-job-button { flex-shrink: 0; white-space: nowrap; } -h1, -p { - margin: 0; - color: var(--sg-text); -} - -.page-header h1 { - font-size: 26px; - font-weight: 700; -} - -.page-header p { - color: var(--sg-text-muted); - margin-top: 6px; -} - mat-card, mat-paginator { background-color: var(--sg-background); @@ -308,11 +285,6 @@ mat-paginator { padding: 16px; } - .page-header { - align-items: flex-start; - flex-direction: column; - } - .health-cards { flex-direction: column; } diff --git a/webapp/src/app/modules/jobs/jobs.component.ts b/webapp/src/app/modules/jobs/jobs.component.ts index d73b2752..babae066 100644 --- a/webapp/src/app/modules/jobs/jobs.component.ts +++ b/webapp/src/app/modules/jobs/jobs.component.ts @@ -68,6 +68,7 @@ import { REFRESH_ICON, STOP_ICON, } from '../../shared/ui/icons'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; const MAX_IDLE_POLL_WAIT_MS = 60000; @@ -83,6 +84,7 @@ const MAX_IDLE_POLL_WAIT_MS = 60000; MatSnackBarModule, MatTooltipModule, DataTableComponent, + PageHeaderComponent, ], templateUrl: './jobs.component.html', styleUrl: './jobs.component.scss', diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.html b/webapp/src/app/modules/keywords-search/keywords-search.component.html index e6fdebcb..e51eecf5 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.html +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.html @@ -1,3 +1,6 @@ +
} +
diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.scss b/webapp/src/app/modules/keywords-search/keywords-search.component.scss index 470a8916..83253925 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.scss +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.scss @@ -14,7 +14,7 @@ $touch-target: 44px; display: flex; flex-direction: column; gap: clamp(0.5rem, 1.5vw, 0.75rem); - padding: clamp(0.5rem, 2vw, 1rem); + padding: 0; } .tab-content { @@ -448,7 +448,7 @@ mat-button-toggle-group { align-items: center; gap: 1rem; margin-top: 1rem; - padding: 0 1rem; + padding: 0; } .search-actions { diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.ts b/webapp/src/app/modules/keywords-search/keywords-search.component.ts index 005a9667..e34e3623 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.ts +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.ts @@ -54,6 +54,7 @@ import { MatTooltipModule } from '@angular/material/tooltip'; import { A11yModule } from '@angular/cdk/a11y'; import { DomSanitizer } from '@angular/platform-browser'; import { SearchResultsPayload } from './search-results/search-results-state.service'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; import { ACCOUNT_TREE_ICON, CANCEL_ICON, @@ -94,6 +95,7 @@ type KeywordPatentLevel = 'broad' | 'coarse' | 'fine' | 'custom'; MatSlideToggleModule, MatSliderModule, FileUploadComponent, + PageContainerComponent, ], templateUrl: './keywords-search.component.html', styleUrl: './keywords-search.component.scss', diff --git a/webapp/src/app/modules/keywords-search/search-results/projects-results/projects-results.component.scss b/webapp/src/app/modules/keywords-search/search-results/projects-results/projects-results.component.scss index 9bd15288..43e4ee7d 100644 --- a/webapp/src/app/modules/keywords-search/search-results/projects-results/projects-results.component.scss +++ b/webapp/src/app/modules/keywords-search/search-results/projects-results/projects-results.component.scss @@ -1,5 +1,5 @@ .person-projects { - padding: 2rem; + padding: 0; } .description-container { diff --git a/webapp/src/app/modules/keywords-search/search-results/search-results.component.html b/webapp/src/app/modules/keywords-search/search-results/search-results.component.html index 65794279..ca21a63c 100644 --- a/webapp/src/app/modules/keywords-search/search-results/search-results.component.html +++ b/webapp/src/app/modules/keywords-search/search-results/search-results.component.html @@ -1,10 +1,10 @@ -
-
- -
+ @if (state.hasValidSearch()) { @@ -78,4 +78,4 @@ } -
+ diff --git a/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss b/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss index 61735b93..d9aa4eb6 100644 --- a/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss +++ b/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss @@ -11,27 +11,7 @@ $touch-target: 44px; .search-results-page { display: flex; flex-direction: column; - gap: 0.75rem; - padding: 0.75rem 1rem; -} - -.page-header { - display: flex; - align-items: flex-start; - gap: 0.75rem; - - h1 { - margin: 0; - font-size: clamp(1.2rem, 2vw, 1.6rem); - font-weight: 650; - color: var(--sg-text); - } - - p { - margin: 0.2rem 0 0; - color: var(--sg-text-muted); - font-size: 0.9rem; - } + gap: 12px; } /* ============================================================ diff --git a/webapp/src/app/modules/keywords-search/search-results/search-results.component.ts b/webapp/src/app/modules/keywords-search/search-results/search-results.component.ts index dded104e..b022d969 100644 --- a/webapp/src/app/modules/keywords-search/search-results/search-results.component.ts +++ b/webapp/src/app/modules/keywords-search/search-results/search-results.component.ts @@ -32,6 +32,7 @@ import { LinkTabNavBarComponent, LinkTabNavBarItem, } from '../../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-keywords-search-results', standalone: true, @@ -45,6 +46,7 @@ import { LinkTabNavBarComponent, MatSlideToggleModule, MatTooltipModule, + PageContainerComponent, ], providers: [SearchResultsStateService], templateUrl: './search-results.component.html', diff --git a/webapp/src/app/modules/news-detail/news-detail.component.html b/webapp/src/app/modules/news-detail/news-detail.component.html index 9a66f82c..43274825 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.html +++ b/webapp/src/app/modules/news-detail/news-detail.component.html @@ -1,3 +1,4 @@ +
-

{{ article.maintitle || 'Kein Titel' }}

+

{{ article.maintitle || 'Kein Titel' }}

@if (article.relevant === true) { @@ -259,3 +260,4 @@
}
+ diff --git a/webapp/src/app/modules/news-detail/news-detail.component.scss b/webapp/src/app/modules/news-detail/news-detail.component.scss index 9577c0be..8e76dd17 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.scss +++ b/webapp/src/app/modules/news-detail/news-detail.component.scss @@ -1,7 +1,6 @@ .detail-page { - max-width: 1200px; - margin: 0 auto; - padding: 28px 32px 64px; + width: 100%; + min-width: 0; } .back-link { @@ -82,9 +81,10 @@ main { .article-heading { margin: 0; - font-size: 28px; - font-weight: 700; - line-height: 1.3; + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .relevance-badge { diff --git a/webapp/src/app/modules/news-detail/news-detail.component.ts b/webapp/src/app/modules/news-detail/news-detail.component.ts index 680b6346..5fc675ba 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.ts +++ b/webapp/src/app/modules/news-detail/news-detail.component.ts @@ -35,6 +35,7 @@ import { SEARCH_OFF_ICON, TOPIC_ICON, } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; interface MentionedPerson { name: string; @@ -73,6 +74,7 @@ interface NewsArticleDetail { RouterLink, LoadingComponent, HighlightedTextComponent, + PageContainerComponent, ], templateUrl: './news-detail.component.html', styleUrl: './news-detail.component.scss', diff --git a/webapp/src/app/modules/news/news.component.html b/webapp/src/app/modules/news/news.component.html index 0c841eb4..0c7f5788 100644 --- a/webapp/src/app/modules/news/news.component.html +++ b/webapp/src/app/modules/news/news.component.html @@ -1,9 +1,6 @@ -
- - + @if (article.snippet) { @@ -66,4 +63,4 @@ [noResultsTmp]="noResultsTmp" [cardMinWidth]="380" searchLabel="Nachrichten durchsuchen" /> -
+ diff --git a/webapp/src/app/modules/news/news.component.scss b/webapp/src/app/modules/news/news.component.scss index 14ecda37..3e29c6c2 100644 --- a/webapp/src/app/modules/news/news.component.scss +++ b/webapp/src/app/modules/news/news.component.scss @@ -1,26 +1,3 @@ -.page { - padding: 28px 32px 42px; - max-width: 100%; - margin: 0 auto; -} - -.page-header { - padding: 0 1rem; - margin-bottom: 10px; - - h1 { - margin: 0; - font-size: 26px; - font-weight: 700; - color: var(--sg-text); - } - - p { - margin: 4px 0 0; - color: var(--sg-text-muted); - font-size: 14px; - } -} .snippet { display: -webkit-box; @@ -75,9 +52,3 @@ $card-min-width: 380px; flex: 1; min-width: 0; } - -@media (max-width: 600px) { - .page { - padding: 16px; - } -} diff --git a/webapp/src/app/modules/news/news.component.ts b/webapp/src/app/modules/news/news.component.ts index 6a879f19..29d4d9e9 100644 --- a/webapp/src/app/modules/news/news.component.ts +++ b/webapp/src/app/modules/news/news.component.ts @@ -29,6 +29,7 @@ import { import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component'; import { YearRangeSliderComponent } from '../../shared/ui/year-range-slider/year-range-slider.component'; import { CHECK_CIRCLE_ICON, SORT_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; interface NewsArticle extends NewsArticleBase { author?: string | null; @@ -52,6 +53,7 @@ type SortOrder = 'desc' | 'asc'; FilterCardComponent, QueryParamSelectorComponent, YearRangeSliderComponent, + PageContainerComponent, ], templateUrl: './news.component.html', styleUrl: './news.component.scss', diff --git a/webapp/src/app/modules/organizations/organizations.component.html b/webapp/src/app/modules/organizations/organizations.component.html index 35ac82d2..eff3c2f9 100644 --- a/webapp/src/app/modules/organizations/organizations.component.html +++ b/webapp/src/app/modules/organizations/organizations.component.html @@ -1,21 +1,17 @@
- + + + diff --git a/webapp/src/app/modules/organizations/organizations.component.scss b/webapp/src/app/modules/organizations/organizations.component.scss index 8b595ba9..2aa1d28b 100644 --- a/webapp/src/app/modules/organizations/organizations.component.scss +++ b/webapp/src/app/modules/organizations/organizations.component.scss @@ -5,34 +5,10 @@ padding: 24px; } -.page-header { - display: flex; - flex-direction: column; - gap: 6px; -} - -.page-header-meta { - display: flex; - align-items: center; - justify-content: space-between; - gap: 16px; -} - -h1, -p { - margin: 0; - color: var(--sg-text); -} - -.page-header p, .table-header span { color: var(--sg-text-muted); } -.page-header p { - flex: 1 1 auto; -} - .status { display: inline-flex; align-items: center; @@ -55,10 +31,6 @@ p { padding: 16px; } - .page-header-meta { - align-items: flex-start; - flex-direction: column; - } } mat-card, diff --git a/webapp/src/app/modules/organizations/organizations.component.ts b/webapp/src/app/modules/organizations/organizations.component.ts index 808f04af..a3ef2bf8 100644 --- a/webapp/src/app/modules/organizations/organizations.component.ts +++ b/webapp/src/app/modules/organizations/organizations.component.ts @@ -35,6 +35,7 @@ import { DELETE_ICON, EDIT_ICON, } from '../../shared/ui/icons'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; @Component({ selector: 'app-organizations', @@ -48,6 +49,7 @@ import { MatCardModule, StatusPipe, QueryParamPaginatorComponent, + PageHeaderComponent, ], templateUrl: './organizations.component.html', styleUrl: './organizations.component.scss', diff --git a/webapp/src/app/modules/patent-detail/patent-detail.component.html b/webapp/src/app/modules/patent-detail/patent-detail.component.html index 31fd1b09..e8211bbe 100644 --- a/webapp/src/app/modules/patent-detail/patent-detail.component.html +++ b/webapp/src/app/modules/patent-detail/patent-detail.component.html @@ -1,3 +1,4 @@ +
+
diff --git a/webapp/src/app/modules/patent-detail/patent-detail.component.scss b/webapp/src/app/modules/patent-detail/patent-detail.component.scss index b4504df9..90fd75f5 100644 --- a/webapp/src/app/modules/patent-detail/patent-detail.component.scss +++ b/webapp/src/app/modules/patent-detail/patent-detail.component.scss @@ -4,9 +4,8 @@ } .detail-page { - max-width: 1500px; - margin: 0 auto; - padding: 26px 32px 56px; + width: 100%; + min-width: 0; } .back-link { @@ -62,10 +61,12 @@ h1 { max-width: 920px; - margin: 20px 0 13px; - font-size: clamp(27px, 3vw, 42px); - line-height: 1.13; + margin: 12px 0; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .meta-line { @@ -179,7 +180,9 @@ aside { .section-title h2 { margin: 0; - font-size: 16px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } diff --git a/webapp/src/app/modules/patent-detail/patent-detail.component.ts b/webapp/src/app/modules/patent-detail/patent-detail.component.ts index edb1a54b..b2eee2dc 100644 --- a/webapp/src/app/modules/patent-detail/patent-detail.component.ts +++ b/webapp/src/app/modules/patent-detail/patent-detail.component.ts @@ -42,6 +42,7 @@ import { isLongDescription, patentExternalLinks, } from './patent-detail.utils'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-patent-detail', @@ -51,6 +52,7 @@ import { RouterLink, TopicChipComponent, LoadingComponent, + PageContainerComponent, ], templateUrl: './patent-detail.component.html', styleUrl: './patent-detail.component.scss', diff --git a/webapp/src/app/modules/patents/patents.component.html b/webapp/src/app/modules/patents/patents.component.html index d35f0ba1..bc0275f1 100644 --- a/webapp/src/app/modules/patents/patents.component.html +++ b/webapp/src/app/modules/patents/patents.component.html @@ -1,18 +1,21 @@ -
-

Patente

- - + + @if (showDetail && selectedPatent) { + + } @if (error) {

Fehler beim Laden der Patente.

} @else if (showDetail && selectedPatent) {
- - -

{{ selectedPatent.title ?? selectedPatent.patent_id }}

-
@for (row of getPatentMetadataRows(selectedPatent); track row.label) {
@@ -332,4 +335,4 @@ } -
+ diff --git a/webapp/src/app/modules/patents/patents.component.scss b/webapp/src/app/modules/patents/patents.component.scss index d94f973e..48e1fee8 100644 --- a/webapp/src/app/modules/patents/patents.component.scss +++ b/webapp/src/app/modules/patents/patents.component.scss @@ -1,20 +1,4 @@ -.content { - display: flex; - flex-direction: column; - gap: 1rem; - padding: 1rem; -} - -h1 { - margin: 0; - font-size: 2rem; - font-weight: 700; - padding: 1rem 0 0; - color: var(--sg-text); -} - .search-and-filter { - padding: 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; @@ -25,7 +9,7 @@ h1 { align-items: stretch; flex-wrap: wrap; gap: 1.5rem; - padding: 0 1rem 1rem; + padding: 0 0 12px; } .patent-year-filter { @@ -45,7 +29,7 @@ h1 { display: flex; align-items: center; gap: 12px; - padding: 24px 1rem; + padding: 16px 0; color: var(--sg-text-muted); font-size: 14px; @@ -56,9 +40,9 @@ h1 { .cards { display: grid; - gap: 1.5rem; - grid-template-columns: repeat(4, 1fr); - padding: 0 1rem; + gap: 16px; + grid-template-columns: repeat(4, minmax(0, 1fr)); + padding: 0; } @media (max-width: 900px) { diff --git a/webapp/src/app/modules/patents/patents.component.ts b/webapp/src/app/modules/patents/patents.component.ts index e13541cd..758f23ca 100644 --- a/webapp/src/app/modules/patents/patents.component.ts +++ b/webapp/src/app/modules/patents/patents.component.ts @@ -23,6 +23,7 @@ import { } from '../../shared/ui/card-search/card-search.component'; import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component'; import { HELP_ICON, PATENT_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; type PatentSource = 'EPO' | 'USPTO'; @@ -55,6 +56,7 @@ const MIN_YEAR = 1978; YearRangeSliderComponent, CardSearchComponent, FilterCardComponent, + PageContainerComponent, ], templateUrl: './patents.component.html', styleUrl: './patents.component.scss', diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.html b/webapp/src/app/modules/person-company-connections/person-company-connections.component.html index e26fb5e3..bf492bec 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.html +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.html @@ -18,13 +18,12 @@
} @else if (data) {
- + @if (data.common_name_warning) {
diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss index d9a7afb7..6918a37f 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss @@ -25,21 +25,11 @@ $text-muted: var(--sg-text-muted); padding: 20px 28px 32px; } -.page-header { - h2 { - margin: 0 0 6px; - color: $text-main; - font-size: 20px; - font-weight: 700; - line-height: 1.25; - } - - p { - margin: 0; - color: $text-muted; - font-size: 14px; - line-height: 1.4; - } +.page-meta { + margin: 6px 0 0; + color: $text-muted; + font-size: 14px; + line-height: 1.4; } .state { diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts b/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts index 153221b0..5346a585 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts @@ -35,6 +35,7 @@ import { NO_ACCOUNTS_ICON, OPEN_IN_NEW_ICON, } from '../../shared/ui/icons'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; interface RoleLegendItem { role: string; @@ -60,6 +61,7 @@ interface GraphSymbols { MatTooltip, RouterModule, LoadingComponent, + PageHeaderComponent, ], templateUrl: './person-company-connections.component.html', styleUrl: './person-company-connections.component.scss', diff --git a/webapp/src/app/modules/person-list/person-list.component.html b/webapp/src/app/modules/person-list/person-list.component.html index c6fe0d23..5baa9639 100644 --- a/webapp/src/app/modules/person-list/person-list.component.html +++ b/webapp/src/app/modules/person-list/person-list.component.html @@ -1,32 +1,25 @@ -
+ + @if (searchValue()) { +
+
+ Aktive Suche + „{{ searchValue() }}“ +
+ +
+ } +
- - @if (activeFilters.length) {
@@ -403,3 +396,4 @@
+
diff --git a/webapp/src/app/modules/person-list/person-list.component.scss b/webapp/src/app/modules/person-list/person-list.component.scss index d6616b57..2a92d720 100644 --- a/webapp/src/app/modules/person-list/person-list.component.scss +++ b/webapp/src/app/modules/person-list/person-list.component.scss @@ -1,7 +1,6 @@ .person-list-page { - padding: 24px; - background: var(--sg-background); - min-height: 100vh; + width: 100%; + min-width: 0; } .layout-container { @@ -9,19 +8,16 @@ grid-template-columns: 1fr 360px; gap: 24px; align-items: start; - max-width: 1400px; - margin: 0 auto; + width: 100%; } // Shared flex layouts -.page-header, .sidebar-header, .toolbar { display: flex; align-items: center; } -.page-header, .toolbar { justify-content: space-between; } @@ -71,23 +67,6 @@ min-width: 0; } -.page-header { - gap: 16px; - - h1 { - margin: 0; - font-size: 26px; - font-weight: 700; - color: var(--sg-text); - } - - p { - margin: 4px 0 0; - color: var(--sg-text-muted); - font-size: 14px; - } -} - .selection-summary { gap: 12px; padding: 8px 12px; @@ -482,15 +461,6 @@ mat-paginator { } @media (max-width: 640px) { - .person-list-page { - padding: 12px; - } - - .page-header { - flex-direction: column; - align-items: flex-start; - } - .toolbar { flex-direction: column; align-items: flex-start; diff --git a/webapp/src/app/modules/person-list/person-list.component.ts b/webapp/src/app/modules/person-list/person-list.component.ts index b0e030f1..fc45a259 100644 --- a/webapp/src/app/modules/person-list/person-list.component.ts +++ b/webapp/src/app/modules/person-list/person-list.component.ts @@ -47,6 +47,7 @@ import { BookmarkService } from '../../shared/services/bookmark.service'; import { ComponentTooltipDirective } from '../../directives/component-tooltip.directive'; import { AppTopicTooltipComponent } from '../../shared/ui/app-topic-tooltip/app-topic-tooltip.component'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; import { CLOSE_ICON, FILTER_ICON, @@ -79,6 +80,7 @@ type InstitutionYearFilterMode = 'in' | 'from' | 'between'; CountryFlagComponent, SkTextDirective, ComponentTooltipDirective, + PageContainerComponent, ], templateUrl: './person-list.component.html', styleUrl: './person-list.component.scss', diff --git a/webapp/src/app/modules/person-network/person-network.component.scss b/webapp/src/app/modules/person-network/person-network.component.scss index aeea97f4..3ea0b1e7 100644 --- a/webapp/src/app/modules/person-network/person-network.component.scss +++ b/webapp/src/app/modules/person-network/person-network.component.scss @@ -1,7 +1,7 @@ .content { display: flex; flex-direction: column; - padding: 2rem; + padding: 0; gap: 1rem; } diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss index 2386e13e..de1cc1d5 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.scss +++ b/webapp/src/app/modules/person-patents/person-patents.component.scss @@ -4,7 +4,7 @@ } .patents-container { - padding: 16px; + padding: 0; display: flex; flex-direction: column; gap: 16px; diff --git a/webapp/src/app/modules/person/person.component.html b/webapp/src/app/modules/person/person.component.html index 4e84caa0..27f9bec5 100644 --- a/webapp/src/app/modules/person/person.component.html +++ b/webapp/src/app/modules/person/person.component.html @@ -1,3 +1,4 @@ + @if (!isPersonLoading()) {
@@ -179,3 +180,4 @@
+ diff --git a/webapp/src/app/modules/person/person.component.scss b/webapp/src/app/modules/person/person.component.scss index d3cb6da0..538226ca 100644 --- a/webapp/src/app/modules/person/person.component.scss +++ b/webapp/src/app/modules/person/person.component.scss @@ -11,7 +11,7 @@ 'interesting bio'; align-items: start; gap: 24px 40px; - padding: 28px 32px 24px; + padding: 20px 24px; border-bottom: 1px solid var(--sg-border); background: var(--sg-background); } @@ -65,9 +65,10 @@ .name-line h1 { margin: 0; - font-size: 24px; - line-height: 1.15; - font-weight: 700; + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .profile-bookmark-button { @@ -279,7 +280,7 @@ } .person-tabs { - padding: 0 32px; + padding: 0; } .person-panel { @@ -312,7 +313,7 @@ } .person-tabs { - padding: 0 16px; + padding: 0; overflow-x: auto; } } @@ -359,7 +360,7 @@ } .description-container { - margin: 3rem 3rem 2rem 3rem; + margin: 16px 0; display: flex; flex-direction: column; gap: 0.5rem; @@ -376,5 +377,5 @@ } .content { - margin: 1rem 4rem; + margin: 0; } diff --git a/webapp/src/app/modules/person/person.component.ts b/webapp/src/app/modules/person/person.component.ts index e2b7853d..c096b160 100644 --- a/webapp/src/app/modules/person/person.component.ts +++ b/webapp/src/app/modules/person/person.component.ts @@ -71,6 +71,7 @@ import { TRENDING_UP_ICON, VERIFIED_ICON, } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-person', @@ -87,6 +88,7 @@ import { LinkTabNavBarComponent, AppInstitutionChipComponent, ComponentTooltipDirective, + PageContainerComponent, ], templateUrl: './person.component.html', styleUrl: './person.component.scss', diff --git a/webapp/src/app/modules/projects/bund-details/bund-details.component.html b/webapp/src/app/modules/projects/bund-details/bund-details.component.html index 9545ae61..164632af 100644 --- a/webapp/src/app/modules/projects/bund-details/bund-details.component.html +++ b/webapp/src/app/modules/projects/bund-details/bund-details.component.html @@ -1,3 +1,4 @@ +
+ diff --git a/webapp/src/app/modules/projects/bund-details/bund-details.component.scss b/webapp/src/app/modules/projects/bund-details/bund-details.component.scss index 6790faa9..dbea72d3 100644 --- a/webapp/src/app/modules/projects/bund-details/bund-details.component.scss +++ b/webapp/src/app/modules/projects/bund-details/bund-details.component.scss @@ -1,7 +1,6 @@ .detail-page { - padding: 28px 32px 42px; - max-width: 100%; - margin: 0 auto; + width: 100%; + min-width: 0; } .page-header { @@ -129,10 +128,11 @@ h1 { margin: 0 0 8px; - font-size: 26px; - line-height: 1.3; - font-weight: 700; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .project-reference { @@ -241,8 +241,9 @@ h1 { .section-header h2 { margin: 0; - font-size: 16px; - font-weight: 600; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } diff --git a/webapp/src/app/modules/projects/bund-details/bund-details.component.ts b/webapp/src/app/modules/projects/bund-details/bund-details.component.ts index bb9904de..ed0573df 100644 --- a/webapp/src/app/modules/projects/bund-details/bund-details.component.ts +++ b/webapp/src/app/modules/projects/bund-details/bund-details.component.ts @@ -23,6 +23,7 @@ import { PAID_ICON, PERSONS_ICON, } from '../../../shared/ui/icons'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; export interface InstitutionEntry { label: string; @@ -36,6 +37,7 @@ export interface InstitutionEntry { MatCardModule, MatIconModule, ProjectOaTopicsComponent, + PageContainerComponent, ], templateUrl: './bund-details.component.html', styleUrl: './bund-details.component.scss', diff --git a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html index 7b0c76e1..ed0f3af5 100644 --- a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html +++ b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html @@ -1,3 +1,4 @@ +
+ diff --git a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss index d4a9a328..c3a6e20c 100644 --- a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss +++ b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss @@ -1,7 +1,6 @@ .detail-page { - padding: 28px 32px 42px; - max-width: 100%; - margin: 0 auto; + width: 100%; + min-width: 0; } .page-header { @@ -93,10 +92,11 @@ h1 { margin: 0 0 8px; - font-size: 26px; - line-height: 1.3; - font-weight: 700; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .project-identifier { @@ -217,8 +217,9 @@ h1 { .section-header h2 { margin: 0; - font-size: 16px; - font-weight: 600; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } diff --git a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts index 975e37fb..7e66404c 100644 --- a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts +++ b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts @@ -32,6 +32,7 @@ import { PUBLIC_ICON, PUBLICATION_ICON, } from '../../../shared/ui/icons'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-dfg-details', @@ -42,6 +43,7 @@ import { MatIconModule, ProjectOaTopicsComponent, DfgClassificationComponent, + PageContainerComponent, ], templateUrl: './dfg-details.component.html', styleUrl: './dfg-details.component.scss', diff --git a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss index b990d794..9cd74e69 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss @@ -104,7 +104,8 @@ .section-header h2 { margin: 0; - font-size: 18px; - font-weight: 600; color: var(--sg-text); + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } diff --git a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html index 7fd3fa84..bd7ab3b0 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html +++ b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html @@ -1,3 +1,4 @@ +
+ diff --git a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss index 0f33615a..9fb4e9e3 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss @@ -1,7 +1,6 @@ .detail-page { - padding: 28px 32px 42px; - max-width: 100%; - margin: 0 auto; + width: 100%; + min-width: 0; } .page-header { display: flex; @@ -60,10 +59,11 @@ } h1 { margin: 0 0 8px; - font-size: 26px; - line-height: 1.3; - font-weight: 700; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .project-framework { margin: 0 0 16px; @@ -192,8 +192,9 @@ h1 { } .section-header h2 { margin: 0; - font-size: 18px; - font-weight: 600; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } .count-badge { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts index 8c1d738d..32623fc3 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts +++ b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts @@ -41,6 +41,7 @@ import { TAG_ICON, TOPIC_ICON, } from '../../../shared/ui/icons'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; export type TabType = | 'overview' @@ -67,6 +68,7 @@ export type TabType = PatentsCardsComponent, DeliverablesCardsComponent, CurrencyPipe, + PageContainerComponent, ], templateUrl: './eu-details.component.html', styleUrl: './eu-details.component.scss', diff --git a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss index 44349ce4..44b77297 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss @@ -16,9 +16,10 @@ h2 { margin: 0; - font-size: 18px; - font-weight: 600; color: var(--sg-text); + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } } diff --git a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss index bc6a551d..dc73c4d2 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss @@ -15,9 +15,10 @@ .section-header h2 { margin: 0; - font-size: 18px; - font-weight: 600; color: var(--sg-text); + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } // IPRs .iprs-list { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss index 18be839d..725d4d0f 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss @@ -22,9 +22,10 @@ h2 { margin: 0; - font-size: 18px; - font-weight: 600; color: var(--sg-text); + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } } diff --git a/webapp/src/app/modules/projects/projects.component.html b/webapp/src/app/modules/projects/projects.component.html index e5b53ca6..d7ae2906 100644 --- a/webapp/src/app/modules/projects/projects.component.html +++ b/webapp/src/app/modules/projects/projects.component.html @@ -1,7 +1,6 @@ -
-

Passende Projekte finden

- - + -
+ diff --git a/webapp/src/app/modules/projects/projects.component.scss b/webapp/src/app/modules/projects/projects.component.scss index cc146f5e..705b88bf 100644 --- a/webapp/src/app/modules/projects/projects.component.scss +++ b/webapp/src/app/modules/projects/projects.component.scss @@ -1,13 +1,6 @@ -.content { - display: flex; - flex-direction: column; - gap: 1rem; - padding: 1rem; -} - .additional-filters { display: flex; - padding: 0 1rem; + padding: 0; app-filter-card { min-height: 90px; diff --git a/webapp/src/app/modules/projects/projects.component.ts b/webapp/src/app/modules/projects/projects.component.ts index d76f2d45..cdf58780 100644 --- a/webapp/src/app/modules/projects/projects.component.ts +++ b/webapp/src/app/modules/projects/projects.component.ts @@ -1,6 +1,5 @@ import { Component, computed, input, signal } from '@angular/core'; import { FundingProjectPage, ProjectType } from '../../api'; -import { MatDividerModule } from '@angular/material/divider'; import { MatIconModule } from '@angular/material/icon'; import { MatCardModule } from '@angular/material/card'; import { ActivatedRoute, Router, RouterModule } from '@angular/router'; @@ -16,11 +15,11 @@ import { import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component'; import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component'; import { SEARCH_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-projects', imports: [ - MatDividerModule, MatIconModule, MatCardModule, RouterModule, @@ -29,6 +28,7 @@ import { SEARCH_ICON } from '../../shared/ui/icons'; CardSearchComponent, AppProjectCardComponent, FilterCardComponent, + PageContainerComponent, ], templateUrl: './projects.component.html', styleUrl: './projects.component.scss', diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.html b/webapp/src/app/modules/publication-detail/publication-detail.component.html index e2bcdde9..5daa523b 100644 --- a/webapp/src/app/modules/publication-detail/publication-detail.component.html +++ b/webapp/src/app/modules/publication-detail/publication-detail.component.html @@ -1,3 +1,4 @@ +
+
diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.scss b/webapp/src/app/modules/publication-detail/publication-detail.component.scss index 985c2efd..3416b0fc 100644 --- a/webapp/src/app/modules/publication-detail/publication-detail.component.scss +++ b/webapp/src/app/modules/publication-detail/publication-detail.component.scss @@ -4,9 +4,8 @@ } .detail-page { - max-width: 1500px; - margin: 0 auto; - padding: 26px 32px 56px; + width: 100%; + min-width: 0; } .back-link { @@ -62,10 +61,12 @@ h1 { max-width: 920px; - margin: 20px 0 13px; - font-size: clamp(27px, 3vw, 42px); - line-height: 1.13; + margin: 12px 0; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .author-line { @@ -269,7 +270,9 @@ aside { .section-title h2 { margin: 0; - font-size: 16px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.ts b/webapp/src/app/modules/publication-detail/publication-detail.component.ts index 30e2c601..892e9774 100644 --- a/webapp/src/app/modules/publication-detail/publication-detail.component.ts +++ b/webapp/src/app/modules/publication-detail/publication-detail.component.ts @@ -23,6 +23,7 @@ import { WorkTypePipe } from '../../shared/pipes/work-type.pipe'; import { LanguageCodePipe } from '../../shared/pipes/language-code.pipe'; import { WorkPrimaryCategoryPipe } from '../../shared/pipes/work-primary-category.pipe'; import { ResearchProfileComponent } from './research-profile/research-profile.component'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; import { ARROW_BACK_ICON, CHEVRON_LEFT_ICON, @@ -75,6 +76,7 @@ interface InstitutionDetail { ResearchProfileComponent, CountryFlagComponent, LoadingComponent, + PageContainerComponent, ], templateUrl: './publication-detail.component.html', styleUrl: './publication-detail.component.scss', diff --git a/webapp/src/app/modules/publications/publications.component.html b/webapp/src/app/modules/publications/publications.component.html index 80e32d3a..a0bcfde0 100644 --- a/webapp/src/app/modules/publications/publications.component.html +++ b/webapp/src/app/modules/publications/publications.component.html @@ -1,8 +1,6 @@ -
-

Passende Publikationen finden

- - - + -
+
@if (topic(); as topic) { -
-

{{ topic.display_name }}

- {{ subtitle() }} -
-

{{ description() }}

+

{{ description() }}

@@ -37,3 +34,4 @@
+ diff --git a/webapp/src/app/modules/topic/topic.component.scss b/webapp/src/app/modules/topic/topic.component.scss index 4e474fb4..e0e3f9fc 100644 --- a/webapp/src/app/modules/topic/topic.component.scss +++ b/webapp/src/app/modules/topic/topic.component.scss @@ -10,16 +10,23 @@ var(--sg-color-mix-base) ); - padding: 2rem; + padding: 16px; display: flex; flex-direction: column; - gap: 1.5rem; + gap: 12px; background-color: var(--topic-background); + border-radius: var(--sg-radius-sm); --mat-divider-color: var(--topic-border); } .outlet-container { - margin: 2rem; + margin-top: 16px; +} + +.topic-description { + max-width: 90ch; + margin: 0; + color: var(--sg-text-muted); } .subtitle { diff --git a/webapp/src/app/modules/topic/topic.component.ts b/webapp/src/app/modules/topic/topic.component.ts index d599ed05..503cc701 100644 --- a/webapp/src/app/modules/topic/topic.component.ts +++ b/webapp/src/app/modules/topic/topic.component.ts @@ -11,6 +11,7 @@ import { LinkTabNavBarComponent, LinkTabNavBarItem, } from '../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ host: { @@ -24,6 +25,7 @@ import { MatIconModule, DecimalPipe, LinkTabNavBarComponent, + PageContainerComponent, ], templateUrl: './topic.component.html', styleUrl: './topic.component.scss', diff --git a/webapp/src/app/modules/topics/topics.component.html b/webapp/src/app/modules/topics/topics.component.html index c0c6ff23..6412f86d 100644 --- a/webapp/src/app/modules/topics/topics.component.html +++ b/webapp/src/app/modules/topics/topics.component.html @@ -1,21 +1,18 @@ -
-

Passende Themen finden

- - - + -
+ diff --git a/webapp/src/app/modules/topics/topics.component.scss b/webapp/src/app/modules/topics/topics.component.scss index ef8c12a0..e69de29b 100644 --- a/webapp/src/app/modules/topics/topics.component.scss +++ b/webapp/src/app/modules/topics/topics.component.scss @@ -1,6 +0,0 @@ -.content { - display: flex; - flex-direction: column; - gap: 1rem; - padding: 1rem; -} diff --git a/webapp/src/app/modules/topics/topics.component.ts b/webapp/src/app/modules/topics/topics.component.ts index fe0f1a4d..3e097884 100644 --- a/webapp/src/app/modules/topics/topics.component.ts +++ b/webapp/src/app/modules/topics/topics.component.ts @@ -3,17 +3,21 @@ import { CardSearchComponent, Page, } from '../../shared/ui/card-search/card-search.component'; -import { MatDividerModule } from '@angular/material/divider'; import { AppTopicCardComponent } from '../../shared/ui/app-topic-card/app-topic-card.component'; import { SortDirection, TopicPageV2, TopicSortBy } from '../../api'; import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component'; import { topicQueryParamKeys } from '../../resolvers/topic-page.resolver'; import { SelectorOption } from '../../shared/ui/query-param-selector/query-param-selector.component'; import { SEARCH_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-topics', - imports: [CardSearchComponent, MatDividerModule, AppTopicCardComponent], + imports: [ + CardSearchComponent, + AppTopicCardComponent, + PageContainerComponent, + ], templateUrl: './topics.component.html', styleUrl: './topics.component.scss', }) diff --git a/webapp/src/app/shared/ui/card-search/card-search.component.scss b/webapp/src/app/shared/ui/card-search/card-search.component.scss index 23ddbd45..8f0fb728 100644 --- a/webapp/src/app/shared/ui/card-search/card-search.component.scss +++ b/webapp/src/app/shared/ui/card-search/card-search.component.scss @@ -8,7 +8,6 @@ display: flex; flex-direction: row; gap: 1rem; - padding: 0rem 1rem; } .card-search-results { @@ -31,13 +30,11 @@ // auto-fill (not auto-fit) keeps empty tracks reserved, so a single result // stays card-width instead of stretching to fill the whole row. grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr)); - padding: 0 1rem; } .pagination { display: flex; justify-content: end; - padding: 0rem 1rem; } .no-results { diff --git a/webapp/src/app/shared/ui/page-container/page-container.component.html b/webapp/src/app/shared/ui/page-container/page-container.component.html new file mode 100644 index 00000000..af35f01e --- /dev/null +++ b/webapp/src/app/shared/ui/page-container/page-container.component.html @@ -0,0 +1,15 @@ +
+ @if (title() || subtitle() || eyebrow()) { + + + + + + } +
+ +
+
diff --git a/webapp/src/app/shared/ui/page-container/page-container.component.scss b/webapp/src/app/shared/ui/page-container/page-container.component.scss new file mode 100644 index 00000000..8528499d --- /dev/null +++ b/webapp/src/app/shared/ui/page-container/page-container.component.scss @@ -0,0 +1,23 @@ +:host { + box-sizing: border-box; + display: block; + width: 100%; + min-width: 0; +} + +.page-container { + box-sizing: border-box; + display: flex; + width: 100%; + min-width: 0; + flex-direction: column; + gap: 14px; + padding: clamp(8px, 1.4vw, 18px); +} + +.page-container__content { + display: flex; + min-width: 0; + flex-direction: column; + gap: 12px; +} diff --git a/webapp/src/app/shared/ui/page-container/page-container.component.ts b/webapp/src/app/shared/ui/page-container/page-container.component.ts new file mode 100644 index 00000000..f0f52155 --- /dev/null +++ b/webapp/src/app/shared/ui/page-container/page-container.component.ts @@ -0,0 +1,16 @@ +import { Component, input } from '@angular/core'; +import { PageHeaderComponent } from '../page-header/page-header.component'; + +/** Shared full-width page frame with a consistent page heading. */ +@Component({ + selector: 'app-page-container', + standalone: true, + imports: [PageHeaderComponent], + templateUrl: './page-container.component.html', + styleUrl: './page-container.component.scss', +}) +export class PageContainerComponent { + readonly title = input(null); + readonly subtitle = input(null); + readonly eyebrow = input(null); +} diff --git a/webapp/src/app/shared/ui/page-header/page-header.component.html b/webapp/src/app/shared/ui/page-header/page-header.component.html new file mode 100644 index 00000000..052708dc --- /dev/null +++ b/webapp/src/app/shared/ui/page-header/page-header.component.html @@ -0,0 +1,27 @@ + diff --git a/webapp/src/app/shared/ui/page-header/page-header.component.scss b/webapp/src/app/shared/ui/page-header/page-header.component.scss new file mode 100644 index 00000000..b3dd78b3 --- /dev/null +++ b/webapp/src/app/shared/ui/page-header/page-header.component.scss @@ -0,0 +1,81 @@ +:host { + box-sizing: border-box; + display: block; + width: 100%; + min-width: 0; +} + +.page-header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + width: 100%; +} + +.page-header__copy { + min-width: 0; +} + +.page-header__eyebrow { + margin: 0 0 6px; + color: var(--sg-text-soft); + font-size: 11px; + font-weight: 600; + letter-spacing: 0.12em; + line-height: 1.3; + text-transform: uppercase; +} + +.page-header__title { + margin: 0; + color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); +} + +h2.page-header__title { + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + letter-spacing: var(--sg-section-title-letter-spacing, -0.01em); + line-height: var(--sg-section-title-line-height, 1.3); +} + +h3.page-header__title { + font-size: 16px; + font-weight: 700; + letter-spacing: 0; + line-height: 1.35; +} + +.page-header__subtitle { + max-width: 90ch; + margin: 6px 0 0; + color: var(--sg-text-muted); + font-size: 14px; + line-height: 1.5; +} + +.page-header__actions { + display: flex; + flex: 0 0 auto; + align-items: center; + justify-content: flex-end; +} + +@media (max-width: 640px) { + .page-header { + flex-direction: column; + gap: 10px; + } + + .page-header__actions { + justify-content: flex-start; + } + + h1.page-header__title { + font-size: 23px; + } +} diff --git a/webapp/src/app/shared/ui/page-header/page-header.component.ts b/webapp/src/app/shared/ui/page-header/page-header.component.ts new file mode 100644 index 00000000..4e74c873 --- /dev/null +++ b/webapp/src/app/shared/ui/page-header/page-header.component.ts @@ -0,0 +1,15 @@ +import { Component, input } from '@angular/core'; + +/** Shared heading block for pages and page sections. */ +@Component({ + selector: 'app-page-header', + standalone: true, + templateUrl: './page-header.component.html', + styleUrl: './page-header.component.scss', +}) +export class PageHeaderComponent { + readonly title = input(null); + readonly subtitle = input(null); + readonly eyebrow = input(null); + readonly level = input<1 | 2 | 3>(1); +} diff --git a/webapp/src/styles.scss b/webapp/src/styles.scss index 1885b80f..a0eb6b7c 100644 --- a/webapp/src/styles.scss +++ b/webapp/src/styles.scss @@ -129,6 +129,16 @@ body { --sg-radius-md: 12px; --sg-radius-lg: 18px; + /* Shared heading scale */ + --sg-page-title-size: clamp(23px, 2vw, 28px); + --sg-page-title-weight: 700; + --sg-page-title-line-height: 1.18; + --sg-page-title-letter-spacing: -0.02em; + --sg-section-title-size: clamp(17px, 1.3vw, 19px); + --sg-section-title-weight: 700; + --sg-section-title-line-height: 1.3; + --sg-section-title-letter-spacing: -0.01em; + --sg-blue-highlight: #3d7cff; /* Backdrop for a keyword match that resolved to no topic. Topic-bound matches carry their topic's colour instead. */