diff --git a/package.json b/package.json index b7194fb74..8d5d27fcc 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "react-error-overlay": "^1.0.7", "react-ga": "^2.2.0", "react-icons": "^2.2.5", - "react-modal": "^1.7.7", + "react-modal": "^2.3.2", "react-router": "^4.1.1", "react-router-dom": "^4.1.1", "react-scroll": "^1.5.4", diff --git a/src/scenes/home/families/facts/facts.css b/src/scenes/home/families/facts/facts.css index 33102ee2d..a6c54672c 100644 --- a/src/scenes/home/families/facts/facts.css +++ b/src/scenes/home/families/facts/facts.css @@ -1,26 +1,54 @@ - .facts { - display: 'flex'; - background-color: '#E2E2E2'; - align-items: 'center'; - padding: '96px'; + display: flex; + flex-direction: row; + justify-content: space-between; + padding: 50px 0; +} + +@media screen and (max-width: 1024px) { + .facts { + display: block; + } } -.factsHeading { - font-size: '50px'; - text-align: 'center'; + +.factsHeading h2 { + width: 100%; } + .factsList { - color: '#445366'; - font-size: '24px'; - padding: '0 32px'; + flex: .48; + color: #445366; + font-size: 1.5rem; +} + +.factsList ul { + width: 80%; + margin: 0 auto; } + +.factsList .footnote { + font-size: 80%; + font-style: italic; + margin: 0 auto; + text-align: left; + width: 75%; +} + .factsRight { - padding: '0 32px' + background-position: 90% 25%; + border-radius: 40px; + flex: .48; + height: 50vh; + margin-top: 65px; + overflow: hidden; } -.factsImage { - width: '30vw'; - border-radius: '40px'; + +@media screen and (max-width: 1150px) { + .factsRight { + background-position: 80% 25%; + } } + .factItem { - padding-bottom: '24px'; -} \ No newline at end of file + padding-bottom: 24px; +} diff --git a/src/scenes/home/families/facts/facts.js b/src/scenes/home/families/facts/facts.js index 6c6c03725..51011d092 100644 --- a/src/scenes/home/families/facts/facts.js +++ b/src/scenes/home/families/facts/facts.js @@ -1,4 +1,5 @@ import React, { Component } from 'react'; +import Heading from 'shared/components/heading/heading'; import styles from './facts.css'; import family3 from '../../../../images/Family-3.jpg'; @@ -8,7 +9,7 @@ class Facts extends Component {
When a loved one deploys, we understand the hardships that family members who are left behind can endure. There can be a lot of responsibilities to juggle. Operation Code works to ease the burden on military families by opening our programs and services up to military spouses, children and grandchildren.
+diff --git a/src/shared/components/headerClipMask/headerClipMask.css b/src/shared/components/headerClipMask/headerClipMask.css new file mode 100644 index 000000000..593848c90 --- /dev/null +++ b/src/shared/components/headerClipMask/headerClipMask.css @@ -0,0 +1,22 @@ +.maskLeft, +.maskRight { + bottom: 99.5%; + fill: #FFFFFF; + position: absolute; + width: 50%; +} + +.maskLeft { + left: 0; +} + +.maskRight { + right: 0; +} + +@media screen and (max-width: 800px) { + .maskLeft, + .maskRight { + display: none; + } +} diff --git a/src/shared/components/headerClipMask/headerClipMask.js b/src/shared/components/headerClipMask/headerClipMask.js new file mode 100644 index 000000000..9c2ccb161 --- /dev/null +++ b/src/shared/components/headerClipMask/headerClipMask.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import styles from './headerClipMask.css'; + +class HeaderClipMask extends Component { + render() { + return ( +