Files

359 lines
15 KiB
HTML

{{ define "web/tech" }}
<!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: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--bg-card: #1c2128;
--border-color: #30363d;
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--text-muted: #6e7681;
--accent-color: #58a6ff;
--accent-green: #3fb950;
--accent-orange: #d29922;
--accent-red: #f85149;
--accent-purple: #c792ea;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
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 256 256' 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.02;
pointer-events: none;
z-index: 0;
}
::selection { background: rgba(88, 166, 255, 0.3); }
.theme-switch { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 1000; }
.theme-switch button {
background: var(--bg-card);
border: 0.06rem solid var(--border-color);
color: var(--text-primary);
padding: 0.44rem 0.88rem;
border-radius: 0.25rem;
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: var(--bg-tertiary);
border-color: var(--accent-color);
color: var(--accent-color);
transform: translateY(-0.06rem);
}
.resume-container {
max-width: 55rem;
margin: 2.50rem auto;
background: var(--bg-secondary);
border-radius: 0.38rem;
border: 0.06rem solid var(--border-color);
overflow: hidden;
position: relative;
z-index: 1;
}
header.resume-header {
background: linear-gradient(180deg, #1a1f2e 0%, #161b22 100%);
padding: 2.50rem;
border-bottom: 0.06rem solid var(--border-color);
}
.header-inner { display: flex; align-items: flex-start; gap: 1.56rem; }
header.resume-header .avatar img {
width: 7.50rem;
height: 7.50rem;
border-radius: 0.25rem;
border: 0.12rem solid var(--border-color);
object-fit: cover;
background: var(--bg-tertiary);
}
.code-block {
background: var(--bg-primary);
padding: 1.25rem;
border-radius: 0.25rem;
border: 0.06rem solid var(--border-color);
font-family: inherit;
font-size: 0.82em;
line-height: 1.7;
flex: 1;
}
.code-line { display: flex; gap: 0.88rem; margin-bottom: 0.25rem; }
.code-line:last-child { margin-bottom: 0; }
.code-number { color: var(--text-muted); user-select: none; min-width: 1.75rem; text-align: right; }
.code-keyword { color: var(--accent-purple); }
.code-string { color: var(--accent-green); }
.code-function { color: var(--accent-orange); }
.code-variable { color: var(--accent-color); }
.code-comment { color: var(--text-muted); font-style: italic; }
.typewriter {
overflow: hidden;
border-right: 0.12rem solid var(--accent-green);
animation: typing 2.5s steps(40, end), blink-caret 0.75s step-end infinite;
white-space: nowrap;
}
@keyframes typing {
from { width: 0; }
to { width: 100%; }
}
@keyframes blink-caret {
from, to { border-color: transparent; }
50% { border-color: var(--accent-green); }
}
main.resume-body { padding: 2.50rem; }
section { margin-bottom: 2.38rem; }
section:last-child { margin-bottom: 0; }
.section-title {
font-size: 0.95em;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 1.12rem;
padding-bottom: 0.62rem;
border-bottom: 0.06rem solid var(--border-color);
display: flex;
align-items: center;
gap: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.06rem;
}
.section-title i { color: var(--accent-color); font-size: 0.9em; }
.section-content { background: var(--bg-primary); border-radius: 0.25rem; border: 0.06rem solid var(--border-color); padding: 1.25rem; }
article.item { padding: 0.88rem 0; border-bottom: 0.06rem dashed var(--border-color); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
article.item:last-child { border-bottom: none; }
article.item:hover { background: rgba(88, 166, 255, 0.04); margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; border-radius: 0.19rem; }
.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.95em; }
.item-header .period { color: var(--text-muted); font-size: 0.82em; }
.item-header a { color: var(--accent-color); font-size: 0.9em; transition: color 0.3s; position: relative; }
.item-header a::after {
content: '';
position: absolute;
width: 0;
height: 0.06rem;
bottom: -0.12rem;
left: 0;
background: var(--accent-color);
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.item-header a:hover::after { width: 100%; }
.item-header a:hover { color: #79c0ff; }
.position { color: var(--accent-green); font-weight: 500; margin-bottom: 0.50rem; font-size: 0.9em; }
.degree { color: var(--text-secondary); margin-bottom: 0.31rem; font-size: 0.88em; }
.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.31rem 0; font-size: 0.88em; display: flex; align-items: flex-start; gap: 0.62rem; line-height: 1.6; }
.highlights li i { color: var(--accent-green); font-size: 0.78em; margin-top: 0.25rem; }
.skill-items { display: flex; flex-wrap: wrap; gap: 0.50rem; }
.skill-tag {
padding: 0.31rem 0.75rem;
background: var(--bg-tertiary);
border: 0.06rem solid var(--border-color);
border-radius: 0.19rem;
font-size: 0.82em;
color: var(--text-primary);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-tag:hover {
background: var(--accent-color);
border-color: var(--accent-color);
color: white;
}
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.62rem; }
.tech-tag {
padding: 0.19rem 0.56rem;
background: rgba(88, 166, 255, 0.12);
color: var(--accent-color);
border-radius: 0.19rem;
font-size: 0.78em;
border: 0.06rem solid rgba(88, 166, 255, 0.25);
}
.platforms { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.50rem; }
.platform-tag {
padding: 0.12rem 0.50rem;
background: rgba(63, 185, 80, 0.1);
color: var(--accent-green);
border-radius: 0.19rem;
font-size: 0.76em;
border: 0.06rem solid rgba(63, 185, 80, 0.2);
}
.advantage-list { list-style: none; padding-left: 0; }
.advantage-list li {
color: var(--text-secondary);
padding: 0.44rem 0;
font-size: 0.88em;
display: flex;
align-items: flex-start;
gap: 0.62rem;
line-height: 1.65;
}
.advantage-list li i { color: var(--accent-color); font-size: 0.82em; margin-top: 0.12rem; }
.skill-progress { margin-bottom: 0.88rem; }
.skill-progress:last-child { margin-bottom: 0; }
.skill-progress-label { display: flex; justify-content: space-between; font-size: 0.82em; margin-bottom: 0.25rem; }
.skill-progress-label span:first-child { color: var(--text-primary); }
.skill-progress-label span:last-child { color: var(--accent-color); }
.skill-progress-bar {
height: 0.38rem;
background: var(--bg-tertiary);
border-radius: 0.19rem;
overflow: hidden;
border: 0.06rem solid var(--border-color);
}
.skill-progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent-color), var(--accent-green));
border-radius: 0.12rem;
transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(0.50rem); }
to { opacity: 1; transform: translateY(0); }
}
section { animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
@media (max-width: 48rem) {
.resume-container { margin: 0.94rem; }
header.resume-header { padding: 1.56rem; }
main.resume-body { padding: 1.56rem; }
.header-inner { flex-direction: column; text-align: center; }
.item-header { flex-direction: column; gap: 0.31rem; }
.code-block { font-size: 0.72em; }
}
@media print {
body { background: white; color: #000; }
body::before { display: none; }
.theme-switch { display: none; }
.resume-container {
max-width: 100%;
margin: 0;
border: none;
box-shadow: none;
background: white;
}
header.resume-header {
background: #1a1a1a;
color: white;
-webkit-print-color-adjust: exact;
}
.section-content { background: #f5f5f5; border: 0.06rem solid #ddd; }
article.item:hover {
background: transparent;
margin: 0;
padding: 0.88rem 0;
border-radius: 0;
}
a { color: #333; text-decoration: underline; }
.typewriter { border-right: none; }
@page { margin: 15mm; }
}
</style>
</head>
<body>
{{ template "theme-switch" . }}
<div class="resume-container">
<header class="resume-header">
<div class="header-inner">
{{ template "component-avatar" .BasicInfo }}
<div class="code-block">
<div class="code-line">
<span class="code-number">1</span>
<span><span class="code-keyword">package</span> <span class="code-function">resume</span></span>
</div>
<div class="code-line">
<span class="code-number">2</span>
</div>
<div class="code-line">
<span class="code-number">3</span>
<span><span class="code-keyword">type</span> <span class="code-function">{{.BasicInfo.Name}}</span> <span class="code-keyword">struct</span> {</span>
</div>
<div class="code-line">
<span class="code-number">4</span>
<span>&nbsp;&nbsp;Name <span class="code-keyword">string</span> = <span class="code-string">"{{.BasicInfo.Name}}"</span></span>
</div>
<div class="code-line">
<span class="code-number">5</span>
<span>&nbsp;&nbsp;Title <span class="code-keyword">string</span> = <span class="typewriter code-string">"{{.BasicInfo.Title}}"</span></span>
</div>
<div class="code-line">
<span class="code-number">6</span>
<span>&nbsp;&nbsp;Email <span class="code-keyword">string</span> = <span class="code-string">"{{.BasicInfo.Email}}"</span></span>
</div>
<div class="code-line">
<span class="code-number">7</span>
<span>&nbsp;&nbsp;Location <span class="code-keyword">string</span> = <span class="code-string">"{{.BasicInfo.Location}}"</span></span>
</div>
<div class="code-line">
<span class="code-number">8</span>
<span>}</span>
</div>
<div class="code-line">
<span class="code-number">9</span>
</div>
<div class="code-line">
<span class="code-number">10</span>
<span class="code-comment">// {{.BasicInfo.Summary}}</span>
</div>
</div>
</div>
</header>
<main class="resume-body">
{{ template "section-core-advantages" . }}
{{ template "section-experience" . }}
{{ template "section-education" . }}
{{ template "section-skills-progress" . }}
{{ template "section-projects" . }}
</main>
</div>
{{ template "theme-script" . }}
<script src="/static/js/security.js"></script>
</body>
</html>
{{ end }}