File tree Expand file tree Collapse file tree 12 files changed +147
-10
lines changed
apps/fretonator-web/src/app/common Expand file tree Collapse file tree 12 files changed +147
-10
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ <h6 class="footer__creditsTitle">Fretonator is open source</h6>
21
21
rel ="nofollow noopener noreferrer "
22
22
target ="_blank "
23
23
class ="footer__creditsListItemLink "
24
- > Jim Drury</ a
24
+ > Jim Drury</ a
25
25
>
26
26
- all things Angular
27
27
</ li >
@@ -31,7 +31,7 @@ <h6 class="footer__creditsTitle">Fretonator is open source</h6>
31
31
rel ="nofollow noopener noreferrer "
32
32
target ="_blank "
33
33
class ="footer__creditsListItemLink "
34
- > Elliot Brooks</ a
34
+ > Elliot Brooks</ a
35
35
>
36
36
- audio playback
37
37
</ li >
@@ -41,7 +41,18 @@ <h6 class="footer__creditsTitle">Fretonator is open source</h6>
41
41
href ="https://github.com/ishythefishy/fretonator "
42
42
rel ="nofollow noopener noreferrer "
43
43
target ="_blank "
44
- > View on GitHub</ a
45
- >
44
+ > View on GitHub</ a >
45
+
46
+ < a href ="https://www.buymeacoffee.com/fretonator "
47
+ rel ="nofollow noopener noreferrer "
48
+ target ="_blank "
49
+ class ="footer__support ">
50
+ < span class ="footer__support__svg ">
51
+ < app-coffee-svg > </ app-coffee-svg >
52
+ </ span >
53
+ Buy me a coffee
54
+ </ a >
55
+
46
56
< p class ="footer__copyright "> © {{ date | date: 'yyyy' }} Fretonator</ p >
57
+
47
58
</ footer >
Original file line number Diff line number Diff line change 49
49
}
50
50
51
51
.footer__copyright {
52
- color : var (--offwhite );
52
+ color : var (--grey );
53
53
font-size : pxToRem (12 );
54
54
letter-spacing : var (--letter-spacing-display );
55
55
font-weight : var (--font-weight-bold );
56
56
text-transform : uppercase ;
57
57
display : block ;
58
+ margin-top : pxToRem ($grid-unit * 4 );
58
59
margin-bottom : pxToRem ($grid-unit * 2 );
59
60
}
60
61
61
62
.footer__viewGithub {
62
63
@include hard_button_base ();
63
64
margin-bottom : pxToRem ($grid-unit * 2 );
64
65
}
66
+
67
+ .footer__support {
68
+ @include chip_button_base ();
69
+ margin-left : auto ;
70
+ margin-right : auto ;
71
+ display : flex ;
72
+ flex-direction : row ;
73
+ justify-content : center ;
74
+ align-items : center ;
75
+ background-color : var (--black );
76
+ margin-top : pxToRem ($grid-unit * 4 );
77
+ padding : pxToRem ($grid-unit / 2 ) pxToRem ($grid-unit * 2 );
78
+ color : var (--yellow );
79
+ border-color : var (--yellow );
80
+
81
+ & :focus {
82
+ border-color : transparent ;
83
+ }
84
+ }
85
+
86
+ .footer__support__svg {
87
+ height : pxToRem (24 );
88
+ width : pxToRem (24 );
89
+ display : inline-flex ;
90
+ }
Original file line number Diff line number Diff line change @@ -2,10 +2,20 @@ import { NgModule } from '@angular/core';
2
2
import { CommonModule } from '@angular/common' ;
3
3
import { FooterComponent } from './footer.component' ;
4
4
import { RouterModule } from '@angular/router' ;
5
+ import { CoffeeModule } from '../svgs/coffee/coffee.module' ;
6
+ import { CoffeeComponent } from '../svgs/coffee/coffee.component' ;
5
7
6
8
@NgModule ( {
7
9
declarations : [ FooterComponent ] ,
8
- imports : [ CommonModule , RouterModule ] ,
9
- exports : [ FooterComponent ] ,
10
+ imports : [
11
+ CommonModule ,
12
+ RouterModule ,
13
+ CoffeeModule ,
14
+ ] ,
15
+ exports : [
16
+ FooterComponent ,
17
+ CoffeeComponent
18
+ ]
10
19
} )
11
- export class FooterModule { }
20
+ export class FooterModule {
21
+ }
Original file line number Diff line number Diff line change 9
9
NoteExtenderString ,
10
10
NoteObject ,
11
11
NoteSymbol ,
12
- SimilarMode ,
13
12
SimilarModes
14
13
} from '../../util/types' ;
15
14
import {
Original file line number Diff line number Diff line change 1
1
import { Component , Input } from '@angular/core' ;
2
- import { Mode , ModeMap , Scale } from '../../../util/types' ;
2
+ import { Mode , ModeMap } from '../../../util/types' ;
3
3
import { NotePlaybackService } from '../../playback/note-playback.service' ;
4
4
5
5
enum ScaleDegreesToggleText {
Original file line number Diff line number Diff line change @@ -66,6 +66,18 @@ exports[`HeaderComponent should match snapshot 1`] = `
66
66
About
67
67
</a >
68
68
</li >
69
+ <li
70
+ class = " header__linksItem"
71
+ >
72
+ <a
73
+ class = " header__linksItemLink"
74
+ href = " https://www.buymeacoffee.com/fretonator"
75
+ rel = " nofollow noopener noreferrer"
76
+ target = " _blank"
77
+ >
78
+ Support
79
+ </a >
80
+ </li >
69
81
</ul >
70
82
</header >
71
83
</app-header >
Original file line number Diff line number Diff line change 38
38
> About</ a
39
39
>
40
40
</ li >
41
+ < li class ="header__linksItem ">
42
+ < a href ="https://www.buymeacoffee.com/fretonator "
43
+ rel ="nofollow noopener noreferrer "
44
+ class ="header__linksItemLink "
45
+ target ="_blank "> Support</ a >
46
+ </ li >
41
47
</ ul >
42
48
</ header >
Original file line number Diff line number Diff line change
1
+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 36 " class ="svg ">
2
+ < g fill ="none " fill-rule ="evenodd " stroke ="none " stroke-width ="1 ">
3
+ < g transform ="translate(.56) ">
4
+ < path fill ="#FF9100 " d ="M11.275 6.655l-8.739-.052 4.292 27.113h10.455l4.292-27.113z "/>
5
+ < path fill ="#FD0 " d ="M11.275 6.655l-8.739-.052 4.292 27.113H15.099L19.39 6.603z "/>
6
+ < path fill ="#FFF " d ="M.039 6.603h22.55V4.102H.039z "/>
7
+ < path stroke ="#000 " stroke-width ="1.17 " d ="M.039 6.603h22.55V4.102H.039z "/>
8
+ < path fill ="#FFF " d ="M18.22.039H4.253L2.614 3.79h17.244z "/>
9
+ < g stroke-width ="1.17 " transform ="translate(.936) ">
10
+ < path stroke ="#050505 " d ="M17.283.039H3.316L1.678 3.79h17.244z "/>
11
+ < path stroke ="#000 " d ="M10.339 6.655l-10.3-.052 4.292 27.113h12.016l4.292-27.113z "/>
12
+ </ g >
13
+ < path fill ="#FFF " d ="M21.887 14.26H.585l1.923 10.783 8.728-.094 8.728.094z "/>
14
+ < path stroke ="#000 " stroke-width ="1.17 "
15
+ d ="M21.887 14.26H.585l1.923 10.783 8.728-.094 8.728.094z "/>
16
+ </ g >
17
+ </ g >
18
+ </ svg >
Original file line number Diff line number Diff line change
1
+ .svg {
2
+ height : 100% ;
3
+ width : 100% ;
4
+ }
Original file line number Diff line number Diff line change
1
+ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+
3
+ import { CoffeeComponent } from './coffee.component' ;
4
+
5
+ describe ( 'CoffeeComponent' , ( ) => {
6
+ let component : CoffeeComponent ;
7
+ let fixture : ComponentFixture < CoffeeComponent > ;
8
+
9
+ beforeEach ( async ( ( ) => {
10
+ TestBed . configureTestingModule ( {
11
+ declarations : [ CoffeeComponent ]
12
+ } )
13
+ . compileComponents ( ) ;
14
+ } ) ) ;
15
+
16
+ beforeEach ( ( ) => {
17
+ fixture = TestBed . createComponent ( CoffeeComponent ) ;
18
+ component = fixture . componentInstance ;
19
+ fixture . detectChanges ( ) ;
20
+ } ) ;
21
+
22
+ it ( 'should create' , ( ) => {
23
+ expect ( component ) . toBeTruthy ( ) ;
24
+ } ) ;
25
+ } ) ;
You can’t perform that action at this time.
0 commit comments