@@ -3,7 +3,12 @@ import styled from 'styled-components';
33import Layout from '../layouts/MainLayoutExtended/MainLayout' ;
44import { Subtitle , Caption } from '../components/Typography/Typography' ;
55import Button from '../components/Button/Button' ;
6+ import ImageBlock from '../components/ImageBlock/ImageBlock' ;
67import { Container , Row , Col } from '../lib/Grid' ;
8+ import theme from '../styles/theme' ;
9+
10+ const { mediaQueryMin} = theme ;
11+
712const pageSettings = {
813 title : `Maatwerk Web & Mobiel Ontwikkeling` ,
914 description : `Een kleinschalig full-service webbureau gespecialiseerd in platformontwikkeling op maat. Passie, kwaliteit en betrouwbaarheid als kernwaarden` ,
@@ -16,8 +21,9 @@ const meeting = require('../images/img/startups/meeting.png');
1621const Header = styled . header `
1722 min-height: 100vh;
1823 display: flex;
19-
2024 flex-grow: 1;
25+ max-height: 20rem;
26+
2127` ;
2228
2329const HeaderContainer = styled ( Container ) `
@@ -26,6 +32,15 @@ const HeaderContainer = styled(Container)`
2632
2733const Process = styled . ol `
2834 display: flex;
35+ flex-direction: column;
36+ @media (${ mediaQueryMin . xs } ) {
37+ width: 80%;
38+ }
39+ @media (${ mediaQueryMin . sm } ) {
40+ flex-direction: row;
41+ width: 100%;
42+ }
43+
2944 li {
3045 flex-basis: 33%;
3146 }
@@ -81,6 +96,10 @@ const IconList = styled.ul`
8196
8297
8398const HeaderFigure = styled . figure `
99+ display: none;
100+ @media (${ mediaQueryMin . sm } ) {
101+ display: block;
102+ }
84103 position: absolute;
85104 left: 7vw;
86105 width: 55vw;
@@ -109,19 +128,27 @@ const Deliverables = styled.ul`
109128 align-items: center;
110129 justify-items: center;
111130 width: 33%;
112- margin: 0.5em 1em 0 1em;
131+
113132 & > * {
114133 margin-top: 1rem;
115134 }
116135 }
136+
137+ @media (${ mediaQueryMin . xs } ) {
138+ margin: 0.5em 1em 0 1em;
139+ }
117140` ;
118141
119142const PathsRight = styled . img `
143+ display: none;
120144 position: absolute;
121145 height: 120%;
122146 width: fit-content;
123147 right: -10%;
124- z-index: 0
148+ z-index: 0;
149+ @media (${ mediaQueryMin . sm } ) {
150+ display: block;
151+ }
125152` ;
126153
127154const PathsLeft = styled ( PathsRight ) `
@@ -131,20 +158,33 @@ const PathsLeft = styled(PathsRight)`
131158
132159const Card = styled . div `
133160 background: #271C25;
134- padding: 3em ;
135- margin: 0.5em ;
161+ padding: 1em ;
162+ margin-top: 1em ;
136163 border-radius: 0.1em;
164+ @media (${ mediaQueryMin . xs } ) {
165+ padding: 3em;
166+ margin: 0.5em;
167+ }
137168` ;
138169
139170const SlantedBackground = styled . div `
140171 width: 100%;
141- height: 35rem;
142- background: #271C25;
172+ height: 50vh;
173+ background-image: url(${ group } );
174+ opacity: 0.58;
143175 position: absolute;
144176 top: 0;
145177 left: 0;
146178 z-index: -1;
147- clip-path: polygon(0 0, 100% 0, 88% 66%, 0 100%);
179+ clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
180+ background-size: 350%;
181+ background-position: 29% 61%;
182+ @media (${ mediaQueryMin . sm } ) {
183+ background: #271C25;
184+ opacity: 1;
185+ clip-path: polygon(0 0, 100% 0, 100% 66%, 0 100%);
186+ 35rem
187+ }
148188` ;
149189
150190const GridFig = styled . img `
@@ -164,12 +204,22 @@ const Section = styled.section`
164204 position: relative;
165205` ;
166206
207+ const HeaderRow = styled ( Row ) `
208+ /* !important used to overwrite standard behaviour react-grid-system*/
209+ align-items: flex-end !important;
210+ padding-bottom: 4rem;
211+ @media (${ mediaQueryMin . sm } ) {
212+ align-items: center !important;
213+ padding-bottom: 0;
214+ }
215+ ` ;
216+
167217const Startups = ( ) => (
168218 < Layout pageSettings = { pageSettings } >
169219 < Header >
170220 < HeaderContainer >
171- < Row style = { { height : '100vh' } } align = "center" >
172- < Col md = { 5 } >
221+ < HeaderRow style = { { height : '100vh' } } >
222+ < Col md = { 10 } lg = { 5 } >
173223 < GridFig src = { require ( '../images/img/startups/grid.svg' ) } />
174224 < Subtitle > Start-up development</ Subtitle >
175225 < h1 > Samen maken we passie werkelijkheid</ h1 >
@@ -201,7 +251,7 @@ const Startups = () => (
201251 < img src = { group } alt = "group of happy people" />
202252 </ HeaderFigure >
203253 </ Col >
204- </ Row >
254+ </ HeaderRow >
205255 </ HeaderContainer >
206256 < SlantedBackground />
207257 </ Header >
@@ -256,12 +306,8 @@ const Startups = () => (
256306 </ Row >
257307 </ Container >
258308 </ section >
259- < section >
260- < figure >
261- < img src = { meeting } alt = "meeting" />
262- </ figure >
263- </ section >
264- < Section style = { { height : '100vh' , display : 'flex' , alignItems : 'center' } } >
309+ < ImageBlock src = { meeting } alt = "meeting" />
310+ < Section style = { { margin : '3em 0' , display : 'flex' , alignItems : 'center' } } >
265311 < Container >
266312 < Subtitle > Het proces</ Subtitle >
267313 < h2 > Het gaan we je helpen?</ h2 >
0 commit comments