feat:美化主题

This commit is contained in:
2025-11-27 15:17:25 +08:00
parent daab0c4495
commit e1aae7080e
5 changed files with 45 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
import DefaultTheme from 'vitepress/theme' import DefaultTheme from 'vitepress/theme'
import '../theme/style.css' import '../theme/style.css'
import './style/var.css'
// 定义组件导入的类型 // 定义组件导入的类型
interface ComponentModule { interface ComponentModule {

View File

@@ -0,0 +1,39 @@
/* VPFeatures 页卡悬浮效果 */
.VPFeatures .items .item {
transition: transform 0.3s;
}
.VPFeatures .items .item:hover {
transform: translateY(-5px);
}
.VPDoc h1 {
background: -webkit-linear-gradient(10deg, #3DC8F0 5%, #8036FA 15%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg,#bd34fe 30%,#41d1ff);
--vp-home-hero-image-background-image: linear-gradient(-45deg,#bd34fe 50%,#47caff 50%);
--vp-home-hero-image-filter: blur(44px)
}
@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter:blur(56px)
}
}
@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter:blur(68px)
}
}
.VPHero .VPImage {
filter: drop-shadow(-2px 4px 6px #0003);
padding: 18px;
}

View File

@@ -3,7 +3,7 @@ layout: doc
title: DevOps title: DevOps
--- ---
# 📚 内容导航 # 内容导航
- [OpenObserve部署和使用](/DevOps/OpenObserve) - [OpenObserve部署和使用](/DevOps/OpenObserve)
- [Jenkins部署和使用](/DevOps/Jenkins) - [Jenkins部署和使用](/DevOps/Jenkins)

View File

@@ -3,7 +3,7 @@ layout: doc
title: SpringBoot title: SpringBoot
--- ---
# 📚 内容导航 # 内容导航
- [Spring IOC简介](/SpringBoot/SpringIOC) - [Spring IOC简介](/SpringBoot/SpringIOC)
- [SpringBoot启动流程](/SpringBoot/SpringBoot-Start-Process) - [SpringBoot启动流程](/SpringBoot/SpringBoot-Start-Process)

View File

@@ -3,7 +3,7 @@ layout: doc
title: Web后端 title: Web后端
--- ---
# 📚 内容导航 # 内容导航
- [MySQL知识点](/Web-Backend/MySQL-Knowledge) - [MySQL知识点](/Web-Backend/MySQL-Knowledge)
- [Flyway简单使用](/Web-Backend/Flyway) - [Flyway简单使用](/Web-Backend/Flyway)