65 字
1 分钟
Docker 部署 Sun-Panel 导航面板
2026-02-03

Sun-Panel 是一个 NAS、服务器导航面板、简易 Docker 管理器,可作为 Homepage 或浏览器首页使用。

部署#

docker-compose.yml
services:
panel:
image: 'hslr/sun-panel:latest'
hostname: panel
container_name: panel
ports:
- '3002:3002'
volumes:
- './conf:/app/conf'
- '/var/run/docker.sock:/var/run/docker.sock'
restart: always
networks:
- app-net
networks:
app-net:
external: true

美化 CSS#

毛玻璃效果#

.item-list {
backdrop-filter: blur(1px);
-webkit-backdrop-filter: blur(1px);
background: rgba(255, 255, 255, 0.3);
border-radius: 15px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 10px;
color: white;
margin: auto;
}

图标悬停摇晃动画#

.icon-info-box .rounded-2xl:hover {
background: rgba(42, 42, 42, 0.7) !important;
animation: info-shake-bounce .5s alternate !important;
}
.icon-small-box .rounded-2xl:hover {
background: rgba(42, 42, 42, 0.7) !important;
animation: small-shake-bounce .5s alternate !important;
}
@keyframes info-shake-bounce {
0%, 100% { transform: rotate(0); }
25% { transform: rotate(10deg); }
50% { transform: rotate(-10deg); }
75% { transform: rotate(2.5deg); }
85% { transform: rotate(-2.5deg); }
}
@keyframes small-shake-bounce {
0%, 100% { transform: rotate(0); }
25% { transform: rotate(15deg); }
50% { transform: rotate(-15deg); }
75% { transform: rotate(5deg); }
85% { transform: rotate(5deg); }
}
分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Docker 部署 Sun-Panel 导航面板
https://blog.olinl.com/posts/docker-sun-panel/
作者
顾拾柒
发布于
2026-02-03
许可协议
CC BY-NC-SA 4.0

目录