Spaces:
Running
Running
undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +600 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: awesome-about-me
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,600 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-CN">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>我的个人主页</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
/* 自定义动画 */
|
| 11 |
+
@keyframes float {
|
| 12 |
+
0% { transform: translateY(0px); }
|
| 13 |
+
50% { transform: translateY(-20px); }
|
| 14 |
+
100% { transform: translateY(0px); }
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.floating {
|
| 18 |
+
animation: float 6s ease-in-out infinite;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
/* 自定义滚动条 */
|
| 22 |
+
::-webkit-scrollbar {
|
| 23 |
+
width: 8px;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
::-webkit-scrollbar-track {
|
| 27 |
+
background: #f1f1f1;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
::-webkit-scrollbar-thumb {
|
| 31 |
+
background: #888;
|
| 32 |
+
border-radius: 4px;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
::-webkit-scrollbar-thumb:hover {
|
| 36 |
+
background: #555;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/* 打字效果 */
|
| 40 |
+
.typewriter {
|
| 41 |
+
overflow: hidden;
|
| 42 |
+
border-right: .15em solid #3b82f6;
|
| 43 |
+
white-space: nowrap;
|
| 44 |
+
margin: 0 auto;
|
| 45 |
+
letter-spacing: .15em;
|
| 46 |
+
animation:
|
| 47 |
+
typing 3.5s steps(40, end),
|
| 48 |
+
blink-caret .75s step-end infinite;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
@keyframes typing {
|
| 52 |
+
from { width: 0 }
|
| 53 |
+
to { width: 100% }
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
@keyframes blink-caret {
|
| 57 |
+
from, to { border-color: transparent }
|
| 58 |
+
50% { border-color: #3b82f6; }
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/* 卡片悬停效果 */
|
| 62 |
+
.card-hover {
|
| 63 |
+
transition: all 0.3s ease;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.card-hover:hover {
|
| 67 |
+
transform: translateY(-10px);
|
| 68 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
/* 波浪背景 */
|
| 72 |
+
.wave {
|
| 73 |
+
position: absolute;
|
| 74 |
+
bottom: 0;
|
| 75 |
+
left: 0;
|
| 76 |
+
width: 100%;
|
| 77 |
+
overflow: hidden;
|
| 78 |
+
line-height: 0;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
.wave svg {
|
| 82 |
+
position: relative;
|
| 83 |
+
display: block;
|
| 84 |
+
width: calc(100% + 1.3px);
|
| 85 |
+
height: 150px;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.wave .shape-fill {
|
| 89 |
+
fill: #FFFFFF;
|
| 90 |
+
}
|
| 91 |
+
</style>
|
| 92 |
+
</head>
|
| 93 |
+
<body class="bg-gray-50 font-sans antialiased">
|
| 94 |
+
<!-- 导航栏 -->
|
| 95 |
+
<nav class="fixed w-full bg-white shadow-md z-50">
|
| 96 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 97 |
+
<div class="flex justify-between h-16">
|
| 98 |
+
<div class="flex items-center">
|
| 99 |
+
<span class="text-xl font-bold text-blue-600">个人主页</span>
|
| 100 |
+
</div>
|
| 101 |
+
<div class="hidden md:flex items-center space-x-8">
|
| 102 |
+
<a href="#home" class="text-gray-700 hover:text-blue-600 transition">首页</a>
|
| 103 |
+
<a href="#about" class="text-gray-700 hover:text-blue-600 transition">关于我</a>
|
| 104 |
+
<a href="#skills" class="text-gray-700 hover:text-blue-600 transition">技能</a>
|
| 105 |
+
<a href="#projects" class="text-gray-700 hover:text-blue-600 transition">项目</a>
|
| 106 |
+
<a href="#contact" class="text-gray-700 hover:text-blue-600 transition">联系</a>
|
| 107 |
+
</div>
|
| 108 |
+
<div class="md:hidden flex items-center">
|
| 109 |
+
<button id="menu-btn" class="text-gray-700 hover:text-blue-600 focus:outline-none">
|
| 110 |
+
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 111 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
| 112 |
+
</svg>
|
| 113 |
+
</button>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
<!-- 移动端菜单 -->
|
| 118 |
+
<div id="mobile-menu" class="hidden md:hidden bg-white shadow-lg">
|
| 119 |
+
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
|
| 120 |
+
<a href="#home" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-blue-600 hover:bg-gray-50">首页</a>
|
| 121 |
+
<a href="#about" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-blue-600 hover:bg-gray-50">关于我</a>
|
| 122 |
+
<a href="#skills" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-blue-600 hover:bg-gray-50">技能</a>
|
| 123 |
+
<a href="#projects" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-blue-600 hover:bg-gray-50">项目</a>
|
| 124 |
+
<a href="#contact" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-blue-600 hover:bg-gray-50">联系</a>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
</nav>
|
| 128 |
+
|
| 129 |
+
<!-- 首页部分 -->
|
| 130 |
+
<section id="home" class="relative min-h-screen flex items-center justify-center bg-gradient-to-br from-blue-500 to-indigo-600 pt-16">
|
| 131 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 132 |
+
<div class="flex flex-col md:flex-row items-center">
|
| 133 |
+
<div class="md:w-1/2 mb-10 md:mb-0">
|
| 134 |
+
<h1 class="text-4xl md:text-6xl font-bold text-white mb-4">你好,我是<span class="text-yellow-300">张三</span></h1>
|
| 135 |
+
<h2 class="text-2xl md:text-3xl font-semibold text-white mb-6 typewriter">前端开发工程师 & UI设计师</h2>
|
| 136 |
+
<p class="text-lg text-white mb-8">我热爱创造美观、响应迅速且用户友好的网站和应用程序。</p>
|
| 137 |
+
<div class="flex space-x-4">
|
| 138 |
+
<a href="#contact" class="bg-white text-blue-600 px-6 py-3 rounded-lg font-medium hover:bg-gray-100 transition duration-300">联系我</a>
|
| 139 |
+
<a href="#projects" class="border-2 border-white text-white px-6 py-3 rounded-lg font-medium hover:bg-white hover:text-blue-600 transition duration-300">查看作品</a>
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
<div class="md:w-1/2 flex justify-center">
|
| 143 |
+
<div class="relative">
|
| 144 |
+
<img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80"
|
| 145 |
+
alt="个人照片"
|
| 146 |
+
class="rounded-full h-64 w-64 md:h-80 md:w-80 object-cover border-4 border-white shadow-xl floating">
|
| 147 |
+
<div class="absolute -bottom-5 -right-5 bg-white p-3 rounded-full shadow-lg">
|
| 148 |
+
<span class="text-blue-600 text-xl font-bold">5+</span>
|
| 149 |
+
<span class="text-gray-600">年经验</span>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
|
| 156 |
+
<!-- 波浪背景 -->
|
| 157 |
+
<div class="wave">
|
| 158 |
+
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none">
|
| 159 |
+
<path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" class="shape-fill"></path>
|
| 160 |
+
</svg>
|
| 161 |
+
</div>
|
| 162 |
+
</section>
|
| 163 |
+
|
| 164 |
+
<!-- 关于我部分 -->
|
| 165 |
+
<section id="about" class="py-20 bg-white">
|
| 166 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 167 |
+
<div class="text-center mb-16">
|
| 168 |
+
<h2 class="text-3xl font-bold text-gray-900 mb-4">关于我</h2>
|
| 169 |
+
<div class="w-20 h-1 bg-blue-600 mx-auto"></div>
|
| 170 |
+
</div>
|
| 171 |
+
|
| 172 |
+
<div class="flex flex-col md:flex-row items-center">
|
| 173 |
+
<div class="md:w-1/3 mb-10 md:mb-0 flex justify-center">
|
| 174 |
+
<img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80"
|
| 175 |
+
alt="关于我"
|
| 176 |
+
class="rounded-lg shadow-xl w-64 h-64 object-cover">
|
| 177 |
+
</div>
|
| 178 |
+
<div class="md:w-2/3 md:pl-12">
|
| 179 |
+
<h3 class="text-2xl font-semibold text-gray-800 mb-4">我是张三,一名充满激情的前端开发者</h3>
|
| 180 |
+
<p class="text-gray-600 mb-6">
|
| 181 |
+
我拥有5年以上的前端开发经验,专注于创建响应式、用户友好的网站和应用程序。我热衷于学习新技术,并不断挑战自己以提升技能。
|
| 182 |
+
</p>
|
| 183 |
+
<p class="text-gray-600 mb-6">
|
| 184 |
+
在我的职业生涯中,我曾与多家知名公司合作,帮助他们建立强大的在线存在。我相信好的设计不仅仅是美观,更重要的是提供出色的用户体验。
|
| 185 |
+
</p>
|
| 186 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
|
| 187 |
+
<div class="flex items-center">
|
| 188 |
+
<span class="text-blue-600 mr-2"><i class="fas fa-check-circle"></i></span>
|
| 189 |
+
<span class="text-gray-700">姓名: 张三</span>
|
| 190 |
+
</div>
|
| 191 |
+
<div class="flex items-center">
|
| 192 |
+
<span class="text-blue-600 mr-2"><i class="fas fa-check-circle"></i></span>
|
| 193 |
+
<span class="text-gray-700">年龄: 28</span>
|
| 194 |
+
</div>
|
| 195 |
+
<div class="flex items-center">
|
| 196 |
+
<span class="text-blue-600 mr-2"><i class="fas fa-check-circle"></i></span>
|
| 197 |
+
<span class="text-gray-700">学历: 计算机科学学士</span>
|
| 198 |
+
</div>
|
| 199 |
+
<div class="flex items-center">
|
| 200 |
+
<span class="text-blue-600 mr-2"><i class="fas fa-check-circle"></i></span>
|
| 201 |
+
<span class="text-gray-700">邮箱: zhangsan@example.com</span>
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
<a href="#" class="inline-block bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition duration-300">
|
| 205 |
+
<i class="fas fa-download mr-2"></i>下载简历
|
| 206 |
+
</a>
|
| 207 |
+
</div>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
</section>
|
| 211 |
+
|
| 212 |
+
<!-- 技能部分 -->
|
| 213 |
+
<section id="skills" class="py-20 bg-gray-50">
|
| 214 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 215 |
+
<div class="text-center mb-16">
|
| 216 |
+
<h2 class="text-3xl font-bold text-gray-900 mb-4">我的技能</h2>
|
| 217 |
+
<div class="w-20 h-1 bg-blue-600 mx-auto"></div>
|
| 218 |
+
<p class="text-gray-600 mt-4 max-w-2xl mx-auto">以下是我在多年工作中掌握的主要技能和技术</p>
|
| 219 |
+
</div>
|
| 220 |
+
|
| 221 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 222 |
+
<!-- 技能卡片1 -->
|
| 223 |
+
<div class="bg-white p-8 rounded-lg shadow-md card-hover">
|
| 224 |
+
<div class="text-blue-600 text-4xl mb-4">
|
| 225 |
+
<i class="fab fa-html5"></i>
|
| 226 |
+
</div>
|
| 227 |
+
<h3 class="text-xl font-semibold mb-3">前端开发</h3>
|
| 228 |
+
<p class="text-gray-600 mb-4">精通HTML5, CSS3, JavaScript和现代前端框架如React和Vue.js。</p>
|
| 229 |
+
<div class="mb-2 flex justify-between">
|
| 230 |
+
<span class="text-gray-700">HTML/CSS</span>
|
| 231 |
+
<span class="text-gray-700">95%</span>
|
| 232 |
+
</div>
|
| 233 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 234 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 95%"></div>
|
| 235 |
+
</div>
|
| 236 |
+
|
| 237 |
+
<div class="mb-2 flex justify-between mt-4">
|
| 238 |
+
<span class="text-gray-700">JavaScript</span>
|
| 239 |
+
<span class="text-gray-700">90%</span>
|
| 240 |
+
</div>
|
| 241 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 242 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 90%"></div>
|
| 243 |
+
</div>
|
| 244 |
+
|
| 245 |
+
<div class="mb-2 flex justify-between mt-4">
|
| 246 |
+
<span class="text-gray-700">React</span>
|
| 247 |
+
<span class="text-gray-700">85%</span>
|
| 248 |
+
</div>
|
| 249 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 250 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 85%"></div>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
|
| 254 |
+
<!-- 技能卡片2 -->
|
| 255 |
+
<div class="bg-white p-8 rounded-lg shadow-md card-hover">
|
| 256 |
+
<div class="text-blue-600 text-4xl mb-4">
|
| 257 |
+
<i class="fas fa-paint-brush"></i>
|
| 258 |
+
</div>
|
| 259 |
+
<h3 class="text-xl font-semibold mb-3">UI/UX设计</h3>
|
| 260 |
+
<p class="text-gray-600 mb-4">擅长创建美观且用户友好的界面设计,熟悉设计工具和用户体验原则。</p>
|
| 261 |
+
<div class="mb-2 flex justify-between">
|
| 262 |
+
<span class="text-gray-700">Figma</span>
|
| 263 |
+
<span class="text-gray-700">90%</span>
|
| 264 |
+
</div>
|
| 265 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 266 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 90%"></div>
|
| 267 |
+
</div>
|
| 268 |
+
|
| 269 |
+
<div class="mb-2 flex justify-between mt-4">
|
| 270 |
+
<span class="text-gray-700">Adobe XD</span>
|
| 271 |
+
<span class="text-gray-700">85%</span>
|
| 272 |
+
</div>
|
| 273 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 274 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 85%"></div>
|
| 275 |
+
</div>
|
| 276 |
+
|
| 277 |
+
<div class="mb-2 flex justify-between mt-4">
|
| 278 |
+
<span class="text-gray-700">用户体验</span>
|
| 279 |
+
<span class="text-gray-700">88%</span>
|
| 280 |
+
</div>
|
| 281 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 282 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 88%"></div>
|
| 283 |
+
</div>
|
| 284 |
+
</div>
|
| 285 |
+
|
| 286 |
+
<!-- 技能卡片3 -->
|
| 287 |
+
<div class="bg-white p-8 rounded-lg shadow-md card-hover">
|
| 288 |
+
<div class="text-blue-600 text-4xl mb-4">
|
| 289 |
+
<i class="fas fa-server"></i>
|
| 290 |
+
</div>
|
| 291 |
+
<h3 class="text-xl font-semibold mb-3">后端技术</h3>
|
| 292 |
+
<p class="text-gray-600 mb-4">具备全栈开发能力,熟悉Node.js, Express和数据库技术。</p>
|
| 293 |
+
<div class="mb-2 flex justify-between">
|
| 294 |
+
<span class="text-gray-700">Node.js</span>
|
| 295 |
+
<span class="text-gray-700">80%</span>
|
| 296 |
+
</div>
|
| 297 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 298 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 80%"></div>
|
| 299 |
+
</div>
|
| 300 |
+
|
| 301 |
+
<div class="mb-2 flex justify-between mt-4">
|
| 302 |
+
<span class="text-gray-700">MongoDB</span>
|
| 303 |
+
<span class="text-gray-700">75%</span>
|
| 304 |
+
</div>
|
| 305 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 306 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 75%"></div>
|
| 307 |
+
</div>
|
| 308 |
+
|
| 309 |
+
<div class="mb-2 flex justify-between mt-4">
|
| 310 |
+
<span class="text-gray-700">REST API</span>
|
| 311 |
+
<span class="text-gray-700">85%</span>
|
| 312 |
+
</div>
|
| 313 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 314 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 85%"></div>
|
| 315 |
+
</div>
|
| 316 |
+
</div>
|
| 317 |
+
</div>
|
| 318 |
+
</div>
|
| 319 |
+
</section>
|
| 320 |
+
|
| 321 |
+
<!-- 项目部分 -->
|
| 322 |
+
<section id="projects" class="py-20 bg-white">
|
| 323 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 324 |
+
<div class="text-center mb-16">
|
| 325 |
+
<h2 class="text-3xl font-bold text-gray-900 mb-4">我的项目</h2>
|
| 326 |
+
<div class="w-20 h-1 bg-blue-600 mx-auto"></div>
|
| 327 |
+
<p class="text-gray-600 mt-4 max-w-2xl mx-auto">以下是我参与或独立完成的一些代表性项目</p>
|
| 328 |
+
</div>
|
| 329 |
+
|
| 330 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 331 |
+
<!-- 项目1 -->
|
| 332 |
+
<div class="bg-white rounded-lg overflow-hidden shadow-xl card-hover">
|
| 333 |
+
<div class="relative overflow-hidden h-48">
|
| 334 |
+
<img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 335 |
+
alt="项目1"
|
| 336 |
+
class="w-full h-full object-cover transition duration-500 hover:scale-110">
|
| 337 |
+
<div class="absolute inset-0 bg-blue-600 bg-opacity-70 flex items-center justify-center opacity-0 hover:opacity-100 transition duration-300">
|
| 338 |
+
<a href="#" class="text-white text-lg font-medium border-2 border-white px-4 py-2 rounded hover:bg-white hover:text-blue-600 transition">查看详情</a>
|
| 339 |
+
</div>
|
| 340 |
+
</div>
|
| 341 |
+
<div class="p-6">
|
| 342 |
+
<h3 class="text-xl font-semibold mb-2">电商平台前端</h3>
|
| 343 |
+
<p class="text-gray-600 mb-4">一个响应式的电商平台前端,使用React和Redux构建,实现了商品展示、购物车和结账流程。</p>
|
| 344 |
+
<div class="flex flex-wrap gap-2">
|
| 345 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">React</span>
|
| 346 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">Redux</span>
|
| 347 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">TailwindCSS</span>
|
| 348 |
+
</div>
|
| 349 |
+
</div>
|
| 350 |
+
</div>
|
| 351 |
+
|
| 352 |
+
<!-- 项目2 -->
|
| 353 |
+
<div class="bg-white rounded-lg overflow-hidden shadow-xl card-hover">
|
| 354 |
+
<div class="relative overflow-hidden h-48">
|
| 355 |
+
<img src="https://images.unsplash.com/photo-1467232004584-a241de8bcf5d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1469&q=80"
|
| 356 |
+
alt="项目2"
|
| 357 |
+
class="w-full h-full object-cover transition duration-500 hover:scale-110">
|
| 358 |
+
<div class="absolute inset-0 bg-blue-600 bg-opacity-70 flex items-center justify-center opacity-0 hover:opacity-100 transition duration-300">
|
| 359 |
+
<a href="#" class="text-white text-lg font-medium border-2 border-white px-4 py-2 rounded hover:bg-white hover:text-blue-600 transition">查看详情</a>
|
| 360 |
+
</div>
|
| 361 |
+
</div>
|
| 362 |
+
<div class="p-6">
|
| 363 |
+
<h3 class="text-xl font-semibold mb-2">任务管理应用</h3>
|
| 364 |
+
<p class="text-gray-600 mb-4">一个全栈任务管理应用,前端使用Vue.js,后端使用Node.js和MongoDB,实现了用户认证和任务管理。</p>
|
| 365 |
+
<div class="flex flex-wrap gap-2">
|
| 366 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">Vue.js</span>
|
| 367 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">Node.js</span>
|
| 368 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">MongoDB</span>
|
| 369 |
+
</div>
|
| 370 |
+
</div>
|
| 371 |
+
</div>
|
| 372 |
+
|
| 373 |
+
<!-- 项目3 -->
|
| 374 |
+
<div class="bg-white rounded-lg overflow-hidden shadow-xl card-hover">
|
| 375 |
+
<div class="relative overflow-hidden h-48">
|
| 376 |
+
<img src="https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 377 |
+
alt="项目3"
|
| 378 |
+
class="w-full h-full object-cover transition duration-500 hover:scale-110">
|
| 379 |
+
<div class="absolute inset-0 bg-blue-600 bg-opacity-70 flex items-center justify-center opacity-0 hover:opacity-100 transition duration-300">
|
| 380 |
+
<a href="#" class="text-white text-lg font-medium border-2 border-white px-4 py-2 rounded hover:bg-white hover:text-blue-600 transition">查看详情</a>
|
| 381 |
+
</div>
|
| 382 |
+
</div>
|
| 383 |
+
<div class="p-6">
|
| 384 |
+
<h3 class="text-xl font-semibold mb-2">企业官网设计</h3>
|
| 385 |
+
<p class="text-gray-600 mb-4">为一家科技公司设计的响应式官网,注重用户体验和品牌展示,提高了客户转化率。</p>
|
| 386 |
+
<div class="flex flex-wrap gap-2">
|
| 387 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">HTML/CSS</span>
|
| 388 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">JavaScript</span>
|
| 389 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">Figma</span>
|
| 390 |
+
</div>
|
| 391 |
+
</div>
|
| 392 |
+
</div>
|
| 393 |
+
</div>
|
| 394 |
+
|
| 395 |
+
<div class="text-center mt-12">
|
| 396 |
+
<a href="#" class="inline-block bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition duration-300">
|
| 397 |
+
<i class="fas fa-eye mr-2"></i>查看更多项目
|
| 398 |
+
</a>
|
| 399 |
+
</div>
|
| 400 |
+
</div>
|
| 401 |
+
</section>
|
| 402 |
+
|
| 403 |
+
<!-- 联系部分 -->
|
| 404 |
+
<section id="contact" class="py-20 bg-gray-50">
|
| 405 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 406 |
+
<div class="text-center mb-16">
|
| 407 |
+
<h2 class="text-3xl font-bold text-gray-900 mb-4">联系我</h2>
|
| 408 |
+
<div class="w-20 h-1 bg-blue-600 mx-auto"></div>
|
| 409 |
+
<p class="text-gray-600 mt-4 max-w-2xl mx-auto">如果您有任何问题或合作意向,请随时与我联系</p>
|
| 410 |
+
</div>
|
| 411 |
+
|
| 412 |
+
<div class="flex flex-col md:flex-row">
|
| 413 |
+
<div class="md:w-1/2 mb-10 md:mb-0">
|
| 414 |
+
<h3 class="text-2xl font-semibold mb-6">联系方式</h3>
|
| 415 |
+
|
| 416 |
+
<div class="flex items-start mb-6">
|
| 417 |
+
<div class="bg-blue-100 p-3 rounded-full mr-4">
|
| 418 |
+
<i class="fas fa-map-marker-alt text-blue-600"></i>
|
| 419 |
+
</div>
|
| 420 |
+
<div>
|
| 421 |
+
<h4 class="font-medium text-gray-800">地址</h4>
|
| 422 |
+
<p class="text-gray-600">北京市海淀区中关村南大街5号</p>
|
| 423 |
+
</div>
|
| 424 |
+
</div>
|
| 425 |
+
|
| 426 |
+
<div class="flex items-start mb-6">
|
| 427 |
+
<div class="bg-blue-100 p-3 rounded-full mr-4">
|
| 428 |
+
<i class="fas fa-envelope text-blue-600"></i>
|
| 429 |
+
</div>
|
| 430 |
+
<div>
|
| 431 |
+
<h4 class="font-medium text-gray-800">邮箱</h4>
|
| 432 |
+
<p class="text-gray-600">zhangsan@example.com</p>
|
| 433 |
+
</div>
|
| 434 |
+
</div>
|
| 435 |
+
|
| 436 |
+
<div class="flex items-start mb-6">
|
| 437 |
+
<div class="bg-blue-100 p-3 rounded-full mr-4">
|
| 438 |
+
<i class="fas fa-phone-alt text-blue-600"></i>
|
| 439 |
+
</div>
|
| 440 |
+
<div>
|
| 441 |
+
<h4 class="font-medium text-gray-800">电话</h4>
|
| 442 |
+
<p class="text-gray-600">+86 138 1234 5678</p>
|
| 443 |
+
</div>
|
| 444 |
+
</div>
|
| 445 |
+
|
| 446 |
+
<h3 class="text-2xl font-semibold mb-6 mt-10">社交媒体</h3>
|
| 447 |
+
<div class="flex space-x-4">
|
| 448 |
+
<a href="#" class="bg-blue-600 text-white p-3 rounded-full hover:bg-blue-700 transition duration-300">
|
| 449 |
+
<i class="fab fa-github"></i>
|
| 450 |
+
</a>
|
| 451 |
+
<a href="#" class="bg-blue-600 text-white p-3 rounded-full hover:bg-blue-700 transition duration-300">
|
| 452 |
+
<i class="fab fa-linkedin-in"></i>
|
| 453 |
+
</a>
|
| 454 |
+
<a href="#" class="bg-blue-600 text-white p-3 rounded-full hover:bg-blue-700 transition duration-300">
|
| 455 |
+
<i class="fab fa-twitter"></i>
|
| 456 |
+
</a>
|
| 457 |
+
<a href="#" class="bg-blue-600 text-white p-3 rounded-full hover:bg-blue-700 transition duration-300">
|
| 458 |
+
<i class="fab fa-weixin"></i>
|
| 459 |
+
</a>
|
| 460 |
+
</div>
|
| 461 |
+
</div>
|
| 462 |
+
|
| 463 |
+
<div class="md:w-1/2 md:pl-12">
|
| 464 |
+
<h3 class="text-2xl font-semibold mb-6">发送消息</h3>
|
| 465 |
+
<form class="space-y-6">
|
| 466 |
+
<div>
|
| 467 |
+
<label for="name" class="block text-gray-700 mb-2">姓名</label>
|
| 468 |
+
<input type="text" id="name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent" placeholder="请输入您的姓名">
|
| 469 |
+
</div>
|
| 470 |
+
|
| 471 |
+
<div>
|
| 472 |
+
<label for="email" class="block text-gray-700 mb-2">邮箱</label>
|
| 473 |
+
<input type="email" id="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent" placeholder="请输入您的邮箱">
|
| 474 |
+
</div>
|
| 475 |
+
|
| 476 |
+
<div>
|
| 477 |
+
<label for="subject" class="block text-gray-700 mb-2">主题</label>
|
| 478 |
+
<input type="text" id="subject" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent" placeholder="请输入主题">
|
| 479 |
+
</div>
|
| 480 |
+
|
| 481 |
+
<div>
|
| 482 |
+
<label for="message" class="block text-gray-700 mb-2">消息</label>
|
| 483 |
+
<textarea id="message" rows="5" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent" placeholder="请输入您的消息"></textarea>
|
| 484 |
+
</div>
|
| 485 |
+
|
| 486 |
+
<button type="submit" class="w-full bg-blue-600 text-white py-3 rounded-lg hover:bg-blue-700 transition duration-300">
|
| 487 |
+
<i class="fas fa-paper-plane mr-2"></i>发送消息
|
| 488 |
+
</button>
|
| 489 |
+
</form>
|
| 490 |
+
</div>
|
| 491 |
+
</div>
|
| 492 |
+
</div>
|
| 493 |
+
</section>
|
| 494 |
+
|
| 495 |
+
<!-- 页脚 -->
|
| 496 |
+
<footer class="bg-gray-900 text-white py-12">
|
| 497 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 498 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 499 |
+
<div class="mb-6 md:mb-0">
|
| 500 |
+
<h2 class="text-2xl font-bold">个人主页</h2>
|
| 501 |
+
<p class="text-gray-400 mt-2">创造美好的数字体验</p>
|
| 502 |
+
</div>
|
| 503 |
+
|
| 504 |
+
<div class="flex space-x-6">
|
| 505 |
+
<a href="#" class="text-gray-400 hover:text-white transition">
|
| 506 |
+
<i class="fab fa-github text-xl"></i>
|
| 507 |
+
</a>
|
| 508 |
+
<a href="#" class="text-gray-400 hover:text-white transition">
|
| 509 |
+
<i class="fab fa-linkedin-in text-xl"></i>
|
| 510 |
+
</a>
|
| 511 |
+
<a href="#" class="text-gray-400 hover:text-white transition">
|
| 512 |
+
<i class="fab fa-twitter text-xl"></i>
|
| 513 |
+
</a>
|
| 514 |
+
<a href="#" class="text-gray-400 hover:text-white transition">
|
| 515 |
+
<i class="fab fa-weixin text-xl"></i>
|
| 516 |
+
</a>
|
| 517 |
+
</div>
|
| 518 |
+
</div>
|
| 519 |
+
|
| 520 |
+
<div class="border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
|
| 521 |
+
<p class="text-gray-400 mb-4 md:mb-0">© 2023 张三. 保留所有权利.</p>
|
| 522 |
+
|
| 523 |
+
<div class="flex space-x-6">
|
| 524 |
+
<a href="#" class="text-gray-400 hover:text-white transition">隐私政策</a>
|
| 525 |
+
<a href="#" class="text-gray-400 hover:text-white transition">使用条款</a>
|
| 526 |
+
<a href="#" class="text-gray-400 hover:text-white transition">Cookie政策</a>
|
| 527 |
+
</div>
|
| 528 |
+
</div>
|
| 529 |
+
</div>
|
| 530 |
+
</footer>
|
| 531 |
+
|
| 532 |
+
<!-- 返回顶部按钮 -->
|
| 533 |
+
<button id="back-to-top" class="fixed bottom-8 right-8 bg-blue-600 text-white p-3 rounded-full shadow-lg opacity-0 invisible transition-all duration-300 hover:bg-blue-700">
|
| 534 |
+
<i class="fas fa-arrow-up"></i>
|
| 535 |
+
</button>
|
| 536 |
+
|
| 537 |
+
<script>
|
| 538 |
+
// 移动菜单切换
|
| 539 |
+
const menuBtn = document.getElementById('menu-btn');
|
| 540 |
+
const mobileMenu = document.getElementById('mobile-menu');
|
| 541 |
+
|
| 542 |
+
menuBtn.addEventListener('click', () => {
|
| 543 |
+
mobileMenu.classList.toggle('hidden');
|
| 544 |
+
});
|
| 545 |
+
|
| 546 |
+
// 平滑滚动
|
| 547 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 548 |
+
anchor.addEventListener('click', function (e) {
|
| 549 |
+
e.preventDefault();
|
| 550 |
+
|
| 551 |
+
const targetId = this.getAttribute('href');
|
| 552 |
+
const targetElement = document.querySelector(targetId);
|
| 553 |
+
|
| 554 |
+
if (targetElement) {
|
| 555 |
+
window.scrollTo({
|
| 556 |
+
top: targetElement.offsetTop - 70,
|
| 557 |
+
behavior: 'smooth'
|
| 558 |
+
});
|
| 559 |
+
|
| 560 |
+
// 关闭移动菜单
|
| 561 |
+
mobileMenu.classList.add('hidden');
|
| 562 |
+
}
|
| 563 |
+
});
|
| 564 |
+
});
|
| 565 |
+
|
| 566 |
+
// 返回顶部按钮
|
| 567 |
+
const backToTopBtn = document.getElementById('back-to-top');
|
| 568 |
+
|
| 569 |
+
window.addEventListener('scroll', () => {
|
| 570 |
+
if (window.pageYOffset > 300) {
|
| 571 |
+
backToTopBtn.classList.remove('opacity-0', 'invisible');
|
| 572 |
+
backToTopBtn.classList.add('opacity-100', 'visible');
|
| 573 |
+
} else {
|
| 574 |
+
backToTopBtn.classList.remove('opacity-100', 'visible');
|
| 575 |
+
backToTopBtn.classList.add('opacity-0', 'invisible');
|
| 576 |
+
}
|
| 577 |
+
});
|
| 578 |
+
|
| 579 |
+
backToTopBtn.addEventListener('click', () => {
|
| 580 |
+
window.scrollTo({
|
| 581 |
+
top: 0,
|
| 582 |
+
behavior: 'smooth'
|
| 583 |
+
});
|
| 584 |
+
});
|
| 585 |
+
|
| 586 |
+
// 打字效果
|
| 587 |
+
const typewriterElement = document.querySelector('.typewriter');
|
| 588 |
+
|
| 589 |
+
// 重置动画以便可以重复播放
|
| 590 |
+
const resetAnimation = () => {
|
| 591 |
+
typewriterElement.style.animation = 'none';
|
| 592 |
+
typewriterElement.offsetHeight; // 触发重绘
|
| 593 |
+
typewriterElement.style.animation = null;
|
| 594 |
+
};
|
| 595 |
+
|
| 596 |
+
// 每5秒重置一次动画
|
| 597 |
+
setInterval(resetAnimation, 5000);
|
| 598 |
+
</script>
|
| 599 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=bozhong/awesome-about-me" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 600 |
+
</html>
|