You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

import Head from 'next/head'
import styles from '../styles/Gallery.module.css'
import Header from '../components/header';
import Footer from '../components/footer';
3 years ago
const cache = {};
function importAll(r) {
r.keys().forEach((key) => (cache[key] = r(key)));
}
// Note from the docs -> Warning: The arguments passed to require.context must be literals!
importAll(require.context("../public/gallery", false, /\.(png|jpe?g|svg)$/));
const images = Object.entries(cache).map(module => module[1].default);
export default function Gallery() {
3 years ago
// return (
// <>
// <p>Media Page..</p>
// {images.map(image => (
// <img style={{width: 100}} src={image} />
// ))}
// </>
// );
return (
<div className="page">
<Head>
<title>Trick - Gallery</title>
</Head>
<Header />
<div className="container">
<article className="content">
3 years ago
<section className="card">
<h1 className="h-unset">Gallery</h1>
3 years ago
<p>Coming Soon...</p>
</section>
</article>
</div>
<Footer />
</div>
)
}