feat: base pages and news fetching with cron job
This commit is contained in:
16
app/page.tsx
Normal file
16
app/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
'use client';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { Button } from '../components/Button';
|
||||
import { VerticalLayout } from '../components/VerticalLayout';
|
||||
|
||||
export default function Home() {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<VerticalLayout>
|
||||
<h1>Home</h1>
|
||||
<Button label="Subscribe" onClick={() => router.push('/subscribe')} />
|
||||
<Button label="Unsubscribe" onClick={() => router.push('/unsubscribe')} />
|
||||
</VerticalLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user