-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into develop-header-#26
- Loading branch information
Showing
12 changed files
with
181 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import styled from "styled-components" | ||
import dimensions from "../../style/dimensions" | ||
import { | ||
layoutPaddingDesktop, | ||
layoutPaddingMobile, | ||
} from "../../style/variables" | ||
import "../../style/colors" | ||
import colors from "../../style/colors" | ||
|
||
export const HeroContainer = styled.div` | ||
height: 100vh; | ||
background-color: ${colors.gray_image}; | ||
margin-left: -${layoutPaddingDesktop} !important; | ||
width: 100vw; | ||
@media (max-width: ${dimensions.maxwidthTablet}px) { | ||
margin-left: -${layoutPaddingMobile} !important; | ||
} | ||
` | ||
|
||
export const HeroTextSection = styled.div` | ||
padding-top: 275px; | ||
padding-left: ${layoutPaddingDesktop}; | ||
@media (max-width: ${dimensions.maxwidthTablet}px) { | ||
padding-left: ${layoutPaddingMobile}; | ||
} | ||
` | ||
|
||
export const HeroHeadline = styled.div` | ||
` | ||
|
||
export const HeroDescription = styled.div` | ||
` | ||
|
||
export const HeroCTA = styled.div` | ||
margin-top: 64px; | ||
a { | ||
background-color: ${colors.gray_CTA}; | ||
text-transform: uppercase; | ||
color: ${colors.white900}; | ||
padding-left: 48px; | ||
font-size: 16px; | ||
padding-right: 48px; | ||
padding-top: 16px; | ||
padding-bottom: 16px; | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react" | ||
import { H1, P } from "../../style/type-styles" | ||
import { | ||
HeroContainer, | ||
HeroTextSection, | ||
HeroHeadline, | ||
HeroDescription, | ||
HeroCTA, | ||
} from "./index-styles" | ||
|
||
export default function HomePage({ data }) { | ||
return ( | ||
<HeroContainer> | ||
<HeroTextSection> | ||
<HeroHeadline> | ||
<H1>{data.hero_headline}</H1> | ||
</HeroHeadline> | ||
<HeroDescription> | ||
<P>{data.hero_subtext}</P> | ||
</HeroDescription> | ||
<HeroCTA> | ||
<a target="_blank" rel="noreferrer" href={data.hero_button_destination.text}> | ||
{data.hero_cta_text} | ||
</a> | ||
</HeroCTA> | ||
</HeroTextSection> | ||
</HeroContainer> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const colors = { | ||
//lofi colors: | ||
gray_image: "#C4C4C4", | ||
gray_icon: "#A4A4A4", | ||
gray_CTA: "#646464", | ||
|
||
black900: "#000000", | ||
white900: "#FFFFFF", | ||
} | ||
|
||
export default colors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
html, body | ||
{ | ||
margin: 0px !important; padding: 0px !important; | ||
} | ||
html, | ||
body { | ||
margin: 0px; | ||
padding: 0px; | ||
} | ||
|
||
* { | ||
min-height: 0vw; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import styled from "styled-components" | ||
|
||
const minSize = { | ||
h1: 50, | ||
h2: 30, | ||
h3: 20, | ||
p: 16, | ||
} | ||
|
||
const devices = { | ||
mobile: "320", | ||
mobileMax: "375", | ||
tablet: "768", | ||
laptop: "1024", | ||
desktop: "1440", | ||
} | ||
|
||
const fontSizes = { | ||
h1: `calc(${minSize.h1}px + (64 - ${minSize.h1}) * ((100vw - ${devices.mobile}px) / (${devices.desktop} - ${devices.mobile})))`, | ||
h2: `calc(${minSize.h2}px + (48 - ${minSize.h2}) * ((100vw - ${devices.mobile}px) / (${devices.desktop} - ${devices.mobile})))`, | ||
h3: `calc(${minSize.h3}px + (32 - ${minSize.h3}) * ((100vw - ${devices.mobile}px) / (${devices.desktop} - ${devices.mobile})))`, | ||
p: `calc(${minSize.p}px + (24 - ${minSize.p}) * ((100vw - ${devices.mobile}px) / (${devices.desktop} - ${devices.mobile})))`, | ||
} | ||
|
||
const H1 = styled.h1` | ||
font-size: ${fontSizes.h1}; | ||
font-weight: bold; | ||
` | ||
|
||
const H2 = styled.h2` | ||
font-size: ${fontSizes.h2}; | ||
font-weight: bold; | ||
` | ||
|
||
const H3 = styled.h3` | ||
font-size: ${fontSizes.h3}; | ||
font-weight: bold; | ||
` | ||
|
||
const P = styled.p` | ||
font-size: ${fontSizes.p}; | ||
` | ||
|
||
export { H1, H2, H3, P } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
* { | ||
font-family: "Oxygen", sans-serif; | ||
} | ||
} |