-
Notifications
You must be signed in to change notification settings - Fork 30
/
quote3.html
89 lines (79 loc) · 2.21 KB
/
quote3.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
<!--
* @Author: httishere
* @Date: 2021-08-20 22:57:16
* @LastEditTime: 2022-11-29 19:41:58
* @LastEditors: Tina Huang
* @Description: 引用块,简约
* @FilePath: /notion/quote.html
-->
<!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">
<title>Quote</title>
<script src="./lib/global.js?v=20240313"></script>
<script src="./lib/crypto-js.min.js"></script>
<style>
body,
html {
background-color: #ffffff;
margin: 0;
padding: 0;
}
@font-face {
font-family: 'Klee-One';
src: url('./fonts/Klee_One/KleeOne-Regular.ttf');
}
.quote-box {
width: 100%;
margin: 0 auto;
height: 100vh;
background: #ffffff;
box-sizing: border-box;
padding: 40px
}
.icon {
position: absolute;
}
.icon.icon-top {
top: -30px;
left: -30px;
}
.icon.icon-bottom {
bottom: -30px;
right: -20px;
}
.quote-box__inner {
font-size: 18px;
position: relative;
line-height: 1.8;
}
#text {
font-family: 'Klee-One';
font-size: 22px;
margin: 0;
box-sizing: border-box;
}
</style>
</head>
<body>
<div class="quote-box" id="quote-box">
<div class="quote-box__inner">
<img class="icon icon-top" src="https://img.icons8.com/windows/32/000000/quote-left.png" />
<p id="text"></p>
<img class="icon icon-bottom" src="https://img.icons8.com/windows/32/000000/quote-right.png" />
</div>
</div>
</body>
<script>
const params = getAllParams(CryptoJS);
window.onload = function () {
let _quote_content =
getQueryString("text") || params.content || "HTTISHERE";
document.getElementById("text").innerHTML = _quote_content;
document.getElementById("quote-box").style.color = params.font_color;
};
</script>
</html>