优化页面布局
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user