mirror of
https://github.com/mivodev/mivodev.github.io.git
synced 2026-01-26 05:25:36 +07:00
feat: Add custom VitePress layout with a dynamic background featuring a grid pattern and glowing orbs.
This commit is contained in:
@@ -25,6 +25,13 @@ const { Layout } = DefaultTheme
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
overflow: hidden;
|
||||
--orb-opacity-max: 0.2;
|
||||
--orb-opacity-min: 0.15;
|
||||
}
|
||||
|
||||
:root.dark .mivo-bg {
|
||||
--orb-opacity-max: 0.05;
|
||||
--orb-opacity-min: 0.03;
|
||||
}
|
||||
|
||||
.mivo-grid {
|
||||
@@ -43,14 +50,10 @@ const { Layout } = DefaultTheme
|
||||
position: absolute;
|
||||
border-radius: 9999px;
|
||||
filter: blur(100px);
|
||||
opacity: 0.2;
|
||||
opacity: var(--orb-opacity-max);
|
||||
animation: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
||||
}
|
||||
|
||||
:root.dark .mivo-orb {
|
||||
opacity: 0.05;
|
||||
}
|
||||
|
||||
.orb-1 {
|
||||
top: -20%;
|
||||
left: -10%;
|
||||
@@ -71,12 +74,7 @@ const { Layout } = DefaultTheme
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 0.2; }
|
||||
50% { opacity: 0.15; }
|
||||
}
|
||||
|
||||
:root.dark @keyframes pulse {
|
||||
0%, 100% { opacity: 0.05; }
|
||||
50% { opacity: 0.03; }
|
||||
0%, 100% { opacity: var(--orb-opacity-max); }
|
||||
50% { opacity: var(--orb-opacity-min); }
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user