diff --git a/src/components/LoginForm/LonginForm.tsx b/src/components/LoginForm/LoginForm.tsx similarity index 100% rename from src/components/LoginForm/LonginForm.tsx rename to src/components/LoginForm/LoginForm.tsx diff --git a/src/components/RegisterForm/RegisterForm.tsx b/src/components/RegisterForm/RegisterForm.tsx new file mode 100644 index 0000000..73ce574 --- /dev/null +++ b/src/components/RegisterForm/RegisterForm.tsx @@ -0,0 +1,101 @@ +import React, { memo, useCallback } from "react" +import styles from "./styles.module.scss" + +const RegisterForm = (): JSX.Element => { + const onSubmit = useCallback((event: React.SyntheticEvent): void => { + event.preventDefault() + const target = event.target as typeof event.target & { + firstname: { value: string } + lastname: { value: string } + email: { value: string } + phone: { value: string } + } + const firstname = target.firstname.value + const lastname = target.lastname.value + const email = target.email.value + const phone = target.phone.value + + console.log("register fields checked", firstname, lastname, email, phone) + + // call service with fields + }, []) + + /* + prenom + nom + mail + tel + j'ai déjà été bénévole pour PEL + un petit mot... + */ + + return ( +
+
+
Qu'est-ce le festival ?
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis + nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu + fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +
+
Être bénévole à PEL c'est :
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis + nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu + fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
J'ai déjà été bénévole
+ + + + +
+
+ +