Files

314 lines
13 KiB
HTML

{{ define "web/classic" }}
<!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>
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: unset; }
body {
font-family: Georgia, 'Times New Roman', Times, 'SimSun', serif;
background: #e8e8e8;
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 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5'/%3E%3CfeDiffuseLighting in='noise' lighting-color='%23ffffff' surfaceScale='2'%3E%3CfeDistantLight azimuth='45' elevation='60'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
opacity: 0.04;
pointer-events: none;
z-index: 0;
}
.theme-switch { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 1000; }
.theme-switch button {
background: white;
border: 0.06rem solid #ccc;
color: #333;
padding: 0.44rem 0.88rem;
border-radius: 0.19rem;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
gap: 0.50rem;
}
.theme-switch button:hover {
background: #2c3e50;
color: white;
border-color: #2c3e50;
transform: translateY(-0.06rem);
}
.resume-container {
max-width: 55rem;
margin: 2.50rem auto;
background: white;
box-shadow: 0 0.12rem 0.75rem rgba(0,0,0,0.12);
position: relative;
z-index: 1;
}
header.resume-header {
background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
padding: 2.38rem 2.62rem;
color: white;
border-bottom: 0.31rem solid #e94560;
position: relative;
overflow: hidden;
}
header.resume-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 0.12rem;
background: linear-gradient(90deg, transparent, #e94560, transparent);
}
header.resume-header .header-inner { display: flex; align-items: center; gap: 1.88rem; }
header.resume-header .avatar img {
width: 7.50rem;
height: 7.50rem;
border-radius: 0.12rem;
border: 0.19rem solid white;
object-fit: cover;
box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.4);
}
header.resume-header .basic-info { display: flex; flex-direction: column; gap: 0.75rem; }
header.resume-header .basic-info .info-header { margin-bottom: 0.12rem; }
header.resume-header .basic-info .name { font-size: 1.9em; font-weight: 700; margin-bottom: 0.38rem; letter-spacing: 0.06rem; line-height: 1.2; }
header.resume-header .basic-info .title { font-size: 1em; color: #bdc3c7; }
header.resume-header .basic-info .contact-row {
display: flex;
flex-wrap: nowrap;
gap: 0.75rem;
font-size: 0.84em;
}
header.resume-header .basic-info .contact-tag {
display: inline-flex;
align-items: center;
gap: 0.38rem;
padding: 0.31rem 0.75rem;
background: rgba(255,255,255,0.08);
border-radius: 0.19rem;
white-space: nowrap;
transition: all 0.3s ease;
border: 0.06rem solid rgba(255,255,255,0.08);
}
header.resume-header .basic-info .contact-tag:hover {
background: rgba(255,255,255,0.12);
border-color: rgba(255,255,255,0.15);
}
header.resume-header .basic-info .contact-tag i { width: 0.88rem; text-align: center; opacity: 0.7; }
header.resume-header .basic-info .contact-tag a { color: white; text-decoration: none; position: relative; }
header.resume-header .basic-info .contact-tag a::after {
content: '';
position: absolute;
width: 0;
height: 0.06rem;
bottom: -0.06rem;
left: 0;
background: white;
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
header.resume-header .basic-info .contact-tag a:hover::after { width: 100%; }
header.resume-header .basic-info .contact-tag a:hover { color: #3498db; }
header.resume-header .basic-info .meta-row {
display: flex;
flex-wrap: nowrap;
gap: 0.62rem;
font-size: 0.8em;
color: #95a5a6;
}
header.resume-header .basic-info .meta-tag {
display: inline-flex;
align-items: center;
gap: 0.31rem;
padding: 0.25rem 0.62rem;
background: rgba(255,255,255,0.04);
border-radius: 0.12rem;
white-space: nowrap;
}
header.resume-header .basic-info .meta-tag i { width: 0.75rem; text-align: center; opacity: 0.4; }
main.resume-body { display: flex; }
aside.sidebar { width: 32%; background: #f7f7f7; padding: 1.75rem 1.38rem; border-right: 0.06rem solid #e5e5e5; }
aside.sidebar .section { margin-bottom: 1.75rem; }
aside.sidebar .section:last-child { margin-bottom: 0; }
aside.sidebar .section-title {
font-size: 0.95em;
font-weight: 600;
color: #2c3e50;
margin-bottom: 0.88rem;
padding-bottom: 0.38rem;
border-bottom: 0.06rem solid #ddd;
text-transform: uppercase;
letter-spacing: 0.06rem;
}
aside.sidebar .section-title i { color: #3498db; margin-right: 0.38rem; }
aside.sidebar .summary { color: #555; font-size: 0.88em; line-height: 1.65; }
aside.sidebar .skill-items { display: flex; flex-wrap: wrap; gap: 0.38rem; }
aside.sidebar .skill-tag {
padding: 0.31rem 0.62rem;
background: #e6e6e6;
border-radius: 0.12rem;
font-size: 0.82em;
color: #444;
border: 0.06rem solid #d6d6d6;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
aside.sidebar .skill-tag:hover {
background: #3498db;
color: white;
border-color: #3498db;
}
section.main-content { width: 68%; padding: 2rem; }
section.main-content .section { margin-bottom: 2rem; }
section.main-content .section:last-child { margin-bottom: 0; }
section.main-content .section-title {
font-size: 1.1em;
font-weight: 600;
color: #2c3e50;
margin-bottom: 1.12rem;
padding-bottom: 0.50rem;
border-bottom: 0.12rem solid #3498db;
display: flex;
align-items: center;
gap: 0.62rem;
letter-spacing: 0.03rem;
}
section.main-content .section-title i { color: #3498db; }
.section-content .item { margin-bottom: 1.50rem; padding-bottom: 1.25rem; border-bottom: 0.06rem solid #e5e5e5; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.section-content .item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.section-content .item:hover { background: #fafafa; padding-left: 0.62rem; margin-left: -0.62rem; margin-right: -0.62rem; padding-right: 0.62rem; }
.item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.38rem; }
.item-header .company, .item-header .school, .item-header .project-name { font-weight: 600; color: #2c3e50; font-size: 1em; }
.item-header .period { color: #777; font-size: 0.82em; font-style: italic; }
.item-header a { color: #3498db; position: relative; }
.item-header a::after {
content: '';
position: absolute;
width: 0;
height: 0.06rem;
bottom: -0.06rem;
left: 0;
background: #3498db;
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.item-header a:hover::after { width: 100%; }
.position { color: #3498db; font-weight: 500; margin-bottom: 0.50rem; }
.degree { color: #555; margin-bottom: 0.31rem; }
.gpa { color: #777; font-size: 0.82em; }
.description { color: #555; line-height: 1.6; margin-bottom: 0.50rem; font-size: 0.9em; }
.highlights { list-style: none; padding-left: 0; }
.highlights li { color: #444; padding: 0.25rem 0; font-size: 0.9em; display: flex; align-items: flex-start; gap: 0.50rem; }
.highlights li i { color: #3498db; font-size: 0.78em; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.31rem; margin-top: 0.50rem; }
.tech-tag { padding: 0.19rem 0.56rem; background: #2c3e50; color: white; border-radius: 0.12rem; font-size: 0.78em; }
.platforms { display: flex; flex-wrap: wrap; gap: 0.31rem; margin-top: 0.50rem; }
.platform-tag { padding: 0.12rem 0.50rem; background: rgba(52,152,219,0.1); color: #3498db; border-radius: 0.12rem; font-size: 0.76em; border: 0.06rem solid rgba(52,152,219,0.2); }
.advantage-list { list-style: none; padding-left: 0; }
.advantage-list li {
color: #444;
padding: 0.44rem 0;
font-size: 0.9em;
display: flex;
align-items: flex-start;
gap: 0.50rem;
line-height: 1.6;
}
.advantage-list li i { color: #3498db; font-size: 0.85em; margin-top: 0.12rem; }
@media (max-width: 48rem) {
main.resume-body { flex-direction: column; }
aside.sidebar { width: 100%; border-right: none; border-bottom: 0.06rem solid #e0e0e0; }
section.main-content { width: 100%; }
header.resume-header .header-inner { flex-direction: column; text-align: center; }
header.resume-header .basic-info .contact { justify-content: center; }
.resume-container { margin: 0.62rem; }
header.resume-header { padding: 1.56rem 1.25rem; }
section.main-content { padding: 1.38rem; }
.section-content .item:hover { margin: 0; padding: 0; padding-bottom: 1.25rem; }
}
@media print {
body { background: white; }
body::before { display: none; }
.theme-switch { display: none; }
.resume-container {
max-width: 100%;
margin: 0;
box-shadow: none;
}
header.resume-header {
background: #2c3e50;
color: white;
-webkit-print-color-adjust: exact;
}
aside.sidebar {
background: #f7f7f7;
border-right: 0.06rem solid #ddd;
}
.section-content .item:hover {
background: transparent;
margin: 0;
padding: 0;
padding-bottom: 1.25rem;
}
a { color: #3498db; text-decoration: underline; }
@page { margin: 12mm; }
}
</style>
</head>
<body>
{{ template "theme-switch" . }}
<div class="resume-container">
<header class="resume-header">
<div class="header-inner">
{{ template "component-avatar" .BasicInfo }}
{{ template "component-basic-info" .BasicInfo }}
</div>
</header>
<main class="resume-body">
<aside class="sidebar">
{{ template "section-summary" . }}
{{ template "section-skills" . }}
</aside>
<section class="main-content">
{{ template "section-core-advantages" . }}
{{ template "section-experience" . }}
{{ template "section-education" . }}
{{ template "section-projects" . }}
</section>
</main>
</div>
{{ template "theme-script" . }}
<script src="/static/js/security.js"></script>
</body>
</html>
{{ end }}