hjyd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

154 lines
3.6 KiB

<template>
<div class="wrap" id="culture">
<div class="empty" v-if="showEmpty"></div>
<div class="flex_center">
<div class="culture_container" id="culture_container">
<img :src="Background" class="bg_img" id="bg_img_scale" />
<div class="contract_title" id="culture_ani">
<p class="line"></p>
<p class="title">企业文化</p>
<p class="detail">
有信心有逻辑有实践有责任有总结·这就是我们的财富
</p>
<!-- <img class="img" :src="Back" alt="back" /> -->
</div>
<div class="card_list">
<Card i="4" />
<Card i="5" />
<Card i="3" />
<Card i="2" />
<Card i="1" />
</div>
</div>
</div>
</div>
</template>
<script setup>
import Back from '@/assets/img/culture/enterprise.png'
import Background from '@/assets/img/culture/backimg.png'
import Card from './Card'
import { handleScreenAuto } from '@/common/utils'
import { ref, onMounted } from 'vue'
onMounted(() => {
handleScreenAuto('#culture_container')
window.onresize = handleScreenAuto('#culture_container')
})
const showEmpty = ref(true)
</script>
<style scoped lang="scss">
@keyframes rotate {
0% {
-webkit-transform: rotate(0deg);
}
25% {
-webkit-transform: rotate(90deg);
}
50% {
-webkit-transform: rotate(180deg);
}
75% {
-webkit-transform: rotate(270deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
.wrap {
width: 100vw;
height: 100vh;
background: $common_bg;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
.empty {
min-height: 90px;
}
.flex_center {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
.culture_container {
width: 100%;
height: 100%;
// background: $common_bg;
position: relative;
transform-style: preserve-3d;
display: flex;
justify-content: space-between;
flex-direction: column;
.bg_img {
position: absolute;
width: 100vw;
display: block;
height: 100vw;
object-fit: contain;
left: 0;
top: 0;
animation: rotate 60s linear infinite;
}
.contract_title {
z-index: 99;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
font-family: 'SourceHanSans';
background-size: 100% 100%;
padding: 75px;
box-sizing: border-box;
position: relative;
white-space: nowrap;
.line {
width: 39px;
height: 5px;
background: #283fe7;
border-radius: 3px;
margin-bottom: 12px;
}
.img {
position: absolute;
top: 47%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
width: 295px;
height: 35px;
z-index: 9;
}
.title {
font-size: 30px;
font-weight: bold;
color: #000000;
margin-bottom: 21px;
z-index: 10;
.blue_font {
color: $theme_color;
}
}
.detail {
font-size: 18px;
font-weight: 300;
color: #646a73;
font-family: 'SourceHanSansLight';
letter-spacing: 2px;
}
}
.card_list {
z-index: 99;
flex: 1;
display: flex;
align-items: center;
justify-content: space-evenly;
padding: 0 137px 113px 137px;
}
}
}
}
</style>