-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
FerranAD
committed
Jan 9, 2024
1 parent
75d361b
commit 9160623
Showing
7 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- banner-ad.component.html --> | ||
|
||
<div class="banner-ad-container"> | ||
<img src="./icons/ad.png" alt="Banner Ad" class="banner-ad-image"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* banner-ad.component.css */ | ||
|
||
.banner-ad-container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
background-color: #f5f5f5; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
margin: auto; /* Center the container */ | ||
} | ||
|
||
.banner-ad-image { | ||
max-width: 100%; | ||
height: auto; | ||
border-radius: 5px; | ||
} |
24 changes: 24 additions & 0 deletions
24
app/src/app/components/banner-ad/banner-ad.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; | ||
import { IonicModule } from '@ionic/angular'; | ||
|
||
import { BannerAdComponent } from './banner-ad.component'; | ||
|
||
describe('BannerAdComponent', () => { | ||
let component: BannerAdComponent; | ||
let fixture: ComponentFixture<BannerAdComponent>; | ||
|
||
beforeEach(waitForAsync(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ BannerAdComponent ], | ||
imports: [IonicModule.forRoot()] | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(BannerAdComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
})); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// banner-ad.component.ts | ||
|
||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-banner-ad', | ||
templateUrl: './banner-ad.component.html', | ||
styleUrls: ['./banner-ad.component.scss'] | ||
}) | ||
export class BannerAdComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
onButtonClick(): void { | ||
// Handle button click event (you can add your logic here) | ||
console.log('Button clicked! Redirect to the product page or perform other actions.'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,5 +28,6 @@ | |
></app-reservations-item> | ||
</ion-item-group> | ||
</ion-list> | ||
<app-banner-ad></app-banner-ad> | ||
</div> | ||
</ion-content> |