diff --git a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.html b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.html new file mode 100644 index 00000000..5a399ecb --- /dev/null +++ b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.html @@ -0,0 +1,33 @@ +
+ +
+ assignment +

Deliverables ({{ deliverables.length }})

+
+
+ @for (deliv of deliverables; track deliv.url) { +
+
+ file_present +
+
+
+ {{ deliv.description || 'Ohne Beschreibung' }} +
+
+ @if (deliv.deliverableType) { + {{ deliv.deliverableType }} + } + @if (deliv.url) { + + open_in_new + Zum Deliverable + + } +
+
+
+ } +
+
+
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 new file mode 100644 index 00000000..a729cc21 --- /dev/null +++ b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss @@ -0,0 +1,109 @@ +// Deliverables +.deliverables-list { + padding: 16px 20px 20px; + display: flex; + flex-direction: column; + gap: 12px; +} + +.deliverable-item { + display: flex; + align-items: flex-start; + gap: 16px; + padding: 14px 16px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + transition: all 0.2s; + + &:hover { + background: #f8fafc; + } +} + +.deliv-icon { + flex-shrink: 0; + color: #7b1fa2; + + mat-icon { + width: 24px; + height: 24px; + font-size: 24px; + } +} + +.deliv-info { + flex: 1; + min-width: 0; +} + +.deliv-description { + font-weight: 500; + color: var(--sg-text); + font-size: 14px; +} + +.deliv-meta { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin-top: 4px; + font-size: 12px; + align-items: center; + + .deliv-type { + padding: 1px 8px; + background: #f3e5f5; + border-radius: var(--sg-radius-sm); + color: #7b1fa2; + } + + .deliv-link { + display: inline-flex; + align-items: center; + gap: 4px; + color: var(--sg-primary, #0066cc); + text-decoration: none; + + &:hover { + text-decoration: underline; + } + + mat-icon { + width: 16px; + height: 16px; + font-size: 16px; + } + } +} +.deliverable-item { + flex-wrap: wrap; +} + +.card { + margin-bottom: 24px; + border-color: #d9e2f0 !important; + border-radius: var(--sg-radius-md) !important; +} + +.section-header { + display: flex; + align-items: center; + gap: 12px; + padding: 16px 20px; + border-bottom: 1px solid #e6e9ed; +} + +.section-header mat-icon { + color: var(--sg-text-muted); + width: 22px; + height: 22px; + font-size: 22px; +} + +.section-header h2 { + margin: 0; + font-size: 18px; + font-weight: 600; + color: var(--sg-text); +} diff --git a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.ts new file mode 100644 index 00000000..99fbd049 --- /dev/null +++ b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.ts @@ -0,0 +1,17 @@ +import { Component, inject } from '@angular/core'; +import { HEUDeliverable } from '../../../../api'; +import { Router } from '@angular/router'; +import { Input } from '@angular/core'; +import { MatIcon } from '@angular/material/icon'; +import { MatCard } from '@angular/material/card'; +@Component({ + selector: 'app-deliverables-cards', + imports: [MatIcon, MatCard], + templateUrl: './deliverables-cards.component.html', + styleUrl: './deliverables-cards.component.scss', +}) +export class DeliverablesCardsComponent { + @Input() deliverables: HEUDeliverable[] = []; + @Input() showHeader: boolean = true; + @Input() headerTitle: string = 'Deliverables'; +} 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 27dbfb7c..1aa56279 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 @@ -475,108 +475,20 @@ @if (activeTab === 'organizations' && euProject.organizations) { - + } @if (activeTab === 'publications' && euProject.publications) { - + } - @if (activeTab === 'iprs' && euProject.iprs) { -
- -
- gavel -

Intellectual Property Rights ({{ euProject.iprs.length }})

-
-
- @for (ipr of euProject.iprs; track ipr.title) { -
-
- @if (ipr.type === 'PATENT') { - emoji_events - } @else { - copyright - } -
-
-
{{ ipr.title || 'Ohne Titel' }}
-
- @if (ipr.type) { - {{ ipr.type }} - } - @if (ipr.patentType) { - {{ - ipr.patentType - }} - } - @if (ipr.applicantName) { - Applicant: {{ ipr.applicantName }} - } -
-
- @if (ipr.applicationIdentifier) { - App: {{ ipr.applicationIdentifier }} - } - @if (ipr.awardIdentifier) { - Award: {{ ipr.awardIdentifier }} - } -
-
-
- } -
-
-
+ } - @if (activeTab === 'deliverables' && notEmpty(euProject.deliverables)) { -
- -
- assignment -

Deliverables ({{ euProject.deliverables?.length }})

-
-
- @for (deliv of euProject.deliverables; track deliv.url) { -
-
- file_present -
-
-
- {{ deliv.description || 'Ohne Beschreibung' }} -
-
- @if (deliv.deliverableType) { - {{ - deliv.deliverableType - }} - } - @if (deliv.url) { - - open_in_new - Zum Deliverable - - } -
-
-
- } -
-
-
+ @if (activeTab === 'deliverables' && euProject.deliverables) { + } } @else { 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 91fa0a59..6559f75a 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 @@ -3,7 +3,6 @@ max-width: 100%; margin: 0 auto; } - .page-header { display: flex; align-items: center; @@ -11,32 +10,6 @@ gap: 18px; margin-bottom: 24px; } - -.back-link { - display: inline-flex; - align-items: center; - gap: 8px; - padding: 8px 16px; - border: 1px solid #d9e2f0; - border-radius: var(--sg-radius-sm); - background: #fff; - color: var(--sg-text); - cursor: pointer; - font-size: 14px; - transition: all 0.2s; -} - -.back-link:hover { - background: #f5f7fa; - border-color: #b8c5d6; -} - -.back-link mat-icon { - width: 20px; - height: 20px; - font-size: 20px; -} - .breadcrumb { display: flex; align-items: center; @@ -44,18 +17,15 @@ color: var(--sg-text-muted); font-size: 13px; } - .breadcrumb mat-icon { width: 18px; height: 18px; font-size: 18px; } - .breadcrumb span:last-child { color: var(--sg-text); font-weight: 500; } - .project-hero { background: #f8fafc; border: 1px solid #d9e2f0; @@ -63,11 +33,9 @@ padding: 28px 32px; margin-bottom: 28px; } - .hero-content { margin-bottom: 24px; } - .eyebrow { display: flex; align-items: center; @@ -75,7 +43,6 @@ margin-bottom: 12px; flex-wrap: wrap; } - .project-badge { display: inline-block; padding: 4px 12px; @@ -87,32 +54,10 @@ text-transform: uppercase; letter-spacing: 0.5px; } - .project-id { color: var(--sg-text-muted); font-size: 13px; } - -.project-rcn { - display: inline-block; - padding: 4px 10px; - background: #e8f0fe; - color: #1a73e8; - border-radius: var(--sg-radius-sm); - font-size: 12px; - font-weight: 500; -} - -.project-acronym { - display: inline-block; - padding: 4px 10px; - background: #fff3e0; - color: #e65100; - border-radius: var(--sg-radius-sm); - font-size: 12px; - font-weight: 600; -} - h1 { margin: 0 0 8px; font-size: 26px; @@ -120,34 +65,16 @@ h1 { font-weight: 700; color: var(--sg-text); } - .project-framework { margin: 0 0 16px; color: var(--sg-text-muted); font-size: 14px; } - -.framework-tag { - display: inline-block; - padding: 2px 10px; - background: #e8edf5; - border-radius: var(--sg-radius-sm); - color: var(--sg-text); - font-weight: 500; - cursor: pointer; - transition: all 0.2s; -} - -.framework-tag:hover { - background: #d5dde8; -} - .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; } - .status-badge { display: inline-flex; align-items: center; @@ -160,18 +87,15 @@ h1 { cursor: pointer; transition: all 0.2s; } - .status-badge:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } - .status-badge mat-icon { width: 16px; height: 16px; font-size: 16px; } - .scheme-info { display: inline-flex; align-items: center; @@ -185,19 +109,16 @@ h1 { cursor: pointer; transition: all 0.2s; } - .scheme-info:hover { background: #f5f7fa; border-color: #b8c5d6; } - .scheme-info mat-icon { color: var(--sg-text-muted); width: 18px; height: 18px; font-size: 18px; } - .doi-link { display: inline-flex; align-items: center; @@ -211,17 +132,14 @@ h1 { font-size: 13px; transition: all 0.2s; } - .doi-link:hover { background: #d5e3fa; } - .doi-link mat-icon { width: 18px; height: 18px; font-size: 18px; } - .metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); @@ -229,68 +147,54 @@ h1 { padding-top: 20px; border-top: 1px solid #d9e2f0; } - .metric-item { display: flex; align-items: center; gap: 12px; } - .metric-item mat-icon { color: var(--sg-text-muted); width: 24px; height: 24px; font-size: 24px; } - .metric-content { display: flex; flex-direction: column; } - .metric-content strong { font-size: 15px; color: var(--sg-text); line-height: 1.3; } - .metric-content span { font-size: 12px; color: var(--sg-text-muted); } - .card { margin-bottom: 24px; border-color: #d9e2f0 !important; border-radius: var(--sg-radius-md) !important; } - -.card ::ng-deep .mat-mdc-card-content { - padding: 0; +.section-header { + display: flex; + align-items: center; + gap: 12px; + padding: 16px 20px; + border-bottom: 1px solid #e6e9ed; } - - .section-header { - display: flex; - align-items: center; - gap: 12px; - padding: 16px 20px; - border-bottom: 1px solid #e6e9ed; - } - .section-header mat-icon { color: var(--sg-text-muted); width: 22px; height: 22px; font-size: 22px; } - .section-header h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--sg-text); } - .count-badge { display: inline-flex; align-items: center; @@ -305,7 +209,6 @@ h1 { font-size: 12px; font-weight: 500; } - .description-text { padding: 16px 20px 20px; margin: 0; @@ -313,32 +216,23 @@ h1 { font-size: 14px; line-height: 1.6; } - .content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; } - -.main-content { - display: flex; - flex-direction: column; - gap: 24px; -} - +.main-content, .sidebar { display: flex; flex-direction: column; gap: 24px; } - .topics-grid { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 16px 20px 20px; } - .topic-item { display: flex; align-items: center; @@ -350,19 +244,16 @@ h1 { cursor: pointer; transition: all 0.2s; } - .topic-item:hover { background: #f8fafc; border-color: #b8c5d6; transform: translateY(-1px); } - .topic-value { color: var(--sg-text); font-size: 13px; word-break: break-word; } - .topic-item .search-icon { color: var(--sg-text-muted); width: 18px; @@ -371,32 +262,19 @@ h1 { opacity: 0; transition: opacity 0.2s; } - .topic-item:hover .search-icon { opacity: 1; } - .interest-tags { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 20px 12px; } -.interest-tags .interest-empty { - padding: 9px 16px; - border: 1px solid #e2e8f0; - border-style: dashed; - border-radius: 7px; - color: var(--sg-text-muted); - font-size: 13px; - font-weight: 600; -} - .details-list { margin: 0; padding: 16px 20px 20px; } - .detail-row { display: grid; grid-template-columns: 140px 1fr; @@ -404,17 +282,14 @@ h1 { padding: 8px 0; border-bottom: 1px solid #f0f2f5; } - .detail-row:last-child { - border-bottom: none; + border-bottom: 0; } - .detail-row dt { color: var(--sg-text-muted); font-size: 13px; font-weight: 500; } - .detail-row dd { margin: 0; color: var(--sg-text); @@ -424,20 +299,17 @@ h1 { align-items: center; gap: 6px; } - .detail-row dd.clickable { cursor: pointer; transition: color 0.2s; } - .detail-row dd.clickable:hover { color: var(--sg-primary, #0066cc); } - -.detail-row dd.clickable:hover .search-icon { +.detail-row dd.clickable:hover .search-icon, +.detail-row dd:hover .search-icon { opacity: 1; } - .search-icon { width: 16px; height: 16px; @@ -446,11 +318,6 @@ h1 { transition: opacity 0.2s; color: var(--sg-text-muted); } - -.detail-row dd:hover .search-icon { - opacity: 1; -} - .status-indicator { display: inline-block; padding: 2px 10px; @@ -461,11 +328,9 @@ h1 { cursor: pointer; transition: all 0.2s; } - .status-indicator:hover { transform: scale(1.05); } - .external-link { display: inline-flex; align-items: center; @@ -474,24 +339,15 @@ h1 { text-decoration: none; word-break: break-all; } - .external-link:hover { text-decoration: underline; } - -.external-link .external-icon { - width: 16px; - height: 16px; - font-size: 16px; -} - .error-container { display: flex; align-items: center; justify-content: center; min-height: 400px; } - .error-state { display: flex; flex-direction: column; @@ -499,77 +355,60 @@ h1 { gap: 12px; color: var(--sg-text-muted); } - .error-state mat-icon { width: 48px; height: 48px; font-size: 48px; color: #e74c3c; } - .error-state p { margin: 0; font-size: 16px; } - @media (max-width: 1116px) { .content-grid { grid-template-columns: 1fr; gap: 20px; } } - @media (max-width: 768px) { .detail-page { padding: 16px; } - .page-header { flex-direction: column; align-items: flex-start; gap: 12px; } - .project-hero { padding: 20px; } - .metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; } - h1 { font-size: 22px; } - .detail-row { grid-template-columns: 1fr; gap: 4px; } - .eyebrow { gap: 8px; } - - .topics-grid { - grid-template-columns: 1fr; - } - + .topics-grid, .interest-tags { grid-template-columns: 1fr; } } - @media (max-width: 480px) { .metrics-grid { grid-template-columns: 1fr; } - .hero-actions { flex-direction: column; } - .status-badge, .scheme-info, .doi-link { @@ -577,7 +416,7 @@ h1 { justify-content: center; } } -// Program badges + .program-badge { display: inline-block; padding: 4px 12px; @@ -586,24 +425,20 @@ h1 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; - - &.fp7 { - background: #e8eaf6; - color: #283593; - } - - &.h2020 { - background: #e3f2fd; - color: #0d47a1; - } - - &.heu { - background: #e8f5e9; - color: #1b5e20; - } +} +.program-badge.fp7 { + background: #e8eaf6; + color: #283593; +} +.program-badge.h2020 { + background: #e3f2fd; + color: #0d47a1; +} +.program-badge.heu { + background: #e8f5e9; + color: #1b5e20; } -// Tabs .tabs-container { display: flex; gap: 4px; @@ -614,14 +449,13 @@ h1 { border: 1px solid #d9e2f0; overflow-x: auto; } - .tab-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; - background: transparent; - border: none; + background: 0 0; + border: 0; border-radius: var(--sg-radius-sm); color: var(--sg-text-muted); font-size: 14px; @@ -629,25 +463,21 @@ h1 { cursor: pointer; transition: all 0.2s; white-space: nowrap; - - &:hover { - background: rgba(0, 0, 0, 0.04); - color: var(--sg-text); - } - - &.active { - background: #fff; - color: var(--sg-primary, #0066cc); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); - } - - mat-icon { - width: 20px; - height: 20px; - font-size: 20px; - } } - +.tab-btn:hover { + background: rgba(0, 0, 0, 0.04); + color: var(--sg-text); +} +.tab-btn.active { + background: #fff; + color: var(--sg-primary, #0066cc); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); +} +.tab-btn mat-icon { + width: 20px; + height: 20px; + font-size: 20px; +} .tab-badge { display: inline-flex; align-items: center; @@ -661,11 +491,9 @@ h1 { font-size: 11px; font-weight: 600; } - .tab-content { animation: fadeIn 0.3s ease; } - @keyframes fadeIn { from { opacity: 0; @@ -676,279 +504,12 @@ h1 { transform: translateY(0); } } -// Publications -.publications-list { - padding: 16px 20px 20px; - display: flex; - flex-direction: column; - gap: 12px; -} - -.publication-item { - display: flex; - align-items: flex-start; - gap: 16px; - padding: 14px 16px; - border: 1px solid #d9e2f0; - border-radius: var(--sg-radius-sm); - background: #fff; - transition: all 0.2s; - - &:hover { - background: #f8fafc; - } -} - -.pub-icon { - flex-shrink: 0; - color: var(--sg-text-muted); - - mat-icon { - width: 24px; - height: 24px; - font-size: 24px; - } -} - -.pub-info { - flex: 1; - min-width: 0; -} - -.pub-title { - font-weight: 500; - color: var(--sg-text); - font-size: 14px; -} - -.pub-authors { - color: var(--sg-text-muted); - font-size: 13px; - margin-top: 2px; -} - -.pub-meta { - display: flex; - flex-wrap: wrap; - gap: 8px; - margin-top: 4px; - font-size: 12px; - color: var(--sg-text-muted); - - .pub-journal { - color: var(--sg-text); - } - - .pub-year, - .pub-publisher { - color: var(--sg-text-muted); - } -} - -.pub-actions { - display: flex; - gap: 8px; - flex-shrink: 0; - - .pub-link { - display: flex; - align-items: center; - justify-content: center; - width: 32px; - height: 32px; - border-radius: var(--sg-radius-sm); - color: var(--sg-text-muted); - transition: all 0.2s; - - &:hover { - background: #e8edf5; - color: var(--sg-primary, #0066cc); - } - - mat-icon { - width: 18px; - height: 18px; - font-size: 18px; - } - } -} - -// IPRs -.iprs-list { - padding: 16px 20px 20px; - display: flex; - flex-direction: column; - gap: 12px; -} - -.ipr-item { - cursor: pointer; - display: flex; - align-items: flex-start; - gap: 16px; - padding: 14px 16px; - border: 1px solid #d9e2f0; - border-radius: var(--sg-radius-sm); - background: #fff; - transition: all 0.2s; - - &:hover { - background: #f8fafc; - } -} - -.ipr-icon { - flex-shrink: 0; - color: #f39c12; - - mat-icon { - width: 24px; - height: 24px; - font-size: 24px; - } -} - -.ipr-info { - flex: 1; - min-width: 0; -} - -.ipr-title { - font-weight: 500; - color: var(--sg-text); - font-size: 14px; -} - -.ipr-details { - display: flex; - flex-wrap: wrap; - gap: 8px; - margin-top: 4px; - font-size: 12px; - - .ipr-type { - padding: 1px 8px; - background: #fff3e0; - border-radius: var(--sg-radius-sm); - color: #e65100; - font-weight: 500; - } - - .ipr-patent-type { - padding: 1px 8px; - background: #e8eaf6; - border-radius: var(--sg-radius-sm); - color: #283593; - } - - .ipr-applicant { - color: var(--sg-text-muted); - } -} - -.ipr-identifiers { - display: flex; - flex-wrap: wrap; - gap: 8px; - margin-top: 4px; - font-size: 11px; - color: var(--sg-text-muted); - - .ipr-app-id, - .ipr-award-id { - padding: 1px 8px; - background: #f5f7fa; - border-radius: var(--sg-radius-sm); - } -} - -// Deliverables -.deliverables-list { - padding: 16px 20px 20px; - display: flex; - flex-direction: column; - gap: 12px; -} - -.deliverable-item { - display: flex; - align-items: flex-start; - gap: 16px; - padding: 14px 16px; - border: 1px solid #d9e2f0; - border-radius: var(--sg-radius-sm); - background: #fff; - transition: all 0.2s; - - &:hover { - background: #f8fafc; - } -} - -.deliv-icon { - flex-shrink: 0; - color: #7b1fa2; - - mat-icon { - width: 24px; - height: 24px; - font-size: 24px; - } -} - -.deliv-info { - flex: 1; - min-width: 0; -} - -.deliv-description { - font-weight: 500; - color: var(--sg-text); - font-size: 14px; -} - -.deliv-meta { - display: flex; - flex-wrap: wrap; - gap: 8px; - margin-top: 4px; - font-size: 12px; - align-items: center; - - .deliv-type { - padding: 1px 8px; - background: #f3e5f5; - border-radius: var(--sg-radius-sm); - color: #7b1fa2; - } - - .deliv-link { - display: inline-flex; - align-items: center; - gap: 4px; - color: var(--sg-primary, #0066cc); - text-decoration: none; - - &:hover { - text-decoration: underline; - } - - mat-icon { - width: 16px; - height: 16px; - font-size: 16px; - } - } -} - -// EuroSciVoc .eurosci-voc-grid { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; } - .eurosci-voc-item { display: flex; align-items: center; @@ -959,13 +520,11 @@ h1 { border-radius: 8px; flex-wrap: wrap; } - .eurosci-voc-item.clickable:hover { background: #f0f3f7; border-color: #b8c5d6; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); } - .eurosci-voc-item .voc-path { display: flex; align-items: center; @@ -974,7 +533,6 @@ h1 { flex: 1; min-width: 200px; } - .eurosci-voc-item .path-segment { font-size: 13px; font-weight: 500; @@ -984,21 +542,18 @@ h1 { background: #fff; border: 1px solid #e6e9ed; } - .eurosci-voc-item .path-segment:last-child { background: #e8f0fe; border-color: #c5d8f0; color: #005a9c; font-weight: 600; } - .eurosci-voc-item .path-separator { width: 16px; height: 16px; font-size: 16px; color: #6b7a8a; } - .eurosci-voc-item .voc-code { font-size: 12px; color: #6b7a8a; @@ -1008,102 +563,18 @@ h1 { border-radius: 4px; white-space: nowrap; } - .eurosci-voc-item .voc-description { font-size: 13px; color: #6b7a8a; font-style: italic; } -// Alternative: Horizontal chip-style layout -.eurosci-voc-grid-chips { - display: flex; - flex-wrap: wrap; - gap: 8px; - padding: 16px 20px 20px; -} - -.eurosci-voc-chip { - display: inline-flex; - align-items: center; - gap: 6px; - padding: 6px 12px; - background: #f8fafc; - border: 1px solid #e6e9ed; - border-radius: 20px; - font-size: 13px; -} - -.eurosci-voc-chip:hover { - background: #f0f3f7; - border-color: #b8c5d6; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); -} - -.eurosci-voc-chip .chip-path { - display: flex; - align-items: center; - gap: 4px; -} - -.eurosci-voc-chip .chip-segment { - font-weight: 500; -} - -.eurosci-voc-chip .chip-separator { - font-size: 12px; - color: #6b7a8a; -} - -.eurosci-voc-chip .chip-segment:last-child { - color: #005a9c; -} - -// Responsive -@media (max-width: 768px) { - .eurosci-voc-item { - flex-direction: column; - align-items: flex-start; - gap: 8px; - } - - .eurosci-voc-item .voc-path { - min-width: 100%; - } - - .eurosci-voc-item .search-icon { - opacity: 1; - align-self: flex-end; - } - - .eurosci-voc-item .path-segment { - font-size: 12px; - } -} - -@media (max-width: 480px) { - .eurosci-voc-item { - padding: 10px 12px; - } - - .eurosci-voc-item .path-segment { - font-size: 11px; - padding: 1px 6px; - } - - .eurosci-voc-item .voc-code { - font-size: 10px; - } -} - -// ERC PIs .erc-pi-list { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; } - .erc-pi-item { display: flex; align-items: center; @@ -1112,46 +583,61 @@ h1 { background: #f8fafc; border-radius: var(--sg-radius-sm); border: 1px solid #d9e2f0; - - .pi-name { - font-weight: 500; - color: var(--sg-text); - font-size: 14px; - } - - .pi-title { - color: var(--sg-text-muted); - font-size: 13px; - } +} +.erc-pi-item .pi-name { + font-weight: 500; + color: var(--sg-text); + font-size: 14px; +} +.erc-pi-item .pi-title { + color: var(--sg-text-muted); + font-size: 13px; } -// Responsive @media (max-width: 992px) { .eurosci-voc-grid { grid-template-columns: 1fr; } } - @media (max-width: 768px) { .tabs-container { gap: 2px; padding: 0 2px; } - .tab-btn { padding: 8px 12px; font-size: 12px; - - mat-icon { - width: 16px; - height: 16px; - font-size: 16px; - } } - - .publication-item, - .ipr-item, - .deliverable-item { - flex-wrap: wrap; + .tab-btn mat-icon { + width: 16px; + height: 16px; + font-size: 16px; + } + .eurosci-voc-item { + flex-direction: column; + align-items: flex-start; + gap: 8px; + } + .eurosci-voc-item .voc-path { + min-width: 100%; + } + .eurosci-voc-item .search-icon { + opacity: 1; + align-self: flex-end; + } + .eurosci-voc-item .path-segment { + font-size: 12px; + } +} +@media (max-width: 480px) { + .eurosci-voc-item { + padding: 10px 12px; + } + .eurosci-voc-item .path-segment { + font-size: 11px; + padding: 1px 6px; + } + .eurosci-voc-item .voc-code { + font-size: 10px; } } 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 f3c66591..dc584171 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 @@ -16,8 +16,9 @@ import { import { EuProjectData } from '../../../api/model/euProjectData'; import { TopicChipComponent } from '../../../shared/ui/topic-chip/topic-chip.component'; import { OrganizationsTableComponent } from './organizations-table/organizations-table/organizations-table.component'; -import { Fp7ProjectIPR } from '../../../api'; import { PublicationsTableComponent } from './publications-table/publications-table.component'; +import { PatentsCardsComponent } from './patents-cards/patents-cards.component'; +import { DeliverablesCardsComponent } from './deliverables-cards/deliverables-cards.component'; export type TabType = | 'overview' | 'organizations' @@ -39,6 +40,8 @@ export type TabType = TopicChipComponent, OrganizationsTableComponent, PublicationsTableComponent, + PatentsCardsComponent, + DeliverablesCardsComponent, ], templateUrl: './eu-details.component.html', styleUrl: './eu-details.component.scss', @@ -488,12 +491,4 @@ export class EuDetailsComponent implements OnInit, OnDestroy { } // ============= SEARCH / NAVIGATION METHODS ============= - - searchForPatent(patent: Fp7ProjectIPR): void { - this.router.navigate(['/patents'], { - queryParams: { - search: patent.title, - }, - }); - } } diff --git a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.html b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.html new file mode 100644 index 00000000..8da21925 --- /dev/null +++ b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.html @@ -0,0 +1,49 @@ +
+ +
+ gavel +

Intellectual Property Rights ({{ patents.length }})

+
+
+ @for (ipr of patents; track ipr.title) { +
+
+ @if (ipr.type === 'PATENT') { + emoji_events + } @else { + copyright + } +
+
+
{{ ipr.title || 'Ohne Titel' }}
+
+ @if (ipr.type) { + {{ ipr.type }} + } + @if (ipr.patentType) { + {{ ipr.patentType }} + } + @if (ipr.applicantName) { + Applicant: {{ ipr.applicantName }} + } +
+
+ @if (ipr.applicationIdentifier) { + App: {{ ipr.applicationIdentifier }} + } + @if (ipr.awardIdentifier) { + Award: {{ ipr.awardIdentifier }} + } +
+
+
+ } +
+
+
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 new file mode 100644 index 00000000..43846f9a --- /dev/null +++ b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss @@ -0,0 +1,113 @@ +.section-header { + display: flex; + align-items: center; + gap: 12px; + padding: 16px 20px; + border-bottom: 1px solid #e6e9ed; +} + +.section-header mat-icon { + color: var(--sg-text-muted); + width: 22px; + height: 22px; + font-size: 22px; +} + +.section-header h2 { + margin: 0; + font-size: 18px; + font-weight: 600; + color: var(--sg-text); +} +// IPRs +.iprs-list { + padding: 16px 20px 20px; + display: flex; + flex-direction: column; + gap: 12px; +} + +.ipr-item { + cursor: pointer; + display: flex; + align-items: flex-start; + gap: 16px; + padding: 14px 16px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + transition: all 0.2s; + + &:hover { + background: #f8fafc; + } +} + +.ipr-icon { + flex-shrink: 0; + color: #f39c12; + + mat-icon { + width: 24px; + height: 24px; + font-size: 24px; + } +} + +.ipr-info { + flex: 1; + min-width: 0; +} + +.ipr-title { + font-weight: 500; + color: var(--sg-text); + font-size: 14px; +} + +.ipr-details { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin-top: 4px; + font-size: 12px; + + .ipr-type { + padding: 1px 8px; + background: #fff3e0; + border-radius: var(--sg-radius-sm); + color: #e65100; + font-weight: 500; + } + + .ipr-patent-type { + padding: 1px 8px; + background: #e8eaf6; + border-radius: var(--sg-radius-sm); + color: #283593; + } + + .ipr-applicant { + color: var(--sg-text-muted); + } +} + +.ipr-identifiers { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin-top: 4px; + font-size: 11px; + color: var(--sg-text-muted); + + .ipr-app-id, + .ipr-award-id { + padding: 1px 8px; + background: #f5f7fa; + border-radius: var(--sg-radius-sm); + } +} + +.ipr-item { + flex-wrap: wrap; +} diff --git a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.ts new file mode 100644 index 00000000..1d8f46ac --- /dev/null +++ b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.ts @@ -0,0 +1,25 @@ +import { Component, inject } from '@angular/core'; +import { Fp7ProjectIPR } from '../../../../api'; +import { Router } from '@angular/router'; +import { Input } from '@angular/core'; +import { MatIcon } from '@angular/material/icon'; +import { MatCard } from '@angular/material/card'; +@Component({ + selector: 'app-patents-cards', + imports: [MatIcon, MatCard], + templateUrl: './patents-cards.component.html', + styleUrl: './patents-cards.component.scss', +}) +export class PatentsCardsComponent { + @Input() patents: Fp7ProjectIPR[] = []; + @Input() showHeader: boolean = true; + @Input() headerTitle: string = 'IPRs'; + private router = inject(Router); + searchForPatent(patent: Fp7ProjectIPR): void { + this.router.navigate(['/patents'], { + queryParams: { + search: patent.title, + }, + }); + } +} 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 f84c64b4..cc50153b 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 @@ -231,3 +231,6 @@ } } } +.deliverable-item { + flex-wrap: wrap; +}