forked from BRETT/BRETT
Initial Commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// Katalog der verfügbaren Hover-Card-Hintergrundeffekte (Vue-Bits-Ports)
|
||||
export const CARD_EFFECTS = [
|
||||
{ key: 'gradient-waves', label: 'Gradient Waves' },
|
||||
{ key: 'aurora', label: 'Aurora' },
|
||||
{ key: 'particles', label: 'Particles' },
|
||||
{ key: 'letter-glitch', label: 'Letter Glitch' },
|
||||
{ key: 'waves', label: 'Waves' },
|
||||
{ key: 'scanner', label: 'Scanner' },
|
||||
{ key: 'acid-squares', label: 'Acid Squares' },
|
||||
{ key: 'crt-warp', label: 'CRT Warp' },
|
||||
{ key: 'dither', label: 'Dither' },
|
||||
{ key: 'soft-aurora', label: 'Soft Aurora' },
|
||||
{ key: 'silk', label: 'Silk' },
|
||||
{ key: 'shape-grid', label: 'Shape Grid' },
|
||||
{ key: 'plasma', label: 'Plasma' },
|
||||
{ key: 'line-waves', label: 'Line Waves' },
|
||||
] as const
|
||||
|
||||
export type CardEffectKey = typeof CARD_EFFECTS[number]['key']
|
||||
|
||||
const KEYS = new Set<string>(CARD_EFFECTS.map(e => e.key))
|
||||
|
||||
export function isCardEffect(value: string): value is CardEffectKey {
|
||||
return KEYS.has(value)
|
||||
}
|
||||
Reference in New Issue
Block a user