-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (67 loc) · 2.05 KB
/
index.html
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
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<title>我的主页</title>
<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="stylesheet" href="iconfont/iconfont.css">
<link rel="stylesheet" href="css/index.css">
<script src="js/vue.min.js" language="JavaScript"></script>
</head>
<body>
<main>
<div class="content content-main">
<div id="card">
<div class="card-inner fade in">
<header>
<img :src="header.imgUrl" alt="">
<h1 class="name">{{header.name}}</h1>
<h2 class="signature">{{header.signature}}</h2>
</header>
<ul>
<li v-for="item in items" :key="item.des">
<a :href="item.href">
<i class="icon iconfont" :class="item.icon"></i>
<span>{{item.des}}</span>
</a>
</li>
</ul>
</div>
</div>
<footer class="beian">
<a href="https://beian.miit.gov.cn/">备案号:123456789</a>
</footer>
</div>
</main>
</body>
<script>
var app = new Vue({
el: '#card',
data: {
header: {
name: '名称',
imgUrl: 'images/avator.jpg',
signature: 'Input & Think & Output'
},
items: [
{
href: 'https://www.wangez.site', //跳转地址
icon: 'icon-bokeyuan', // 要使用的图标,请自行引入阿里矢量库
des: 'Blog' // 描述文字
},
{
href: 'https://www.wangez.site', //跳转地址
icon: 'icon-bokeyuan', // 要使用的图标,请自行引入阿里矢量库
des: 'Blog' // 描述文字
},
{
href: 'https://www.wangez.site', //跳转地址
icon: 'icon-bokeyuan', // 要使用的图标,请自行引入阿里矢量库
des: 'Blog' // 描述文字
}
]
}
})
</script>
</html>