From fe43e6a0fa5ec0928d8b30b7a4056873abe82e91 Mon Sep 17 00:00:00 2001 From: ThyeeZz Date: Wed, 4 Dec 2024 16:51:26 +0800 Subject: [PATCH] updat esubscribe button --- src/components/card/DemoCard.jsx | 6 ++-- src/components/footer/index.tsx | 10 ++++-- src/components/subscribe/index.module.less | 40 ++++++---------------- src/components/subscribe/index.tsx | 7 ++-- src/http/submitEmail.ts | 2 +- src/pages/blog/index.tsx | 1 - src/pages/index.tsx | 1 - src/pages/milvus-demos/index.jsx | 6 ---- 8 files changed, 24 insertions(+), 49 deletions(-) diff --git a/src/components/card/DemoCard.jsx b/src/components/card/DemoCard.jsx index 1390bb440..b375a413e 100644 --- a/src/components/card/DemoCard.jsx +++ b/src/components/card/DemoCard.jsx @@ -103,9 +103,9 @@ const DemoCard = ({ } diff --git a/src/components/footer/index.tsx b/src/components/footer/index.tsx index ffcd7eb18..e7b20aa9c 100644 --- a/src/components/footer/index.tsx +++ b/src/components/footer/index.tsx @@ -15,6 +15,7 @@ import { import { RightTopArrowIcon } from '@/components/icons'; import SocialMedias from '../socialMedias'; import { LanguageEnum } from '../language-selector'; +import SubscribeNewsletter from '../subscribe'; const footerJson = [ { @@ -99,12 +100,12 @@ const Footer = (props: Props) => { content )} > -
+
Milvus logo { ]} />
+
+ +
@@ -141,7 +145,7 @@ const Footer = (props: Props) => {
diff --git a/src/components/subscribe/index.module.less b/src/components/subscribe/index.module.less index 8a67a5b3c..df386dc39 100644 --- a/src/components/subscribe/index.module.less +++ b/src/components/subscribe/index.module.less @@ -1,40 +1,21 @@ @import (reference) '../../styles/global.module.less'; .subscribeContainer { - display: flex; - gap: 90px; - justify-content: space-between; - padding: 50px; - border-radius: 16px; - border: 1px solid @color-black4; background: #fff; + width: 100%; - @media @tablet, @phone { - flex-direction: column; - padding: 30px; - gap: 24px; - } - - .descriptionSection { - flex: 1; - h3 { - .heading3(); - margin-bottom: 8px; - color: @color-black1; - max-width: 450px; - } - - p { - .paragraph4-regular(); - color: @color-black2; - } + .title { + .paragraph1-bold(); + margin-bottom: 8px; + color: @color-black1; } } + .subscribeSection { - flex: 0 0 520px; display: flex; align-items: flex-start; gap: 12px; + width: 100%; @media @tablet { max-width: 420px; @@ -61,10 +42,7 @@ .customInputContainer { border-radius: 10px; border: 1px solid @color-black3; - padding-left: 20px; - padding-right: 20px; - padding-top: 14px; - padding-bottom: 14px; + padding: 8px 16px; background-color: #fff; &:focus-within { @@ -84,6 +62,8 @@ } .customScribeButton { + .paragraph4(); + padding: 9px 16px; border: none; @media @phone { width: 100%; diff --git a/src/components/subscribe/index.tsx b/src/components/subscribe/index.tsx index 2d5725444..af87cbb5e 100644 --- a/src/components/subscribe/index.tsx +++ b/src/components/subscribe/index.tsx @@ -65,10 +65,9 @@ const SubscribeNewsletter = (props: { return (
-
-

{t('home:subscribeSection.subscribe.title')}

-

{t('home:subscribeSection.subscribe.desc')}

-
+

+ {t('home:subscribeSection.subscribe.title')} +

-
diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 5e5d158ad..9e5a9ea3b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -41,7 +41,6 @@ export default function Homepage(props: { - ); diff --git a/src/pages/milvus-demos/index.jsx b/src/pages/milvus-demos/index.jsx index d15104ca2..76abd1f67 100644 --- a/src/pages/milvus-demos/index.jsx +++ b/src/pages/milvus-demos/index.jsx @@ -143,12 +143,6 @@ export default function MilvusDemos() { ))} - -
- -