Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisp X committed Nov 30, 2024
1 parent c8f5c46 commit ef78d5a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
20 changes: 20 additions & 0 deletions src/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,26 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => {
color: white;
}
: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(110px);
}
@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(130px);
}
}
@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(150px);
}
}
::view-transition-old(root),
::view-transition-new(root) {
animation: none;
Expand Down
22 changes: 0 additions & 22 deletions src/zh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,3 @@ features:
icon: 🔍
details: 为了防止他人上传违规图片,程序集成了阿里云、腾讯云、Nsfw.js 图片审核功能,可以选择发现违规图片后删除或直接拒绝上传。
---

<style>
: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(110px);
}

@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(130px);
}
}

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(150px);
}
}
</style>

0 comments on commit ef78d5a

Please sign in to comment.