-
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.
Add key prop to list elements Add photography page Remove footer on index page
- Loading branch information
Marvin Heilemann
committed
Jan 13, 2020
1 parent
627239a
commit d1943e8
Showing
7 changed files
with
58 additions
and
61 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
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
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,45 @@ | ||
import React, { useEffect, useContext } from 'react' | ||
import { graphql } from 'gatsby' | ||
import { Helmet } from 'react-helmet-async' | ||
|
||
import { isDev } from '../environment' | ||
import SEO from '../components/SEO' | ||
import { History } from '../store' | ||
|
||
const Page = ({ pageContext: { breadcrumb } }) => { | ||
const pageName = 'Photography' | ||
const historyDispatch = useContext(History.Dispatch) | ||
|
||
useEffect(() => { | ||
historyDispatch({ | ||
location: breadcrumb.location, | ||
crumbLabel: pageName, | ||
crumbs: breadcrumb.crumbs, | ||
}) | ||
}) | ||
|
||
if (isDev) { | ||
console.group(pageName) | ||
// console.log(items) | ||
console.log(breadcrumb) | ||
console.groupEnd() | ||
} | ||
|
||
return ( | ||
<> | ||
<SEO title={pageName} /> | ||
<Helmet | ||
bodyAttributes={{ | ||
page: pageName.toLowerCase(), | ||
class: 'home', | ||
}} | ||
/> | ||
|
||
<div className="gallery">content will come soon</div> | ||
</> | ||
) | ||
} | ||
|
||
// export const pageQuery = graphql`` | ||
|
||
export default Page |
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,5 +1,5 @@ | ||
[page='index'] { | ||
footer { | ||
#footer { | ||
display: none; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.