Skip to content

Commit

Permalink
Merge branch '462_create_form_register_user' of https://github.com/Ag…
Browse files Browse the repository at this point in the history
…ileVentures/sfn-client into 462_create_form_register_user
  • Loading branch information
javpet committed Dec 2, 2019
2 parents 2f1733b + aecd76c commit 4d9bb6a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/components/Shared/Banner/Banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

p {
margin-bottom: $margin-r;
text-align: center;
text-shadow: 1px 1px $primary-color-darkblue;
}
}
Expand All @@ -43,3 +44,12 @@
z-index: 1;
top: 0;
}

@media only screen and (min-width: 992px) {
.banner {
p {
text-align: center;
max-width: 500px;
}
}
}
6 changes: 6 additions & 0 deletions src/containers/Home/Home.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from 'react'
import { NavLink } from 'react-router-dom'
import Banner from '../../components/Shared/Banner/Banner'

class Home extends Component {
render() {
Expand Down Expand Up @@ -88,6 +89,11 @@ class Home extends Component {
</div>
</div>
</section>
<Banner
headline="Want to stay in touch?"
benefits="We send regular updates about the recent causes, upcoming artist performances and about Sing for Needs in general"
buttonLabel="Sign up to newsletter"
/>
</React.Fragment>
)
}
Expand Down
5 changes: 3 additions & 2 deletions src/containers/Home/Home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
flex-direction: column;
grid-column: 1/-1;
margin-top: $margin-xxl;
margin-bottom: $margin-xxl;
padding-top: $padding-xl;
margin-bottom: $margin-r;
padding-top: $padding-xxl;

h2 {
color: $primary-color-white;
Expand Down Expand Up @@ -253,6 +253,7 @@
.registration-options {
width: 100%;
padding-top: $padding-xl;
margin-bottom: $margin-xl;
display: flex;
flex-direction: row;
justify-content: space-around;
Expand Down
4 changes: 4 additions & 0 deletions src/containers/Home/Home.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ describe('<Home />', () => {
1
)
})

it('has a section which directs visitors to the newsletter sign up page', () => {
expect(homeWrapper.find('Banner').length).toEqual(1)
})
})

0 comments on commit 4d9bb6a

Please sign in to comment.