website refactor

This commit is contained in:
2026-01-19 18:01:30 +01:00
parent 6154d54435
commit 61b5cf3b64
120 changed files with 2226 additions and 2021 deletions

29
apps/website/ui/Form.tsx Normal file
View File

@@ -0,0 +1,29 @@
import React, { ReactNode, FormEventHandler, forwardRef } from 'react';
export interface FormProps {
children: ReactNode;
onSubmit?: FormEventHandler<HTMLFormElement>;
noValidate?: boolean;
className?: string;
}
export const Form = forwardRef<HTMLFormElement, FormProps>(({
children,
onSubmit,
noValidate = true,
className
}, ref) => {
return (
<form
ref={ref}
onSubmit={onSubmit}
noValidate={noValidate}
className={className}
style={{ width: '100%' }}
>
{children}
</form>
);
});
Form.displayName = 'Form';