Files
Code-Create/src/pages/about-us/title.vue

56 lines
1.2 KiB
Vue
Raw Normal View History

2026-05-14 14:55:42 +08:00
<script setup lang="ts">
2026-06-02 13:23:41 +08:00
import { computed } from 'vue'
import { useGlobalStore } from '@/stores/global'
const globalStore = useGlobalStore()
const windowWidth = computed(() => globalStore.state.windowWidth)
2026-05-14 14:55:42 +08:00
defineExpose({})
</script>
<template>
2026-05-14 15:31:34 +08:00
<section class="title-section">
<div class="content">
<div class="text">
2026-06-02 13:23:41 +08:00
<h1>{{$t('aboutUs.Title')}}</h1>
2026-06-03 14:21:11 +08:00
<img v-show="windowWidth < 1000" src="https://s3.ap-east-1.amazonaws.com/code-create.com.hk/2022/12/about_banner-1.jpg" alt="">
2026-05-14 15:31:34 +08:00
</div>
</div>
2026-05-14 14:55:42 +08:00
</section>
</template>
<style lang="less" scoped>
2026-05-14 15:31:34 +08:00
.title-section{
2026-05-14 14:55:42 +08:00
width: 100%;
2026-06-02 13:23:41 +08:00
2026-05-14 15:31:34 +08:00
> .content{
2026-05-19 10:36:33 +08:00
max-width: 1400px;
margin: 0 auto;
2026-06-02 13:23:41 +08:00
@media (max-width: 1000px) {
max-width: 1000px;
}
2026-05-14 15:31:34 +08:00
> .text{
padding: 200px 300px;
2026-06-02 13:23:41 +08:00
position: relative;
@media (max-width: 1000px) {
padding: 100px 15px;
}
2026-05-14 15:31:34 +08:00
> h1{
text-align: center;
font-size: 64px;
font-weight: 600;
line-height: 64px;
letter-spacing: 2px;
color: #FFFFFF;
2026-06-02 13:23:41 +08:00
@media (max-width: 1000px) {
font-size: 40px;
}
}
> img{
position: absolute;
top: 0;
right: 0;
z-index: -1;
height: 100%;
2026-05-14 15:31:34 +08:00
}
}
}
2026-05-14 14:55:42 +08:00
}
2026-05-15 16:41:52 +08:00
</style>