Skip to content

Commit 7c31575

Browse files
author
Salma Alam-Naylor
committed
Added a placeholder grid item on learn/index
Added snapshots for older pages
1 parent 83ff3aa commit 7c31575

File tree

7 files changed

+29
-4
lines changed

7 files changed

+29
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`ContactIndexComponent should create 1`] = `ContactIndexComponentSpec {}`;

apps/fretonator-web/src/app/pages/contact/contact-index/contact-index.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ describe('ContactIndexComponent', () => {
3636

3737
it('should create', () => {
3838
expect(component).toBeTruthy();
39+
expect(component).toMatchSnapshot();
3940
});
4041
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`ContactSuccessComponent should create 1`] = `ContactSuccessComponentSpec {}`;

apps/fretonator-web/src/app/pages/contact/contact-success/contact-success.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ describe('ContactSuccessComponent', () => {
3838

3939
it('should create', () => {
4040
expect(component).toBeTruthy();
41+
expect(component).toMatchSnapshot();
4142
});
4243
});

apps/fretonator-web/src/app/pages/learn/learn-index/learn-index.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ <h2 class="grid__item__title">Patterns</h2>
2323
<span class="tag">Modes</span>
2424
</div>
2525
</a>
26+
<div class="grid__item">
27+
<h2 class="grid__item__title">More content coming soon!</h2>
28+
<p class="grid__item__copy">We're working hard on creating more content for you. If you have any questions about guitar
29+
theory, technique or maintenance, or if you'd like to submit some content, let us know via the contact form.</p>
30+
<a [routerLink]="['/', 'contact']"
31+
[state]="{scrollToTop: true}"
32+
class="grid__item__button">Submit a request</a>
33+
</div>
2634
</div>
2735

2836
</div>

apps/fretonator-web/src/app/pages/learn/learn-index/learn-index.component.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@
6262
margin-bottom: pxToRem($grid-unit);
6363
}
6464

65+
.grid__item__button {
66+
@include hard_button_base(
67+
var(--black),
68+
var(--peach),
69+
var(--purple)
70+
);
71+
}
72+
6573
.tagRow {
6674
display: flex;
6775
flex-direction: row;

apps/fretonator-web/src/styles/_mixins.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
@mixin chip_tag(
8080
$bgColor: var(--background-color-base),
81-
$fgColor: var(--foreground-color-base)) {
81+
$fgColor: var(--foreground-color-base)) {
8282

8383
border-width: var(--border-width-button);
8484
border-style: solid;
@@ -101,7 +101,8 @@
101101

102102
@mixin hard_button_base(
103103
$foregroundColor: var(--offwhite),
104-
$backgroundColor: var(--black)) {
104+
$backgroundColor: var(--black),
105+
$hoverColor: var(--yellow)) {
105106
border-radius: var(--border-radius-button);
106107
border: pxToRem(2) solid $foregroundColor;
107108
text-transform: uppercase;
@@ -123,8 +124,8 @@
123124
@include focus_accessible();
124125

125126
&:hover {
126-
border-color: var(--yellow);
127-
color: var(--yellow);
127+
border-color: $hoverColor;
128+
color: $hoverColor;
128129
}
129130
}
130131

0 commit comments

Comments
 (0)