From 8bf0476eb488bcccce87d5f77a8442a761b9b26f Mon Sep 17 00:00:00 2001 From: Germey Date: Thu, 20 Feb 2025 22:23:33 +0800 Subject: [PATCH] Fix styles of index page (#185) Co-authored-by: AceDataCloud --- ...-232b6b6e-2ed3-4672-b39d-81fa92f74624.json | 7 +++++ src/components/common/TopHeader.vue | 10 +++++-- src/pages/index/Index.vue | 30 ++++++++++++++----- 3 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 change/@acedatacloud-nexior-232b6b6e-2ed3-4672-b39d-81fa92f74624.json diff --git a/change/@acedatacloud-nexior-232b6b6e-2ed3-4672-b39d-81fa92f74624.json b/change/@acedatacloud-nexior-232b6b6e-2ed3-4672-b39d-81fa92f74624.json new file mode 100644 index 00000000..b35489dc --- /dev/null +++ b/change/@acedatacloud-nexior-232b6b6e-2ed3-4672-b39d-81fa92f74624.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix ux styles for index", + "packageName": "@acedatacloud/nexior", + "email": "office@acedata.cloud", + "dependentChangeType": "patch" +} diff --git a/src/components/common/TopHeader.vue b/src/components/common/TopHeader.vue index c5786aa6..28b3ccc6 100644 --- a/src/components/common/TopHeader.vue +++ b/src/components/common/TopHeader.vue @@ -32,7 +32,11 @@ @route="undefined" @click="openTab('https://platform.acedata.cloud/support')" > - + @@ -178,10 +182,10 @@ $height: 60px; color: inherit !important; &.is-active { color: inherit !important; - border-bottom: 2px solid var(--el-color-primary); + border-bottom: none !important; } &:hover { - border-bottom: 2px solid var(--el-color-primary); + border-bottom: 2px solid var(--el-color-primary) !important; } } } diff --git a/src/pages/index/Index.vue b/src/pages/index/Index.vue index da6bee5f..8207be33 100644 --- a/src/pages/index/Index.vue +++ b/src/pages/index/Index.vue @@ -53,7 +53,7 @@ :xs="24" class="mb-4" > - +
@@ -311,7 +311,8 @@ export default defineComponent({ { title: this.$t('index.title.chat'), subtitle: this.$t('index.subtitle.chat'), - icon: 'fa-regular fa-comment' + icon: 'fa-regular fa-comment', + path: '/chat' } ] : []), @@ -320,7 +321,8 @@ export default defineComponent({ { title: this.$t('index.title.midjourney'), subtitle: this.$t('index.subtitle.midjourney'), - icon: 'fa-solid fa-palette' + icon: 'fa-solid fa-palette', + path: '/midjourney' } ] : []), @@ -329,7 +331,8 @@ export default defineComponent({ { title: this.$t('index.title.qrart'), subtitle: this.$t('index.subtitle.qrart'), - icon: 'fa-solid fa-qrcode' + icon: 'fa-solid fa-qrcode', + path: '/qrart' } ] : []), @@ -338,7 +341,8 @@ export default defineComponent({ { title: this.$t('index.title.suno'), subtitle: this.$t('index.subtitle.suno'), - icon: 'fa-solid fa-music' + icon: 'fa-solid fa-music', + path: '/suno' } ] : []), @@ -347,7 +351,8 @@ export default defineComponent({ { title: this.$t('index.title.luma'), subtitle: this.$t('index.subtitle.luma'), - icon: 'fa-solid fa-film' + icon: 'fa-solid fa-film', + path: '/luma' } ] : []), @@ -356,7 +361,8 @@ export default defineComponent({ { title: this.$t('index.title.headshots'), subtitle: this.$t('index.subtitle.headshots'), - icon: 'fa-solid fa-id-card' + icon: 'fa-solid fa-id-card', + path: '/headshots' } ] : []) @@ -364,7 +370,11 @@ export default defineComponent({ } }, mounted() {}, - methods: {} + methods: { + onClickCapability(capability: any) { + this.$router.push(capability.path); + } + } }); @@ -422,6 +432,7 @@ export default defineComponent({ font-size: 20px; padding: 0 20px; color: var(--el-text-color-secondary); + margin-bottom: 20px; } .btn-try { padding: 25px 62px; @@ -484,6 +495,9 @@ export default defineComponent({ @media (max-width: 767px) { padding: 100px 20px; } + .container { + cursor: pointer; + } .info { .title { font-size: 20px;