Skip to content

Commit db55319

Browse files
authored
Add footer links, logo to index page (#2)
* Update footer links, responsiveness * Update * Update footer, item rendering * Update feature generation * Add logo to homepage * Add footer links, update styles
1 parent 04469a0 commit db55319

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

src/components/Footer.js

+10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ const Footer = class extends React.Component {
2121
Home
2222
</Link>
2323
</li>
24+
<li>
25+
<Link className="navbar-item" to="/photography">
26+
Photography
27+
</Link>
28+
</li>
29+
<li>
30+
<Link className="navbar-item" to="/artwork">
31+
Artwork
32+
</Link>
33+
</li>
2434
<li>
2535
<Link className="navbar-item" to="/about">
2636
About

src/components/all.sass

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ $black: #2b2523
2323
align-items: center
2424
ul
2525
margin-top: 0 !important
26-
margin-left: 0 !important
2726

2827
// Helper Classes
2928
.full-width-image-container
@@ -117,6 +116,11 @@ $black: #2b2523
117116
fill: currentColor
118117
.navbar-brand .navbar-item .logo
119118
padding: 0 1rem
119+
.index-logo
120+
display: inline-block
121+
position: absolute
122+
top: 25px
123+
left: 25px
120124
footer.footer
121125
padding: 2rem 0
122126
background-color: transparent

src/templates/index-page.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import { Link, graphql } from 'gatsby'
4+
import logo from '../img/logo.svg'
45

56
import Layout from '../components/Layout'
67

@@ -21,6 +22,11 @@ export const IndexPageTemplate = ({
2122
display: 'block',
2223
}}
2324
>
25+
<div className="index-logo">
26+
<Link to="/" title="Logo">
27+
<img src={logo} alt="Rebecca Foran Logo" style={{ width: '35px'}} />
28+
</Link>
29+
</div>
2430
<div style={{
2531
position: 'relative',
2632
top: '25vh'}}>

0 commit comments

Comments
 (0)