491 lines
18 KiB
HTML
491 lines
18 KiB
HTML
{{ define "web/modern" }}
|
|
<!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}}, 简历, 作品集, {{range .Skills}}{{.Name}}, {{end}}" />
|
|
<meta name="author" content="{{.BasicInfo.Name}}" />
|
|
<meta property="og:title" content="{{.BasicInfo.Name}} - {{.BasicInfo.Title}}" />
|
|
<meta property="og:description" content="{{.BasicInfo.Summary}}" />
|
|
<meta property="og:type" content="profile" />
|
|
<meta property="og:url" content="https://zhangsan.dev" />
|
|
<link rel="canonical" href="https://zhangsan.dev" />
|
|
<link rel="alternate" href="https://zhangsan.dev" hreflang="zh-CN" />
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<style>
|
|
:root {
|
|
--primary-color: #3498db;
|
|
--primary-dark: #2980b9;
|
|
--secondary-color: #2c3e50;
|
|
--accent-green: #27ae60;
|
|
--accent-orange: #e67e22;
|
|
--accent-purple: #9b59b6;
|
|
--text-primary: #2c3e50;
|
|
--text-secondary: #555;
|
|
--text-muted: #888;
|
|
--bg-light: #f0f2f5;
|
|
--bg-card: #ffffff;
|
|
--border-color: #dde3e8;
|
|
--shadow-sm: 0 0.06rem 0.19rem rgba(0,0,0,0.08);
|
|
--shadow-md: 0 0.25rem 1.50rem rgba(0,0,0,0.06);
|
|
--shadow-lg: 0 0.50rem 2rem rgba(0,0,0,0.08);
|
|
--radius-sm: 0.19rem;
|
|
--radius-md: 0.38rem;
|
|
--radius-lg: 0.75rem;
|
|
--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
a { text-decoration: none; color: unset; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background: var(--bg-light);
|
|
min-height: 100vh;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
}
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%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;
|
|
}
|
|
|
|
html { scroll-behavior: smooth; }
|
|
|
|
.theme-switch { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 1000; }
|
|
.theme-switch button {
|
|
background: white;
|
|
border: 0.06rem solid #d0d0d0;
|
|
color: #444;
|
|
padding: 0.44rem 0.88rem;
|
|
border-radius: 0.38rem;
|
|
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.19rem rgba(0,0,0,0.08);
|
|
}
|
|
.theme-switch button:hover {
|
|
background: #2c3e50;
|
|
color: white;
|
|
border-color: #2c3e50;
|
|
transform: translateY(-0.06rem);
|
|
box-shadow: 0 0.12rem 0.50rem rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.resume-container {
|
|
max-width: 53.75rem;
|
|
margin: 2.81rem auto;
|
|
background: white;
|
|
box-shadow: 0 0.25rem 1.50rem rgba(0,0,0,0.06);
|
|
border-radius: 0.25rem;
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
header.resume-header {
|
|
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
|
|
padding: 2.81rem 2.50rem;
|
|
color: white;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
header.resume-header::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -50%;
|
|
right: -20%;
|
|
width: 18.75rem;
|
|
height: 18.75rem;
|
|
background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
|
|
border-radius: 50%;
|
|
}
|
|
header.resume-header::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 0.19rem;
|
|
background: linear-gradient(90deg, #3498db, #9b59b6, #3498db);
|
|
background-size: 200% 100%;
|
|
animation: shimmer 3s ease-in-out infinite;
|
|
}
|
|
@keyframes shimmer {
|
|
0% { background-position: -200% 0; }
|
|
100% { background-position: 200% 0; }
|
|
}
|
|
|
|
.header-grid {
|
|
display: grid;
|
|
grid-template-columns: 100% 1fr;
|
|
gap: 1.56rem;
|
|
align-items: center;
|
|
}
|
|
|
|
header.resume-header .avatar img {
|
|
width: 7.50rem;
|
|
height: 7.50rem;
|
|
border-radius: 0.25rem;
|
|
border: 0.19rem solid rgba(255,255,255,0.2);
|
|
object-fit: cover;
|
|
box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.3);
|
|
}
|
|
|
|
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: 2em; font-weight: 700; margin-bottom: 0.38rem; letter-spacing: -0.03rem; line-height: 1.2; }
|
|
header.resume-header .basic-info .title { font-size: 1em; opacity: 0.85; }
|
|
|
|
header.resume-header .basic-info .contact-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 0.75rem;
|
|
font-size: 0.86em;
|
|
opacity: 0.92;
|
|
}
|
|
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.75; }
|
|
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 .meta-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 0.62rem;
|
|
font-size: 0.82em;
|
|
opacity: 0.78;
|
|
}
|
|
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.05);
|
|
border-radius: 0.12rem;
|
|
white-space: nowrap;
|
|
}
|
|
header.resume-header .basic-info .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.05);
|
|
border-radius: 0.25rem;
|
|
font-size: 0.88em;
|
|
line-height: 1.8;
|
|
border-left: 0.19rem solid #3498db;
|
|
}
|
|
|
|
main.resume-body { padding: 2.38rem 2.50rem; }
|
|
|
|
section {
|
|
margin-bottom: 2.25rem;
|
|
opacity: 0;
|
|
transform: translateY(1.25rem);
|
|
animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
}
|
|
|
|
section:nth-child(1) { animation-delay: 0.1s; }
|
|
section:nth-child(2) { animation-delay: 0.2s; }
|
|
section:nth-child(3) { animation-delay: 0.3s; }
|
|
section:nth-child(4) { animation-delay: 0.4s; }
|
|
section:nth-child(5) { animation-delay: 0.5s; }
|
|
section:nth-child(6) { animation-delay: 0.6s; }
|
|
|
|
section:last-child { margin-bottom: 0; }
|
|
|
|
@keyframes slideUp {
|
|
from { opacity: 0; transform: translateY(1.25rem); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.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-title i { color: #3498db; font-size: 0.9em; }
|
|
|
|
.section-content .item {
|
|
margin-bottom: 1.50rem;
|
|
padding: 1.25rem;
|
|
background: #fafbfc;
|
|
border-radius: 0.25rem;
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border-left: 0.19rem solid transparent;
|
|
}
|
|
.section-content .item:hover {
|
|
background: #f4f6f8;
|
|
border-left-color: #3498db;
|
|
box-shadow: 0 0.12rem 0.50rem rgba(0,0,0,0.04);
|
|
transform: translateX(0.25rem);
|
|
}
|
|
|
|
.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: #2c3e50; font-size: 1em; }
|
|
.item-header .period { color: #888; font-size: 0.85em; }
|
|
.item-header a { color: #3498db; font-size: 1em; 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.62rem; }
|
|
.degree { color: #555; margin-bottom: 0.31rem; }
|
|
.gpa { color: #888; font-size: 0.9em; }
|
|
|
|
.description { color: #555; line-height: 1.6; margin-bottom: 0.62rem; font-size: 0.95em; }
|
|
|
|
.highlights { list-style: none; padding-left: 0; }
|
|
.highlights li { color: #444; padding: 0.31rem 0; font-size: 0.95em; display: flex; align-items: flex-start; gap: 0.50rem; }
|
|
.highlights li i { color: #27ae60; font-size: 0.85em; margin-top: 0.25rem; }
|
|
|
|
.skill-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(17.50rem, 1fr));
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.skill-category {
|
|
background: #fafbfc;
|
|
padding: 1.12rem;
|
|
border-radius: var(--radius-md);
|
|
border: 0.06rem solid var(--border-color);
|
|
}
|
|
|
|
.skill-category-title {
|
|
font-size: 0.85em;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03rem;
|
|
margin-bottom: 0.88rem;
|
|
padding-bottom: 0.50rem;
|
|
border-bottom: 0.06rem solid var(--border-color);
|
|
}
|
|
|
|
.skill-items {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.50rem;
|
|
}
|
|
|
|
.skill-tag {
|
|
padding: 0.38rem 0.88rem;
|
|
background: #e8ecf0;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.88em;
|
|
color: #4a5568;
|
|
transition: var(--transition-normal);
|
|
border: 0.06rem solid var(--border-color);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.skill-tag::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 0.12rem;
|
|
background: var(--primary-color);
|
|
transition: var(--transition-normal);
|
|
}
|
|
|
|
.skill-tag:hover {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
border-color: var(--primary-color);
|
|
transform: translateY(-0.06rem);
|
|
box-shadow: 0 0.25rem 0.75rem rgba(52,152,219,0.3);
|
|
}
|
|
|
|
.skill-tag:hover::before {
|
|
left: 0;
|
|
}
|
|
|
|
.skill-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.skill-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.skill-progress-item {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.skill-progress-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.skill-progress-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.38rem;
|
|
font-size: 0.88em;
|
|
}
|
|
|
|
.skill-progress-name {
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.skill-progress-level {
|
|
color: var(--primary-color);
|
|
font-weight: 600;
|
|
font-size: 0.82em;
|
|
}
|
|
|
|
.skill-progress-bar {
|
|
height: 0.38rem;
|
|
background: #e8ecf0;
|
|
border-radius: 0.19rem;
|
|
overflow: hidden;
|
|
border: 0.06rem solid var(--border-color);
|
|
}
|
|
|
|
.skill-progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--primary-color), var(--accent-green));
|
|
border-radius: 0.12rem;
|
|
transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.62rem; }
|
|
.tech-tag { padding: 0.25rem 0.62rem; background: #2c3e50; color: white; border-radius: 0.19rem; font-size: 0.82em; }
|
|
|
|
.platforms { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.50rem; }
|
|
.platform-tag { padding: 0.19rem 0.62rem; background: rgba(52,152,219,0.1); color: #3498db; border-radius: 0.19rem; font-size: 0.8em; 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.50rem 0;
|
|
font-size: 0.95em;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.62rem;
|
|
line-height: 1.6;
|
|
}
|
|
.advantage-list li i { color: #3498db; font-size: 0.9em; margin-top: 0.12rem; }
|
|
|
|
@media (max-width: 48rem) {
|
|
.resume-container { margin: 0.94rem; }
|
|
header.resume-header { padding: 1.88rem 1.25rem; }
|
|
main.resume-body { padding: 1.56rem 1.25rem; }
|
|
.item-header { flex-direction: column; gap: 0.31rem; }
|
|
header.resume-header .basic-info .contact { gap: 0.62rem; }
|
|
.header-grid { grid-template-columns: 1fr; text-align: center; }
|
|
header.resume-header .avatar img { margin: 0 auto; }
|
|
.section-content .item:hover { transform: translateX(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: #2c3e50;
|
|
color: white;
|
|
-webkit-print-color-adjust: exact;
|
|
}
|
|
.section-content .item {
|
|
background: #fafafa;
|
|
border-left: 0.19rem solid #3498db;
|
|
}
|
|
.section-content .item:hover {
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
a { color: #3498db; text-decoration: underline; }
|
|
@page { margin: 15mm; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{{ template "theme-switch" . }}
|
|
|
|
<div class="resume-container">
|
|
<header class="resume-header">
|
|
<div class="header-grid">
|
|
{{ template "component-avatar" .BasicInfo }}
|
|
{{ template "component-basic-info" .BasicInfo }}
|
|
</div>
|
|
</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 }} |