Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit 20ffff2

Browse files
committed
some improvements
1 parent c1b7fc1 commit 20ffff2

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

src/app/landing-page/landing-page.component.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,3 +332,10 @@
332332
row-gap: 2rem;
333333
column-gap: 1rem;
334334
}
335+
336+
.offers img {
337+
max-height: 20vh;
338+
max-width: 100%;
339+
height: auto;
340+
width: auto;
341+
}

src/app/landing-page/landing-page.component.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
About Us
3636
</a>
3737
</li>
38+
<li class="socials-nav-item">
39+
<a (click)="scroll(offers)" class="navigation-link" aria-label="Offers">
40+
Offers
41+
</a>
42+
</li>
3843
<li class="socials-nav-item">
3944
<a (click)="scroll(faq)" class="navigation-link" aria-label="FAQ">
4045
FAQ
@@ -84,6 +89,11 @@
8489
About Us
8590
</a>
8691
</li>
92+
<li class="socials-nav-item">
93+
<a (click)="scroll(offers);toggleDropdown()" class="navigation-link" aria-label="Offers">
94+
Offers
95+
</a>
96+
</li>
8797
<li class="socials-nav-item">
8898
<a (click)="scroll(faq);toggleDropdown()" class="navigation-link" aria-label="FAQ">
8999
FAQ
@@ -469,7 +479,7 @@ <h6>Target</h6>
469479
</section>
470480
<mat-divider></mat-divider>
471481

472-
<section #faq class="price-area section-padding" style="margin-bottom: 5%;" id="the-event">
482+
<section #offers class="price-area section-padding" style="margin-bottom: 5%;">
473483
<div class="container">
474484
<div class="row">
475485
<div class="text-center">
@@ -480,13 +490,12 @@ <h2 class="text-center">Offers</h2>
480490
</p>
481491
<div class="offers">
482492
<mat-card *ngFor="let offer of promocodes" class="example-card" style="padding: 5%;">
483-
<a href="{{offer.company.site}}" style="width: 100%;">
484-
<img src="{{offer.company.img}}" alt="{{offer.company.name}} logo" style="width: 100%;">
485-
</a>
493+
<img src="{{offer.company.img}}" alt="{{offer.company.name}} logo">
494+
486495
<div class="text-alt description">
487496
<small>{{offer.description}}</small>
488497
</div>
489-
<a *ngIf="offer.link" href="{{offer.code}}" class="btn btn-rounded btn-outline-clr btn-sm" style="margin-top: 2%;">
498+
<a *ngIf="offer.link" href="{{offer.code}}" target="_blank" class="btn btn-rounded btn-outline-clr btn-sm" style="margin-top: 2%;">
490499
Claim Offer
491500
</a>
492501
<div *ngIf="!offer.link" style="display:flex; flex-direction: column; margin-top: 2%;">

0 commit comments

Comments
 (0)