diff --git a/my-app/src/pages/Contact.modules.scss b/my-app/src/pages/Contact.modules.scss index 1f02634..01a578b 100644 --- a/my-app/src/pages/Contact.modules.scss +++ b/my-app/src/pages/Contact.modules.scss @@ -1,18 +1,51 @@ .form{ display: flex; flex-direction: column; + position: relative; + left: 30px; + width: 748px; + & h1{ + margin: 0; + } +} +.formLabel{ + margin-top: 12px; + margin-bottom: 12px; + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 16px; + color: #100D0E; +} +.formInput{ + height: 46px; + width: 748px; + background: #FFFFFF; + border: 1px solid #100D0E; + border-radius: 25px; + padding-left: 20px; } .checkbox{ display: flex; + flex-direction: row; align-items: center; justify-content: center; margin-top: 13.58px; margin-bottom: 12.6px; -} -.signupButton{ - display: flex; - align-items: center; - justify-content: center; + gap: 4.28px; + & p{ + color: #FF0000; + } + & input{ + width: 18.64px; + height: 18px; + border: 1px solid #000000; + border-radius: 3px; + } + & a{ + color: #100D0E; + } } input.input-error, select.input-error{ @@ -27,8 +60,9 @@ select.input-error{ display: flex; position: relative; justify-content: right; - float: right; - top: 30px; + width: 748px; + height: 0px; + top: 10px; } .errorP{ font-family: 'Roboto'; @@ -38,7 +72,31 @@ select.input-error{ line-height: 14px; color: #FF0000; } - -button:disabled { - opacity: 0.35; +.sentP{ + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-size: 12px; + line-height: 14px; + color: #008000; +} +.signupButtonDiv{ + display: flex; + align-items: center; + justify-content: center; + width: 748px; + height: 52.44px; +} +.signupButton{ + background: #000000; + border-radius: 25px; + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-size: 16px; + line-height: 19px; + letter-spacing: 0.05em; + color: #FFFFFF; + width: 100%; + height: 100%; } \ No newline at end of file diff --git a/my-app/src/pages/contact.tsx b/my-app/src/pages/contact.tsx index 9acef68..b658cf7 100644 --- a/my-app/src/pages/contact.tsx +++ b/my-app/src/pages/contact.tsx @@ -2,8 +2,10 @@ import { useFormik } from 'formik'; import './Contact.modules.scss' import { Schema } from '../schemas/Schema' -const onSubmit = async (actions:any) => { - await new Promise((resolve) => setTimeout(resolve, 1000)); +const onSubmit = async (values:any, actions:any) => { + console.log(values); + console.log(actions); + await new Promise((resolve) => setTimeout(resolve, 3000)); actions.resetForm() }; @@ -20,101 +22,106 @@ const Contact = () => { validationSchema: Schema , onSubmit }) - + return ( <> -