-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
137 lines (122 loc) · 3.8 KB
/
index.html
File metadata and controls
137 lines (122 loc) · 3.8 KB
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
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>html与JavaScript程序设计作业</title>
<style>
:root {
--primary-color: #6366f1;
--secondary-color: #a855f7;
--bg-color: #0f172a;
--card-bg: rgba(30, 41, 59, 0.7);
}
body {
margin: 0;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
overflow: hidden;
}
h1 {
font-size: 2.5rem;
margin-bottom: 2rem;
background: linear-gradient(to right, #818cf8, #c084fc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.container {
display: flex;
gap: 2rem;
padding: 20px;
flex-wrap: wrap;
justify-content: center;
}
.card {
background: var(--card-bg);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 2.5rem;
border-radius: 20px;
text-decoration: none;
color: white;
width: 200px;
text-align: center;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.card:hover {
transform: translateY(-10px);
background: rgba(255, 255, 255, 0.1);
border-color: var(--primary-color);
box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.4);
}
.card i {
font-size: 3rem;
display: block;
margin-bottom: 1rem;
}
.card h2 {
margin: 0;
font-size: 1.5rem;
}
.card p {
font-size: 0.9rem;
opacity: 0.7;
margin-top: 0.5rem;
}
.github-link {
margin-top: 2rem;
font-size: 1.1rem;
color: rgba(255, 255, 255, 0.8);
text-align: center;
padding: 0 1rem;
word-wrap: break-word;
}
@media screen and (max-width: 768px) {
h1 {
font-size: 1.8rem;
text-align: center;
padding: 0 15px;
}
.container {
flex-direction: column;
align-items: center;
gap: 1.5rem;
}
.card {
width: 80%;
max-width: 280px;
padding: 2rem;
}
.github-link {
font-size: 0.95rem;
}
}
</style>
</head>
<body>
<h1>html与JavaScript程序设计作业</h1>
<div class="container">
<a href="resume.html" class="card">
<i>📄</i>
<h2>个人简历</h2>
<p>resume.html</p>
</a>
<a href="form.html" class="card">
<i>📝</i>
<h2>表单</h2>
<p>form.html</p>
</a>
</div>
<div class="github-link">
或访问我的github地址:<a href="https://github.com/HM2006/html_lesson" target="_blank" style="color: #818cf8; text-decoration: underline;">https://github.com/HM2006/html_lesson</a>
</div>
</body>
</html>