295 lines
11 KiB
HTML
295 lines
11 KiB
HTML
{{ define "web/minimalist" }}
|
|
<!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: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', sans-serif;
|
|
background: #fafafa;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.theme-switch { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 1000; }
|
|
.theme-switch button {
|
|
background: transparent;
|
|
border: 0.06rem solid #ddd;
|
|
color: #666;
|
|
padding: 0.38rem 0.75rem;
|
|
border-radius: 0.12rem;
|
|
cursor: pointer;
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.50rem;
|
|
font-size: 0.85em;
|
|
}
|
|
.theme-switch button:hover {
|
|
background: #111;
|
|
color: white;
|
|
border-color: #111;
|
|
transform: translateY(-0.06rem);
|
|
}
|
|
|
|
.resume-container {
|
|
max-width: 43.75rem;
|
|
margin: 4.38rem auto;
|
|
background: white;
|
|
padding: 3.75rem 3.12rem;
|
|
border-top: 0.19rem solid #111;
|
|
box-shadow: 0 0.06rem 0.25rem rgba(0,0,0,0.04);
|
|
}
|
|
|
|
header.resume-header { text-align: left; margin-bottom: 3.44rem; padding-bottom: 2.19rem; border-bottom: 0.06rem solid #eee; }
|
|
header.resume-header .avatar img {
|
|
width: 5.62rem;
|
|
height: 5.62rem;
|
|
border-radius: 0.12rem;
|
|
object-fit: cover;
|
|
border: 0.06rem solid #e0e0e0;
|
|
}
|
|
header.resume-header .basic-info { display: flex; flex-direction: column; gap: 0.88rem; }
|
|
header.resume-header .basic-info .info-header { margin-bottom: 0.12rem; }
|
|
header.resume-header .basic-info .name { font-size: 2.3em; font-weight: 300; margin-bottom: 0.38rem; color: #111; letter-spacing: -0.06rem; line-height: 1.2; }
|
|
header.resume-header .basic-info .title { font-size: 0.9em; color: #999; letter-spacing: 0.19rem; text-transform: uppercase; font-weight: 400; }
|
|
|
|
header.resume-header .basic-info .contact-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 0.88rem;
|
|
font-size: 0.84em;
|
|
}
|
|
header.resume-header .basic-info .contact-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.38rem;
|
|
color: #555;
|
|
padding: 0.25rem 0;
|
|
white-space: nowrap;
|
|
border-bottom: 0.06rem solid transparent;
|
|
transition: all 0.3s ease;
|
|
}
|
|
header.resume-header .basic-info .contact-tag:hover {
|
|
color: #111;
|
|
border-bottom-color: #ccc;
|
|
}
|
|
header.resume-header .basic-info .contact-tag i { width: 0.88rem; text-align: center; opacity: 0.5; }
|
|
header.resume-header .basic-info .contact-tag a { color: #555; 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: #111;
|
|
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: #111; }
|
|
|
|
header.resume-header .basic-info .meta-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 0.75rem;
|
|
font-size: 0.8em;
|
|
color: #777;
|
|
}
|
|
header.resume-header .basic-info .meta-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
white-space: nowrap;
|
|
}
|
|
header.resume-header .basic-info .meta-tag i { width: 0.75rem; text-align: center; opacity: 0.4; }
|
|
|
|
main.resume-body { padding-top: 0.50rem; }
|
|
|
|
section { margin-bottom: 3.12rem; }
|
|
section:last-child { margin-bottom: 0; }
|
|
|
|
.section-title {
|
|
font-size: 0.82em;
|
|
font-weight: 600;
|
|
color: #111;
|
|
letter-spacing: 0.12rem;
|
|
text-transform: uppercase;
|
|
margin-bottom: 1.56rem;
|
|
position: relative;
|
|
}
|
|
.section-title::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 5rem;
|
|
right: 0;
|
|
height: 0.06rem;
|
|
background: #eee;
|
|
}
|
|
.section-title i { margin-right: 0.62rem; color: #111; font-size: 0.9em; }
|
|
|
|
.section-content .item { margin-bottom: 2rem; }
|
|
.section-content .item:last-child { margin-bottom: 0; }
|
|
|
|
.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: 500; color: #111; font-size: 1em; }
|
|
.item-header .period { color: #bbb; font-size: 0.82em; }
|
|
.item-header a { color: #666; font-size: 0.9em; position: relative; }
|
|
.item-header a::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0.06rem;
|
|
bottom: -0.06rem;
|
|
left: 0;
|
|
background: #111;
|
|
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.item-header a:hover::after { width: 100%; }
|
|
.item-header a:hover { color: #111; }
|
|
|
|
.position { color: #666; font-size: 0.88em; margin-bottom: 0.75rem; font-weight: 400; }
|
|
.degree { color: #666; font-size: 0.88em; margin-bottom: 0.31rem; }
|
|
.gpa { color: #bbb; font-size: 0.82em; }
|
|
|
|
.description { color: #555; line-height: 1.75; margin-bottom: 0.75rem; font-size: 0.92em; }
|
|
|
|
.highlights { list-style: none; padding-left: 0; }
|
|
.highlights li {
|
|
color: #555;
|
|
padding: 0.38rem 0;
|
|
font-size: 0.9em;
|
|
position: relative;
|
|
padding-left: 1.12rem;
|
|
line-height: 1.65;
|
|
transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.highlights li:hover { padding-left: 1.38rem; }
|
|
.highlights li::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0.69rem;
|
|
width: 0.19rem;
|
|
height: 0.19rem;
|
|
background: #111;
|
|
border-radius: 50%;
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.highlights li:hover::before { transform: scale(1.5); }
|
|
|
|
.skill-items { display: flex; flex-wrap: wrap; gap: 1.12rem; }
|
|
.skill-tag {
|
|
padding: 0;
|
|
font-size: 0.92em;
|
|
color: #555;
|
|
border-bottom: 0.06rem solid #ddd;
|
|
padding-bottom: 0.12rem;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.skill-tag:hover { border-color: #111; color: #111; }
|
|
|
|
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.88rem; }
|
|
.tech-tag {
|
|
padding: 0;
|
|
font-size: 0.82em;
|
|
color: #888;
|
|
border-bottom: 0.06rem solid #eee;
|
|
padding-bottom: 0.12rem;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.tech-tag:hover { border-color: #111; color: #111; }
|
|
|
|
.platforms { display: flex; flex-wrap: wrap; gap: 0.62rem; margin-top: 0.50rem; }
|
|
.platform-tag {
|
|
padding: 0;
|
|
font-size: 0.78em;
|
|
color: #999;
|
|
border-bottom: 0.06rem solid #f0f0f0;
|
|
padding-bottom: 0.06rem;
|
|
}
|
|
|
|
.advantage-list { list-style: none; padding-left: 0; }
|
|
.advantage-list li {
|
|
color: #555;
|
|
padding: 0.50rem 0;
|
|
font-size: 0.92em;
|
|
position: relative;
|
|
padding-left: 1.25rem;
|
|
line-height: 1.7;
|
|
transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.advantage-list li:hover { padding-left: 1.50rem; }
|
|
.advantage-list li::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0.81rem;
|
|
width: 0.25rem;
|
|
height: 0.25rem;
|
|
background: #111;
|
|
border-radius: 50%;
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.advantage-list li:hover::before { transform: scale(1.5); }
|
|
|
|
@media (max-width: 48rem) {
|
|
.resume-container { margin: 1.25rem; padding: 2.50rem 1.88rem; }
|
|
header.resume-header .basic-info .contact { gap: 0.75rem; }
|
|
.item-header { flex-direction: column; gap: 0.31rem; }
|
|
.section-title::after { display: none; }
|
|
header.resume-header { text-align: center; }
|
|
.highlights li:hover { padding-left: 1.12rem; }
|
|
.advantage-list li:hover { padding-left: 1.25rem; }
|
|
}
|
|
|
|
@media print {
|
|
body { background: white; }
|
|
.theme-switch { display: none; }
|
|
.resume-container {
|
|
max-width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
border-top: 0.19rem solid #111;
|
|
box-shadow: none;
|
|
}
|
|
header.resume-header {
|
|
padding-bottom: 1.56rem;
|
|
margin-bottom: 2.50rem;
|
|
}
|
|
a { color: #333; text-decoration: underline; }
|
|
.highlights li:hover { padding-left: 1.12rem; }
|
|
.advantage-list li:hover { padding-left: 1.25rem; }
|
|
@page { margin: 20mm; }
|
|
}
|
|
</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 }} |