40 lines
1.8 KiB
JavaScript
40 lines
1.8 KiB
JavaScript
|
|
import Layout from "../components/main.js"
|
||
|
|
import GalleryList from "../components/gallerylist.js"
|
||
|
|
import { getAllGalleries } from "../data/external/cms.js"
|
||
|
|
import getConfig from 'next/config'
|
||
|
|
|
||
|
|
export async function getStaticProps({params}) {
|
||
|
|
|
||
|
|
const pagedata = {
|
||
|
|
title: "Angrybeanie - Photography"
|
||
|
|
}
|
||
|
|
|
||
|
|
const gallerylist = await getAllGalleries()
|
||
|
|
|
||
|
|
const { serverRuntimeConfig } = getConfig()
|
||
|
|
|
||
|
|
return {
|
||
|
|
props: { pagedata, serverRuntimeConfig, gallerylist }
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const Page = ({pagedata, serverRuntimeConfig, gallerylist}) => {
|
||
|
|
return(<Layout pagedata={pagedata} serverRuntimeConfig={serverRuntimeConfig} gallerylist={gallerylist}>
|
||
|
|
<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
|