Files

345 lines
11 KiB
HTML

{{ define "web/sidebar" }}
<!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}}" />
<meta name="keywords" content="{{.BasicInfo.Title}}, {{.BasicInfo.Name}}, 简历, 作品集" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--sidebar-bg: #2c3e50;
--sidebar-text: #ecf0f1;
--sidebar-muted: #95a5a6;
--accent: #3498db;
--accent-light: #5dade2;
--text-primary: #2c3e50;
--text-secondary: #555;
--text-muted: #888;
--bg-main: #f5f7fa;
--bg-card: #ffffff;
--border-color: #e1e8ed;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
background: var(--bg-main);
color: var(--text-primary);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
.resume-container {
max-width: 68.75rem;
margin: 2.50rem auto;
display: grid;
grid-template-columns: 18.75rem 1fr;
box-shadow: 0 0.25rem 2rem rgba(0,0,0,0.08);
border-radius: 0.75rem;
overflow: hidden;
min-height: calc(100vh - 5rem);
}
.resume-header {
background: var(--sidebar-bg);
color: var(--sidebar-text);
padding: 2.50rem 1.75rem;
}
.avatar-section {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 1.75rem;
border-bottom: 0.06rem solid rgba(255,255,255,0.1);
}
.avatar {
width: 7.50rem;
height: 7.50rem;
border-radius: 50%;
background: linear-gradient(135deg, var(--accent), var(--accent-light));
margin: 0 auto 1rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 2.62rem;
color: white;
font-weight: 300;
border: 0.25rem solid rgba(255,255,255,0.15);
}
.sidebar-name {
font-size: 1.38rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.sidebar-title {
font-size: 0.88rem;
color: var(--sidebar-muted);
letter-spacing: 0.06rem;
}
.resume-header .contact-row {
display: flex;
flex-direction: column;
gap: 0.62rem;
margin-top: 1.25rem;
}
.resume-header .contact-tag {
display: flex;
align-items: center;
gap: 0.62rem;
font-size: 0.81rem;
color: var(--sidebar-text);
}
.resume-header .contact-tag i {
width: 1rem;
text-align: center;
color: var(--accent-light);
font-size: 0.75rem;
}
.resume-header .contact-tag a {
color: var(--accent-light);
}
.resume-header .meta-row {
display: flex;
flex-direction: column;
gap: 0.50rem;
margin-top: 1rem;
}
.resume-header .meta-tag {
display: flex;
align-items: center;
gap: 0.50rem;
font-size: 0.75rem;
color: var(--sidebar-muted);
}
.resume-header .summary {
margin-top: 1.25rem;
padding: 1rem;
background: rgba(255,255,255,0.05);
border-radius: 0.38rem;
font-size: 0.81rem;
line-height: 1.7;
color: var(--sidebar-text);
}
.resume-body {
background: var(--bg-card);
}
.resume-body-inner {
display: flex;
flex-direction: column;
}
.resume-body .sidebar {
padding: 2rem 1.75rem;
background: var(--bg-main);
border-bottom: 0.06rem solid var(--border-color);
}
.resume-body .main-content {
padding: 2.50rem 3rem;
}
.section {
margin-bottom: 2rem;
}
.section:last-child { margin-bottom: 0; }
.section-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 1rem;
padding-bottom: 0.50rem;
border-bottom: 0.12rem solid var(--accent);
display: flex;
align-items: center;
gap: 0.50rem;
}
.section-title i {
color: var(--accent);
font-size: 0.88rem;
}
.section-content {
background: var(--bg-card);
border-radius: 0.38rem;
padding: 1rem;
border: 0.06rem solid var(--border-color);
}
.item {
margin-bottom: 1.25rem;
padding: 1rem;
background: var(--bg-card);
border-radius: 0.38rem;
border-left: 0.19rem solid var(--accent);
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.50rem; }
.item-header .company, .item-header .school, .item-header .project-name { font-weight: 600; color: var(--text-primary); font-size: 0.88rem; }
.item-header .period { color: var(--text-muted); font-size: 0.75rem; }
.item-header a { color: var(--accent); font-size: 0.81rem; }
.position { color: var(--accent); font-weight: 500; margin-bottom: 0.50rem; font-size: 0.81rem; }
.degree { color: var(--text-secondary); margin-bottom: 0.31rem; font-size: 0.75rem; }
.gpa { color: var(--text-muted); font-size: 0.69rem; }
.description { color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.62rem; font-size: 0.81rem; }
.highlights { list-style: none; padding-left: 0; }
.highlights li { color: var(--text-secondary); padding: 0.31rem 0; font-size: 0.81rem; display: flex; align-items: flex-start; gap: 0.50rem; }
.highlights li i { color: #27ae60; font-size: 0.75rem; margin-top: 0.19rem; }
.skill-section {
display: flex;
flex-wrap: wrap;
gap: 0.50rem;
}
.skill-category {
width: 100%;
margin-bottom: 1rem;
}
.skill-category:last-child { margin-bottom: 0; }
.skill-category-title {
font-size: 0.75rem;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.03rem;
margin-bottom: 0.62rem;
padding-bottom: 0.38rem;
border-bottom: 0.06rem solid var(--border-color);
}
.skill-items {
display: flex;
flex-wrap: wrap;
gap: 0.38rem;
}
.skill-tag {
padding: 0.25rem 0.62rem;
background: rgba(52, 152, 219, 0.1);
border-radius: 0.25rem;
font-size: 0.75rem;
color: var(--accent);
border: 0.06rem solid rgba(52, 152, 219, 0.2);
}
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.62rem; }
.tech-tag { padding: 0.19rem 0.50rem; background: var(--bg-main); color: var(--text-secondary); border-radius: 0.25rem; font-size: 0.69rem; border: 0.06rem solid var(--border-color); }
.platforms { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.50rem; }
.platform-tag { padding: 0.19rem 0.50rem; background: rgba(52, 152, 219, 0.1); color: var(--accent); border-radius: 0.19rem; font-size: 0.69rem; border: 0.06rem solid rgba(52, 152, 219, 0.2); }
.advantage-list { list-style: none; padding-left: 0; }
.advantage-list li {
color: var(--text-secondary);
padding: 0.50rem 0;
font-size: 0.81rem;
display: flex;
align-items: flex-start;
gap: 0.62rem;
line-height: 1.6;
}
.advantage-list li i { color: var(--accent); font-size: 0.81rem; margin-top: 0.12rem; }
.sidebar-summary {
color: var(--text-secondary);
font-size: 0.81rem;
line-height: 1.7;
padding: 0.75rem;
background: var(--bg-card);
border-radius: 0.38rem;
border-left: 0.19rem solid var(--accent);
}
.achievements {
margin-top: 0.62rem;
padding-top: 0.62rem;
border-top: 0.06rem dashed var(--border-color);
}
.achievements h4 {
font-size: 0.81rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.38rem;
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.81rem;
color: var(--text-secondary);
margin-bottom: 0.25rem;
}
@media (max-width: 48rem) {
.resume-container {
grid-template-columns: 1fr;
margin: 1.25rem;
min-height: auto;
}
.resume-header { padding: 2rem 1.50rem; }
.resume-body .sidebar { padding: 1.50rem; }
.resume-body .main-content { padding: 1.50rem; }
}
</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 }}