307 lines
9.7 KiB
HTML
307 lines
9.7 KiB
HTML
{{ define "web/contact" }}
|
|
<!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}}</title>
|
|
<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;
|
|
--text-primary: #2c3e50;
|
|
--text-secondary: #555;
|
|
--bg-light: #f0f2f5;
|
|
--bg-card: #ffffff;
|
|
--border-color: #dde3e8;
|
|
--shadow-md: 0 0.25rem 1.50rem rgba(0,0,0,0.06);
|
|
--radius-lg: 0.75rem;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--bg-light); min-height: 100vh; }
|
|
|
|
.nav-bar {
|
|
background: var(--bg-card);
|
|
border-bottom: 0.06rem solid var(--border-color);
|
|
padding: 0.88rem 1.25rem;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
box-shadow: 0 0.06rem 0.19rem rgba(0,0,0,0.04);
|
|
}
|
|
|
|
.nav-bar .nav-content {
|
|
max-width: 53.75rem;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.nav-bar .back-link {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
font-size: 0.95em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.38rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.nav-bar .back-link:hover { gap: 0.62rem; }
|
|
|
|
.nav-bar .nav-title {
|
|
font-size: 1.15em;
|
|
font-weight: 600;
|
|
color: var(--secondary-color);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.50rem;
|
|
}
|
|
|
|
.nav-bar .nav-title i { color: var(--primary-color); }
|
|
|
|
.contact-container {
|
|
max-width: 53.75rem;
|
|
margin: 2.81rem auto;
|
|
padding: 0 1.25rem;
|
|
}
|
|
|
|
.contact-card {
|
|
background: var(--bg-card);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-md);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.contact-header {
|
|
background: linear-gradient(135deg, var(--secondary-color), #34495e);
|
|
padding: 2.81rem 2.50rem;
|
|
text-align: center;
|
|
color: white;
|
|
}
|
|
|
|
.contact-header h1 {
|
|
font-size: 2em;
|
|
margin-bottom: 0.50rem;
|
|
letter-spacing: -0.03rem;
|
|
}
|
|
|
|
.contact-header p {
|
|
opacity: 0.85;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.contact-body {
|
|
padding: 2.50rem;
|
|
}
|
|
|
|
.contact-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(17.50rem, 1fr));
|
|
gap: 1.50rem;
|
|
}
|
|
|
|
.contact-item {
|
|
background: #fafbfc;
|
|
padding: 1.50rem;
|
|
border-radius: 0.50rem;
|
|
border: 0.06rem solid var(--border-color);
|
|
text-align: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.contact-item:hover {
|
|
background: #f4f6f8;
|
|
border-color: var(--primary-color);
|
|
transform: translateY(-0.12rem);
|
|
box-shadow: 0 0.25rem 0.75rem rgba(52,152,219,0.1);
|
|
}
|
|
|
|
.contact-item .icon {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
background: var(--primary-color);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 1rem;
|
|
color: white;
|
|
font-size: 1.5em;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.contact-item:hover .icon {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.contact-item h3 {
|
|
font-size: 0.95em;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 0.50rem;
|
|
}
|
|
|
|
.contact-item p {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9em;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.contact-item a {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.contact-item a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.social-links {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
margin-top: 1.25rem;
|
|
}
|
|
|
|
.social-links a {
|
|
width: 2.75rem;
|
|
height: 2.75rem;
|
|
background: #fafbfc;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
border: 0.06rem solid var(--border-color);
|
|
}
|
|
|
|
.social-links a:hover {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
border-color: var(--primary-color);
|
|
transform: translateY(-0.12rem);
|
|
}
|
|
|
|
.map-section {
|
|
margin-top: 1.88rem;
|
|
background: #fafbfc;
|
|
border-radius: 0.50rem;
|
|
padding: 1.25rem;
|
|
border: 0.06rem solid var(--border-color);
|
|
}
|
|
|
|
.map-section h3 {
|
|
font-size: 1em;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 0.94rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.50rem;
|
|
}
|
|
|
|
.map-section h3 i { color: var(--primary-color); }
|
|
|
|
.map-placeholder {
|
|
height: 12.50rem;
|
|
background: linear-gradient(135deg, #e8ecf0 0%, #dde3e8 100%);
|
|
border-radius: 0.38rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.map-placeholder i {
|
|
font-size: 2em;
|
|
margin-right: 0.62rem;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
@media (max-width: 48rem) {
|
|
.contact-container { margin: 1.56rem auto; }
|
|
.contact-header { padding: 1.88rem 1.25rem; }
|
|
.contact-body { padding: 1.56rem 1.25rem; }
|
|
.contact-header h1 { font-size: 1.6em; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<nav class="nav-bar">
|
|
<div class="nav-content">
|
|
<a href="/" class="back-link">
|
|
<i class="fas fa-arrow-left"></i> 返回简历
|
|
</a>
|
|
<span class="nav-title">
|
|
<i class="fas fa-envelope"></i> 联系我
|
|
</span>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="contact-container">
|
|
<div class="contact-card">
|
|
<div class="contact-header">
|
|
<h1>与我取得联系</h1>
|
|
<p>期待与您交流,欢迎发送邮件或通过以下方式联系我</p>
|
|
</div>
|
|
|
|
<div class="contact-body">
|
|
<div class="contact-grid">
|
|
<div class="contact-item">
|
|
<div class="icon"><i class="fas fa-envelope"></i></div>
|
|
<h3>电子邮箱</h3>
|
|
<p><a href="mailto:{{.BasicInfo.Email}}">{{.BasicInfo.Email}}</a></p>
|
|
</div>
|
|
|
|
<div class="contact-item">
|
|
<div class="icon"><i class="fas fa-phone"></i></div>
|
|
<h3>联系电话</h3>
|
|
<p>{{.BasicInfo.Phone}}</p>
|
|
</div>
|
|
|
|
<div class="contact-item">
|
|
<div class="icon"><i class="fas fa-globe"></i></div>
|
|
<h3>个人网站</h3>
|
|
<p><a href="{{.BasicInfo.Website}}" target="_blank">{{.BasicInfo.Website}}</a></p>
|
|
</div>
|
|
|
|
<div class="contact-item">
|
|
<div class="icon"><i class="fas fa-map-marker-alt"></i></div>
|
|
<h3>所在地</h3>
|
|
<p>{{.BasicInfo.Location}}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="social-links">
|
|
<a href="#" title="GitHub" target="_blank"><i class="fab fa-github"></i></a>
|
|
<a href="#" title="LinkedIn" target="_blank"><i class="fab fa-linkedin"></i></a>
|
|
<a href="#" title="Twitter" target="_blank"><i class="fab fa-twitter"></i></a>
|
|
<a href="#" title="Stack Overflow" target="_blank"><i class="fab fa-stack-overflow"></i></a>
|
|
</div>
|
|
|
|
{{ if .BasicInfo.Location }}
|
|
<div class="map-section">
|
|
<h3><i class="fas fa-map-marker-alt"></i> 工作地点</h3>
|
|
<div class="map-placeholder">
|
|
<i class="fas fa-map"></i>
|
|
<span>{{.BasicInfo.Location}}</span>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
{{ end }}
|