From b5b00c5986795d1a9d1463e83b8eb5a2fe3b5d07 Mon Sep 17 00:00:00 2001
From: huxin <1219654535@qq.com>
Date: Thu, 4 May 2023 00:47:08 +0800
Subject: [PATCH] =?UTF-8?q?chore:=20=E7=BF=BB=E8=AF=91=E9=80=82=E9=85=8D?=
=?UTF-8?q?=EF=BC=8C=E4=B8=BB=E9=A2=98=E9=80=82=E9=85=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app.vue | 3 +
components/Carousel.vue | 21 +--
components/brand/logo.vue | 2 +-
components/header/nav.vue | 35 +++--
config/pages/home/use-carousel.ts | 27 +---
config/pages/home/use-section-five.ts | 37 ++++++
config/pages/home/use-section-four.ts | 12 ++
config/pages/home/use-section-one.ts | 18 +--
config/pages/home/use-section-six.ts | 49 +++++++
config/pages/home/use-section-three.ts | 52 ++++----
config/pages/home/use-section-two.ts | 14 +-
config/use-nav.ts | 15 ++-
layouts/default.vue | 14 +-
locales/en-UK.json | 58 ++++-----
pages/index.vue | 170 +++++++++++--------------
public/topverse.black.svg | 25 ++++
styles/ui.css | 2 +-
17 files changed, 313 insertions(+), 241 deletions(-)
create mode 100644 config/pages/home/use-section-five.ts
create mode 100644 config/pages/home/use-section-four.ts
create mode 100644 config/pages/home/use-section-six.ts
create mode 100644 public/topverse.black.svg
diff --git a/app.vue b/app.vue
index cb8d025..121b100 100644
--- a/app.vue
+++ b/app.vue
@@ -3,6 +3,9 @@ import { appName } from './constants'
useHead({
title: appName,
+ bodyAttrs: {
+ class: 'scrollbar-thumb-color-dark-50 scrollbar-track-color-transparent scrollbar-radius-2 scrollbar-thumb-radius-4 scrollbar-w-4px scrollbar scrollbar-rounded',
+ },
})
diff --git a/components/Carousel.vue b/components/Carousel.vue
index 34f5f77..2fd0f85 100644
--- a/components/Carousel.vue
+++ b/components/Carousel.vue
@@ -1,11 +1,12 @@
-
-
-
diff --git a/config/pages/home/use-carousel.ts b/config/pages/home/use-carousel.ts
index 8bea2c1..7ec939c 100644
--- a/config/pages/home/use-carousel.ts
+++ b/config/pages/home/use-carousel.ts
@@ -1,28 +1,13 @@
export function useCarousel() {
return [
{
- title: 'home.carousel.one.topic',
- description: 'home.carousel.one.description',
- entry: 'home.carousel.one.entry',
+ title: 'home.carousel.topic[0]',
+ description: 'home.carousel.description[0]',
+ link: {
+ name: 'home.carousel.link[0]',
+ href: '#',
+ },
img: '/imgs/1 (1).jpg',
},
- {
- title: 'home.carousel.two.topic',
- description: 'home.carousel.two.description',
- entry: 'home.carousel.two.entry',
- img: '/imgs/1 (2).jpg',
- },
- {
- title: 'home.carousel.three.topic',
- description: 'home.carousel.three.description',
- entry: 'home.carousel.three.entry',
- img: '/imgs/1 (3).jpg',
- },
- {
- title: 'home.carousel.four.topic',
- description: 'home.carousel.four.description',
- entry: 'home.carousel.four.entry',
- img: '/imgs/1 (4).jpg',
- },
]
}
diff --git a/config/pages/home/use-section-five.ts b/config/pages/home/use-section-five.ts
new file mode 100644
index 0000000..f4e34fa
--- /dev/null
+++ b/config/pages/home/use-section-five.ts
@@ -0,0 +1,37 @@
+export function useSectionFive() {
+ return {
+ title: 'home.sectionFive.title',
+ topic: 'home.sectionFive.topic',
+ description: 'home.sectionFive.description',
+ link: {
+ name: 'home.sectionFive.link',
+ href: '#',
+ },
+ content: [
+ {
+ topic: 'home.sectionFive.content.topic[0]',
+ description: 'home.sectionFive.content.description[0]',
+ },
+ {
+ topic: 'home.sectionFive.content.topic[1]',
+ description: 'home.sectionFive.content.description[1]',
+ },
+ {
+ topic: 'home.sectionFive.content.topic[2]',
+ description: 'home.sectionFive.content.description[2]',
+ },
+ {
+ topic: 'home.sectionFive.content.topic[3]',
+ description: 'home.sectionFive.content.description[3]',
+ },
+ {
+ topic: 'home.sectionFive.content.topic[4]',
+ description: 'home.sectionFive.content.description[4]',
+ },
+ {
+ topic: 'home.sectionFive.content.topic[5]',
+ description: 'home.sectionFive.content.description[5]',
+ },
+ ],
+ }
+}
diff --git a/config/pages/home/use-section-four.ts b/config/pages/home/use-section-four.ts
new file mode 100644
index 0000000..9ac7e3c
--- /dev/null
+++ b/config/pages/home/use-section-four.ts
@@ -0,0 +1,12 @@
+export function useSectionFour() {
+ return {
+ img: '/imgs/1 (1).jpg',
+ title: 'home.sectionFour.title',
+ topic: 'home.sectionFour.topic',
+ description: 'home.sectionFour.description',
+ link: {
+ name: 'home.sectionFour.link',
+ href: '#',
+ },
+ }
+}
diff --git a/config/pages/home/use-section-one.ts b/config/pages/home/use-section-one.ts
index bbd767d..509a930 100644
--- a/config/pages/home/use-section-one.ts
+++ b/config/pages/home/use-section-one.ts
@@ -4,19 +4,19 @@ export function useSectionOne() {
description: 'home.sectionOne.description',
content: [
{
- title: 'home.sectionOne.one.title',
- subtext: 'home.sectionOne.one.subtext',
- description: 'home.sectionOne.one.description',
+ title: 'home.sectionOne.content.title[0]',
+ subtext: 'home.sectionOne.content.subtext[0]',
+ description: 'home.sectionOne.content.description[0]',
},
{
- title: 'home.sectionOne.two.title',
- subtext: 'home.sectionOne.two.subtext',
- description: 'home.sectionOne.two.description',
+ title: 'home.sectionOne.content.title[1]',
+ subtext: 'home.sectionOne.content.subtext[1]',
+ description: 'home.sectionOne.content.description[1]',
},
{
- title: 'home.sectionOne.three.title',
- subtext: 'home.sectionOne.three.subtext',
- description: 'home.sectionOne.three.description',
+ title: 'home.sectionOne.content.title[2]',
+ subtext: 'home.sectionOne.content.subtext[2]',
+ description: 'home.sectionOne.content.description[2]',
},
],
}
diff --git a/config/pages/home/use-section-six.ts b/config/pages/home/use-section-six.ts
new file mode 100644
index 0000000..79a910e
--- /dev/null
+++ b/config/pages/home/use-section-six.ts
@@ -0,0 +1,49 @@
+export function useSectionSix() {
+ return {
+ topic: 'home.sectionSix.topic',
+ description: 'home.sectionSix.description',
+ content: [
+ {
+ title: 'home.sectionSix.content.title[0]',
+ topic: 'home.sectionSix.content.topic[0]',
+ description: 'home.sectionSix.content.topic[0]',
+ link: {
+ name: 'home.sectionSix.content.link[0]',
+ href: '#',
+ },
+ img: '/imgs/1 (4).jpg',
+ },
+ {
+ title: 'home.sectionSix.content.title[1]',
+ topic: 'home.sectionSix.content.topic[1]',
+ description: 'home.sectionSix.content.topic[1]',
+ link: {
+ name: 'home.sectionSix.content.link[1]',
+ href: '#',
+ },
+ img: '/imgs/1 (1).jpg',
+ },
+ {
+ title: 'home.sectionSix.content.title[2]',
+ topic: 'home.sectionSix.content.topic[2]',
+ description: 'home.sectionSix.content.topic[2]',
+ link: {
+ name: 'home.sectionSix.content.link[2]',
+ href: '#',
+ },
+ img: '/imgs/1 (2).jpg',
+ },
+ {
+ title: 'home.sectionSix.content.title[3]',
+ topic: 'home.sectionSix.content.topic[3]',
+ description: 'home.sectionSix.content.topic[3]',
+ link: {
+ name: 'home.sectionSix.content.link[3]',
+ href: '#',
+ },
+ img: '/imgs/1 (3).jpg',
+ },
+
+ ],
+ }
+}
diff --git a/config/pages/home/use-section-three.ts b/config/pages/home/use-section-three.ts
index 67d63d5..93cff9c 100644
--- a/config/pages/home/use-section-three.ts
+++ b/config/pages/home/use-section-three.ts
@@ -3,56 +3,58 @@ export function useSectionThree() {
title: 'home.sectionThree.title',
topic: 'home.sectionThree.topic',
description: 'home.sectionThree.description',
- entry: 'home.sectionThree.entry',
- contentFirst: [
+ link: {
+ name: 'home.sectionThree.link',
+ href: '#',
+ },
+ contentPrimary: [
{
- topic: 'home.sectionThree.contentFirst.topic1',
- img: '/imgs/1 (1).jpg',
+ topic: 'home.sectionThree.contentPrimary.topic[0]',
+ img: '/imgs/1 (2).jpg',
href: '#',
},
{
- topic: 'home.sectionThree.contentFirst.topic2',
+ topic: 'home.sectionThree.contentPrimary.topic[1]',
img: '/imgs/1 (1).jpg',
href: '#',
},
],
contentSecondary: [
+
{
- topic: 'home.sectionThree.contentSecondary.topic1',
- img: '/imgs/1 (1).jpg',
+ topic: 'home.sectionThree.contentSecondary.topic[0]',
+ img: '/imgs/1 (5).jpg',
+ href: '#',
+ }, {
+ topic: 'home.sectionThree.contentSecondary.topic[1]',
+ img: '/imgs/1 (3).jpg',
href: '#',
},
{
- topic: 'home.sectionThree.contentSecondary.topic2',
- img: '/imgs/1 (1).jpg',
- href: '#',
- },
- {
- topic: 'home.sectionThree.contentSecondary.topic3',
- img: '/imgs/1 (1).jpg',
+ topic: 'home.sectionThree.contentSecondary.topic[2]',
+ img: '/imgs/1 (4).jpg',
href: '#',
},
],
contentThird: [
{
- topic: 'home.sectionThree.contentThird.topic1',
- img: '/imgs/1 (1).jpg',
+ topic: 'home.sectionThree.contentThird.topic[0]',
+ img: '/imgs/1 (9).jpg',
+ href: '#',
+ }, {
+ topic: 'home.sectionThree.contentThird.topic[1]',
+ img: '/imgs/1 (6).jpg',
href: '#',
},
{
- topic: 'home.sectionThree.contentThird.topic2',
- img: '/imgs/1 (1).jpg',
+ topic: 'home.sectionThree.contentThird.topic[2]',
+ img: '/imgs/1 (7).jpg',
href: '#',
},
{
- topic: 'home.sectionThree.contentThird.topic3',
- img: '/imgs/1 (1).jpg',
- href: '#',
- },
- {
- topic: 'home.sectionThree.contentThird.topic4',
- img: '/imgs/1 (1).jpg',
+ topic: 'home.sectionThree.contentThird.topic[3]',
+ img: '/imgs/1 (8).jpg',
href: '#',
},
diff --git a/config/pages/home/use-section-two.ts b/config/pages/home/use-section-two.ts
index 1324d94..8c4dcf5 100644
--- a/config/pages/home/use-section-two.ts
+++ b/config/pages/home/use-section-two.ts
@@ -5,37 +5,37 @@ export function useSectionTwo() {
{
img: 'https://landvault.io/assets/logos/paypal.svg',
href: '#',
- title: 'paypal',
+ title: 'home.sectionTwo.content.title[0]',
},
{
img: 'https://landvault.io/assets/logos/paypal.svg',
href: '#',
- title: 'paypal',
+ title: 'home.sectionTwo.content.title[1]',
},
{
img: 'https://landvault.io/assets/logos/paypal.svg',
href: '#',
- title: 'paypal',
+ title: 'home.sectionTwo.content.title[2]',
},
{
img: 'https://landvault.io/assets/logos/paypal.svg',
href: '#',
- title: 'paypal',
+ title: 'home.sectionTwo.content.title[3]',
},
{
img: 'https://landvault.io/assets/logos/paypal.svg',
href: '#',
- title: 'paypal',
+ title: 'home.sectionTwo.content.title[4]',
},
{
img: 'https://landvault.io/assets/logos/paypal.svg',
href: '#',
- title: 'paypal',
+ title: 'home.sectionTwo.content.title[5]',
},
{
img: 'https://landvault.io/assets/logos/paypal.svg',
href: '#',
- title: 'paypal',
+ title: 'home.sectionTwo.content.title[6]',
},
],
}
diff --git a/config/use-nav.ts b/config/use-nav.ts
index 606d4b1..6fe70f9 100644
--- a/config/use-nav.ts
+++ b/config/use-nav.ts
@@ -10,10 +10,14 @@ interface NavMenu {
}
export function useNav(): NavMenu[] {
+ const { locale } = useI18n()
+
+ const path = locale.value === 'zh' ? '/' : `/${locale.value}`
+
return [
{
title: 'nav.home',
- href: '/',
+ href: `${path}`,
},
{
title: 'nav.solutions.t',
@@ -21,23 +25,22 @@ export function useNav(): NavMenu[] {
{
title: 'nav.solutions.child.land.t',
subtitle: 'nav.solutions.child.land.description',
- href: '/land',
+ href: `${path}/land`,
icon: 'i-solar-accumulator-bold-duotone',
iconColor: 'red',
},
{
title: 'nav.solutions.child.land.t',
subtitle: 'nav.solutions.child.land.description',
- href: '/landa',
- icon: 'i-solar-airbuds-case-open-line-duotone text-amber',
+ href: `${path}/landa`,
+ icon: 'i-solar-airbuds-case-open-line-duotone',
iconColor: 'amber',
- // avatarProps: { icon: 'i-solar-airbuds-case-open-line-duotone' },
},
],
},
{
title: 'nav.test',
- href: '/test',
+ href: `${path}/test`,
},
]
}
diff --git a/layouts/default.vue b/layouts/default.vue
index 773d2ec..fd8d44e 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -1,16 +1,8 @@
-
+
{{ $t(col.description) }}
{{ $t(sectionTwo.title) }}
+
{{ $t(col.title) }}
+
{{ $t(col.subtext) }}
+
+
+
+
{{ - $t('home.sectionFour.description') + $t(sectionFour.description) }}
-- {{ $t('home.sectionFive.title') }} + {{ $t(sectionFive.title) }}
-- {{ $t('home.sectionFive.description') }} +
+ {{ $t(sectionFive.description) }}
-+ {{ content.description }} +
+- {{ $t('home.sectionSix.description') }} + {{ $t(sectionSix.description) }}
-{{ item.title }}
-+
{{ item.description }}
+
{{ $t('home.sectionFive.description') }}