浏览代码

upd: site bg image

richard1015 4 年之前
父节点
当前提交
391958b298
共有 2 个文件被更改,包括 6 次插入9 次删除
  1. 1 1
      package.json
  2. 5 8
      src/sites/doc/views/Main.vue

+ 1 - 1
package.json

@@ -37,7 +37,7 @@
   ],
   ],
   "scripts": {
   "scripts": {
     "checked": "npm run generate:file && tsc",
     "checked": "npm run generate:file && tsc",
-    "dev": "npm run checked && vite --open",
+    "dev": "npm run checked && vite --open --force",
     "build:site": "npm run checked && vite build",
     "build:site": "npm run checked && vite build",
     "build:gh-pages": "npm run checked && vite build --base=/nutui/",
     "build:gh-pages": "npm run checked && vite build --base=/nutui/",
     "build:site:oss": "npm run checked && vite build --base=/nutui/3x/",
     "build:site:oss": "npm run checked && vite build --base=/nutui/3x/",

+ 5 - 8
src/sites/doc/views/Main.vue

@@ -31,7 +31,6 @@
           ></iframe>
           ></iframe>
         </div>
         </div>
       </div>
       </div>
-      <div class="content-right"></div>
     </div>
     </div>
     <div class="doc-content-features">
     <div class="doc-content-features">
       <div class="doc-content-hd">
       <div class="doc-content-hd">
@@ -211,6 +210,11 @@ export default defineComponent({
 }
 }
 .doc-content-index {
 .doc-content-index {
   .content-left {
   .content-left {
+    background: url(https://storage.360buyimg.com/imgtools/a423faab46-8b142e80-8bb1-11eb-853a-6fded8704e77.png)
+      no-repeat;
+    background-size: 1126px 568px;
+    background-position-x: right;
+    background-position-y: 150px;
     .content-title {
     .content-title {
       animation: fadeInLeft 1s both;
       animation: fadeInLeft 1s both;
     }
     }
@@ -508,13 +512,6 @@ export default defineComponent({
       }
       }
     }
     }
   }
   }
-  .content-right {
-    flex: 2;
-    background: url(https://storage.360buyimg.com/imgtools/a423faab46-8b142e80-8bb1-11eb-853a-6fded8704e77.png)
-      no-repeat;
-    background-size: contain;
-    background-position: center;
-  }
 }
 }
 .doc-content-black {
 .doc-content-black {
   background: $theme-black-content-bg;
   background: $theme-black-content-bg;