Skip to content

Commit fe7b968

Browse files
committed
Add show all button
1 parent 1023913 commit fe7b968

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/app/components/for-you-page/for-you-page.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ <h1 class="text-center mt-2 text-2xl font-bold">Für dich vorgeschlagene Aktivit
77
<app-activity-card [activity]="activity"></app-activity-card>
88
}
99
</div>
10-
<div class="flex justify-center items-center mt-2 mb-2">
10+
<div class="flex flex-col justify-center items-center mt-2 mb-2">
1111
<button type="button" class="btn btn-margin" (click)="doReshuffle()">
1212
<i class="bi bi-shuffle"></i>
1313
Neue Vorschläge
1414
</button>
15+
<button type="button" class="btn btn-margin" routerLink="/search-result">Alle anzeigen</button>
1516
</div>
1617
} @else {
1718
<div class="d-flex justify-content-center align-items-center" style="height: 80vh;">

src/app/components/for-you-page/for-you-page.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import { Activity } from '../../types/activity.interface';
33
import { AirtableService } from '../../services/airtable.service';
44
import { ActivityCardComponent } from '../activity-card/activity-card.component';
55
import { NgIf } from '@angular/common';
6-
import { ActivatedRoute, Router } from '@angular/router';
6+
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
77

88
@Component({
99
selector: 'app-for-you-page',
1010
standalone: true,
1111
imports: [
1212
ActivityCardComponent,
13-
NgIf
13+
NgIf,
14+
RouterLink
1415
],
1516
templateUrl: './for-you-page.component.html',
1617
styleUrl: './for-you-page.component.scss'

0 commit comments

Comments
 (0)