homeweb
homeweb copied to clipboard
个人网站漂亮的导航页
棱镜门 网站引导页

一款非常好看的个人网站引导页
搭建教程
功能
- [x] 载入动画
- [x] 站点简介
- [x] Hitokoto 一言
- [x] 日期及时间
- [x] 实时天气
- [x] 时光进度条
- [x] 音乐播放器
- [x] 移动端适配
- [ ] 去除 jQuery 依赖
- [ ] VUE 重构
天气
由于原天气 API 不稳定,已更换天气 API,现需要前往以下网站获取 key
也可自行更换其他方式
音乐
本项目采用了基于
MetingJS
的Aplayer
音乐播放器,可实现快速自定义歌单
*仅支持 中国大陆地区,其他区域请将 以下内容 替换music.js
以实现音乐播放器的正常使用
更改 music.js
的参数即可实现自定义歌单列表
let server = "netease"; //netease: 网易云音乐; tencent: QQ音乐; kugou: 酷狗音乐; xiami: 虾米; kuwo: 酷我
let type = "playlist"; //song: 单曲; playlist: 歌单; album: 唱片
let id = ""; //封面 ID / 单曲 ID / 歌单 ID
推荐我的网易云音乐,一起听歌吧~ https://y.music.163.com/m/user?id=133241206&dlt=0846&app_version=8.8.70
字体
由于本项目引入了中文字体,需要压缩中文字体以提高网页加载速度( 也可以取消使用中文字体 )
中文字体去除繁体
- 安装
Python 3.7
和pip
- 运行
pip install fonttools
- 下载 sc_unicode.txt
- 运行
pyftsubset 字体名称.ttf --unicodes-file=sc_unicode.txt
字体进一步压缩
- 编译安装
Google woff2
sudo apt-get install -y git g++ make
git clone --recursive https://github.com/google/woff2.git
cd woff2
make clean all
- 再压缩字体
./woff2_compress ./字体名称.ttf
- 最终可对原字体进行缓加载,先行加载压缩后的字体
详细信息可前往 虹墨空间站 查看原文
插件
API
🌟 Stargazers over time
fork:https://github.com/imsyy/home