From 81a0a060ee88d55887ec45f03dba8b9ac955399b Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Wed, 3 Jun 2026 17:22:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BE=E7=89=87=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E4=B8=BA=E7=BA=BF=E4=B8=8A=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/aida/index.vue | 51 ++++++------ src/pages/home/components/Carousel.vue | 105 +++++++++++++++++++++---- src/pages/home/index.vue | 11 +-- src/tools/config.ts | 1 + 4 files changed, 120 insertions(+), 48 deletions(-) create mode 100644 src/tools/config.ts diff --git a/src/pages/aida/index.vue b/src/pages/aida/index.vue index a725f7b..1fea826 100644 --- a/src/pages/aida/index.vue +++ b/src/pages/aida/index.vue @@ -5,9 +5,8 @@ import { gsap } from 'gsap' import { ScrollTrigger } from 'gsap/ScrollTrigger' import diamondIcon from '@/assets/images/aida/diamond.svg' - import industryTwo from '@/assets/images/aida/industry-2.png' - import industryThree from '@/assets/images/aida/industry-3.png' import timeIcon from '@/assets/images/aida/time.svg' + import { IMAGE_BASE_URL } from '@/tools/config' gsap.registerPlugin(ScrollTrigger) @@ -15,9 +14,9 @@ const demoVideo = computed(() => { if (locale.value === 'en') { - return 'https://code-create.com.hk/wp-content/uploads/2026/02/Demo-video-26-2-27-EN.mp4' + return `${IMAGE_BASE_URL}/wp-content/uploads/2026/02/Demo-video-26-2-27-EN.mp4` } - return 'https://code-create.com.hk/wp-content/uploads/2026/02/Demo-video-26-2-27-CN.mp4' + return `${IMAGE_BASE_URL}/wp-content/uploads/2026/02/Demo-video-26-2-27-CN.mp4` }) const keyFeatures = computed(() => { @@ -27,17 +26,17 @@ const benefits = computed(() => { return [ { - image: 'https://code-create.com.hk/wp-content/uploads/2022/11/aida_feature_icon_01.png', + image: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/aida_feature_icon_01.png`, alt: 'Light bulb icon', text: t('Aida.benefits1') }, { - image: 'https://code-create.com.hk/wp-content/uploads/2022/11/aida_feature_icon_02.png', + image: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/aida_feature_icon_02.png`, alt: 'Stopwatch icon', text: t('Aida.benefits2') }, { - image: 'https://code-create.com.hk/wp-content/uploads/2022/11/aida_feature_icon_03-1.png', + image: `${IMAGE_BASE_URL}/wp-content/uploads/2022/11/aida_feature_icon_03-1.png`, alt: 'Drawing brush icon', text: t('Aida.benefits3') } @@ -55,23 +54,23 @@ ] }) -const plans = computed(() => { + const plans = computed(() => { return [ - { - icon: timeIcon, - name: t('Aida.trial'), - description: t('Aida.days'), - action: t('Aida.start'), - href: 'https://www.aida.com.hk/register' - }, - { - icon: diamondIcon, - name: t('Aida.corporate'), - description: t('Aida.customised'), - action: t('Aida.contactUs'), - href: 'mailto:info\\@code-create.com.hk?subject=AiDA%203.1%20Corporate%20Plan' - } - ] + { + icon: timeIcon, + name: t('Aida.trial'), + description: t('Aida.days'), + action: t('Aida.start'), + href: 'https://www.aida.com.hk/register' + }, + { + icon: diamondIcon, + name: t('Aida.corporate'), + description: t('Aida.customised'), + action: t('Aida.contactUs'), + href: 'mailto:info\\@code-create.com.hk?subject=AiDA%203.1%20Corporate%20Plan' + } + ] }) const demoVideoRef = useTemplateRef('demoVideoRef') @@ -311,7 +310,7 @@ const plans = computed(() => {
AiDA 3.1 banner

AiDA 3.1

@@ -348,13 +347,13 @@ const plans = computed(() => {
Fashion design sketches on paper AiDA design workspace preview diff --git a/src/pages/home/components/Carousel.vue b/src/pages/home/components/Carousel.vue index 6cdc95b..fbf7d2d 100644 --- a/src/pages/home/components/Carousel.vue +++ b/src/pages/home/components/Carousel.vue @@ -1,15 +1,19 @@