From 29547d1acd7bc88b1151edf2f31d59c243e82eb2 Mon Sep 17 00:00:00 2001 From: Anthony G <1@anthony.sh> Date: Tue, 11 Aug 2026 09:00:34 +0200 Subject: [PATCH] feat: restyle SubmitForm with Tailwind, inline button, and violet glow --- src/components/SubmitForm.tsx | 130 ++++++++++++++++++++++------------ 1 file changed, 83 insertions(+), 47 deletions(-) diff --git a/src/components/SubmitForm.tsx b/src/components/SubmitForm.tsx index 23f1639..53e8842 100644 --- a/src/components/SubmitForm.tsx +++ b/src/components/SubmitForm.tsx @@ -7,6 +7,18 @@ import { useRouter } from '@/navigation' const FORMATS = ['mp4', 'mp3', 'webm', 'mkv'] const QUALITIES = ['best', '1080p', '720p', '480p', '360p'] +function Spinner() { + return ( + + ) +} + +const selectClass = + 'rounded-lg border border-gray-200 dark:border-slate-700 bg-white dark:bg-slate-900 px-2 py-1 text-gray-900 dark:text-gray-50 text-sm outline-none focus:ring-2 focus:ring-violet-500' + export function SubmitForm() { const t = useTranslations('home') const router = useRouter() @@ -52,58 +64,82 @@ export function SubmitForm() { } return ( -
) }