-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (86 loc) · 2.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Joey</title>
<style>
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 20px auto;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
padding: 40px;
}
h1 {
text-align: center;
color: #333;
font-size: 24px;
margin-bottom: 20px;
}
p {
font-size: 16px;
line-height: 1.6;
color: #666;
margin-bottom: 20px;
}
.social-icons {
text-align: center;
margin-top: 30px;
}
.social-icons a {
display: inline-block;
margin: 0 10px;
color: #666;
text-decoration: none;
transition: color 0.3s ease-in-out;
position: relative;
}
.social-icons a:before {
content: "";
position: absolute;
width: 100%;
height: 2px;
bottom: -4px;
left: 0;
background-color: #ff3366;
visibility: hidden;
transform: scaleX(0);
transition: all 0.3s ease-in-out;
}
.social-icons a:hover:before {
visibility: visible;
transform: scaleX(1);
}
</style>
<script>
function copyToClipboard(text) {
const textarea = document.createElement('textarea');
textarea.value = text;
textarea.style.position = 'fixed';
document.body.appendChild(textarea);
textarea.select();
document.execCommand('copy');
document.body.removeChild(textarea);
}
</script>
</head>
<body>
<div class="container">
<h1>欢迎来到我的个人主页</h1><br><br><br><br>
<p style="text-align: center;">QQ:20236076</p><br><br><br><br>
<div class="social-icons">
<a href="https://github.com/easyJoey" target="_blank">GitHub</a>
<a href="#" onclick="copyToClipboard('[email protected]'); alert('邮箱已复制!')">Email</a>
</div>
</div>
</body>
</html>
<!-- 哈哈 -->