feat: enhance course page and indicators

This commit is contained in:
swve 2025-04-08 15:44:13 +02:00
parent ca12e799df
commit b40ddde2c2
6 changed files with 895 additions and 433 deletions

View file

@ -4,11 +4,19 @@ import { styled } from '@stitches/react'
import { blackA } from '@radix-ui/colors'
import { Info } from 'lucide-react'
const FormLayout: React.FC<{ children: React.ReactNode; onSubmit: (e: any) => void }> = (props) => (
<FormRoot className="h-fit" onSubmit={props.onSubmit}>
{props.children}
</FormRoot>
)
interface FormLayoutProps {
children: React.ReactNode
onSubmit: (e: any) => void
className?: string
}
const FormLayout = ({ children, onSubmit, className }: FormLayoutProps) => {
return (
<Form.Root onSubmit={onSubmit} className={className}>
{children}
</Form.Root>
)
}
export const FormLabelAndMessage = (props: {
label: string