-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Home.vue
94 lines (87 loc) · 2.72 KB
/
Home.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<template>
<el-container class="home-container" direction="vertical">
<h2>你好 世界</h2>
<div class="describe-container">
<div class="describe">
<h3>简洁</h3>
<p>不添加推广、贴片广告等无用功能,尽量保证界面为功能服务</p>
</div>
<div class="describe">
<h3>安全</h3>
<p>
此软件无联机功能,你可以通过坚果云来备份自己的存档,实现“云存档”的功能
</p>
</div>
<div class="describe">
<h3>自由</h3>
<p>
这个软件属于开源世界,你可以轻易访问到它的源代码,有能者可以为它贡献代码
</p>
</div>
</div>
<el-container class="new" direction="horizontal">
<el-result title="导入游戏">
<template #icon>
<Edit />
</template>
<template #extra>
<el-button type="primary" @click="go_add_game()">跳转</el-button>
</template>
</el-result>
<el-result title="进入存档管理">
<template #icon>
<Files />
</template>
<template #extra>
<el-button type="primary" @click="go_game_manage()">提示</el-button>
</template>
</el-result>
<el-result title="开始备份!">
<template #icon>
<UploadFilled />
</template>
<template #extra>
<el-button type="primary" @click="go_backup()">提示</el-button>
</template>
</el-result>
</el-container>
</el-container>
</template>
<script lang="ts" setup>
import { Edit, UploadFilled, Files } from "@element-plus/icons-vue";
import { useRouter } from "vue-router";
import { show_info } from "../utils/notifications";
const router = useRouter();
function go_add_game() {
router.push("/add-game");
}
function go_game_manage() {
show_info("请单击左侧\"存档管理\"");
}
function go_backup() {
show_info("请在\"存档管理\"栏目下单击游戏名,在新界面中进行存档管理");
}
</script>
<style>
.home-container {
height: 95%;
}
.home-container>h2 {
margin-right: auto;
margin-left: auto;
margin-bottom: 2em;
display: block;
font-size: 2em;
}
.describe-container {
display: flex;
justify-content: space-around;
}
.describe {
width: 25%;
}
.new {
margin-top: 100px;
justify-content: space-around;
}
</style>