File tree Expand file tree Collapse file tree 6 files changed +19
-27
lines changed
Expand file tree Collapse file tree 6 files changed +19
-27
lines changed Original file line number Diff line number Diff line change 11import styled from 'styled-components'
22
33// Spacer component
4- export default styled . div `
5- height : 35vh;
4+ export default styled . section `
5+ margin : 35vh 0pt ;
66`
Original file line number Diff line number Diff line change @@ -3,21 +3,16 @@ import { Helmet } from 'react-helmet'
33import { graphql , useStaticQuery } from 'gatsby'
44import styled from 'styled-components'
55import GlobalStyle from '../styling'
6- import Spacer from '../components/spacer'
76import Hero from '../sections/hero'
87import About from '../sections/about'
98import Projects from '../sections/projects'
109import Work from '../sections/work'
1110import Footer from '../sections/footer'
1211
1312const StyledMain = styled . main `
14- margin: 12pt;
15- `
16-
17- const WidthLockContainer = styled . div `
1813 margin: 0pt auto;
19- padding-left: env(safe-area-inset-left, 0px);
20- padding-right: env(safe-area-inset-right, 0pt);
14+ padding-left: calc(12pt + env(safe-area-inset-left, 0px) );
15+ padding-right: calc(12pt + env(safe-area-inset-right, 0pt) );
2116 max-width: 1200px;
2217`
2318
@@ -43,19 +38,12 @@ export default function Home() {
4338 </ Helmet >
4439 < GlobalStyle />
4540 < Hero />
46- < WidthLockContainer >
47- < StyledMain >
48- < Spacer />
49- < About />
50- < Spacer />
51- < Projects />
52- < Spacer />
53- < Work />
54- < Spacer />
55- </ StyledMain >
56- </ WidthLockContainer >
41+ < StyledMain >
42+ < About />
43+ < Projects />
44+ < Work />
45+ </ StyledMain >
5746 < Footer />
58- < Spacer />
5947 </ div >
6048 )
6149}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import styled from 'styled-components'
44import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
55import { faGithub } from '@fortawesome/free-brands-svg-icons'
66import { GatsbyImage , getImage } from 'gatsby-plugin-image'
7+ import Section from '../components/section'
78
89const Grid = styled . div `
910 display: grid;
@@ -105,7 +106,7 @@ export default function About() {
105106 ` )
106107
107108 return (
108- < section id = "about" >
109+ < Section id = "about" >
109110 < h1
110111 data-sal = "slide-up"
111112 data-sal-duration = "500"
@@ -142,6 +143,6 @@ export default function About() {
142143 </ StyledLink >
143144 </ Description >
144145 </ Grid >
145- </ section >
146+ </ Section >
146147 )
147148}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010import styled from 'styled-components'
1111
1212const StyledFooter = styled . footer `
13+ margin: 35vh 0px;
1314 padding: 12pt 0pt;
1415 text-align: center;
1516 color: var(--faded);
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons'
66import { faGithub } from '@fortawesome/free-brands-svg-icons'
77import IconLink from '../components/iconlink'
88import { GatsbyImage , getImage } from 'gatsby-plugin-image'
9+ import Section from '../components/section'
910const githubLink = github => {
1011 let path = github . split ( '/' )
1112 return `http:`
@@ -39,7 +40,7 @@ export default function Projects() {
3940
4041 // Render
4142 return (
42- < section id = "projects" >
43+ < Section id = "projects" >
4344 < h1
4445 data-sal = "slide-up"
4546 data-sal-duration = "500"
@@ -85,6 +86,6 @@ export default function Projects() {
8586 )
8687 ) }
8788 </ Grid >
88- </ section >
89+ </ Section >
8990 )
9091}
Original file line number Diff line number Diff line change 11import React from 'react'
22import { useStaticQuery , graphql } from 'gatsby'
33import styled from 'styled-components'
4+ import Section from '../components/section'
45
56const Title = styled . h3 `
67 font-weight: 600;
@@ -98,7 +99,7 @@ export default function Work() {
9899
99100 // Render
100101 return (
101- < section id = "work-experience" >
102+ < Section id = "work-experience" >
102103 < h1
103104 data-sal = "slide-up"
104105 data-sal-duration = "500"
@@ -137,6 +138,6 @@ export default function Work() {
137138 ) }
138139 </ tbody >
139140 </ WorkTable >
140- </ section >
141+ </ Section >
141142 )
142143}
You can’t perform that action at this time.
0 commit comments