Files

438 lines
13 KiB
HTML

{{ define "web/elegant" }}
<!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>
<meta name="description" content="{{.BasicInfo.Summary}}" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
<style>
:root {
--primary: #1a1a2e;
--secondary: #16213e;
--accent: #c9a962;
--accent-light: #d4bc7e;
--text-dark: #1a1a2e;
--text-body: #3d3d5c;
--text-muted: #7a7a9d;
--bg-cream: #faf8f5;
--bg-white: #ffffff;
--border: #e8e4dc;
--shadow: 0 0.12rem 1.25rem rgba(26, 26, 46, 0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
background: var(--bg-cream);
color: var(--text-body);
line-height: 1.7;
-webkit-font-smoothing: antialiased;
}
.resume-container {
max-width: 56.25rem;
margin: 3.75rem auto;
background: var(--bg-white);
box-shadow: var(--shadow);
border-radius: 0.25rem;
overflow: hidden;
position: relative;
}
.resume-header {
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
color: white;
padding: 3.75rem 3.75rem 3.12rem;
position: relative;
overflow: hidden;
}
.resume-header::before {
content: '';
position: absolute;
top: -50%;
right: -10%;
width: 25rem;
height: 25rem;
background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
border-radius: 50%;
}
.header-content {
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: 2rem;
}
.avatar {
width: 6.25rem;
height: 6.25rem;
border-radius: 50%;
background: var(--accent);
display: flex;
align-items: center;
justify-content: center;
font-family: 'Playfair Display', serif;
font-size: 2.62rem;
font-weight: 600;
color: var(--primary);
flex-shrink: 0;
border: 0.19rem solid rgba(201, 169, 98, 0.3);
}
.name-title { flex: 1; }
.name {
font-family: 'Playfair Display', serif;
font-size: 2.25rem;
font-weight: 600;
letter-spacing: 0.06rem;
margin-bottom: 0.50rem;
}
.title {
font-size: 1rem;
color: var(--accent-light);
font-weight: 400;
letter-spacing: 0.12rem;
text-transform: uppercase;
margin-bottom: 1.25rem;
}
.resume-header .contact-row {
display: flex;
flex-wrap: wrap;
gap: 1.25rem;
font-size: 0.81rem;
color: rgba(255,255,255,0.8);
}
.resume-header .contact-tag {
display: flex;
align-items: center;
gap: 0.50rem;
}
.resume-header .contact-tag i {
color: var(--accent);
font-size: 0.75rem;
}
.resume-header .contact-tag a {
color: var(--accent-light);
}
.resume-header .meta-row {
display: flex;
flex-wrap: wrap;
gap: 0.94rem;
margin-top: 0.94rem;
font-size: 0.75rem;
color: rgba(255,255,255,0.6);
}
.resume-header .meta-tag {
display: flex;
align-items: center;
gap: 0.38rem;
}
.resume-header .meta-tag i {
color: var(--accent);
font-size: 0.69rem;
}
.resume-body {
padding: 3.12rem 3.75rem;
}
.resume-body-inner {
display: flex;
gap: 2.50rem;
}
.resume-body .sidebar {
width: 18.75rem;
flex-shrink: 0;
}
.resume-body .main-content {
flex: 1;
}
.section {
margin-bottom: 2.50rem;
}
.section:last-child { margin-bottom: 0; }
.section-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.50rem;
}
.section-icon {
width: 2.50rem;
height: 2.50rem;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
font-size: 1rem;
}
.section-title {
font-family: 'Playfair Display', serif;
font-size: 1.25rem;
font-weight: 600;
color: var(--text-dark);
letter-spacing: 0.03rem;
}
.divider {
flex: 1;
height: 0.06rem;
background: linear-gradient(to right, var(--border), transparent);
}
.section-content {
background: var(--bg-cream);
border-radius: 0.38rem;
padding: 1.25rem;
border-left: 0.19rem solid var(--accent);
}
.item {
margin-bottom: 1.50rem;
padding: 1.25rem;
background: var(--bg-white);
border-radius: 0.38rem;
box-shadow: 0 0.06rem 0.50rem rgba(0,0,0,0.04);
transition: all 0.3s ease;
}
.item:last-child { margin-bottom: 0; }
.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-family: 'Playfair Display', serif;
font-weight: 600;
color: var(--text-dark);
font-size: 1rem;
}
.item-header .period {
color: var(--text-muted);
font-size: 0.81rem;
font-family: 'Playfair Display', serif;
font-style: italic;
}
.item-header a {
color: var(--accent);
font-size: 0.81rem;
display: flex;
align-items: center;
gap: 0.25rem;
}
.position {
color: var(--accent);
font-weight: 500;
margin-bottom: 0.62rem;
font-size: 0.88rem;
}
.degree {
color: var(--text-body);
margin-bottom: 0.38rem;
font-size: 0.81rem;
}
.gpa {
color: var(--text-muted);
font-size: 0.75rem;
}
.description {
color: var(--text-body);
line-height: 1.8;
margin-bottom: 0.75rem;
font-size: 0.88rem;
}
.highlights { list-style: none; padding-left: 0; }
.highlights li {
color: var(--text-body);
padding: 0.38rem 0;
font-size: 0.88rem;
display: flex;
align-items: flex-start;
gap: 0.62rem;
}
.highlights li i {
color: var(--accent);
font-size: 0.75rem;
margin-top: 0.25rem;
}
.skill-section {
display: flex;
flex-direction: column;
gap: 1rem;
}
.skill-category {
background: var(--bg-cream);
padding: 1rem;
border-radius: 0.38rem;
border-left: 0.19rem solid var(--accent);
}
.skill-category-title {
font-family: 'Playfair Display', serif;
font-size: 0.88rem;
font-weight: 600;
color: var(--text-dark);
margin-bottom: 0.75rem;
padding-bottom: 0.50rem;
border-bottom: 0.06rem solid var(--border);
}
.skill-items {
display: flex;
flex-wrap: wrap;
gap: 0.50rem;
}
.skill-tag {
font-size: 0.81rem;
padding: 0.31rem 0.88rem;
background: var(--bg-white);
color: var(--text-body);
border-radius: 1.25rem;
border: 0.06rem solid var(--border);
transition: all 0.2s ease;
}
.skill-tag:hover {
background: var(--accent);
color: white;
border-color: var(--accent);
}
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.62rem; }
.tech-tag {
font-size: 0.69rem;
padding: 0.19rem 0.62rem;
background: #f0ede8;
color: var(--text-muted);
border-radius: 0.19rem;
letter-spacing: 0.03rem;
}
.platforms { display: flex; flex-wrap: wrap; gap: 0.50rem; margin-top: 0.62rem; }
.platform-tag {
font-size: 0.75rem;
padding: 0.25rem 0.75rem;
background: rgba(201, 169, 98, 0.1);
color: var(--accent);
border-radius: 0.25rem;
border: 0.06rem solid rgba(201, 169, 98, 0.2);
}
.advantage-list { list-style: none; padding-left: 0; }
.advantage-list li {
color: var(--text-body);
padding: 0.50rem 0;
font-size: 0.88rem;
display: flex;
align-items: flex-start;
gap: 0.62rem;
line-height: 1.6;
}
.advantage-list li i { color: var(--accent); font-size: 0.88rem; margin-top: 0.12rem; }
.sidebar-summary {
font-family: 'Playfair Display', serif;
font-size: 0.88rem;
line-height: 1.9;
color: var(--text-body);
padding-left: 0.75rem;
border-left: 0.19rem solid var(--accent);
font-style: italic;
}
.achievements {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 0.06rem dashed var(--border);
}
.achievements h4 {
font-family: 'Playfair Display', serif;
font-size: 0.88rem;
font-weight: 600;
color: var(--text-dark);
margin-bottom: 0.50rem;
display: flex;
align-items: center;
gap: 0.38rem;
}
.achievements h4 i {
color: var(--accent);
}
.achievements ul {
padding-left: 1.25rem;
}
.achievements li {
font-size: 0.88rem;
color: var(--text-body);
margin-bottom: 0.31rem;
}
@media (max-width: 48rem) {
.resume-container { margin: 1.25rem; }
.resume-header { padding: 2.50rem 1.88rem; }
.header-content { flex-direction: column; text-align: center; }
.resume-body { padding: 1.88rem; }
.resume-body-inner { flex-direction: column; gap: 1.88rem; }
.resume-body .sidebar { width: 100%; }
.resume-header .contact-row { justify-content: center; }
.resume-header .meta-row { justify-content: center; }
}
</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 }}