Browse Source

搞搞搞

任一存 1 năm trước cách đây
mục cha
commit
ea1e4c8ddd

+ 2 - 2
public/index.html

@@ -4,8 +4,8 @@
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
-    <link rel="icon" href="<%= BASE_URL %>logo.png">
-    <title>我是标题</title>
+    <link rel="icon" href="<%= BASE_URL %>logo.ico">
+    <title>中国大运河博物馆 线上图文展</title>
   </head>
   <body>
     <!-- <script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script> -->

BIN
public/logo.ico


BIN
public/logo.png


+ 5 - 5
src/App.vue

@@ -33,10 +33,10 @@ export default {
 // }
 
 // 字体
-// @font-face {
-//   font-family: 'Source Han Serif CN';
-//   src: url('@/assets/style/SourceHanSerifCN-Regular.otf');
-// }
+@font-face {
+  font-family: 'KingHwa_OldSong-Regular';
+  src: url('@/assets/jinghua-old-song.ttf');
+}
 // @font-face {
 //   font-family: 'Source Han Serif CN-Bold';
 //   src: url('@/assets/style/SourceHanSerifCN-Bold.otf');
@@ -45,7 +45,7 @@ export default {
 //   font-style: italic;
 // }
 
-// 滚动条
+// 滚动条,注意头两项要同时设置,只写二者中某一项则不会达到目的。
 // ::-webkit-scrollbar { background: #dddecc; width: 6px; height: 6px; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
 // ::-webkit-scrollbar-thumb { background: #828a5b; border-radius: 3px; }
 // ::-webkit-scrollbar-corner { background: #dddecc; }

BIN
src/assets/images/btn_start.png


BIN
src/assets/images/home-bg.jpg


BIN
src/assets/images/logo.png


BIN
src/assets/images/red-arrow-right.png


BIN
src/assets/images/relic-list-bg.jpg


BIN
src/assets/images/relic-list-page-entry-button-deco.png


BIN
src/assets/images/title-deco.png


BIN
src/assets/images/unit-list-bg.jpg


BIN
src/assets/jinghua-old-song.ttf


+ 6 - 0
src/router/index.js

@@ -1,6 +1,7 @@
 import { createRouter, createWebHashHistory } from 'vue-router'
 import HomeView from '../views/Home.vue'
 import UnitList from '../views/UnitList.vue'
+import RelicList from '../views/RelicList.vue'
 // import store from '@/store/index.js'
 
 const routes = [
@@ -14,6 +15,11 @@ const routes = [
     name: 'UnitList',
     component: UnitList,
   },
+  {
+    path: '/relic-list',
+    name: 'RelicList',
+    component: RelicList,
+  },
 ]
 
 const router = createRouter({

+ 12 - 12
src/views/Home.vue

@@ -2,13 +2,10 @@
   <div
     class="home"
   >
-    <h1>扬州中国大运河博物馆<br>线上图文展</h1>
     <button
       class="begin"
       @click="onClickBegin"
-    >
-      开始游览
-    </button>
+    />
   </div>
 </template>
 
@@ -45,18 +42,21 @@ export default {
   width: 100%;
   height: 100%;
   position: relative;
-  >h1{
-    text-align: center;
-    position: absolute;
-    left: 50%;
-    top: 50%;
-    transform: translate(-50%, -50%);
-  }
+  background-image: url(@/assets/images/home-bg.jpg);
+  background-size: contain;
+  background-repeat: no-repeat;
+  background-position: center center;
   >button.begin{
     position: absolute;
-    bottom: 30px;
+    bottom: 58px;
     left: 50%;
     transform: translateX(-50%);
+    width: 76px;
+    height: 79px;
+    background-image: url(@/assets/images/btn_start.png);
+    background-size: contain;
+    background-repeat: no-repeat;
+    background-position: center center;
   }
 }
 </style>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 239 - 0
src/views/RelicList.vue


+ 153 - 89
src/views/UnitList.vue

@@ -1,44 +1,81 @@
 <template>
   <div class="unit-list">
-    <aside
-      :class="{
-        expand: isExpand,
-      }"
-    >
-      <ul>
-        <li>
-          <img
-            class="banner"
-            src=""
-            alt=""
-            draggable="false"
-          >
-          <h2>运河镌石------馆藏大运河沿线碑拓展</h2>
-        </li>
-        <li>
-          <img
-            class="banner"
-            src=""
-            alt=""
-            draggable="false"
-          >
-          <h2>运河上的舟楫小书展</h2>
-        </li>
-      </ul>
-      <button
-        class="expand-shrink"
-        @click="onClickExpandShrink"
-      >
-        展开-收起
-      </button>
-    </aside>
     <main>
-      <h3>前言</h3>
-      <p>这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言</p>
+      <h3 class="foreword">
+        前言
+      </h3>
+      <p class="foreword">
+        这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言这是前言
+      </p>
       <ul>
+        <li
+          @click="$router.push({
+            name: 'RelicList',
+            query: {
+              idx: '0',
+            },
+          })"
+        >
+          <h3>章节标题</h3>
+          <p>章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容</p>
+          <button class="detail-entry">
+            藏品鉴赏
+            <img
+              class="arrow"
+              src="@/assets/images/red-arrow-right.png"
+              alt=""
+              draggable="false"
+            >
+          </button>
+        </li>
         <li>
           <h3>章节标题</h3>
           <p>章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容</p>
+          <button class="detail-entry">
+            藏品鉴赏
+            <img
+              class="arrow"
+              src="@/assets/images/red-arrow-right.png"
+              alt=""
+              draggable="false"
+            >
+          </button>
+        </li><li>
+          <h3>章节标题</h3>
+          <p>章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容</p>
+          <button class="detail-entry">
+            藏品鉴赏
+            <img
+              class="arrow"
+              src="@/assets/images/red-arrow-right.png"
+              alt=""
+              draggable="false"
+            >
+          </button>
+        </li><li>
+          <h3>章节标题</h3>
+          <p>章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容</p>
+          <button class="detail-entry">
+            藏品鉴赏
+            <img
+              class="arrow"
+              src="@/assets/images/red-arrow-right.png"
+              alt=""
+              draggable="false"
+            >
+          </button>
+        </li><li>
+          <h3>章节标题</h3>
+          <p>章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容章节内容</p>
+          <button class="detail-entry">
+            藏品鉴赏
+            <img
+              class="arrow"
+              src="@/assets/images/red-arrow-right.png"
+              alt=""
+              draggable="false"
+            >
+          </button>
         </li>
       </ul>
     </main>
@@ -64,72 +101,99 @@ export default {
 .unit-list{
   height: 100%;
   position: relative;
-  >aside{
-    position: absolute;
-    left: 0;
-    top: 0;
-    width: 200px;
-    height: 100%;
-    background-color: blue;
-    transition: width 0.5s;
-    border-radius: 0 10px 10px 0;
-    >ul{
-      background: yellow;
-      text-align: center;
-      display: flex;
-      flex-direction: column;
-      justify-content: center;
-      align-items: center;
-      height: calc(100% - 50px);
-      overflow: auto;
-      >li{
-        max-width: 500px;
-        flex: 0 0 auto;
-        >img.banner{
-          background: red;
-          object-fit: contain;
-        }
-        >h2{
-          background: white;
-        }
-      }
-    }
-    >button.expand-shrink{
-      bottom: 20px;
-      left: 50%;
-      position: absolute;
-      transform: translateX(-50%);
-    }
+  background-image: url(@/assets/images/unit-list-bg.jpg);
+  background-size: cover;
+  background-repeat: no-repeat;
+  background-position: center center;
+  overflow: auto;
+  &::-webkit-scrollbar { width: 0; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
+
+  h3{
+    font-size: 30px;
+    font-family: KingHwa_OldSong-Regular, KingHwa_OldSong;
+    font-weight: 400;
+    color: #404036;
   }
-  >aside.expand{
-    width: 100%;
+  p{
+    font-size: 16px;
+    font-family: KingHwa_OldSong-Regular, KingHwa_OldSong;
+    font-weight: 400;
+    color: #404036;
+    line-height: 28px;
+    width: 73.6vw;
+    text-indent: 2em;
   }
   >main{
-    >h3{
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    >h3.foreword{
+      margin-top: 46px;
+      margin-bottom: 32px;
     }
-    >p{
+    >p.foreword{
+      margin-bottom: 90px;
     }
     >ul{
-      counter-reset: my-count;
       >li{
-        >h3{
-          ::before{
+        display: flex;
+        flex-direction: column;
+        align-items: center;
+        width: 76.4vw;
+        cursor: pointer;
+        &:hover{
+          box-shadow: 3px 6px 19px 0px rgba(61, 34, 3, 0.2);
+          >h3{
+            &::before{
+              content: '';
+              display: inline-block;
+              position: absolute;
+              left: -12px;
+              top: 50%;
+              transform: translate(-100%, -50%);
+              width: 38px;
+              height: 38px;
+              background-image: url(@/assets/images/title-deco.png);
+              background-size: contain;
+              background-repeat: no-repeat;
+              background-position: center center;
+            }
+          }
+          >p{
+            margin-bottom: 33px;
+          }
+          >button.detail-entry{
+            display: flex;
+            justify-content: center;
+            align-items: center;
+            >img.arrow{
+              margin-left: 9px;
+            }
           }
         }
+        >h3{
+          position: relative;
+          margin-top: 42px;
+          margin-bottom: 32px;
+        }
         >p{
-
+          margin-bottom: 99px;
+        }
+        >button.detail-entry{
+          display: none;
+          width: 209px;
+          height: 48px;
+          background-image: url(@/assets/images/relic-list-page-entry-button-deco.png);
+          background-size: contain;
+          background-repeat: no-repeat;
+          background-position: center center;
+          margin-bottom: 18px;
+          font-size: 20px;
+          font-family: Source Han Serif CN-Bold, Source Han Serif CN;
+          font-weight: bold;
+          color: #7F0007;
+          line-height: 28px;
         }
-      }
-    }
-  }
-}
-
-ul {
-  > li {
-    counter-increment: count;
-    > span {
-      &::before {
-        content: counter(count, upper-alpha);
       }
     }
   }