-
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.
feat: Create ApplyHero and SubscribeCTA components
- Loading branch information
Showing
9 changed files
with
505 additions
and
305 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React from 'react'; | ||
import Logo from '../logo/logo'; | ||
import styles from './apply-hero.module.scss'; | ||
|
||
const ApplyHero = () => ( | ||
<header className={styles['apply-hero']}> | ||
<div className={styles['apply-hero__container']}> | ||
<Logo /> | ||
<div className={styles['apply-hero__header-content']}> | ||
<div className={styles['apply-hero__text']}> | ||
<h1>Ullam Pariatur Rerum Tenetur</h1> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. | ||
Officia nam impedit rem? | ||
Dolorum distinctio provident officiis vero, | ||
sapiente debitis dicta vitae aut perferendis ad, | ||
eos veritatis iusto harum dolores eligendi fuga, | ||
omnis culpa quod ut qui porro a sed repudiandae. | ||
</p> | ||
</div> | ||
<div aria-hidden className={styles['apply-hero__art-container']}> | ||
<div className={styles['apply-hero__grid']}> | ||
<img src="/apprentices/Teresita.png" alt="" /> | ||
<img src="/apprentices/Jared.png" alt="" /> | ||
<img src="/apprentices/Marissa.png" alt="" /> | ||
<img src="/apprentices/Bennett.png" alt="" /> | ||
<div className={styles['apply-hero__grid--shape1']}> | ||
<svg viewBox="0 0 40 34" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M3.00133 32.5401L20.2337 2.69278L37.4661 32.5401H3.00133Z" stroke="#FE3CB0" /> | ||
</svg> | ||
</div> | ||
<div className={styles['apply-hero__grid--shape2']}> | ||
<svg viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<circle cx="19.9315" cy="19.7905" r="18.2325" stroke="#01F5AC" /> | ||
</svg> | ||
</div> | ||
<div className={styles['apply-hero__grid--shape3']}> | ||
<svg viewBox="0 0 40 34" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M3.00133 32.5401L20.2337 2.69278L37.4661 32.5401H3.00133Z" stroke="#FE3CB0" /> | ||
</svg> | ||
</div> | ||
<div className={styles['apply-hero__grid--shape4']}> | ||
<svg viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<circle cx="19.9315" cy="19.7905" r="18.2325" stroke="#01F5AC" /> | ||
</svg> | ||
</div> | ||
<div className={styles['apply-hero__grid--shape5']}> | ||
<svg viewBox="0 0 40 34" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M3.00133 32.5401L20.2337 2.69278L37.4661 32.5401H3.00133Z" stroke="#FE3CB0" /> | ||
</svg> | ||
</div> | ||
<div className={styles['apply-hero__grid--shape6']}> | ||
<svg viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<circle cx="19.9315" cy="19.7905" r="18.2325" stroke="#01F5AC" /> | ||
</svg> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
); | ||
|
||
export default ApplyHero; |
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,212 @@ | ||
@use '../../styles/colors' as *; | ||
@use '../../styles/spacing' as *; | ||
@use '../../styles/mixins' as *; | ||
|
||
.apply-hero { | ||
width: $component-width; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
&__container { | ||
@include horizontal-section-spacing(); | ||
@include vertical-section-spacing(); | ||
max-width: $max-content-width; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
&__header-content { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
&__text { | ||
display: flex; | ||
flex-direction: column; | ||
order: 1; | ||
|
||
h1 { | ||
font-size: 2.65rem; | ||
} | ||
|
||
h1, | ||
p { | ||
padding-bottom: 1rem; | ||
font-weight: 100; | ||
margin: 0; | ||
} | ||
} | ||
|
||
&__art-container { | ||
display: none; | ||
} | ||
|
||
&__grid { | ||
display: none; | ||
} | ||
|
||
@supports (display: grid) { | ||
&__art-container { | ||
display: block; | ||
padding-bottom: 1rem; | ||
} | ||
|
||
&__grid { // This grid is for the hero images and svgs | ||
display: grid; | ||
grid-template-columns: repeat(63, 1fr); | ||
grid-template-rows: repeat(11, 1fr); | ||
|
||
img { | ||
max-width: 100%; | ||
|
||
// Images below are placed in the grid in order from top to bottom and left to right | ||
&:nth-child(1) { | ||
grid-area: 2 / 18 / 7 / 41; | ||
background-color: $c-highlight-blue; | ||
} | ||
|
||
&:nth-child(2) { | ||
grid-area: 7 / 7 / 11 / 18; | ||
background-color: $c-highlight-green; | ||
} | ||
|
||
&:nth-child(3) { | ||
grid-area: 7 / 41 / 12 / 64; | ||
background-color: $c-highlight-green; | ||
} | ||
|
||
&:nth-child(4) { | ||
margin-top: -3px; | ||
grid-area: 12 / 18 / 17 / 41; | ||
background-color: $c-highlight-pink; | ||
} | ||
} | ||
|
||
// Triangle: Top Right | ||
&--shape1 { | ||
grid-area: 1 / 37 / 3 / 46; | ||
|
||
path { | ||
stroke: $c-highlight-pink; | ||
} | ||
} | ||
|
||
// Circle: Top Left | ||
&--shape2 { | ||
grid-area: 3 / 11 / 7 / 20; | ||
|
||
circle { | ||
stroke: $c-highlight-green; | ||
} | ||
} | ||
|
||
// Triangle: Middle Left | ||
&--shape3 { | ||
grid-area: 6 / 2 / 9 / 9; | ||
} | ||
|
||
// Circle: Middle Right | ||
&--shape4 { | ||
grid-area: 7 / 30 / 12 / 44; | ||
|
||
circle { | ||
stroke: $c-highlight-blue; | ||
stroke-width: 0.75; | ||
} | ||
} | ||
|
||
// Triangle: Bottom Left | ||
&--shape5 { | ||
display: none; | ||
grid-area: 14 / 6 / 19 / 26; | ||
|
||
path { | ||
stroke: $c-highlight-green; | ||
stroke-width: 0.5; | ||
} | ||
} | ||
|
||
// Circle: Bottom Right | ||
&--shape6 { | ||
display: none; | ||
grid-area: 13 / 39 / 15 / 44; | ||
|
||
circle { | ||
stroke: $c-highlight-blue; | ||
stroke-width: 1.5; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media (min-width: 43rem) { | ||
&__text { | ||
order: 1; | ||
width: 90%; | ||
margin-top: -3.5rem; | ||
|
||
h1 { | ||
width: 60%; | ||
font-size: 3.4rem; | ||
} | ||
|
||
p { | ||
width: 80%; | ||
font-size: 1.25rem; | ||
line-height: 1.8; | ||
} | ||
} | ||
|
||
&__art-container { | ||
width: 100%; | ||
display: flex; | ||
justify-content: flex-end; | ||
} | ||
|
||
&__grid { | ||
width: 70%; | ||
} | ||
} | ||
|
||
@media (min-width: 70.25rem) { | ||
box-sizing: border-box; | ||
|
||
&__header-content { | ||
flex-direction: row; | ||
} | ||
|
||
&__text { | ||
width: 100%; | ||
order: 0; | ||
margin-top: 2rem; | ||
|
||
h1 { | ||
font-size: 4.5rem; | ||
width: 100%; | ||
} | ||
|
||
p { | ||
font-size: 1.2rem; | ||
width: 95%; | ||
} | ||
} | ||
|
||
&__art-container { | ||
justify-content: flex-start; | ||
margin-top: -7rem; | ||
} | ||
|
||
&__grid { | ||
width: 100%; | ||
|
||
&--shape5 { | ||
display: block; | ||
} | ||
|
||
&--shape6 { | ||
display: block; | ||
} | ||
} | ||
} | ||
} |
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.
Oops, something went wrong.