360 lines
14 KiB
HTML
360 lines
14 KiB
HTML
{{ define "web/fresh" }}
|
|
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{.BasicInfo.Name}} - {{.BasicInfo.Title}}</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<style>
|
|
:root {
|
|
--bg-primary: #f7f9f7;
|
|
--bg-secondary: #ffffff;
|
|
--bg-card: #fefefe;
|
|
--border-color: #e8ebe8;
|
|
--text-primary: #2c3e50;
|
|
--text-secondary: #5d6d7e;
|
|
--text-muted: #95a5a6;
|
|
--accent-color: #27ae60;
|
|
--accent-teal: #1abc9c;
|
|
--accent-blue: #3498db;
|
|
--accent-orange: #e67e22;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
a { text-decoration: none; color: unset; }
|
|
body {
|
|
font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
position: relative;
|
|
}
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
|
|
opacity: 0.025;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
::selection { background: rgba(39, 174, 96, 0.25); }
|
|
|
|
.theme-switch { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 1000; }
|
|
.theme-switch button {
|
|
background: white;
|
|
border: 0.06rem solid var(--border-color);
|
|
color: var(--text-primary);
|
|
padding: 0.44rem 0.88rem;
|
|
border-radius: 0.25rem;
|
|
cursor: pointer;
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.50rem;
|
|
box-shadow: 0 0.06rem 0.25rem rgba(0,0,0,0.04);
|
|
}
|
|
.theme-switch button:hover {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0.12rem 0.50rem rgba(39,174,96,0.2);
|
|
transform: translateY(-0.06rem);
|
|
}
|
|
|
|
.resume-container {
|
|
max-width: 51.25rem;
|
|
margin: 2.50rem auto;
|
|
background: var(--bg-secondary);
|
|
border-radius: 0.25rem;
|
|
box-shadow: 0 0.12rem 1rem rgba(0,0,0,0.04);
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
header.resume-header {
|
|
background: linear-gradient(180deg, #e8f5e9 0%, #f7f9f7 100%);
|
|
padding: 2.81rem 2.50rem;
|
|
text-align: center;
|
|
border-bottom: 0.06rem solid var(--border-color);
|
|
}
|
|
header.resume-header .avatar img {
|
|
width: 8.12rem;
|
|
height: 8.12rem;
|
|
border-radius: 50%;
|
|
border: 0.25rem solid white;
|
|
object-fit: cover;
|
|
box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.08);
|
|
}
|
|
|
|
header.resume-header .basic-info { display: flex; flex-direction: column; gap: 0.88rem; align-items: center; }
|
|
header.resume-header .basic-info .info-header { text-align: center; }
|
|
header.resume-header .basic-info .name { font-size: 2em; font-weight: 700; margin-bottom: 0.50rem; color: var(--text-primary); line-height: 1.2; }
|
|
header.resume-header .basic-info .title { font-size: 0.95em; color: var(--text-secondary); font-weight: 400; }
|
|
|
|
.contact-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 0.62rem;
|
|
}
|
|
.contact-tag {
|
|
background: white;
|
|
padding: 0.31rem 0.88rem;
|
|
border-radius: 0.19rem;
|
|
font-size: 0.84em;
|
|
color: var(--text-secondary);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.38rem;
|
|
border: 0.06rem solid var(--border-color);
|
|
white-space: nowrap;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.contact-tag:hover { border-color: var(--accent-color); color: var(--accent-color); }
|
|
.contact-tag a { color: var(--text-secondary); text-decoration: none; position: relative; }
|
|
.contact-tag a::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0.06rem;
|
|
bottom: -0.06rem;
|
|
left: 0;
|
|
background: var(--accent-color);
|
|
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.contact-tag a:hover::after { width: 100%; }
|
|
.contact-tag a:hover { color: var(--accent-color); }
|
|
|
|
.meta-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 0.50rem;
|
|
font-size: 0.8em;
|
|
color: var(--text-muted);
|
|
}
|
|
.meta-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.25rem;
|
|
padding: 0.19rem 0.62rem;
|
|
background: rgba(255,255,255,0.5);
|
|
border-radius: 0.12rem;
|
|
white-space: nowrap;
|
|
border: 0.06rem solid var(--border-color);
|
|
}
|
|
.meta-tag i { width: 0.75rem; text-align: center; opacity: 0.5; }
|
|
|
|
header.resume-header .basic-info .summary {
|
|
margin-top: 0.12rem;
|
|
padding: 0.88rem 1.12rem;
|
|
background: rgba(255,255,255,0.6);
|
|
border-radius: 0.25rem;
|
|
font-size: 0.88em;
|
|
line-height: 1.8;
|
|
color: var(--text-secondary);
|
|
border-left: 0.19rem solid var(--accent-color);
|
|
}
|
|
|
|
main.resume-body { padding: 2.62rem; }
|
|
|
|
section { margin-bottom: 2.50rem; }
|
|
section:last-child { margin-bottom: 0; }
|
|
|
|
.section-title {
|
|
font-size: 1.05em;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1.25rem;
|
|
padding-bottom: 0.75rem;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.62rem;
|
|
letter-spacing: 0.02rem;
|
|
}
|
|
.section-title::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 2.81rem;
|
|
height: 0.19rem;
|
|
background: var(--accent-color);
|
|
border-radius: 0.12rem;
|
|
}
|
|
.section-title i { color: var(--accent-color); font-size: 0.9em; }
|
|
|
|
.section-content { display: flex; flex-direction: column; gap: 1.12rem; }
|
|
|
|
article.item {
|
|
background: var(--bg-card);
|
|
padding: 1.38rem;
|
|
border-radius: 0.25rem;
|
|
border: 0.06rem solid var(--border-color);
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
}
|
|
article.item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 0.19rem;
|
|
height: 100%;
|
|
background: var(--accent-color);
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
border-radius: 0.12rem 0 0 0.12rem;
|
|
}
|
|
article.item:hover {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0.12rem 0.75rem rgba(39,174,96,0.06);
|
|
transform: translateY(-0.12rem);
|
|
}
|
|
article.item:hover::before { opacity: 1; }
|
|
|
|
.item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.62rem; }
|
|
.item-header .company, .item-header .school, .item-header .project-name { font-weight: 600; color: var(--text-primary); font-size: 1em; }
|
|
.item-header .period { color: var(--text-muted); font-size: 0.82em; }
|
|
.item-header a { color: var(--accent-color); font-size: 0.95em; transition: color 0.3s; position: relative; }
|
|
.item-header a::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0.06rem;
|
|
bottom: -0.06rem;
|
|
left: 0;
|
|
background: var(--accent-color);
|
|
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.item-header a:hover::after { width: 100%; }
|
|
.item-header a:hover { color: #1e8449; }
|
|
|
|
.position { color: var(--accent-color); font-weight: 500; margin-bottom: 0.62rem; }
|
|
.degree { color: var(--text-secondary); margin-bottom: 0.31rem; }
|
|
.gpa { color: var(--text-muted); font-size: 0.82em; }
|
|
|
|
.description { color: var(--text-secondary); line-height: 1.65; margin-bottom: 0.62rem; font-size: 0.92em; }
|
|
|
|
.highlights { list-style: none; padding-left: 0; }
|
|
.highlights li { color: var(--text-secondary); padding: 0.38rem 0; font-size: 0.9em; display: flex; align-items: flex-start; gap: 0.62rem; line-height: 1.6; }
|
|
.highlights li i { color: var(--accent-teal); font-size: 0.82em; margin-top: 0.19rem; }
|
|
|
|
.skill-items { display: flex; flex-wrap: wrap; gap: 0.62rem; }
|
|
.skill-tag {
|
|
padding: 0.38rem 0.88rem;
|
|
background: rgba(39,174,96,0.08);
|
|
border: 0.06rem solid rgba(39,174,96,0.2);
|
|
border-radius: 0.19rem;
|
|
font-size: 0.88em;
|
|
color: var(--text-primary);
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.skill-tag:hover {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-color: var(--accent-color);
|
|
transform: translateY(-0.06rem);
|
|
}
|
|
|
|
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.50rem; margin-top: 0.62rem; }
|
|
.tech-tag {
|
|
padding: 0.25rem 0.75rem;
|
|
background: rgba(52,152,219,0.1);
|
|
color: var(--accent-blue);
|
|
border-radius: 0.19rem;
|
|
font-size: 0.82em;
|
|
border: 0.06rem solid rgba(52,152,219,0.2);
|
|
}
|
|
|
|
.platforms { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.50rem; }
|
|
.platform-tag {
|
|
padding: 0.19rem 0.62rem;
|
|
background: rgba(230,126,34,0.1);
|
|
color: var(--accent-orange);
|
|
border-radius: 0.19rem;
|
|
font-size: 0.78em;
|
|
border: 0.06rem solid rgba(230,126,34,0.2);
|
|
}
|
|
|
|
.advantage-list { list-style: none; padding-left: 0; }
|
|
.advantage-list li {
|
|
color: var(--text-secondary);
|
|
padding: 0.50rem 0;
|
|
font-size: 0.92em;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.62rem;
|
|
line-height: 1.65;
|
|
}
|
|
.advantage-list li i { color: var(--accent-color); font-size: 0.85em; margin-top: 0.12rem; }
|
|
|
|
@media (max-width: 48rem) {
|
|
.resume-container { margin: 0.94rem; }
|
|
header.resume-header { padding: 2rem 1.38rem; }
|
|
main.resume-body { padding: 1.75rem 1.38rem; }
|
|
.item-header { flex-direction: column; gap: 0.38rem; }
|
|
.contact-row { gap: 0.62rem; }
|
|
.contact-item { padding: 0.44rem 0.88rem; font-size: 0.82em; }
|
|
article.item:hover { transform: translateY(0); }
|
|
}
|
|
|
|
@media print {
|
|
body { background: white; }
|
|
body::before { display: none; }
|
|
.theme-switch { display: none; }
|
|
.resume-container {
|
|
max-width: 100%;
|
|
margin: 0;
|
|
box-shadow: none;
|
|
border: 0.06rem solid #ddd;
|
|
}
|
|
header.resume-header {
|
|
background: #f5f5f5;
|
|
border-bottom: 0.12rem solid var(--accent-color);
|
|
}
|
|
article.item {
|
|
background: #fafafa;
|
|
border: 0.06rem solid #eee;
|
|
border-left: 0.19rem solid var(--accent-color);
|
|
}
|
|
article.item:hover {
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
.contact-item { background: transparent; border: 0.06rem solid #ddd; }
|
|
a { color: var(--accent-color); text-decoration: underline; }
|
|
@page { margin: 15mm; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{{ template "theme-switch" . }}
|
|
|
|
<div class="resume-container">
|
|
<header class="resume-header">
|
|
{{ template "component-avatar" .BasicInfo }}
|
|
{{ template "component-basic-info" .BasicInfo }}
|
|
</header>
|
|
<main class="resume-body">
|
|
{{ template "section-core-advantages" . }}
|
|
{{ template "section-experience" . }}
|
|
{{ template "section-education" . }}
|
|
{{ template "section-skills" . }}
|
|
{{ template "section-projects" . }}
|
|
</main>
|
|
</div>
|
|
|
|
{{ template "theme-script" . }}
|
|
<script src="/static/js/security.js"></script>
|
|
</body>
|
|
</html>
|
|
{{ end }} |