feat: base pages and news fetching with cron job

This commit is contained in:
Riccardo
2023-11-25 09:20:38 +01:00
parent aa34263bdf
commit 74ec709155
31 changed files with 10641 additions and 123 deletions

10
components/Button.tsx Normal file
View File

@@ -0,0 +1,10 @@
interface ButtonProps {
label: string;
onClick: () => void;
}
export const Button = ({ label, onClick }: ButtonProps) => (
<button onClick={onClick} key={1} className="overflow-hidden rounded-md">
<h1>{label}</h1>
</button>
);

View File

@@ -0,0 +1,14 @@
export const VerticalLayout = ({ children }: { children: React.ReactNode }) => {
return (
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
gap: '16px',
}}
>
{children}
</div>
);
};