forked from xuyuanzhi051/My520
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (98 loc) · 3.07 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
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>I Love You ❤️</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<style>
html {
height: 100%;
}
body {
font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
background: #79a8ae;
color: #CFEBE4;
font-size: 18px;
line-height: 2;
letter-spacing: 1.2px;
margin: 0;
}
a {
color: #ebf7f4;
}
.body--ready {
background: -webkit-linear-gradient(top, rgb(230, 203, 235) 0%, #fab7c2 120%);
background: -moz-linear-gradient(top, rgb(230, 203, 235) 0%, #fab7c2 120%);
background: -o-linear-gradient(top, rgb(230, 203, 235) 0%, #fab7c2 120%);
background: -ms-linear-gradient(top, rgb(230, 203, 235) 0%, #fab7c2 120%);
background: linear-gradient(top, rgb(230, 203, 235) 0%, #fab7c2 120%);
}
.text {
position: fixed;
bottom: 100px;
text-align: center;
width: 100%;
}
.canvas {
margin: 0 auto;
display: block;
}
img#logo {
width: 114px;
background-size: cover;
border-radius: 200px;
box-shadow: 0px 0px 40px rgba(63, 81, 181, 0.72);
border: 3px solid #00a0ff;
opacity: 1;
margin: 0 auto;
margin-top: 20px;
margin-bottom: 20px;
transition: all 1.0s;
}
#logo:hover {
box-shadow: 0 0 10px #fff;
-webkit-box-shadow: 0 0 19px #fff;
transform: rotate(360deg);
-ms-transform: rotate(360deg); /* IE 9 */
-moz-transform: rotate(360deg); /* Firefox */
-webkit-transform: rotate(360deg); /* Safari 和 Chrome */
-o-transform: rotate(360deg); /* Opera */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
.cs {
width: 100%;
height: 100%;
margin: 0 auto;
position: absolute;
text-align: center;
}
.text {
position: fixed;
bottom: 80px;
text-align: center;
width: 100%;
font-weight: bold;
}
.text-right {
position: fixed;
bottom: 50px;
text-align: right;
width: 100%;
font-weight: bold;
}
</style>
</head>
<body>
<div class="cs">
<img src="images/lover.jpg" id="logo">
</div>
<canvas class="canvas" width="1820" height="905"></canvas>
<p class="text" style="color: #ed3073;">
We fell in love
<br/>
<span id="span_dt_dt"></span>
</p>
<script src="index.js"></script>
</body>
</html>