diff --git a/src/components/home/GalleryBanner.vue b/src/components/home/GalleryBanner.vue index 3cc8bac..4197b58 100644 --- a/src/components/home/GalleryBanner.vue +++ b/src/components/home/GalleryBanner.vue @@ -29,7 +29,7 @@ class="mySwiper" > -
+
@@ -209,7 +209,7 @@ const handSlideNext = () => { text-align: center; font-size: 18px; background: #fff; - + /* Center slide text vertically */ display: -webkit-box; display: -ms-flexbox; @@ -311,6 +311,7 @@ const handSlideNext = () => { .mySwiper .swiper-slide-thumb-active { opacity: 1; // border-radius: 12px; + border-radius: 12px; filter: grayscale(0%); } @@ -318,12 +319,12 @@ const handSlideNext = () => { display: block; width: 100%; height: 100%; - // border-radius: 12px; + border-radius: 12px; object-fit: cover; } .swiper-slide { position: relative; - // border-radius: 12px; + border-radius: 12px; display: inline-block; } @@ -334,6 +335,7 @@ const handSlideNext = () => { left: 0; right: 0; bottom: 0; + border-radius: 12px; background-color: rgba(0, 0, 0, 0.5); /* 黑色遮罩,0.5 为透明度 */ pointer-events: none; /* 让遮罩层不影响图片的鼠标交互 */ } diff --git a/src/components/home/GameGallerp.vue b/src/components/home/GameGallerp.vue index 363ca2c..ce4befc 100644 --- a/src/components/home/GameGallerp.vue +++ b/src/components/home/GameGallerp.vue @@ -23,8 +23,9 @@
- Come to be COMMENDER! Enjoy 3D CEBG and fight against other players! - + Come to be COMMENDER! Enjoy 3D CEBG and fight against other + players! +
@@ -51,9 +52,9 @@
- Undefinable pattern, incredible gaming experience and excited NFT in - CEBG! - + Undefinable pattern, incredible gaming experience and excited NFT in + CEBG! +
@@ -83,7 +84,6 @@ const ratio = ref(0.2); //视差偏移率 const positionY1 = ref(0); //背景Y轴偏移量 - const videoModal = ref(null); onMounted(() => { window.addEventListener("scroll", handleScroll); //创建滚动监听,页面滚动回调handleScroll方法 @@ -98,7 +98,6 @@ function handleScroll() { document.body.scrollTop; positionY1.value = Y1.value - scrollTop * ratio.value; //原始高度-滚动距离*视差系数 } -