-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce Footer Top component that integrates the Store Locator
- Loading branch information
Showing
7 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
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,13 @@ | ||
<ng-container *ishFeature="'storeLocator'"> | ||
<div class="footer-top"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-4 storefinder clearfix"> | ||
<fa-icon [icon]="['fas', 'map-marker-alt']"></fa-icon> | ||
<h4>{{ 'store_locator.link.title' | translate }}</h4> | ||
<a routerLink="/store-finder">{{ 'store_locator.link.subtitle' | translate }}</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-container> |
33 changes: 33 additions & 0 deletions
33
src/app/shell/footer/footer-top/footer-top.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,33 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { FaIconComponent } from '@fortawesome/angular-fontawesome'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
import { MockComponent } from 'ng-mocks'; | ||
|
||
import { FeatureToggleModule } from 'ish-core/feature-toggle.module'; | ||
|
||
import { FooterTopComponent } from './footer-top.component'; | ||
|
||
describe('Footer Top Component', () => { | ||
let component: FooterTopComponent; | ||
let fixture: ComponentFixture<FooterTopComponent>; | ||
let element: HTMLElement; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [FooterTopComponent, MockComponent(FaIconComponent)], | ||
imports: [FeatureToggleModule.forTesting('storeLocator'), TranslateModule.forRoot()], | ||
}).compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(FooterTopComponent); | ||
component = fixture.componentInstance; | ||
element = fixture.nativeElement; | ||
}); | ||
|
||
it('should be created', () => { | ||
expect(component).toBeTruthy(); | ||
expect(element).toBeTruthy(); | ||
expect(() => fixture.detectChanges()).not.toThrow(); | ||
}); | ||
}); |
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,8 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'ish-footer-top', | ||
templateUrl: './footer-top.component.html', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class FooterTopComponent {} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<ng-container *ishHasNotRole="['APP_B2B_CXML_USER', 'APP_B2B_OCI_USER']"> | ||
<ish-footer-top></ish-footer-top> | ||
<div [ishServerHtml]="'footer.content' | translate: { appVersion: appVersion }" class="clearfix"></div> | ||
</ng-container> |
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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ footer { | |
} | ||
|
||
.footer-top { | ||
padding: 40px 0 60px; | ||
padding: 20px 0; | ||
background: $color-primary; | ||
|
||
h4 { | ||
|