diff --git a/components/block.tsx b/components/block.tsx index 7dafb50..45430ff 100644 --- a/components/block.tsx +++ b/components/block.tsx @@ -53,13 +53,12 @@ export const BlockBetween = ({ return (
{left}
-
{right}
) diff --git a/features/block/top-banner.tsx b/features/block/top-banner.tsx index bc96271..b0c83fa 100644 --- a/features/block/top-banner.tsx +++ b/features/block/top-banner.tsx @@ -100,7 +100,123 @@ export const IndexBanner = () => { } return ( - + + + +
+ zero +
+ {i18n.t('features_block_top_banner_891192')} +
+
+ {isEn && ( +
+ to Expand Your Brokerage Business Online +
+ )} + + } + right={ +
+
+ {i18n.t('features_block_top_banner_891193')} + {isEn && ( + + *: + + )} +
+ {isEn ? ( +
+ ZERO + + System Fees for HK Securities Trading + +
+ ) : ( +
+ {i18n.t('features_block_top_banner_891194')} + + {i18n.t('features_block_top_banner_891192')} + + {i18n.t('features_block_top_banner_891195')} + * + + +
+ )} + {isEn ? ( +
+ Flexible Platform Fees Based on Transaction Volume +
+ ) : ( +
    +
  • +
    + + {i18n.t('features_block_top_banner_891196')} + + + {i18n.t('features_block_top_banner_891197')} + +
    +
  • + {/*
  • +
    + + {i18n.t('features_block_top_banner_891198')} + + + {i18n.t('features_block_top_banner_891199')} + +
    +
  • */} +
+ )} + +
+ + coffee +
+
+ * + {i18n.t('features_block_top_banner_891201')} +
+
+ } + >
+
+
+ {/* { } > - +
*/}
) } diff --git a/features/contact-form/index.tsx b/features/contact-form/index.tsx index e9d39c5..73dbcd2 100644 --- a/features/contact-form/index.tsx +++ b/features/contact-form/index.tsx @@ -1,15 +1,10 @@ import { Form, Tabs, Input, Button, DatePicker, TimePicker, Checkbox, message } from 'antd' -import { createClient } from '@supabase/supabase-js' import styles from './index.module.scss' import { useMemo, useState } from 'react' import { useTranslation } from 'next-i18next' // @ts-ignore import debounce from 'lodash/debounce' - -const supabaseUrl = 'https://fttapltgubuovrbvgvjg.supabase.co' -const supabaseKey = - 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZ0dGFwbHRndWJ1b3ZyYnZndmpnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjQ5MjE0MDAsImV4cCI6MjA0MDQ5NzQwMH0.5lpEBaKxHXoQfE-rJksy9Et-e5A3EXUzkTc52lGpAyc' -const supabaseClient = createClient(supabaseUrl, supabaseKey) +import { submitContactUsForm } from '@/services' type IPrivacyPolicy = { [key: string]: string } @@ -32,7 +27,6 @@ const ContactForm = () => { } const handleSubmit = () => { - if (!supabaseClient) return if (isLoading) return const { @@ -73,18 +67,16 @@ const ContactForm = () => { } else { delete insertData.enquiry_type delete insertData.description - const { time } = insertData + const { date, time } = insertData + insertData.date = date.format('YYYY-MM-DD') insertData.time = time.format('HH:mm') } - const { data, error } = await supabaseClient.from('contact_us').insert([insertData]) - if (!error) { - message.success(i18n.t('features_contact_form_index_891178')) - } + await submitContactUsForm(insertData) setIsLoading(false) return } catch (err) { - console.log('submit form error:', err) + // console.log('submit form error:', err) } setIsLoading(false) diff --git a/features/home/home-solution-swiper.tsx b/features/home/home-solution-swiper.tsx index b823409..39ac3e3 100644 --- a/features/home/home-solution-swiper.tsx +++ b/features/home/home-solution-swiper.tsx @@ -68,7 +68,7 @@ const HomeSolutionSwiper = () => { 'zh-CN': 'https://assets.lbctrl.com/uploads/259f1573-bfca-4e61-b056-3b39a10a45b6/wm.png', 'zh-HK': 'https://assets.lbctrl.com/uploads/259f1573-bfca-4e61-b056-3b39a10a45b6/wm.png', }, - localLink: '/solutions/us-stock', + localLink: '/solutions/wealth-management', }, title: i18n.t('pages_virtual_assets36_1'), }, diff --git a/features/wm-contact-us/index.tsx b/features/wm-contact-us/index.tsx index d85ff4f..00bdcf8 100644 --- a/features/wm-contact-us/index.tsx +++ b/features/wm-contact-us/index.tsx @@ -22,11 +22,11 @@ const ContactUs = () => { value: '+852 3851 1711', type: 'tel:', }, - { - label: i18n.t('features_wm_contact_us_index_891161'), - value: i18n.t('features_wm_contact_us_index_891180'), - type: '', - }, + // { + // label: i18n.t('features_wm_contact_us_index_891161'), + // value: i18n.t('features_wm_contact_us_index_891180'), + // type: '', + // }, ], }, // { @@ -98,10 +98,10 @@ const ContactUs = () => { {' / '} {'+852 3851 1711'} - + {/* {i18n.t('features_wm_contact_us_index_891161')} {i18n.t('features_wm_contact_us_index_891181')} - + */}
-