From dc718d4cf2a981b0a7b14f2b68580cb06716ec4c Mon Sep 17 00:00:00 2001 From: GuanM <30427262+sxhoio@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:46:06 +0800 Subject: [PATCH] =?UTF-8?q?video=20=E6=96=BD=E5=B7=A5=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/css/index.css | 112 +++++++++++++++++++++++++++++++++++++++++++--- Web/index.html | 44 +++++++++++++++++- 2 files changed, 148 insertions(+), 8 deletions(-) diff --git a/Web/css/index.css b/Web/css/index.css index b2e2435..89bb7ad 100644 --- a/Web/css/index.css +++ b/Web/css/index.css @@ -135,14 +135,14 @@ body { } #newsman { - padding: 60px 20px; + padding: 40px 20px; text-align: center; background-color: #f8f8f8; } #newsman h1 { font-size: 36px; - margin-bottom: 40px; + margin-bottom: 30px; position: relative; color: #333; } @@ -151,7 +151,7 @@ body { font-size: 16px; color: #666; max-width: 1000px; - margin: 0 auto 40px; + margin: 0 auto 30px; line-height: 1.6; } @@ -170,8 +170,8 @@ body { display: flex; justify-content: space-around; max-width: 1200px; - margin: 40px auto 0; - padding: 20px 0; + margin: 30px auto 0; + padding: 10px 0; } @@ -227,7 +227,7 @@ body { } #product { - padding: 60px 20px; + padding: 40px 20px; text-align: center; background-color: #f5f5f5; } @@ -294,7 +294,7 @@ body { } #news { - padding: 60px 20px; + padding: 40px 20px; text-align: center; background-color: #fff; } @@ -419,3 +419,101 @@ body { .news-right a:hover { color: #00a0e9; } + +.video { + padding: 40px 20px; + text-align: center; + background-color: #f8f8f8; +} + +.video h1 { + font-size: 28px; + margin-bottom: 15px; + color: #333; + position: relative; +} + +.video h1::after { + content: ''; + position: absolute; + bottom: -10px; + left: 50%; + transform: translateX(-50%); + width: 60px; + height: 3px; + background-color: #00a0e9; +} + +.video p { + font-size: 14px; + color: #666; + max-width: 800px; + margin: 0 auto 30px; + line-height: 1.6; +} + +.video-container { + display: flex; + max-width: 1200px; + margin: 0 auto; + gap: 20px; + overflow: hidden; + position: relative; +} + +.video-item { + flex: 0 0 calc(25% - 15px); + position: relative; + cursor: pointer; + transition: transform 0.3s ease; +} + +.video-item img { + width: 100%; + height: 200px; + object-fit: cover; + border-radius: 8px; +} + +.video-item .play-icon { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 50px; + height: 50px; + background-color: rgba(0, 0, 0, 0.5); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; +} + +.video-item .play-icon::before { + content: ''; + border-style: solid; + border-width: 10px 0 10px 16px; + border-color: transparent transparent transparent #fff; +} + +.video-item:hover { + transform: translateY(-5px); +} + +.video-text { + padding: 15px 0; + text-align: center; +} + +.video-text h3 { + font-size: 16px; + color: #333; + margin: 0 0 8px; +} + +.video-text p { + font-size: 14px; + color: #666; + margin: 0; + line-height: 1.4; +} diff --git a/Web/index.html b/Web/index.html index eeb08d1..b90e6f4 100644 --- a/Web/index.html +++ b/Web/index.html @@ -120,7 +120,7 @@
- News + News
15 @@ -161,6 +161,48 @@
+
+

视频中心

+

我们坚持以用户为中心,打造优质的视频体验。在这里,我们用镜头记录每一个精彩时刻,让科技与生活完美融合!

+ +
+
+ 视频缩略图 +
+
+

享受生活,从这开始!

+

让生活更简单,更有品质

+
+
+ +
+ 视频缩略图 +
+
+

智能厨房管家-第一期

+

智能科技,让烹饪更轻松

+
+
+ +
+ 视频缩略图 +
+
+

PS-197: 每一天,每一刻...

+

科技改变生活,创新引领未来

+
+
+ +
+ 视频缩略图 +
+
+

超级咖啡机,享味生活品质

+

品味咖啡,品味生活

+
+
+
+