Skip to content

Commit

Permalink
feat: style link like a back button
Browse files Browse the repository at this point in the history
  • Loading branch information
hassmal committed Sep 3, 2024
1 parent 828a5d2 commit bc0a51e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
14 changes: 8 additions & 6 deletions src/app/plain-language/plain-language.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ import {Location, NgOptimizedImage} from "@angular/common";
],
template: `
<div class="d-flex flex-column px-4">
<a class="back-link" href="#" (click)="location.back()">
<img ngSrc="../../assets/back-blue.svg" class="back-btn" aria-hidden="true" width="width" height="height" alt="chevron-left">
{{ 'accessibility.plainLanguage.backToTheFuture' | translate }}
</a>
<h2 class="mt-4">{{ 'accessibility.plainLanguage.header' | translate }}</h2>
<h2>{{ 'accessibility.plainLanguage.header' | translate }}</h2>
<p class="multiline">{{ 'accessibility.plainLanguage.content' | translate }}</p>
<h3>{{ 'accessibility.plainLanguage.about.header' | translate }}</h3>
<p class="multiline">{{ 'accessibility.plainLanguage.about.content' | translate }}</p>
Expand All @@ -27,8 +23,14 @@ import {Location, NgOptimizedImage} from "@angular/common";
: {{ 'accessibility.plainLanguage.howto.steps.' + step + '.header' | translate }}</h4>
<p class="multiline" [innerHTML]="'accessibility.plainLanguage.howto.steps.' + step + '.content' | translate"></p>
}
<h3>{{ 'accessibility.plainLanguage.declarationOnAccessibility.header' | translate }}</h3>
<p class="multiline" [innerHTML]="'accessibility.plainLanguage.declarationOnAccessibility.content' | translate"></p>
<p class="multiline mb-4" [innerHTML]="'accessibility.plainLanguage.declarationOnAccessibility.content' | translate"></p>
<a class="back-link btn btn-secondary btn-with-image w-100 d-flex justify-content-between" href="#" (click)="location.back()">
<img ngSrc="../../assets/back.svg" class="back-btn" aria-hidden="true" width="width" height="2.75rem" alt="chevron-left">
{{ 'accessibility.plainLanguage.backToTheFuture' | translate }}
<div class="hidden"></div>
</a>
</div>
`,
styleUrl: './plain-language.component.scss'
Expand Down
14 changes: 8 additions & 6 deletions src/app/sign-language/sign-language.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ import {DGoLiveVideoPlayerComponent} from "../shared/components/video-player/d-g
],
template: `
<div class="d-flex flex-column px-4">
<a class="back-link" href="#" (click)="location.back()">
<img ngSrc="../../assets/back-blue.svg" class="back-btn" aria-hidden="true" width="width" height="height"
alt="chevron-left">
{{ 'accessibility.signLanguage.backToTheFuture' | translate }}
</a>
<h2 class="mt-4">{{ 'accessibility.signLanguage.header' | translate }}</h2>
<h2>{{ 'accessibility.signLanguage.header' | translate }}</h2>
<p>{{ 'accessibility.signLanguage.content' | translate }}</p>
@for (video of videos; track video) {
Expand All @@ -29,6 +24,13 @@ import {DGoLiveVideoPlayerComponent} from "../shared/components/video-player/d-g
<app-video-player [src]="video.src" [title]="video.titleTranslateString | translate"></app-video-player>
</div>
}
<a class="back-link btn btn-secondary btn-with-image w-100 d-flex justify-content-between" href="#" (click)="location.back()">
<img ngSrc="../../assets/back.svg" class="back-btn" aria-hidden="true" width="width" height="height"
alt="chevron-left">
{{ 'accessibility.signLanguage.backToTheFuture' | translate }}
<div class="hidden"></div>
</a>
</div>
`,
styleUrl: './sign-language.component.scss'
Expand Down
14 changes: 0 additions & 14 deletions src/assets/back-blue.svg

This file was deleted.

0 comments on commit bc0a51e

Please sign in to comment.