angrybeanie-front-end/pages/photography.js

48 lines
2.1 KiB
JavaScript
Raw Permalink Normal View History

import Layout from "../components/main.js"
import GalleryList from "../components/gallerylist.js"
import { getAllGalleries } from "../data/external/cms.js"
import getConfig from 'next/config'
2024-12-30 11:33:53 +11:00
import config from "../data/internal/config"
import Head from 'next/head'
export async function getStaticProps({params}) {
const pagedata = {
title: "Angrybeanie - Photography"
}
const { serverRuntimeConfig } = getConfig()
2024-12-30 11:33:53 +11:00
const rssFeed = config.siteURL+"/feed/gallery-images-feed.xml"
const gallerylist = await getAllGalleries()
return {
2024-12-30 11:33:53 +11:00
props: { pagedata, serverRuntimeConfig, gallerylist, rssFeed },
revalidate: 60
}
}
2024-12-30 11:33:53 +11:00
const Page = ({pagedata, serverRuntimeConfig, gallerylist, rssFeed}) => {
return(<Layout pagedata={pagedata} serverRuntimeConfig={serverRuntimeConfig} gallerylist={gallerylist}>
2024-12-30 11:33:53 +11:00
<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