From 90c653d46fed849c77a94b75826123a208b36825 Mon Sep 17 00:00:00 2001 From: zhcnyuyang Date: Sun, 11 May 2025 04:25:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=A4=E6=A1=88=E4=BE=8B=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=A4=96=E5=85=A8=E9=83=A8=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Examples.vue | 231 +---------------------------- src/components/ExamplesContent.vue | 2 +- src/components/Homepage.vue | 52 +++++++ 3 files changed, 54 insertions(+), 231 deletions(-) diff --git a/src/components/Examples.vue b/src/components/Examples.vue index 2cf97cb..640bab6 100644 --- a/src/components/Examples.vue +++ b/src/components/Examples.vue @@ -17,75 +17,7 @@ import ExamplesContent from './ExamplesContent.vue'; @@ -101,165 +33,4 @@ export default { background-image: url('/ExamplesRes/Examplesbanner.png'); } } - -#listmain{ - display: grid; - @include media-breakpoint-between(xs, md) { - margin-top: 48px; - grid-template-columns: repeat(1,1fr); - gap: 12px; - } - @include media-breakpoint-up(md) { - margin-top: 72px; - grid-template-columns: repeat(2,1fr); - gap: 24px; - } - - @include media-breakpoint-between(xs, md) { - margin-left: 32px; - margin-right: 32px; - } - @include media-breakpoint-between(md,xxl){ - margin-left: 100px; - margin-right: 100px; - } - @include media-breakpoint-up(xxl) { - margin-left: 256px; - margin-right: 256px; - } -} -.listblock{ - position: relative; - aspect-ratio: 1.563; - @include media-breakpoint-up(md) { - } -} -.listblock img { - z-index: 0; - @include media-breakpoint-between(xs, md){ - width: 100%; - height: 100%; - object-fit: cover; - object-position: center; - display: block; - } - @include media-breakpoint-up(md) { - width: 100%; - height: 100%; - object-fit: cover; - object-position: center; - display: block; - } -} - -#examplelist{ - //width: 100%; - background-color: white; - @include media-breakpoint-between(xs, md) { - padding-top: 64px; - padding-bottom: 32px; - } - - @include media-breakpoint-up(md) { - padding-top: 80px; - padding-bottom: 77px; - } - margin-left: 0; - margin-right: 0; -} - -#typegrid { - display: grid; - - @include media-breakpoint-between(xs, md) { - grid-template-columns: repeat(3,1fr) !important; - gap: 12px; - } - - @include media-breakpoint-up(md) { - grid-template-columns: repeat(4,minmax(0,300px)) !important; - gap: 32px; - } - - @include media-breakpoint-between(xs, md) { - margin-left: 32px; - margin-right: 32px; - } - @include media-breakpoint-between(md,xxl){ - margin-left: 100px; - margin-right: 100px; - } - @include media-breakpoint-up(xxl) { - margin-left: 256px; - margin-right: 256px; - } -} - -.typebar{ - border: 1px solid #000000;//边框 - display: flex; - justify-content: center; - align-items: center; - color: black; - background-color: white; - font-family: PingFangSC-Regular; - font-weight: normal; - overflow-wrap: break-word; - text-align: left; - transition: background 0.5s, color 0.5s; /* 0.5秒渐变 */ - - @include media-breakpoint-between(xs, md) { - height: 44px; - } - - @include media-breakpoint-up(md) { - height: 74px; - font-size: 24px; - //line-height: 48px; - } -} -.typebar:hover{ - background-color: black; - color: white; -} -.typebar.active { - /* 选中高亮样式 */ - background-color: black; - color: white; -} - -.itemtext{ - position: absolute; - margin-left: 20px; - left:0; - margin-right: auto; - margin-bottom: 20px; - bottom: 0; - margin-top: auto; - display: flex; - flex-direction: column; - gap: 2px; - z-index: 2; -} -.upspan{ - overflow-wrap: break-word; - color: rgba(255, 255, 255, 1); - font-size: 24px; - font-family: PingFangSC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 33px; -} -.downspan{ - overflow-wrap: break-word; - color: rgba(255, 255, 255, 1); - font-size: 16px; - font-family: PingFangSC-Regular; - font-weight: normal; - text-align: left; - white-space: nowrap; - line-height: 22px; - margin-top: 2px; -} diff --git a/src/components/ExamplesContent.vue b/src/components/ExamplesContent.vue index 720162d..df4c246 100644 --- a/src/components/ExamplesContent.vue +++ b/src/components/ExamplesContent.vue @@ -227,7 +227,7 @@ export default { font-weight: normal; overflow-wrap: break-word; text-align: left; - transition: background 0.5s, color 0.5s; /* 0.5秒渐变 */ + transition: background 0.5s, color 0.5s; @include media-breakpoint-between(xs, md) { height: 44px; diff --git a/src/components/Homepage.vue b/src/components/Homepage.vue index bf3801b..ab0fb2f 100644 --- a/src/components/Homepage.vue +++ b/src/components/Homepage.vue @@ -119,6 +119,14 @@ import Partners from './Tools/Partners.vue' + +
+
+ 查看更多 +
+
+
@@ -148,6 +156,50 @@ export default {