naweigete-web/pages/index_about.vue
2025-04-08 09:08:12 +08:00

234 lines
7.5 KiB
Vue

<template>
<div class="bg-white">
<!-- Banner section with background image -->
<div class="aboutimgBg h-[300px] md:h-[600px]" :style="{
backgroundColor: '#fff',
backgroundImage: `url(${bgImage4})`,
backgroundPosition: 'center center',
backgroundRepeat: 'no-repeat',
backgroundSize: 'cover',
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}">
<div class="banDes">
<div class="aboutTit text-center">
<h2 class="font-semibold animated fadeInLeft text-2xl md:text-4xl">{{ locale=='zh'?info.about_title:info.en_about_title }}</h2>
</div>
</div>
</div>
<!-- Main content section -->
<div class="mainBg py-6 md:py-12 z-10 relative min-h-[80vh] md:min-h-[110vh]">
<div class="oneBox1Bg">
<div class="container mx-auto px-4">
<div class="oneBox1 text-center mt-[-50px] md:mt-[-100px]">
<h3 class="text-lg md:text-2xl text-[#606060] h-auto md:h-[144px] animated fadeInUp px-4">{{ $t('about_a1') }}</h3>
</div>
<div class="oneBox1Bg1 w-full md:w-[1240px] mt-12 md:mt-[150px]">
<h2 class="text-2xl md:text-3xl font-bold text-center text-[#E2E2E2] mb-4 md:mb-6 animated fadeInUp">{{ $t('about_a2') }}</h2>
<div class="oneBox1Bg1xiah w-16 md:w-24 h-[2px] bg-[#E2E2E2] mx-auto mb-8 md:mb-12"></div>
<!-- Three column section -->
<div class="oneBox1Bg1img flex flex-col md:flex-row justify-center items-center flex-wrap gap-8 mb-10 md:mb-16 mt-6 md:mt-10">
<div class="flex flex-col items-center animated fadeInUp">
<img class="w-[120px] h-[120px] md:w-[150px] md:h-[150px] object-cover mb-4" src="/images/group53.png">
<div class="oneBox1Bg1imgt">
<h3 class="text-xl md:text-2xl font-medium text-[#333]">{{ $t('about_a3') }}</h3>
</div>
</div>
<span class="oneBox1Bg1img1span h-px w-40 md:h-40 md:w-px bg-[#ddd] my-6 md:my-0 block md:hidden"></span>
<div class="flex flex-col items-center animated fadeInUp">
<img class="w-[120px] h-[120px] md:w-[150px] md:h-[150px] object-cover mb-4" src="/images/group52.png">
<div class="oneBox1Bg1imgt">
<h3 class="text-xl md:text-2xl font-medium text-[#333]">{{ $t('about_a4') }}</h3>
</div>
</div>
<span class="oneBox1Bg1img1span h-px w-40 md:h-40 md:w-px bg-[#ddd] my-6 md:my-0 block md:hidden"></span>
<div class="flex flex-col items-center animated fadeInUp">
<img class="w-[120px] h-[120px] md:w-[150px] md:h-[150px] object-cover mb-4" src="/images/group51.png">
<div class="oneBox1Bg1imgt">
<h3 class="text-xl md:text-2xl font-medium text-[#333]">{{ $t('about_a5') }}</h3>
</div>
</div>
</div>
<div class="oneBox1Bg1h text-center mb-4 md:mb-6 animated fadeInUp px-4">
<h3 class="text-lg md:text-2xl text-[#606060]">{{ $t('about_a6') }}</h3>
</div>
<div class="oneBox1Bg1xiah1 w-full md:w-[1240px] mx-auto md:mx-[-61px]"></div>
</div>
</div>
</div>
</div>
<!-- Second banner section with background image -->
<div class="aboutimgBg1 text-center py-8 md:py-16 h-auto min-h-[400px] md:h-[700px]" :style="{
backgroundImage: `url(${bgImage5})`,
backgroundPosition: 'center center',
backgroundRepeat: 'no-repeat',
backgroundSize: 'cover',
color: 'white'
}">
<div class="aboutTit2 container mx-auto px-4">
<div class="text-[#000] text-xl md:text-3xl animated fadeInLeft">{{ $t('about_a7') }}</div>
<div class="oneBox1Bg1xiah2 w-20 md:w-[100px] h-[2px] bg-[#606060] mx-auto my-4 md:my-8 animated fadeInLeft"></div>
<div class="oneBox1Bg2h max-w-1xl mt-8 md:mt-[100px]">
<h3 class="text-[#606060] text-base md:text-[24px] leading-relaxed animated fadeInLeft px-4">{{ $t('about_a8') }}</h3>
</div>
</div>
</div>
</div>
</template>
<script lang="ts" setup>
import { onMounted } from 'vue'
import bgImage4 from '../public/images/group195.png'
import bgImage5 from '../public/images/maskgroup1.png'
import $api from '@/service/webRequest'
import { useStore } from '~/store'
import { useI18n } from 'vue-i18n'
const { locale } = useI18n()
onMounted(() => {
getInfo();
})
const info=ref({});
const getInfo=()=>{
$api.get("/api/sys_config?name=about_us")
.then((res: any) => {
console.log(res)
info.value = res.data.data.config
})
.catch((err) => {
console.dir(err)
})
}
</script>
<style lang="scss" scoped>
@import "@/assets/animate/animate.min.css";
.aboutimgBg,
.aboutimgBg1 {
position: relative;
}
.container {
max-width: 100%;
@media (min-width: 768px) {
max-width: 1310px;
}
}
.aboutTit h2::after {
content: '';
margin-top: -15px;
width: 100%;
height: 20px;
@media (min-width: 768px) {
margin-top: -25px;
width: 450px;
height: 34px;
}
background: #A8CBFF;
display: block;
}
.oneBox1Bg1 {
height: auto;
width: 100%;
margin-top: 50px;
@media (min-width: 768px) {
height: 500px;
width: 1240px;
margin-top: 150px;
}
}
.oneBox1Bg1 h2 {
font-weight: 500;
text-align: center;
height: auto;
font-size: 24px;
@media (min-width: 768px) {
height: 51px;
font-size: 34px;
}
color: #000000;
line-height: 1.2;
@media (min-width: 768px) {
line-height: 40px;
}
}
.oneBox1Bg1xiah {
margin: 0 auto;
width: 100%;
}
.oneBox1Bg1img1span {
margin-left: 100px;
margin-right: 100px;
@media (min-width: 768px) {
border-right: 2px solid #E2E2E2;
display: inline-block;
height: 240px;
margin-top: -5px;
}
}
.oneBox1Bg1imgt {
font-weight: 500;
font-size: 20px;
@media (min-width: 768px) {
font-size: 24px;
}
color: #1C1C1C;
line-height: 24px;
@media (min-width: 768px) {
line-height: 28px;
}
text-align: center;
margin-top: 20px;
@media (min-width: 768px) {
margin-top: 31px;
}
}
.oneBox1Bg1imgt h3::after {
content: '';
margin: 0 auto;
width: 40px;
height: 12px;
@media (min-width: 768px) {
margin-top: -11px;
width: 60px;
height: 16px;
}
background: #A8CBFF;
display: block;
margin-top: -8px;
}
.oneBox1Bg1h {
padding-top: 30px;
@media (min-width: 768px) {
padding-top: 53px;
}
text-align: center;
}
.oneBox1Bg1xiah1 {
border-top: 2px solid #E2E2E2;
width: 100%;
margin-top: 30px;
@media (min-width: 768px) {
margin-left: -61px;
width: 1240px;
margin-top: 55px;
}
}
</style>