Skip to content

Commit 4c81a1c

Browse files
author
Salma Alam-Naylor
committed
Fixed coffee svg on footer
1 parent f914358 commit 4c81a1c

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

apps/fretonator-web/src/app/common/footer/footer.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<div class="footer__inner">
33

44
<div class="footer__leftColumn">
5-
65
<h6 class="footer__sectionTitle">
76
Fretonator is open source
87
</h6>
@@ -64,9 +63,13 @@ <h6 class="footer__sectionTitle">Who made this?</h6>
6463
rel="nofollow noopener noreferrer"
6564
target="_blank"
6665
class="footer__smallButton">
66+
<span class="footer__support__svg">
67+
<app-coffee-svg></app-coffee-svg>
68+
</span>
6769
Buy me a coffee
6870
</a>
6971
</div>
72+
7073
</div>
7174

7275
<p class="footer__copyright">&copy; {{ date | date: 'yyyy' }} Fretonator</p>

apps/fretonator-web/src/app/common/footer/footer.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
}
114114

115115
.footer__copyright {
116-
color: var(--grey);
116+
color: var(--offwhite);
117117
font-size: pxToRem(12);
118118
letter-spacing: var(--letter-spacing-display);
119119
font-weight: var(--font-weight-bold);

apps/fretonator-web/src/app/common/footer/footer.component.spec.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
11
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
22

33
import { FooterComponent } from './footer.component';
4+
import { Component } from '@angular/core';
5+
import { RouterTestingModule } from '@angular/router/testing';
6+
import { HeaderModule } from '../header/header.module';
7+
import { FooterModule } from './footer.module';
48

59
describe('FooterComponent', () => {
6-
let component: FooterComponent;
7-
let fixture: ComponentFixture<FooterComponent>;
10+
@Component({
11+
selector: 'app-footer-spec',
12+
template: `
13+
<app-footer></app-footer>
14+
`
15+
})
16+
class FooterComponentSpec {
17+
}
18+
19+
let component: FooterComponentSpec;
20+
let fixture: ComponentFixture<FooterComponentSpec>;
821

922
beforeEach(async(() => {
1023
TestBed.configureTestingModule({
11-
declarations: [FooterComponent],
24+
declarations: [FooterComponentSpec],
25+
imports: [FooterModule]
1226
}).compileComponents();
1327
}));
1428

1529
beforeEach(() => {
16-
fixture = TestBed.createComponent(FooterComponent);
30+
fixture = TestBed.createComponent(FooterComponentSpec);
1731
component = fixture.componentInstance;
1832
fixture.detectChanges();
1933
});

apps/fretonator-web/src/app/common/footer/footer.module.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { CommonModule } from '@angular/common';
33
import { FooterComponent } from './footer.component';
44
import { RouterModule } from '@angular/router';
55
import { CoffeeModule } from '../svgs/coffee/coffee.module';
6-
import { CoffeeComponent } from '../svgs/coffee/coffee.component';
76

87
@NgModule({
98
declarations: [FooterComponent],
@@ -13,8 +12,7 @@ import { CoffeeComponent } from '../svgs/coffee/coffee.component';
1312
CoffeeModule,
1413
],
1514
exports: [
16-
FooterComponent,
17-
CoffeeComponent
15+
FooterComponent
1816
]
1917
})
2018
export class FooterModule {

apps/fretonator-web/src/app/common/header/header.module.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { CommonModule } from '@angular/common';
33
import { HeaderComponent } from './header.component';
44
import { RouterModule } from '@angular/router';
55
import { LogoWithTextModule } from '../svgs/logo-with-text/logo-with-text.module';
6-
import { LogoWithTextComponent } from '../svgs/logo-with-text/logo-with-text.component';
76
import { LogoNoTextModule } from '../svgs/logo-no-text/logo-no-text.module';
87

98
@NgModule({
@@ -15,8 +14,7 @@ import { LogoNoTextModule } from '../svgs/logo-no-text/logo-no-text.module';
1514
LogoNoTextModule
1615
],
1716
exports: [
18-
HeaderComponent,
19-
LogoWithTextComponent
17+
HeaderComponent
2018
]
2119
})
2220
export class HeaderModule {

0 commit comments

Comments
 (0)