-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
131 lines (119 loc) · 2.92 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style/reset.css">
<link rel="stylesheet"
href="https://fastly.jsdelivr.net/gh/KonghaYao/chinese-free-web-font-storage/build/LXGWWenKai-Bold/result.css">
<style>
body,
html {
height: 100%;
background-color: #6E85B7;
font-family: 'LXGWWenKai';
}
.container {
width: 100%;
height: 100%;
background-color: #6E85B7;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card {
display: flex;
flex-direction: column;
row-gap: 10px;
width: 450px;
background-color: #fff;
border-radius: 5px;
padding: 20px;
margin-bottom: 30px;
margin-top: 30px;
}
.quote-text,
.quote-author {
color: #6E85B7;
line-height: 150%;
}
.quote-author {
align-self: flex-end;
font-weight: lighter;
}
.quote-text {
justify-self: flex-start;
font-size: 1.3em;
}
.quote-author::before {
content: '-';
}
.footer {
color: white;
font-size: 0.8em;
}
.footer a {
color: white;
text-decoration: none;
}
.buttons {
width: 450px;
height: 40px;
display: flex;
flex-direction: row;
column-gap: 5px;
align-items: center;
}
#new_quote {
margin-left: auto;
color: white;
padding: 0px 7px 0px 7px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 15px;
}
.button {
min-width: 40px;
height: 40px;
background-color: #6E85B7;
border-radius: 3px;
cursor: pointer;
}
.button:hover {
opacity: 0.9;
}
#share, #export {
margin-left: 10px;
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
</style>
<title>一言</title>
</head>
<body>
<div class="container">
<div class="card">
<p class="quote-text">
</p>
<p class="quote-author">
</p>
<div class="buttons">
<a class="button" target="_blank" id="share" title="分享"><i class="fa-solid fa-share-nodes"></i></a>
<a class="button" target="_blank" id="export" title="导出为图片"><i class="fa-solid fa-arrow-up-from-bracket"></i></a>
<div class="button" id="new_quote">「一言」</div>
</div>
</div>
<div class="footer">by <a href="https://github.com/alkaidcc">Alkaidcc</a></div>
</div>
<script src="https://kit.fontawesome.com/b0f1d01f82.js" crossorigin="anonymous"></script>
<script src="script/dom2img.js"></script>
<script src="script/index.js"></script>
</body>
</html>