Skip to content

Commit 895f801

Browse files
author
Carms Ng
committed
[UPD] Add Footer to Layout
1 parent 7e528c2 commit 895f801

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/components/contact.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import styled from 'styled-components';
44
import { StaticImage } from "gatsby-plugin-image";
55

66
import SiteBorderStyles from '../styles/SiteBorderStyles';
7-
import Footer from "./footer";
87

98
import { AiTwotoneMail, AiTwotonePhone } from 'react-icons/ai';
109
import { FiMapPin } from 'react-icons/fi'
@@ -47,7 +46,6 @@ export default function Contact() {
4746
<ContactForm />
4847
</div>
4948
</SiteBorderStyles>
50-
<Footer />
5149
<div
5250
className="absolute"
5351
style={{zIndex: `-1`, width: `50vw`, left: `0`, bottom: `5vh`}}>
@@ -63,6 +61,7 @@ export default function Contact() {
6361
}
6462

6563
const ContactStyles = styled.section`
64+
height: calc(100vh - 56px);
6665
position: relative;
6766
display: flex;
6867
flex-direction: column;

src/components/footer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { FiGithub, FiLinkedin } from "react-icons/fi";
55
import { Trans } from "react-i18next";
66

77
const FooterStyle = styled.footer`
8+
padding: 100px;
89
background: var(--black);
910
padding: 0.5rem 0;
1011
color: var(--lightgrey);
@@ -15,7 +16,7 @@ export default function Footer() {
1516
<FooterStyle>
1617
<SiteBorderStyles>
1718
{/* social links*/}
18-
<div className="flex my-1 md:my-2 items-center justify-between md:justify-center md:text-xl">
19+
<div className="flex my-1 md:my-2 items-center justify-between md:justify-center">
1920
<p className="" style={{ color: `var(--lightgrey)` }}>
2021
© {new Date().getFullYear()} Coderbunker, inc.
2122
</p>

src/components/layout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import PropTypes from "prop-types";
33
import { useStaticQuery, graphql } from "gatsby";
44
import GlobalStyles from '../styles/GlobalStyles';
55
import Typography from '../styles/Typography';
6+
import Footer from "./footer";
67

78
import Header from "./header";
89

@@ -23,6 +24,7 @@ export default function Layout({ children }) {
2324
<GlobalStyles/>
2425
<Typography/>
2526
<main>{children}</main>
27+
<Footer />
2628
</>
2729
)
2830
}

0 commit comments

Comments
 (0)