-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23776ed
commit 1caf4d0
Showing
26 changed files
with
831 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
frontend/src/app/syntheseModule/taxon-sheet/indicator/indicator.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div [className]="small ? 'card Indicator Indicator--small' : 'card Indicator'"> | ||
<mat-icon class="Indicator__icon">{{ indicator.matIcon }}</mat-icon> | ||
<span class="Indicator__value">{{ indicator.value }}</span> | ||
<span class="Indicator__name text-secondary">{{ indicator.name }}</span> | ||
</div> |
47 changes: 47 additions & 0 deletions
47
frontend/src/app/syntheseModule/taxon-sheet/indicator/indicator.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.Indicator { | ||
display: flex; | ||
flex-flow: column; | ||
align-items: center; | ||
justify-content: center; | ||
row-gap: 0rem; | ||
padding: 1rem; | ||
height: 9rem; | ||
width: auto; | ||
min-width: 12rem; | ||
&__icon { | ||
$icon-size: 2rem; | ||
font-size: $icon-size; | ||
height: $icon-size; | ||
width: $icon-size; | ||
min-height: $icon-size; | ||
} | ||
&__value { | ||
font-size: 1.5rem; | ||
white-space: nowrap; | ||
&Unit { | ||
opacity: 0.5; | ||
} | ||
} | ||
&__name { | ||
font-size: 1rem; | ||
text-align: center; | ||
} | ||
} | ||
|
||
.Indicator--small { | ||
border: none; | ||
height: auto; | ||
.Indicator__icon { | ||
$icon-size: 1.5rem; | ||
font-size: $icon-size; | ||
height: $icon-size; | ||
width: $icon-size; | ||
min-height: $icon-size; | ||
} | ||
.Indicator__value { | ||
font-size: 1.3rem; | ||
} | ||
.Indicator__name { | ||
font-size: 1rem; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
frontend/src/app/syntheseModule/taxon-sheet/indicator/indicator.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
import { Indicator } from './indicator'; | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'indicator', | ||
templateUrl: 'indicator.component.html', | ||
styleUrls: ['indicator.component.scss'], | ||
imports: [MatIconModule], | ||
}) | ||
export class IndicatorComponent { | ||
@Input() | ||
indicator: Indicator; | ||
|
||
@Input() | ||
small: boolean = false; | ||
} |
Oops, something went wrong.