diff --git a/src/pages/Home/index.vue b/src/pages/Home/index.vue index a230ed3..4de6cd1 100644 --- a/src/pages/Home/index.vue +++ b/src/pages/Home/index.vue @@ -49,7 +49,16 @@ -
+
+ Video Cover +
@@ -107,6 +116,24 @@
+ + + + +
+ +
+
+
@@ -124,6 +151,7 @@ import { CarouselNext, CarouselPrevious, } from '@/components/ui/carousel' +import { Dialog, DialogContent } from '@/components/ui/dialog' import request from '@/utils/request' import Frame98 from './modules2/Frame 98.png' import Frame99 from './modules2/Frame 99.png' @@ -142,6 +170,20 @@ import image6 from './modules4/image6.png' const modules2Image = [Frame98, Frame99, Frame100, Frame101, Frame104, Frame105] const modules4Images = [image1, image2, image3, image4, image5, image6] +const videoModalVisible = ref(false) +const videoRef = ref(null) + +const openVideoModal = () => { + videoModalVisible.value = true +} + +const handleVideoModalClose = () => { + if (videoRef.value) { + videoRef.value.pause() + videoRef.value.currentTime = 0 + } +} + const route = useRoute() const router = useRouter() const token = useLocalStorage('Authorization', '') diff --git a/src/styles/index.css b/src/styles/index.css index 885b676..cdc84f3 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -8,6 +8,10 @@ html, body { background: #000; } +body { + min-width: 1220px; + overflow-x: auto; /* 当窗口小于1024px时显示横向滚动条 */ +} .lucid-glass-bar { /* 基础背景:Figma 中通常是叠加的,这里取中值确保通透度 */ background: rgb(255 255 255 / 6%);