Add custom questions + change theme + remove webcam from photo question

This commit is contained in:
Lucien Astié 2024-08-10 10:26:00 +02:00
parent 28e1a0c4f8
commit cea7a5bc9d
6 changed files with 225 additions and 139 deletions

9
components/modeCard.tsx Normal file
View file

@ -0,0 +1,9 @@
export default function ModeCard({ mode, selected, onChange }){
const Icon = mode.icon
return <>
<div onClick={onChange} className={`w-24 h-24 rounded-md flex p-4 flex-col items-center ${selected ? "bg-primary" : "bg-zinc-300"}`}>
<Icon className="w-12 h-12" />
<p>{mode.name}</p>
</div>
</>
}