Skip to content

Commit b1767fc

Browse files
author
Markus Guder
committed
Add nav button
1 parent 46ec4d0 commit b1767fc

2 files changed

Lines changed: 34 additions & 15 deletions

File tree

client/app/components/home/singlecourse/singlecourse.component.html

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,40 @@
1111
</div>
1212
</div>
1313

14-
<div class="column is-12" *ngIf="dataIsAvailable" style="z-index: 0; padding: 1rem;">
15-
<div>
16-
<i class="fa fa-clock-o info-icon"></i>
17-
<p style="color:white">Beginn: {{singleCourse.KURS_BEGINN_UHRZEIT}}</p>
18-
</div>
19-
<div>
20-
<i class="fa fa-map-marker info-icon"></i>
21-
<p style="color:white">Ort: {{singleCourse.location.ORT_STRASSE}}, {{singleCourse.location.ORT_PLZ}} {{singleCourse.location.ORT_ORTSNAME}}</p>
22-
</div>
23-
<div>
24-
<i class="fa fa-user info-icon"></i>
25-
<p style="color:white">Veranstalter: {{singleCourse.KURS_REFERENT_ID}}</p>
14+
<section style="padding: 1rem; margin-top: -2rem; padding-top: 1rem; padding-bottom: 0rem;" *ngIf="dataIsAvailable">
15+
<div class="card" style="padding:1rem;">
16+
<div>
17+
<i class="fa fa-clock-o info-icon" style="color:black"></i>
18+
<p>Beginn: {{singleCourse.KURS_BEGINN_UHRZEIT}}</p>
19+
</div>
20+
<div>
21+
<i class="fa fa-map-marker info-icon" style="color:black"></i>
22+
<p>Ort: {{singleCourse.location.ORT_STRASSE}}, {{singleCourse.location.ORT_PLZ}}
23+
{{singleCourse.location.ORT_ORTSNAME}}</p>
24+
</div>
25+
<div>
26+
<i class="fa fa-user info-icon" style="color:black"></i>
27+
<p>Veranstalter: {{singleCourse.KURS_REFERENT_ID}}</p>
28+
</div>
2629
</div>
27-
</div>
30+
<a class="button is-fullwidth is-primary nav-button"
31+
[attr.href]="'http://maps.google.com/?q= '
32+
+ singleCourse.location.ORT_STRASSE + ', '
33+
+ singleCourse.location.ORT_ORTSNAME + ', '
34+
+ singleCourse.location.ORT_PLZ">
35+
<i class="fa fa-location-arrow" aria-hidden="true"></i>
36+
</a>
37+
</section>
2838

29-
<div class="column is-12" *ngIf="showButton">
39+
<div class="column is-12" *ngIf="showButton" style="padding-top: 1.5rem; padding-bottom: 1.5rem;">
3040
<a #button class="button is-fullwidth is-primary" (click)="apply()" *ngIf="!alreadyApplied">{{button_text}}</a>
3141
<a #button class="button is-fullwidth is-danger" (click)="signOff()" *ngIf="alreadyApplied">{{button_text}}</a>
3242
</div>
3343

3444
<div class="column" style="margin-top: -2rem;padding: 1rem;">
3545
<alert></alert>
3646
</div>
37-
47+
3848

3949
<section style="padding: 1rem; margin-top: -2rem;" *ngIf="dataIsAvailable && moreInfo">
4050
<div class="card" style="padding:1rem;" (click)="moreInfo = false">

client/app/components/home/singlecourse/singlecourse.component.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,13 @@
6969
color:white;
7070
margin-right: 0.7rem;
7171
margin-top: 0.2rem;
72+
}
73+
74+
.nav-button{
75+
border-radius: 3rem;
76+
width: 2.5rem;
77+
height: 2.5rem;
78+
float: right;
79+
margin-top: -1.5rem;
80+
margin-right: 1rem;
7281
}

0 commit comments

Comments
 (0)