Forked from HYCAR-Hydro / airGR
Source project has a limited visibility.
calculator-list.component.html 2.15 KiB
<div class="container" fxLayout="row wrap" fxLayoutAlign="space-evenly stretch">
    <mat-card class="welcome-card" *ngIf="nbOpenCalculators === 0">
        <mat-card-header>
            <mat-card-title>{{ uitextWelcomeTitle }}</mat-card-title>
            <mat-card-subtitle>{{ uitextWelcomeSubtitle }}</mat-card-subtitle>
        </mat-card-header>
        <mat-card-content [innerHTML]="uitextWelcomeContent">
        </mat-card-content>
        <a href="https://www.afbiodiversite.fr" target="_blank"><img mat-card-image src="assets/images/logo_afb_m.png"></a>
        <a href="https://g-eau.fr" target="_blank"><img mat-card-image src="assets/images/logo_geau_m.png"></a>
        <mat-card-actions>
            <div class="container" fxLayout="column" fxLayoutAlign="left" fxLayoutGap="10px">
                <button mat-raised-button color="accent" class="theme-calculator"></button>
            </div>
        </mat-card-actions>
    </mat-card>
    <mat-card *ngFor="let theme of items" class="compute-nodes-theme">
        <mat-card-header>
            <!-- <img mat-card-avatar src="https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-12/256/water-wave.png"> -->
            <mat-card-title>{{ theme.title }}</mat-card-title>
            <!-- <mat-card-subtitle>{{ theme.description }}</mat-card-subtitle> -->
        </mat-card-header>
        <div class="mat-card-image-overlay-container">
            <img mat-card-image [src]="theme.image.path">
            <div class="mat-card-image-overlay">
                <div class="theme-image-credits">
                    {{ theme.image.credits }}
                </div>
            </div>
        </div>
        <mat-card-content>
            <p>{{ theme.description }}</p>
        </mat-card-content>
        <mat-card-actions>
            <div class="container" fxLayout="column" fxLayoutAlign="left" fxLayoutGap="10px">
                <button mat-raised-button color="accent" *ngFor="let calc of theme.calculators" class="theme-calculator"
                    (click)="create(calc.type)" [innerHTML]="calc.label" [id]="calc.buttonId"></button>
            </div>
        </mat-card-actions>
    </mat-card>
</div>