Commit 169c4849 by Moorthy G

chore: remove pages director, create app/page.js

parent b1493bf0
import Button from '@components/button';
const HomePage = () => {
return (
<div className="container">
<center style={{ padding: '2em' }}>
<h3 style={{ fontWeight: 'normal' }}>
Welcome to Next.js starter template
</h3>
<Button size="small" href="/another">
View another page
</Button>
</center>
</div>
);
};
export default HomePage;
import PageNotFound from '@components/page-not-found';
function FourOhFour() {
return <PageNotFound />;
}
export default FourOhFour;
import '@styles/global.scss';
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />;
}
export default MyApp;
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
export default (req, res) => {
res.status(200).json({ name: 'John Doe' })
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment