321 lines
13 KiB
HTML
321 lines
13 KiB
HTML
{{ define "web/professional" }}
|
|
<!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: #f2f2f2;
|
|
--bg-secondary: #ffffff;
|
|
--bg-card: #ffffff;
|
|
--bg-accent: #1a252f;
|
|
--bg-accent-light: #243447;
|
|
--border-color: #d8d8d8;
|
|
--text-primary: #1a1a1a;
|
|
--text-secondary: #4a4a4a;
|
|
--text-muted: #808080;
|
|
--accent-color: #2c3e50;
|
|
--accent-gold: #c9a227;
|
|
--accent-blue: #3498db;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
a { text-decoration: none; color: unset; }
|
|
body {
|
|
font-family: 'Georgia', 'Times New Roman', 'SimSun', 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 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='4'/%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(%23noise)'/%3E%3C/svg%3E");
|
|
opacity: 0.03;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
::selection { background: rgba(44, 62, 80, 0.2); }
|
|
|
|
.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.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: var(--accent-color);
|
|
color: white;
|
|
border-color: var(--accent-color);
|
|
transform: translateY(-0.06rem);
|
|
}
|
|
|
|
.resume-container {
|
|
max-width: 48.75rem;
|
|
margin: 3.12rem auto;
|
|
background: var(--bg-secondary);
|
|
box-shadow: 0 0.12rem 0.75rem rgba(0,0,0,0.08);
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
header.resume-header {
|
|
background: var(--bg-accent);
|
|
padding: 2.50rem;
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
header.resume-header .avatar img {
|
|
width: 7.81rem;
|
|
height: 7.81rem;
|
|
border-radius: 50%;
|
|
border: 0.25rem solid rgba(255,255,255,0.25);
|
|
object-fit: cover;
|
|
}
|
|
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: 2.2em; font-weight: 700; margin-bottom: 0.50rem; letter-spacing: 0.12rem; line-height: 1.2; }
|
|
header.resume-header .basic-info .title { font-size: 1em; opacity: 0.88; font-weight: 300; letter-spacing: 0.06rem; }
|
|
|
|
.contact-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 0.62rem;
|
|
font-size: 0.84em;
|
|
opacity: 0.85;
|
|
}
|
|
.contact-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.31rem;
|
|
padding: 0.31rem 0.88rem;
|
|
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);
|
|
}
|
|
.contact-tag:hover {
|
|
background: rgba(255,255,255,0.12);
|
|
border-color: rgba(255,255,255,0.15);
|
|
}
|
|
.contact-tag i { width: 0.81rem; text-align: center; opacity: 0.7; }
|
|
.contact-tag a { color: white; text-decoration: none; position: relative; }
|
|
.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);
|
|
}
|
|
.contact-tag a:hover::after { width: 100%; }
|
|
.contact-tag a:hover { opacity: 0.8; }
|
|
|
|
.meta-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 0.50rem;
|
|
font-size: 0.8em;
|
|
opacity: 0.75;
|
|
}
|
|
.meta-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.25rem;
|
|
padding: 0.25rem 0.62rem;
|
|
background: rgba(255,255,255,0.04);
|
|
border-radius: 0.12rem;
|
|
white-space: nowrap;
|
|
}
|
|
.meta-tag i { width: 0.75rem; text-align: center; opacity: 0.5; }
|
|
|
|
main.resume-body { padding: 2.62rem; }
|
|
|
|
.resume-body-inner { display: flex; gap: 2.62rem; }
|
|
|
|
aside.sidebar { width: 35%; }
|
|
section.main-content { width: 65%; }
|
|
|
|
section { margin-bottom: 2.19rem; }
|
|
section:last-child { margin-bottom: 0; }
|
|
|
|
.section-title {
|
|
font-size: 0.95em;
|
|
font-weight: 600;
|
|
color: var(--bg-accent);
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.50rem;
|
|
border-bottom: 0.12rem solid var(--bg-accent);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.50rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06rem;
|
|
}
|
|
.section-title i { font-size: 0.85em; }
|
|
|
|
aside.sidebar .section-title { color: var(--accent-color); border-color: var(--accent-color); }
|
|
|
|
.section-content { display: flex; flex-direction: column; gap: 1rem; }
|
|
|
|
aside.sidebar .section-content { gap: 0.88rem; }
|
|
|
|
article.item { padding-bottom: 1rem; border-bottom: 0.06rem solid var(--border-color); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
|
|
article.item:last-child { border-bottom: none; padding-bottom: 0; }
|
|
article.item:hover { background: #fafafa; padding-left: 0.50rem; margin-left: -0.50rem; margin-right: -0.50rem; padding-right: 0.50rem; }
|
|
|
|
.item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.31rem; }
|
|
.item-header .company, .item-header .school, .item-header .project-name { font-weight: 600; color: var(--text-primary); font-size: 0.98em; }
|
|
.item-header .period { color: var(--text-muted); font-size: 0.82em; }
|
|
.item-header a { color: var(--accent-blue); font-size: 0.95em; position: relative; }
|
|
.item-header a::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0.06rem;
|
|
bottom: -0.06rem;
|
|
left: 0;
|
|
background: var(--accent-blue);
|
|
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.item-header a:hover::after { width: 100%; }
|
|
|
|
.position { color: var(--accent-color); font-weight: 500; margin-bottom: 0.50rem; }
|
|
.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.6; margin-bottom: 0.62rem; font-size: 0.88em; }
|
|
|
|
.highlights { list-style: none; padding-left: 0; }
|
|
.highlights li { color: var(--text-secondary); padding: 0.25rem 0; font-size: 0.88em; display: flex; align-items: flex-start; gap: 0.50rem; line-height: 1.6; }
|
|
.highlights li i { color: var(--accent-gold); font-size: 0.78em; margin-top: 0.25rem; }
|
|
|
|
.skill-items { display: flex; flex-wrap: wrap; gap: 0.44rem; }
|
|
.skill-tag {
|
|
padding: 0.31rem 0.62rem;
|
|
background: rgba(44,62,80,0.06);
|
|
border: 0.06rem solid rgba(44,62,80,0.15);
|
|
border-radius: 0.12rem;
|
|
font-size: 0.82em;
|
|
color: var(--accent-color);
|
|
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);
|
|
}
|
|
|
|
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.31rem; margin-top: 0.62rem; }
|
|
.tech-tag { padding: 0.19rem 0.56rem; background: var(--bg-accent); 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: var(--accent-blue); border-radius: 0.12rem; font-size: 0.76em; border: 0.06rem solid rgba(52,152,219,0.2); }
|
|
|
|
.sidebar-summary { color: var(--text-secondary); font-size: 0.88em; line-height: 1.65; }
|
|
|
|
.advantage-list { list-style: none; padding-left: 0; }
|
|
.advantage-list li {
|
|
color: var(--text-secondary);
|
|
padding: 0.38rem 0;
|
|
font-size: 0.88em;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.50rem;
|
|
line-height: 1.65;
|
|
}
|
|
.advantage-list li i { color: var(--accent-color); font-size: 0.82em; margin-top: 0.12rem; }
|
|
|
|
@media (max-width: 48rem) {
|
|
.resume-body-inner { flex-direction: column; gap: 1.88rem; }
|
|
aside.sidebar { width: 100%; }
|
|
section.main-content { width: 100%; }
|
|
.resume-container { margin: 1.25rem; }
|
|
header.resume-header { padding: 1.88rem 1.38rem; }
|
|
main.resume-body { padding: 1.88rem 1.38rem; }
|
|
.contact-line { gap: 0.75rem; }
|
|
.item-header { flex-direction: column; gap: 0.31rem; }
|
|
article.item:hover { margin: 0; padding: 0; padding-bottom: 1rem; }
|
|
}
|
|
|
|
@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: #1a252f;
|
|
color: white;
|
|
-webkit-print-color-adjust: exact;
|
|
}
|
|
aside.sidebar {
|
|
background: #f7f7f7;
|
|
padding-right: 1.25rem;
|
|
border-right: 0.06rem solid #ddd;
|
|
}
|
|
article.item:hover {
|
|
background: transparent;
|
|
margin: 0;
|
|
padding: 0;
|
|
padding-bottom: 1rem;
|
|
}
|
|
a { color: var(--accent-blue); text-decoration: underline; }
|
|
@page { margin: 12mm; }
|
|
}
|
|
</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">
|
|
<div class="resume-body-inner">
|
|
<aside class="sidebar">
|
|
{{ template "section-summary" . }}
|
|
{{ template "section-skills" . }}
|
|
{{ template "section-education" . }}
|
|
</aside>
|
|
<section class="main-content">
|
|
{{ template "section-core-advantages" . }}
|
|
{{ template "section-experience" . }}
|
|
{{ template "section-projects" . }}
|
|
</section>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
{{ template "theme-script" . }}
|
|
<script src="/static/js/security.js"></script>
|
|
</body>
|
|
</html>
|
|
{{ end }} |