Putting photography back in its place
This commit is contained in:
parent
e998918969
commit
47d2355cdb
2 changed files with 51 additions and 1 deletions
|
|
@ -1,3 +1,3 @@
|
|||
export default function Custom404() {
|
||||
return <h1>500 - Server-side error occurred</h1>
|
||||
return <h1>404 - I cannae find it Captain</h1>
|
||||
}
|
||||
50
pages/photography.js
Normal file
50
pages/photography.js
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
import Layout from "../components/main.js"
|
||||
import GalleryList from "../components/gallerylist.js"
|
||||
import { getAllGalleries } from "../data/external/cms.js"
|
||||
import getConfig from 'next/config'
|
||||
import config from "../data/internal/config"
|
||||
import Head from 'next/head'
|
||||
|
||||
export async function getStaticProps({params}) {
|
||||
|
||||
const pagedata = {
|
||||
title: "Angrybeanie - Photography"
|
||||
}
|
||||
|
||||
const { serverRuntimeConfig } = getConfig()
|
||||
|
||||
const rssFeed = config.siteURL+"/feed/gallery-images-feed.xml"
|
||||
|
||||
const gallerylist = await getAllGalleries()
|
||||
|
||||
console.log(gallerylist);
|
||||
|
||||
return {
|
||||
props: { pagedata, serverRuntimeConfig, gallerylist, rssFeed },
|
||||
revalidate: 60
|
||||
}
|
||||
}
|
||||
|
||||
const Page = ({pagedata, serverRuntimeConfig, gallerylist, rssFeed}) => {
|
||||
return(<Layout pagedata={pagedata} serverRuntimeConfig={serverRuntimeConfig} gallerylist={gallerylist}>
|
||||
<Head>
|
||||
<link rel="alternate" type="application/rss+xml" title="Gallery Image Feed" href={rssFeed} />
|
||||
</Head>
|
||||
<h1 className="page_title col-sm-12">Photography</h1>
|
||||
<div className="col-sm-12 col-md-6 article_body">
|
||||
<p>I've always been drawn to photography. As a kid my Dad used to have his own darkroom and I remember the smell
|
||||
of the chemicals and the wonder as the images went from the slightly disconcerting inverted colours on the negatives
|
||||
to a full colour explosion on the paper.</p>
|
||||
<p>I like taking pictures, I love capturing a moment and freezing it in time, so that I can look back and remember, or that I can
|
||||
share that moment with others.</p>
|
||||
<p>I'm also learning new things. I'm pushing myself to do more with the camera. Not just the "candid" shots that my family put up with,
|
||||
but branching out into Macro photography, portraits and street photography.</p>
|
||||
<p>So here is the space where I post the images I make, and the journey I take in my photography.</p>
|
||||
</div>
|
||||
<div className="col-sm-12 col-md-6">
|
||||
<GalleryList gallery={gallerylist} basepath={serverRuntimeConfig.media_path}></GalleryList>
|
||||
</div>
|
||||
</Layout>)
|
||||
}
|
||||
|
||||
export default Page
|
||||
Loading…
Reference in a new issue