Skip to content

EQ-99 index/build section 5 #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions components/index/better-understand.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import styled from 'styled-components'

const SectionStyled = styled.section`
margin: 0 auto;
margin: 0 auto ${({ theme }) => theme.spacing[12]}px auto;
max-width: ${({ theme }) => theme.width.page};
@media ${({ theme }) => theme.breakpoint.md} {
padding: ${({ theme }) => theme.spacing[5]}px 0;
padding: 0 ${({ theme }) => theme.spacing[2]}px;
}
.image-bar {
background-color: ${({ theme }) => theme.color.greyMedium};
Expand All @@ -25,7 +25,7 @@ const SectionStyled = styled.section`
display: block;
}
@media ${({ theme }) => theme.breakpoint.lg} {
padding: 0 ${({ theme }) => theme.spacing[5]}px;
padding: 0 ${({ theme }) => theme.spacing[8]}px;
}
.image {
background-color: ${({ theme }) => theme.color.greyMedium};
Expand All @@ -34,20 +34,19 @@ const SectionStyled = styled.section`
}
}
.right {
padding: ${({ theme }) => theme.spacing[5]}px
${({ theme }) => theme.spacing[3]}px;
padding: ${({ theme }) => theme.spacing[8]}px
${({ theme }) => theme.spacing[2]}px 0
${({ theme }) => theme.spacing[2]}px;
text-align: center;
@media ${({ theme }) => theme.breakpoint.md} {
padding: ${({ theme }) => theme.spacing[5]}px
${({ theme }) => theme.spacing[3]}px
${({ theme }) => theme.spacing[5]}px 0;
padding: 0 ${({ theme }) => theme.spacing[2]}px 0 0;
text-align: left;
}
h2 {
margin: 0 auto ${({ theme }) => theme.spacing[3]}px auto;
margin: 0 auto ${({ theme }) => theme.spacing[2]}px auto;
text-transform: uppercase;
@media ${({ theme }) => theme.breakpoint.md} {
margin: 0 0 ${({ theme }) => theme.spacing[3]}px 0;
margin: 0 0 ${({ theme }) => theme.spacing[2]}px 0;
max-width: 400px;
}
}
Expand All @@ -61,16 +60,16 @@ const SectionStyled = styled.section`
.divider {
background-color: ${({ theme }) => theme.color.blue};
height: 5px;
margin: 0 auto ${({ theme }) => theme.spacing[3]}px auto;
margin: 0 auto ${({ theme }) => theme.spacing[2]}px auto;
width: 100px;
@media ${({ theme }) => theme.breakpoint.md} {
margin: 0 0 ${({ theme }) => theme.spacing[3]}px 0;
margin: 0 0 ${({ theme }) => theme.spacing[2]}px 0;
}
}
.paragraph-1 {
margin: 0 auto ${({ theme }) => theme.spacing[3]}px auto;
margin: 0 auto ${({ theme }) => theme.spacing[2]}px auto;
@media ${({ theme }) => theme.breakpoint.md} {
margin: 0 0 ${({ theme }) => theme.spacing[3]}px 0;
margin: 0 0 ${({ theme }) => theme.spacing[2]}px 0;
}
}
}
Expand Down
67 changes: 67 additions & 0 deletions components/index/eq-advantage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import styled from 'styled-components'

const SectionStyled = styled.section`
color: ${({ theme }) => theme.color.black};
margin: 0 auto ${({ theme }) => theme.spacing[12]}px auto;
max-width: ${({ theme }) => theme.width.page};
padding: 0 ${({ theme }) => theme.spacing[2]}px;
text-align: center;
h2 {
margin: 0 0 ${({ theme }) => theme.spacing[4]}px 0;
text-transform: uppercase;
}
.items {
align-items: flex-start;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
.item {
max-width: 250px;
margin: ${({ theme }) => theme.spacing[2]}px
${({ theme }) => theme.spacing[2]}px
${({ theme }) => theme.spacing[4]}px
${({ theme }) => theme.spacing[2]}px;
}
}
`

export default function EQAdvantage() {
return (
<SectionStyled>
<h2>The EQ Advantage</h2>
<div className='items'>
<div className='item'>
<img
alt='Brain icon'
src='/images/index/fallback/eq-advantage-1.png'
/>
<p>Purely Canadian tech stack with our DSP Atom & DMP&nbsp;Locus</p>
</div>
<div className='item'>
<img
alt='Avatar icon'
src='/images/index/fallback/eq-advantage-2.png'
/>
<p>
Mastercard partnership gives ability to create custom segments with
actionable&nbsp;insights
</p>
</div>
<div className='item'>
<img
alt='Computer with charts icon'
src='/images/index/fallback/eq-advantage-3.png'
/>
<p>Inherently Insights-Driven Data Machine&nbsp;Learning</p>
</div>
<div className='item'>
<img
alt='Trophy icon'
src='/images/index/fallback/eq-advantage-4.png'
/>
<p>Award winning in-house Creative Studio</p>
</div>
</div>
</SectionStyled>
)
}
9 changes: 5 additions & 4 deletions components/index/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const SectionStyled = styled.section`
box-sizing: border-box;
height: calc(100vh - ${({ theme }) => theme.height.navBar});
justify-content: center;
padding: 0 ${({ theme }) => theme.spacing[3]}px;
margin: 0 auto ${({ theme }) => theme.spacing[12]}px auto;
padding: 0 ${({ theme }) => theme.spacing[2]}px;
text-align: center;
@media ${({ theme }) => theme.breakpoint.sm} {
height: 100vh;
Expand Down Expand Up @@ -54,17 +55,17 @@ const SectionStyled = styled.section`
border: 2px solid ${({ theme }) => theme.color.white};
border-radius: 100%;
display: flex;
margin: 0 ${({ theme }) => theme.spacing[3]}px 0 0;
margin: 0 ${({ theme }) => theme.spacing[2]}px 0 0;
}
svg {
color: ${({ theme }) => theme.color.white};
padding: ${({ theme }) => theme.spacing[2]}px;
padding: ${({ theme }) => theme.spacing[1]}px;
width: 20px;
}
}
}
.subtitle-1 {
margin: 0 auto ${({ theme }) => theme.spacing[3]}px auto;
margin: 0 auto ${({ theme }) => theme.spacing[2]}px auto;
}
}
.video-container {
Expand Down
30 changes: 8 additions & 22 deletions components/index/location-data.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import Head from 'next/head'
import Slider from 'react-slick'
import styled from 'styled-components'

const SectionStyled = styled.section`
color: ${({ theme }) => theme.color.white};
padding: ${({ theme }) => theme.spacing[5]}px 0;
margin: 0 auto ${({ theme }) => theme.spacing[12]}px auto;
padding: 0;
.container {
background-color: ${({ theme }) => theme.color.blue};
box-sizing: border-box;
.content {
box-sizing: border-box;
margin: 0 auto;
max-width: ${({ theme }) => theme.width.page};
padding: ${({ theme }) => theme.spacing[5]}px
${({ theme }) => theme.spacing[3]}px;
padding: ${({ theme }) => theme.spacing[8]}px
${({ theme }) => theme.spacing[2]}px;
text-align: center;
h2 {
margin: 0 auto;
Expand Down Expand Up @@ -61,7 +61,7 @@ const SectionStyled = styled.section`
}
.left {
@media ${({ theme }) => theme.breakpoint.sm} {
padding: 0 ${({ theme }) => theme.spacing[3]}px 0 0;
padding: 0 ${({ theme }) => theme.spacing[2]}px 0 0;
}
@media ${({ theme }) => theme.breakpoint.sm} {
padding: 0 ${({ theme }) => theme.spacing[4]}px 0 0;
Expand All @@ -73,7 +73,7 @@ const SectionStyled = styled.section`
justify-content: center;
margin: 0 0 ${({ theme }) => theme.spacing[4]}px 0;
img {
margin: 0 ${({ theme }) => theme.spacing[3]}px 0 0;
margin: 0 ${({ theme }) => theme.spacing[2]}px 0 0;
max-width: 150px;
width: 100%;
@media ${({ theme }) => theme.breakpoint.xs} {
Expand All @@ -90,14 +90,14 @@ const SectionStyled = styled.section`
}
.right {
@media ${({ theme }) => theme.breakpoint.sm} {
padding: 0 0 0 ${({ theme }) => theme.spacing[3]}px;
padding: 0 0 0 ${({ theme }) => theme.spacing[2]}px;
}
@media ${({ theme }) => theme.breakpoint.sm} {
padding: 0 0 0 ${({ theme }) => theme.spacing[4]}px;
}
}
.screenshot {
margin: 0 0 ${({ theme }) => theme.spacing[5]}px 0;
margin: 0 0 ${({ theme }) => theme.spacing[8]}px 0;
.screenshot-image {
border-radius: 10px;
max-width: 400px;
Expand Down Expand Up @@ -179,20 +179,6 @@ export default function LocationData() {

return (
<SectionStyled>
<Head>
<link
charSet='UTF-8'
href='https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css'
rel='stylesheet'
type='text/css'
/>
<link
href='https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css'
rel='stylesheet'
type='text/css'
/>
</Head>

<div className='shape'>
<svg
height='100%'
Expand Down
Loading