优化页面布局

This commit is contained in:
X1627315083@163.com
2026-06-05 15:25:35 +08:00
parent db607ded0d
commit 33f4e569b5
9 changed files with 24 additions and 54 deletions

View File

@@ -1,8 +1,4 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useGlobalStore } from '@/stores/global'
const globalStore = useGlobalStore()
const windowWidth = computed(() => globalStore.state.windowWidth)
defineExpose({})
</script>
<template>
@@ -10,7 +6,6 @@ defineExpose({})
<div class="content">
<div class="text">
<h1>{{ $t('helpCentre.Title') }}</h1>
<img v-show="windowWidth < 1000" src="https://s3.ap-east-1.amazonaws.com/code-create.com.hk/2022/11/helpcentre_banner-1.jpg" alt="">
</div>
</div>
</section>
@@ -18,6 +13,15 @@ defineExpose({})
<style lang="less" scoped>
.title-section{
width: 100%;
background-color: #000000;
background-image: url(https://s3.ap-east-1.amazonaws.com/code-create.com.hk//2022/11/helpcentre_banner-1.jpg);
background-position: top center;
background-repeat: no-repeat;
background-size: auto;
background-attachment: fixed;
@media (max-width: 1000px) {
background-attachment: scroll;
}
> .content{
max-width: 1400px;
margin: 0 auto;