From 4cd8489dff94a813852ffe6713ac1b75cb229698 Mon Sep 17 00:00:00 2001
From: oriofir <97814056+oriofir@users.noreply.github.com>
Date: Mon, 12 Sep 2022 14:04:45 -0700
Subject: [PATCH] centered recaptcha and made more responsive css
---
.../sections/contact/form/form.module.scss | 9 ++++++-
.../partners/contact/contact.module.scss | 24 ++++++++++++-------
.../sections/partners/contact/index.tsx | 22 +++++++++--------
3 files changed, 36 insertions(+), 19 deletions(-)
diff --git a/src/components/sections/contact/form/form.module.scss b/src/components/sections/contact/form/form.module.scss
index b5f3f4a..c574cf7 100644
--- a/src/components/sections/contact/form/form.module.scss
+++ b/src/components/sections/contact/form/form.module.scss
@@ -144,11 +144,18 @@
}
iframe {
+ @media (max-width: 950px) {
+ margin-left: 75%;
+ }
+
display: flex;
flex-direction: row;
justify-content: center;
+ align-items: center;
border-radius: 8px;
- margin-top: 5rem;
+ margin-top: 2.5rem;
+ margin-left: 65%;
+ position: relative;
}
> label:nth-child(2) {
diff --git a/src/components/sections/partners/contact/contact.module.scss b/src/components/sections/partners/contact/contact.module.scss
index b17fe65..c298791 100644
--- a/src/components/sections/partners/contact/contact.module.scss
+++ b/src/components/sections/partners/contact/contact.module.scss
@@ -209,14 +209,6 @@
margin-top: tovw(60px, 'default', 35px);
}
- iframe {
- display: flex;
- flex-direction: row;
- justify-content: center;
- border-radius: 8px;
- margin-top: 2.5rem;
- }
-
button {
@include respond-to('mobile') {
width: 100%;
@@ -225,12 +217,28 @@
width: fit-content;
align-self: center;
+ position: relative;
font-size: tovw(18px, 'default', 14px);
margin-top: tovw(50px, 'default', 35px);
}
}
}
+ iframe {
+ @media (max-width: 950px) {
+ margin-left: 75%;
+ }
+
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ border-radius: 8px;
+ margin-top: 2.5rem;
+ margin-left: 65%;
+ position: relative;
+ }
+
.gradient {
@include respond-to('mobile') {
bottom: tovw(1px, 'mobile', 90px);
diff --git a/src/components/sections/partners/contact/index.tsx b/src/components/sections/partners/contact/index.tsx
index 09b54df..dcaac9b 100644
--- a/src/components/sections/partners/contact/index.tsx
+++ b/src/components/sections/partners/contact/index.tsx
@@ -238,16 +238,18 @@ const CustomForm = ({ data }: FormProps) => {
onChange={(e) => setText(e.target.value)}
>
-
-