From 43c185df01e2441a2d884b8682680af59a0c5832 Mon Sep 17 00:00:00 2001 From: Hyejin Yoon <0327jane@gmail.com> Date: Fri, 11 Oct 2024 11:27:11 +0900 Subject: [PATCH] fix: display demo form modal on mobile (#11581) --- .../pages/cloud/DemoForm/styles.module.scss | 4 +- .../src/pages/cloud/DemoFormModal/index.jsx | 17 +++++++ .../cloud/DemoFormModal/styles.module.scss | 45 +++++++++++++++++ docs-website/src/pages/cloud/Hero/index.js | 48 +++++++++++++------ .../src/pages/cloud/Hero/styles.module.scss | 6 ++- docs-website/src/pages/cloud/index.js | 31 ++++++++---- .../src/pages/cloud/styles.module.scss | 13 ++++- 7 files changed, 135 insertions(+), 29 deletions(-) create mode 100644 docs-website/src/pages/cloud/DemoFormModal/index.jsx create mode 100644 docs-website/src/pages/cloud/DemoFormModal/styles.module.scss diff --git a/docs-website/src/pages/cloud/DemoForm/styles.module.scss b/docs-website/src/pages/cloud/DemoForm/styles.module.scss index 4157a228ae739..c56dd1d598605 100644 --- a/docs-website/src/pages/cloud/DemoForm/styles.module.scss +++ b/docs-website/src/pages/cloud/DemoForm/styles.module.scss @@ -46,9 +46,7 @@ .bookButton { display: block; } - .formContainer { - display: none; - } + .productTourButton { text-align: center!important; } diff --git a/docs-website/src/pages/cloud/DemoFormModal/index.jsx b/docs-website/src/pages/cloud/DemoFormModal/index.jsx new file mode 100644 index 0000000000000..7c890950bda97 --- /dev/null +++ b/docs-website/src/pages/cloud/DemoFormModal/index.jsx @@ -0,0 +1,17 @@ +import React, { useEffect } from 'react'; +import styles from "./styles.module.scss"; +import DemoForm from '../DemoForm'; + +const DemoFormModal = ({ formId, handleCloseModal }) => { + + return ( +