一个具有矩阵雨效果和赛博朋克美学的未来感交互式个人网站
[](https://wangzji.github.io) [](https://developer.mozilla.org/zh-CN/docs/Web/HTML) [](https://developer.mozilla.org/zh-CN/docs/Web/CSS) [](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript) [](README.md) [](README.zh.md)const developer = {
name: 'Eric Wang',
skills: ['React', 'Java', 'Go'],
passion: '创造魔法',
experience: '10+ 年',
projects: '25+',
code() {
return '令人惊艳的项目';
}
};
wangzji.github.io/
├── index.html # 主HTML结构
├── styles.css # 赛博朋克样式和动画
├── script.js # 交互效果和矩阵雨
├── README.md # 英文项目文档
├── README-zh.md # 中文项目文档
└── LICENSE # MIT许可证
# 克隆仓库
git clone https://github.com/WangzJi/wangzji.github.io.git
cd wangzji.github.io
# 启动本地服务器
python -m http.server 8000
# 或者
npx serve
# 打开浏览器
open http://localhost:8000
main 分支作为源https://yourusername.github.io在 index.html 中更新你的详细信息:
<!-- 终端输出 -->
<div class="output-line">
<span class="output-prompt">></span> 你的姓名
</div>
<div class="output-line">
<span class="output-prompt">></span> 你的职位
</div>
<!-- 联系信息 -->
<a href="mailto:your.email@example.com">your.email@example.com</a>
在 styles.css 中修改CSS变量:
:root {
--primary-color: #00ff88; /* 矩阵绿 */
--secondary-color: #ff0080; /* 霓虹粉 */
--accent-color: #00d4ff; /* 赛博蓝 */
--bg-primary: #0a0a0a; /* 深黑色 */
}
在 script.js 中自定义矩阵效果:
class MatrixRain {
constructor() {
this.characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()';
this.fontSize = 14;
// 根据需要自定义
}
}
网站会自动为低性能设备优化:
| 设备 | 断点 | 优化措施 |
|---|---|---|
| 手机 | < 768px |
简化布局,减少效果 |
| 平板 | 768px - 1024px |
优化网格,触摸友好 |
| 桌面 | > 1024px |
完整效果,增强动画 |
本项目基于 MIT 许可证 开源。
由 Eric Wang 用 💚 创造
灵感来源于赛博朋克美学和《黑客帝国》
// 使用现代ES6+语法
const initFeature = () => {
// 功能实现
};
// CSS变量命名
:root {
--feature-color: #value;
}
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)💡 提示: 如果你喜欢这个项目,别忘了给它一个⭐️!