Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1>Icon Library</h1>
<p class="description">
Browse the Reactome icon library. Icons are used in Enhanced High Level Diagrams (EHLDs)
to represent biological entities and concepts.
to represent biological entities and concepts. Or take a look at the <a class="figma-link" href="https://www.figma.com/design/5M1QcYKfAsp87nvoJINxM8/Reactome-Icon-Library--Community-?node-id=236-2098&t=fLQHQc4bpMX4fcQt-0" target="_blank">Figma</a>!
</p>
</header>

Expand Down Expand Up @@ -90,7 +90,7 @@ <h1>Icon Library</h1>
@for (icon of icons; track icon.stId) {
<button class="icon-card" (click)="openDetail(icon)">
<div class="icon-preview">
<img [src]="iconSvgUrl(icon)" [alt]="icon.iconName || icon.name" loading="lazy" (error)="onImgError($event)" />
<img [src]="iconSvgUrl(icon)" [alt]="icon.iconName || icon.name" loading="lazy" (error)="onImgError($event)" width="250" height="auto"/>
</div>
<span class="icon-name">{{ icon.iconName || icon.name }}</span>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
margin: 0;
max-width: 640px;
}

.figma-link {
text-decoration: underline;
cursor: pointer;
}
}

// Search bar
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Subject } from 'rxjs';
import { debounceTime, distinctUntilChanged, takeUntil } from 'rxjs/operators';
import { PageLayoutComponent } from '../../page-layout/page-layout.component';
Expand Down Expand Up @@ -49,7 +49,7 @@ interface ParsedReference {

@Component({
selector: 'app-icon-lib',
imports: [PageLayoutComponent],
imports: [PageLayoutComponent, RouterLink],
templateUrl: './icon-lib.component.html',
styleUrl: './icon-lib.component.scss'
})
Expand Down
Loading