Files
backmanagerweb/src/components/home.vue

235 lines
4.3 KiB
Vue
Raw Normal View History

<template>
<div class="home-container">
2026-06-15 23:20:21 +08:00
<!-- 顶部视频横幅 -->
<div class="video-banner">
2026-06-28 00:36:03 +08:00
<video src="/首页顶图.mp4" autoplay muted loop class="bg-video"></video>
2026-06-15 23:20:21 +08:00
<div class="video-overlay">
<h2 class="banner-title">欢迎使用蜜雪冰城管理系统</h2>
</div>
</div>
2026-06-15 23:20:21 +08:00
<!-- 雪王简介 -->
<div class="intro-section">
<div class="section-header">
<div class="header-line"></div>
<h2 class="section-title">雪王简介</h2>
<div class="header-line"></div>
</div>
2026-06-15 23:20:21 +08:00
<div class="intro-content">
<div class="pic-wrapper">
2026-06-28 00:36:03 +08:00
<img src="/mixue.png" alt="雪王" class="xuewang-img">
2026-06-15 23:20:21 +08:00
</div>
<div class="txt-wrapper">
<div class="quote">
"我是手拿冰淇凌权杖的雪王"
<br>
"一生只爱冰淇凌与茶"
</div>
<ul class="info-list">
<li v-for="(item, index) in snowKingInfo" :key="index">
<span class="info-label">{{ item.label }}</span>
<span class="info-divider"></span>
<span class="info-value">{{ item.value }}</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref } from 'vue'
const snowKingInfo = ref([
{ label: '生日', value: '11月22日' },
{ label: '性格', value: '正直、友善、热情、进取' },
{ label: '职位', value: '蜜雪冰城首席品控官兼全球品牌代言人' },
{ label: '口头禅', value: '你爱我,我爱你,蜜雪冰城甜蜜蜜' },
{ label: '爱好', value: '唱歌跳舞,研究冰淇淋与茶的新奇吃法' }
])
</script>
<style scoped>
.home-container {
2026-06-15 23:20:21 +08:00
min-height: 100%;
}
2026-06-15 23:20:21 +08:00
/* ========== 视频横幅 ========== */
.video-banner {
position: relative;
width: calc(100% + 40px);
margin: -20px -20px 0 -20px;
height: 300px;
overflow: hidden;
}
2026-06-15 23:20:21 +08:00
.bg-video {
width: 100%;
height: 100%;
object-fit: cover;
}
2026-06-15 23:20:21 +08:00
.video-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
to bottom,
rgba(230, 0, 18, 0.3) 0%,
rgba(0, 0, 0, 0.4) 100%
);
display: flex;
align-items: center;
justify-content: center;
}
.banner-title {
color: #fff;
font-size: 32px;
font-weight: 600;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
margin: 0;
}
/* ========== 简介区域 ========== */
.intro-section {
padding: 40px 20px;
}
.section-header {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
margin-bottom: 40px;
}
.header-line {
flex: 1;
max-width: 200px;
height: 2px;
background: linear-gradient(90deg, transparent, #E60012, transparent);
}
2026-06-15 23:20:21 +08:00
.section-title {
font-size: 32px;
font-weight: 700;
2026-06-15 23:20:21 +08:00
color: #E60012;
margin: 0;
white-space: nowrap;
}
.intro-content {
display: flex;
2026-06-15 23:20:21 +08:00
justify-content: center;
align-items: center;
2026-06-15 23:20:21 +08:00
gap: 60px;
max-width: 1200px;
margin: 0 auto;
}
2026-06-15 23:20:21 +08:00
/* 雪王图片 */
.pic-wrapper {
flex-shrink: 0;
width: 400px;
height: 400px;
border-radius: 20px;
overflow: hidden;
2026-06-15 23:20:21 +08:00
box-shadow: 0 8px 30px rgba(230, 0, 18, 0.15);
transition: transform 0.3s;
}
.pic-wrapper:hover {
transform: translateY(-5px);
}
2026-06-15 23:20:21 +08:00
.xuewang-img {
width: 100%;
height: 100%;
object-fit: cover;
}
2026-06-15 23:20:21 +08:00
/* 文字内容 */
.txt-wrapper {
flex: 1;
max-width: 500px;
}
2026-06-15 23:20:21 +08:00
.quote {
font-size: 28px;
font-weight: 700;
color: #E60012;
2026-06-15 23:20:21 +08:00
line-height: 1.5;
margin-bottom: 40px;
padding-left: 20px;
border-left: 4px solid #E60012;
}
2026-06-15 23:20:21 +08:00
.info-list {
list-style: none;
padding: 0;
2026-06-15 23:20:21 +08:00
margin: 0;
}
2026-06-15 23:20:21 +08:00
.info-list li {
display: flex;
align-items: center;
2026-06-15 23:20:21 +08:00
padding: 14px 0;
border-bottom: 1px dashed #eee;
font-size: 16px;
}
2026-06-15 23:20:21 +08:00
.info-list li:last-child {
border-bottom: none;
}
2026-06-15 23:20:21 +08:00
.info-label {
font-weight: 600;
color: #303133;
min-width: 70px;
}
2026-06-15 23:20:21 +08:00
.info-divider {
width: 1px;
2026-06-15 23:20:21 +08:00
height: 16px;
background: #E60012;
margin: 0 16px;
}
2026-06-15 23:20:21 +08:00
.info-value {
color: #606266;
flex: 1;
}
2026-06-15 23:20:21 +08:00
/* ========== 响应式适配 ========== */
@media (max-width: 900px) {
.intro-content {
flex-direction: column;
2026-06-15 23:20:21 +08:00
gap: 30px;
}
2026-06-15 23:20:21 +08:00
.pic-wrapper {
width: 100%;
2026-06-15 23:20:21 +08:00
max-width: 400px;
height: auto;
2026-06-15 23:20:21 +08:00
aspect-ratio: 1;
}
2026-06-15 23:20:21 +08:00
.txt-wrapper {
width: 100%;
}
2026-06-15 23:20:21 +08:00
.banner-title {
font-size: 24px;
}
2026-06-15 23:20:21 +08:00
.video-banner {
height: 200px;
}
}
</style>