diff --git a/public/locales/fr.json b/public/locales/fr.json index c3c1918..d98f913 100644 --- a/public/locales/fr.json +++ b/public/locales/fr.json @@ -36,4 +36,4 @@ "users_desc": "Voici la liste de tout les utilisateurs", "email": "E-mail" } -} +} \ No newline at end of file diff --git a/src/modules/CodingGame.tsx b/src/modules/CodingGame.tsx new file mode 100644 index 0000000..2cf394a --- /dev/null +++ b/src/modules/CodingGame.tsx @@ -0,0 +1,80 @@ +"use client"; + +import { AnimatePresence, motion } from "framer-motion"; +import { useCommandStore } from "@src/stores/useCommandStore"; +import { Textarea } from "@src/ui/textarea"; + +export type CodingGameProps = React.DetailedHTMLProps, HTMLDivElement> & { + consigne: string; + outpout: string; + code?: string; +}; + +export const CodingGame: React.FC = ({ consigne, outpout, code }) => { + const { remove } = useCommandStore(); + + return ( + <> +
+ + + {consigne.split("").map((char, i) => ( + + {char === " " ? "\u00A0" : char} + + ))} + + +
+
+ +