www/pages/index.tsx

30 lines
874 B
TypeScript
Raw Normal View History

2021-12-08 03:38:31 +00:00
import Link from 'next/link';
import React from 'react';
import Layout from '../components/layout';
import Pages from '../public/pages.json';
// import { GetStaticProps } from 'next';
function HomePage() {
return (
<Layout name='' title='PaulW.XYZ'>
<section className='block' style={{ textAlign: 'center' }}>
<div className='h2'>Welcome to my website!</div> {
Pages.map(obj => {
return <div key='' className='h3'>
<Link href={obj.link}>
<a>{obj.title}</a>
</Link>
</div>
})
}
</section>
</Layout>
)
}
export default HomePage;
// export async function getStaticProps(context): GetStaticProps {
// }