Преглед на файлове

feat(about): 添加流程图组件中的用户和SDK图标展示

在Flowchart.vue组件中添加用户和终端设备/SDK的图标展示区域,并完善相关样式布局。新增两个图标资源文件用于展示。
reaper преди 3 седмици
родител
ревизия
78a9a050b2
променени са 3 файла, в които са добавени 87 реда и са изтрити 12 реда
  1. 87 12
      app/components/about/Flowchart.vue
  2. BIN
      public/images/about/icon-sdk.png
  3. BIN
      public/images/about/icon-user.png

+ 87 - 12
app/components/about/Flowchart.vue

@@ -8,6 +8,18 @@
         全线产品自主研发,从高防IP、CDN到游戏盾SDK,核心技术完全自控,安全能力不受制于人,防护效果快人一步。
       </div>
     </div>
+    <div class="flow-content">
+      <div class="flow-content-left">
+        <div class="left-user">
+          <NuxtImg class="flow-icon" src="/images/about/icon-user.png" alt="icon" />
+          <div class="flow-text">用户</div>
+        </div>
+        <div class="left-sdk">
+          <NuxtImg class="flow-icon" src="/images/about/icon-sdk.png" alt="icon" />
+          <div class="flow-text">终端设备/SDK</div>
+        </div>
+      </div>
+    </div>
   </section>
 </template>
 <script setup>
@@ -25,6 +37,24 @@
     border: 2px solid #8B74FF;
     background: rgba(63, 51, 125, 0.30);
     color: #FFF;
+    margin-bottom: 77px;
+
+    .flow-title-text {
+      display: flex;
+      align-items: center;
+      justify-content: center;
+      width: 100%;
+      height: 70px;
+      font-size: 30px;
+      font-weight: 400;
+      background: rgba(128, 119, 255, .5);
+    }
+
+    .flow-title-subtext {
+      padding: 16px 36px 22px;
+      font-size: 24px;
+      font-weight: 400;
+    }
 
     &::before {
       content: '';
@@ -51,21 +81,66 @@
     }
   }
 
-  .flow-title-text {
+
+  .flow-content {
+    width: 100%;
+    box-sizing: border-box;
     display: flex;
     align-items: center;
-    justify-content: center;
-    width: 100%;
-    height: 70px;
-    font-size: 30px;
-    font-weight: 400;
-    background: rgba(128, 119, 255, .5);
-  }
+    justify-content: space-between;
+
+    .flow-content-left {
+      display: flex;
+      gap: 30px;
+    }
+
+    .left-user,
+    .left-sdk {
+      display: flex;
+      flex-direction: column;
+      align-items: center;
+      justify-content: center;
+      color: #FFF;
+
+      .flow-text {
+        position: relative;
+        box-sizing: border-box;
+        width: 162px;
+        height: 55px;
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        border-radius: 8px;
+        border: 1px solid #A39DFF;
+        background: #3F337D;
 
-  .flow-title-subtext {
-    padding: 16px 36px 22px;
-    font-size: 24px;
-    font-weight: 400;
+        &::before {
+          content: '';
+          position: absolute;
+          right: -30px;
+          top: 50%;
+          transform: translateY(-50%);
+          width: 30px;
+          height: 1px;
+          background: #8B74FF;
+        }
+
+        &::after {
+          content: '';
+          position: absolute;
+          right: -32px;
+          top: 50%;
+          transform: translateY(-50%);
+          width: 0;
+          height: 0;
+          border-top: 8px solid transparent;
+          border-bottom: 8px solid transparent;
+          border-left: 12px solid #8B74FF;
+        }
+      }
+
+
+    }
   }
 }
 </style>

BIN
public/images/about/icon-sdk.png


BIN
public/images/about/icon-user.png