forked from YearnstudioYangyi/HomePage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.html
More file actions
302 lines (271 loc) · 9.57 KB
/
about.html
File metadata and controls
302 lines (271 loc) · 9.57 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>关于我 | 阳毅</title>
<meta name="description" content="了解阳毅的编程故事、核心技能(Go, Python, Docker等)以及在 Yearnstudio 的开发足迹。">
<meta name="keywords" content="关于我, 阳毅, 开发者简历, 技能栈, Yearnstudio, 编程经历">
<meta name="author" content="阳毅">
<!-- Open Graph -->
<meta property="og:type" content="profile">
<meta property="og:url" content="https://yangyiit.top/about">
<meta property="og:title" content="关于我 | 阳毅">
<meta property="og:description" content="了解阳毅的编程故事、核心技能以及开发足迹。">
<meta property="og:image" content="https://1814376442.v.123pan.cn/1814376442/url/logo.jpg">
<script src="https://cdn.tailwindcss.com"></script>
<style>
:root {
--bg-color: #050505;
--accent-color: rgba(255, 255, 255, 0.1);
--text-main: #ffffff;
--text-dim: #888888;
--glow-color: rgba(255, 255, 255, 0.05);
}
body {
background-color: var(--bg-color);
color: var(--text-main);
margin: 0;
font-family: 'Inter', -apple-system, sans-serif;
overflow-x: hidden;
line-height: 1.6;
}
/* 顶部导航 */
.header {
position: fixed;
top: 0;
width: 100%;
padding: 1.5rem 2rem;
z-index: 100;
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(to bottom, rgba(5,5,5,0.8), rgba(5,5,5,0));
backdrop-filter: blur(10px);
}
.back-link {
text-decoration: none;
color: var(--text-dim);
font-size: 0.85rem;
letter-spacing: 1px;
transition: color 0.3s;
display: flex;
align-items: center;
gap: 0.5rem;
}
.back-link:hover {
color: var(--text-main);
}
/* 页面主体 */
.content-container {
max-width: 1100px;
margin: 0 auto;
padding: 120px 20px 60px;
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 4rem;
}
@media (max-width: 968px) {
.content-container {
grid-template-columns: 1fr;
padding-top: 100px;
gap: 2rem;
}
.profile-section {
position: relative !important; /* 移动端取消固定,防止重叠 */
top: 0 !important;
}
}
/* 左侧个人信息 */
.profile-section {
position: sticky;
top: 120px;
height: fit-content;
transition: opacity 0.3s ease-out; /* 增加平滑过渡 */
}
.profile-image {
width: 120px;
height: 120px;
border-radius: 50%;
background: #111;
border: 1px solid var(--accent-color);
margin-bottom: 2rem;
overflow: hidden;
box-shadow: 0 0 30px var(--glow-color);
}
/* 技能标签 */
.skill-tag {
display: inline-block;
padding: 0.3rem 1rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
font-size: 0.8rem;
margin: 0.3rem;
color: var(--text-dim);
transition: all 0.3s ease;
}
.skill-tag:hover {
background: #fff;
color: #000;
transform: translateY(-2px);
}
/* 经历时间轴 */
.timeline {
margin-top: 3rem;
border-left: 1px solid var(--accent-color);
padding-left: 1.5rem;
position: relative;
}
.timeline-item {
margin-bottom: 2.5rem;
position: relative;
}
.timeline-item::before {
content: '';
position: absolute;
left: -1.85rem;
top: 0.5rem;
width: 10px;
height: 10px;
background: var(--text-dim);
border-radius: 50%;
transition: background 0.3s;
}
.timeline-item:hover::before {
background: #fff;
box-shadow: 0 0 10px #fff;
}
.timeline-date {
font-size: 0.8rem;
color: var(--text-dim);
margin-bottom: 0.5rem;
}
.timeline-title {
font-size: 1.1rem;
font-weight: 700;
}
/* 装饰背景文字 */
.bg-text {
position: fixed;
bottom: -5%;
right: -5%;
font-size: 25vw;
font-weight: 900;
color: rgba(255, 255, 255, 0.01);
pointer-events: none;
z-index: -1;
}
</style>
</head>
<body>
<header class="header">
<a href="/" class="back-link">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
BACK
</a>
<div class="text-white font-bold tracking-widest uppercase opacity-40 text-[10px]">About Identity</div>
</header>
<div class="bg-text">ABOUT</div>
<div class="content-container">
<!-- 左侧:简介 -->
<section class="profile-section">
<div class="profile-image">
<img src="https://1814376442.v.123pan.cn/1814376442/url/logo.jpg" alt="Yangyi" class="w-full h-full">
</div>
<h1 class="text-4xl font-black mb-4">阳毅</h1>
<p class="text-dim text-lg mb-6">后端 / 运维</p>
<p class="text-dim mb-8">
保持热爱, 奔赴山海。
</p>
<h3 class="text-xs uppercase tracking-widest text-white opacity-40 mb-4">Core Skills</h3>
<div id="skills-list">
<!-- 由 JS 渲染 -->
</div>
</section>
<!-- 右侧:详情 -->
<section>
<div>
<h2 class="text-2xl font-bold mb-6">关于我的故事</h2>
<div class="space-y-4 text-dim">
<p>从40code开始我的梦, 直到现在, 无悔进入编程领域</p>
<p>愿此行, 终抵群星!</p>
</div>
</div>
<div class="mt-12">
<h2 class="text-2xl font-bold mb-8">足迹</h2>
<div class="timeline" id="experience-timeline">
<!-- 由 JS 渲染 -->
</div>
</div>
</section>
</div>
<script>
const aboutData = {
skills: [
"Python", "Go", "Git", "C++", "C", "C#", "HTML", "CSS", "JavaScript", "Docker"
],
experiences: [
{
date: "2024 - Present",
title: "开发 @ ShangCloud",
desc: "全新构思的一个项目,一边鸽一边做"
},
{
date: "2022 - Present",
title: "开发 @ Yearnstudio",
desc: "支撑我走下去的动力"
},
{
date: "2022 - 2026",
title: "运维 @ Yearnstudio资源站",
desc: "为了一个梦想而诞生的公益资源站"
},
{
date: "2022 - Present",
title: "小作者 @ 40code",
desc: "梦开始的地方"
},
{
date: "2020 - 2022",
title: "小作者 @ Scratch中社",
desc: "难以评价"
}
]
};
// 渲染技能
function renderSkills() {
const container = document.getElementById('skills-list');
container.innerHTML = aboutData.skills.map(s => `<span class="skill-tag">${s}</span>`).join('');
}
// 渲染时间轴
function renderTimeline() {
const container = document.getElementById('experience-timeline');
container.innerHTML = aboutData.experiences.map(exp => `
<div class="timeline-item">
<div class="timeline-date">${exp.date}</div>
<div class="timeline-title">${exp.title}</div>
<div class="text-sm text-dim mt-2">${exp.desc}</div>
</div>
`).join('');
}
window.onload = () => {
renderSkills();
renderTimeline();
// 移动端滚动淡出逻辑
const profile = document.querySelector('.profile-section');
window.addEventListener('scroll', () => {
if (window.innerWidth <= 968) {
const scrollY = window.scrollY;
const fadeThreshold = 300; // 在滚动 300px 内完成淡出
const opacity = Math.max(0, 1 - scrollY / fadeThreshold);
profile.style.opacity = opacity;
} else {
// 恢复桌面端显示
profile.style.opacity = 1;
}
});
};
</script>
</body>
</html>