Skip to content

Commit 4c5a14b

Browse files
author
Salma Alam-Naylor
committed
Styled and added content for success page
1 parent d6f7e79 commit 4c5a14b

File tree

3 files changed

+80
-6
lines changed

3 files changed

+80
-6
lines changed
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-
<p>contact-success works!</p>
1+
<div class="success__container">
2+
<h1 class="success__title">You are amazing! <span role="img" aria-label="raising hands emoji">🙌🏼️</span></h1>
3+
<p class="success__copy">I can't thank you enough for your feedback. I will endeavour to reply to all messages when I
4+
can.</p>
5+
<hr class="success__divider"/>
6+
<h2 class="success__subtitle">Want to get involved?</h2>
7+
<p class="success__copy">The Fretonator is open source! If you're a developer and you'd like to contribute to the
8+
Fretonator,
9+
you can always <a href="https://github.com/ishythefishy/fretonator"
10+
rel="nofollow noopener norefferer"
11+
target="_blank"
12+
class="success__link">fork the
13+
repository</a>, do your magic, and send over a
14+
pull request.</p>
15+
<a [routerLink]="['/']"
16+
class="success__cta"
17+
(click)="clickLink()">Return to the Fretonator</a>
18+
</div>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
@import '../../../../styles/mixins';
2+
@import '../../../../styles/typography';
3+
4+
.success__container {
5+
max-width: $screen-med;
6+
margin-left: auto;
7+
margin-right: auto;
8+
background-color: var(--form-container-bg-color);
9+
padding: pxToRem($grid-unit * 4);
10+
11+
@media screen and (min-width: $screen-med) {
12+
padding: pxToRem($grid-unit * 6) pxToRem($grid-unit * 16);
13+
}
14+
}
15+
16+
.success__title {
17+
@include font_large;
18+
color: var(--form-container-color);
19+
text-align: left;
20+
margin-top: pxToRem($grid-unit * 3);
21+
margin-bottom: pxToRem($grid-unit * 3);
22+
}
23+
24+
.success__subtitle {
25+
@include font_medium;
26+
color: var(--form-container-color);
27+
text-align: left;
28+
margin-top: pxToRem($grid-unit * 2);
29+
margin-bottom: pxToRem($grid-unit * 2);
30+
}
31+
32+
.success__copy {
33+
@include font_bodyCopy;
34+
color: var(--form-container-color);
35+
text-align: left;
36+
margin-bottom: pxToRem($grid-unit * 2);
37+
}
38+
39+
.success__link {
40+
@include text_link;
41+
color: var(--peach);
42+
}
43+
44+
.success__divider {
45+
height: pxToRem(4);
46+
background-color: var(--peach);
47+
margin-top: pxToRem($grid-unit * 4);
48+
margin-bottom: pxToRem($grid-unit * 4);
49+
}
50+
51+
.success__cta {
52+
@include hard_button_base();
53+
margin-top: pxToRem($grid-unit * 4);
54+
margin-bottom: pxToRem($grid-unit * 4);
55+
}
56+
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
2+
import { GlobalService } from '../../../global.service';
23

34
@Component({
45
selector: 'app-contact-success',
56
templateUrl: './contact-success.component.html',
67
styleUrls: ['./contact-success.component.scss']
78
})
8-
export class ContactSuccessComponent implements OnInit {
9+
export class ContactSuccessComponent {
910

10-
constructor() {
11+
constructor(private globalService: GlobalService) {
1112
}
1213

13-
ngOnInit(): void {
14+
clickLink() {
15+
this.globalService.getScrollTarget().scrollIntoView();
1416
}
15-
1617
}

0 commit comments

Comments
 (0)