feat: add submission form and status page
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import type { Metadata } from 'next'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Ombrora — Telechargeur de videos',
|
||||
}
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="fr">
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { SubmitForm } from '@/components/SubmitForm'
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<main style={{ padding: '2rem' }}>
|
||||
<h1>Ombrora</h1>
|
||||
<SubmitForm />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { StatusView } from '@/components/StatusView'
|
||||
|
||||
export default async function StatusPage({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ uuid: string }>
|
||||
}) {
|
||||
const { uuid } = await params
|
||||
return (
|
||||
<main style={{ padding: '2rem' }}>
|
||||
<h1>Statut du telechargement</h1>
|
||||
<StatusView uuid={uuid} />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user