-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnindex.html
125 lines (122 loc) · 3.61 KB
/
nindex.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="shortcut icon" href="/fav.ico" type="image/x-icon"><title>Well, U Dont Dont</title><link rel="stylesheet" href="css/main.css" type="text/css"><style>*{margin: 0;padding: 0;}
body{
background-color: #323232;
}
a{text-decoration: none;}
.fl{float: left;}
.fr{float: right;}
.content{
width: 600px;
overflow: hidden;
margin: 100px auto;
}
.guide{
width: 600px;
float: left;
border-radius: 10px;
border:1px solid #fff;
background-color: rgba(255,255,255, .2);
box-sizing: border-box;
padding: 20px;
}
.g-header{
margin-bottom: 20px;
}
.guide h1{
font-size: 30px;
text-align: center;
line-height: 104px;
color:#000;
text-shadow: 0 0 8px #f00;
}
.reel{
width:300px;
height:76px;
background:#fff;
/*background-image:linear-gradient(to right, rgba(0,0,0,.3) 20%, transparent 20%, transparent 80%, rgba(0,0,0,.3) 80%,rgba(0,0,0,.3) 100%), linear-gradient(to bottom, rgba(0,0,0,1) 0%, #333 30%, #333 70%, rgba(0,0,0,1) 100% );*/
background-image: linear-gradient(to right, rgba(255,0,0,.3) 15%, transparent 15%, transparent 85%, rgba(255,0,0,.3) 85%,rgba(255,0,0,.3) 100%), linear-gradient(to bottom, rgba(0,0,0,1) 0%, transparent 30%, transparent 70%, rgba(0,0,0,1) 100% );
border-radius:8px;
position:relative;
border:1px solid #222;
margin:0 auto;
}
.reel::before, .reel::after{
content:" ";
display:block;
width:12px;
height:62px;
/* background: #999;*/
background-color: #290606;
position:absolute;
top:7px;
}
.reel:before{
left:-12px;
border-radius: 8px 0 0 8px;
}
.reel:after{
right:-12px;
border-radius: 0 8px 8px 0;
}
.reel h3{
font-size: 30px;
line-height: 76px;
text-align: center;
}
.reel-content{
width: 290px;
box-sizing: border-box;
padding: 15px;
list-style: none;
margin: 0 auto;
background: rgba(242,235,217,1);
background-image: linear-gradient(to right, rgba(255,0,0,.3) 0%,rgba(255,0,0,.3) 5%, transparent 10%, transparent 90%,rgba(255,0,0,.3) 95%,rgba(255,0,0,.3) 100%);
}
.reel-content li{
width: 100%;
height: 40px;
line-height: 40px;
text-align: center;
}
.reel-content li a{
display: block;
color: #333;
}
.reel-content li a:hover{
animation-name: swing;
animation-duration: .75s;
}</style></head><body><div id="app"></div><script src="https://cdn.jsdelivr.net/npm/[email protected]"></script><script>const app = new Vue({
el: '#app',
data: {
fold: true
},
methods: {
toggleFold: function() {
this.fold = !this.fold;
}
},
template: `
<div class="content">
<div class="guide">
<div class="g-header">
<div class="sharingan fl">
<div class="gogok gogok1">
</div>
<div class="gogok gogok2">
</div>
<div class="gogok gogok3">
</div>
</div>
<h1>Dont</h1>
</div>
<div class="reel" @click="toggleFold"><h3>打开</h3></div>
<ul id="nav" v-if="!fold" class="reel-content">
<li><a href="">首页</a></li>
<li><a href="">关于我</a></li>
<li><a href="">小页面</a></li>
</ul>
<div class="reel" @click="toggleFold"><h3>收起</h3></div>
</div>
</div>
`
});</script></body></html>