-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,062 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
"medium": "" | ||
}, | ||
"aside": { | ||
"level": 0, | ||
"level": 1, | ||
"collapsed": false, | ||
"exclude": [] | ||
}, | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<script setup lang="ts"> | ||
import type { PropType } from 'vue' | ||
const props = defineProps({ | ||
width: { | ||
type: String, | ||
default: '100%' | ||
}, | ||
height: { | ||
type: String, | ||
default: '100vh' | ||
}, | ||
zIndex: { | ||
type: String, | ||
default: '0' | ||
}, | ||
top: { | ||
type: String, | ||
default: '0' | ||
}, | ||
bottom: { | ||
type: String, | ||
default: 'auto' | ||
}, | ||
left: { | ||
type: String, | ||
default: '0' | ||
}, | ||
right: { | ||
type: String, | ||
default: 'auto' | ||
}, | ||
blur: { | ||
type: String, | ||
default: '0px' | ||
}, | ||
maskGradient: { | ||
type: [String, Object] as PropType<string | { light: string; dark: string }>, | ||
default: 'radial-gradient(at 50% 50%, red, rgba(255, 0, 0, 0) 85%)' | ||
}, | ||
gradient: { | ||
type: [String, Object] as PropType<string | { light: string; dark: string }>, | ||
default: 'radial-gradient(circle at 10% 50%, #4200ff 7%, #23d70c73 35%, #fbca0563 45%, #ff4700e6 82%)' | ||
}, | ||
noise: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
backgroundImage: { | ||
type: String, | ||
default: 'none' | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="glow" :class="{noise}"> | ||
<svg v-if="noise"> | ||
<filter id="f"> | ||
<feTurbulence type="fractalNoise" baseFrequency="7.5" /> | ||
</filter> | ||
</svg> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="ts"> | ||
css({ | ||
'.glow': { | ||
'--mask-gradient': (props) => typeof props.maskGradient === 'string' ? props.maskGradient : props.maskGradient.light, | ||
'--gradient': (props) => typeof props.gradient === 'string' ? props.gradient : props.gradient.light, | ||
'@dark': { | ||
'--mask-gradient': (props) => typeof props.maskGradient === 'string' ? props.maskGradient : props.maskGradient.dark, | ||
'--gradient': (props) => typeof props.gradient === 'string' ? props.gradient : props.gradient.dark | ||
}, | ||
pointerEvents: 'none', | ||
position: 'absolute', | ||
top: (props) => props.top, | ||
insetInlineStart: (props) => props.left, | ||
insetInlineEnd: (props) => props.right, | ||
zIndex: (props) => props.zIndex, | ||
width: (props) => props.width, | ||
height: (props) => props.height, | ||
opacity: 0, | ||
overflow: 'hidden', | ||
backgroundImage: props => props.backgroundImage, | ||
'&::before, &::after': { | ||
opacity: 0, | ||
content: '""', | ||
position: 'absolute', | ||
inset: 0, | ||
'--mask': 'var(--mask-gradient), var(--mask-gradient), var(--mask-gradient)', | ||
'-webkit-mask': 'var(--mask)', | ||
mask: 'var(--mask)', | ||
maskComposite: 'intersect', | ||
'-webkit-mask-composite': 'source-in', | ||
mixBlendMode: 'color' | ||
}, | ||
'&.noise::before': { | ||
filter: 'url(#f)' | ||
}, | ||
'&::after': { | ||
background: 'var(--gradient)', | ||
} | ||
} | ||
}) | ||
</style> | ||
|
||
<style scoped> | ||
.glow { | ||
animation: enter-opacity 1000ms forwards 500ms $dt('ease.expo.inOut'); | ||
} | ||
@keyframes enter-opacity { | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
.glow::after, .glow::before { | ||
animation: enter-scale 1000ms forwards 500ms $dt('ease.expo.inOut'); | ||
} | ||
@keyframes enter-scale { | ||
from { | ||
opacity: 0; | ||
transform: scale(2); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: scale(1); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
import { defineTheme } from 'pinceau' | ||
|
||
export default defineTheme({ | ||
docus: { | ||
landing: { | ||
blockHero: { | ||
content: { | ||
title: { | ||
mixBlendMode: 'luminosity' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.