Yansen 2 年前
父节点
当前提交
8c6159f1db

+ 1
- 1
index.html 查看文件

13
 
13
 
14
     <!-- <link rel="stylesheet" href="./slidePage/slidePage.min.css"> -->
14
     <!-- <link rel="stylesheet" href="./slidePage/slidePage.min.css"> -->
15
 
15
 
16
-    <link rel="stylesheet" href="./fonts/SourceHanSansCN-Medium/SourceHanSansCN-Medium.css">
16
+    <link rel="stylesheet" href="./fonts/SourceHanSerifCN-Medium/SourceHanSerifCN-Medium.css">
17
     <title>南京-紫金草行动</title>
17
     <title>南京-紫金草行动</title>
18
     <!-- <script src="./vconsole.min.js"></script>
18
     <!-- <script src="./vconsole.min.js"></script>
19
     <script>
19
     <script>

+ 8
- 0
public/fonts/SourceHanSerifCN-Medium/SourceHanSerifCN-Medium.css 查看文件

1
+@font-face {
2
+  font-family: "SourceHanSerifCN-Medium";
3
+  src: url("SourceHanSerifCN-Medium.ttf") format("truetype"); /* iOS 4.1- */
4
+  font-style: normal;
5
+  font-weight: normal;
6
+}
7
+
8
+

二进制
public/fonts/SourceHanSerifCN-Medium/SourceHanSerifCN-Medium.ttf 查看文件


二进制
public/images/down.png 查看文件


+ 30
- 0
src/components/DownArrow.vue 查看文件

1
+<template>
2
+  <img class="down-arrow" src="/images/down.png" alt="">
3
+</template>
4
+
5
+<script setup>
6
+
7
+</script>
8
+
9
+<style lang="less" scoped>
10
+  .down-arrow {
11
+    width: 15vw;
12
+    position: absolute;
13
+    bottom: 5vh;
14
+    left: calc(50% - 8vw);
15
+
16
+    animation: mv-down 2s ease-in-out infinite forwards;
17
+  }
18
+
19
+  @keyframes mv-down {
20
+    from {
21
+      transform: translateY(0);
22
+      opacity: 1;
23
+    }
24
+
25
+    to {
26
+      transform: translateY(2vh);
27
+      opacity: 0;
28
+    }
29
+  }
30
+</style>

+ 3
- 0
src/pages/pg1/index.vue 查看文件

19
     <div class="footer abs animate__animated animate__fadeInUp">
19
     <div class="footer abs animate__animated animate__fadeInUp">
20
       <img src="/images/pg1/bg2.png" alt="" parallax-offset='-200'>
20
       <img src="/images/pg1/bg2.png" alt="" parallax-offset='-200'>
21
     </div>
21
     </div>
22
+
23
+    <DownArrow />
22
     <Md1 v-if="mdActive == 1" @cancel="onCancel(1)" />
24
     <Md1 v-if="mdActive == 1" @cancel="onCancel(1)" />
23
     <Md2 v-if="mdActive == 2" @cancel="onCancel(2)" />
25
     <Md2 v-if="mdActive == 2" @cancel="onCancel(2)" />
24
     <Md3 v-if="mdActive == 3" @cancel="onCancel(3)" />
26
     <Md3 v-if="mdActive == 3" @cancel="onCancel(3)" />
29
   import { onMounted, ref } from 'vue';
31
   import { onMounted, ref } from 'vue';
30
   import { useRouter } from 'vue-router';
32
   import { useRouter } from 'vue-router';
31
   import InkEffect from '@/components/InkEffect.vue';
33
   import InkEffect from '@/components/InkEffect.vue';
34
+  import DownArrow from '@/components/DownArrow.vue';
32
   import Logo from './Logo.vue';
35
   import Logo from './Logo.vue';
33
   import Part1 from './P1.vue';
36
   import Part1 from './P1.vue';
34
   import Part2 from './P2.vue';
37
   import Part2 from './P2.vue';

+ 3
- 0
src/pages/pg2/index.vue 查看文件

66
       了解故事
66
       了解故事
67
       <img src="/images/pg2/箭头-右.png" alt />
67
       <img src="/images/pg2/箭头-右.png" alt />
68
     </div>
68
     </div>
69
+
70
+    <DownArrow />
69
   </div>
71
   </div>
70
 </template>
72
 </template>
71
 
73
 
75
   import Bell from "@/components/Bell.vue";
77
   import Bell from "@/components/Bell.vue";
76
   import Animate from "@/components/Animate.vue";
78
   import Animate from "@/components/Animate.vue";
77
   import InkEffect from "@/components/InkEffect.vue";
79
   import InkEffect from "@/components/InkEffect.vue";
80
+  import DownArrow from '@/components/DownArrow.vue';
78
   import Cloud from "./Cloud.vue";
81
   import Cloud from "./Cloud.vue";
79
   import Smoke from "./smoke.vue";
82
   import Smoke from "./smoke.vue";
80
   import Flower1 from "./flower/Flower1.vue";
83
   import Flower1 from "./flower/Flower1.vue";

+ 1
- 1
src/style.less 查看文件

1
 :root {
1
 :root {
2
-  font-family: "SourceHanSansCN-Medium";
2
+  font-family: "SourceHanSerifCN-Medium";
3
   font-size: 16px;
3
   font-size: 16px;
4
   line-height: 24px;
4
   line-height: 24px;
5
   font-weight: 400;
5
   font-weight: 400;