Skip to content

Commit 599d0a1

Browse files
author
Salma Alam-Naylor
committed
Add a 'learn more' button to mode patterns block on home
1 parent 996f16c commit 599d0a1

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

apps/fretonator-web/src/app/common/fretonator/scale-map/scale-map.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,4 @@
231231
.actionButton {
232232
@include hard_button_base();
233233
margin-left: auto;
234-
margin-right: auto;
235234
}

apps/fretonator-web/src/app/common/fretonator/similar-modes/similar-modes.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ <h4 class="similarModes__title">Did you know?</h4>
1818
from
1919
any starting note, anywhere on the fretboard.</p>
2020
<p class="similarModes__copy">These patterns always appear in the same order, one after the other.</p>
21+
<a [routerLink]="['/', 'learn', 'patterns']"
22+
[state]="{scrollToTop: true}"
23+
class="similarModes__cta">Learn more</a>
2124
</div>

apps/fretonator-web/src/app/common/fretonator/similar-modes/similar-modes.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@
3838
margin-bottom: 0;
3939
}
4040
}
41+
42+
.similarModes__cta {
43+
@include hard_button_base;
44+
margin-left: auto;
45+
}

apps/fretonator-web/src/app/common/fretonator/similar-modes/similar-modes.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33
import { SimilarModesComponent } from './similar-modes.component';
44
import { ChipsModule } from '../../chips/chips.module';
5+
import { RouterModule } from '@angular/router';
56

67

78
@NgModule({
@@ -11,7 +12,8 @@ import { ChipsModule } from '../../chips/chips.module';
1112
],
1213
imports: [
1314
CommonModule,
14-
ChipsModule
15+
ChipsModule,
16+
RouterModule
1517
]
1618
})
1719
export class SimilarModesModule {

apps/fretonator-web/src/app/pages/home/home-index/__snapshots__/home-index.component.spec.ts.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,12 @@ exports[`HomeIndexComponent should create 1`] = `
16241624
>
16251625
These patterns always appear in the same order, one after the other.
16261626
</p>
1627+
<a
1628+
class="similarModes__cta"
1629+
href="/learn/patterns"
1630+
>
1631+
Learn more
1632+
</a>
16271633
</div>
16281634
</app-similar-modes>
16291635
</div>

0 commit comments

Comments
 (0)