Skip to content

Commit

Permalink
Add content heading wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran Bosquet committed Jul 9, 2018
1 parent 1a7835c commit ebf620b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/index.html
Expand Up @@ -9,6 +9,7 @@
<style>
body {
margin: 0;
background-color: rgb(235, 235, 235)
}
</style>
</head>
Expand Down
1 change: 1 addition & 0 deletions src/ui/atoms/content-heading-layout/index.js
Expand Up @@ -7,6 +7,7 @@ const ContentHeadingLayout = styled.div`
background-size: cover;
background-position-y: center;
justify-content: center;
align-items: flex-end;
padding-top: 70px;
`

Expand Down
14 changes: 14 additions & 0 deletions src/ui/atoms/content-heading-wrapper/index.js
@@ -0,0 +1,14 @@
import styled from 'styled-components'

const ContentHeadingWrapper = styled.div`
display: flex;
width: 960px;
height: 490px;
background: linear-gradient(
to bottom,
rgba(235, 235, 235, 0.2) 0%,
rgba(235, 235, 235, 1) 100%
);
`

export default ContentHeadingWrapper
5 changes: 4 additions & 1 deletion src/ui/molecules/content-heading/index.js
@@ -1,9 +1,12 @@
import React from 'react'

import ContentHeadingLayout from '../../atoms/content-heading-layout'
import ContentHeadingWrapper from '../../atoms/content-heading-wrapper'

const ContentHeading = () => (
<ContentHeadingLayout>This is the page content</ContentHeadingLayout>
<ContentHeadingLayout>
<ContentHeadingWrapper>This is the page content</ContentHeadingWrapper>
</ContentHeadingLayout>
)

export default ContentHeading

0 comments on commit ebf620b

Please sign in to comment.