fix: remove gemini-effect and noise backgrounds, fix aurora animation

- Delete google-gemini-effect.tsx and noise-background.tsx
- Remove from types, registry, and backend whitelist
- Rewrite aurora: use animate-aurora directly on element instead of
  invisible pseudo-element with mix-blend-difference
This commit is contained in:
Fringg
2026-02-25 07:43:41 +03:00
parent de97a030d2
commit 79ff7412cb
5 changed files with 8 additions and 223 deletions

View File

@@ -20,9 +20,7 @@ export const backgroundComponents: Record<
grid: lazy(() => import('./grid-background')),
dots: lazy(() => import('./grid-background')),
spotlight: lazy(() => import('./spotlight-bg')),
noise: lazy(() => import('./noise-background')),
ripple: lazy(() => import('./background-ripple')),
'gemini-effect': lazy(() => import('./google-gemini-effect')),
};
// Registry of all background definitions with settings for the editor
@@ -464,25 +462,6 @@ export const backgroundRegistry: BackgroundDefinition[] = [
},
],
},
{
type: 'noise',
labelKey: 'admin.backgrounds.noise',
descriptionKey: 'admin.backgrounds.noiseDesc',
category: 'canvas',
settings: [
{
key: 'noiseOpacity',
label: 'admin.backgrounds.intensity',
type: 'number',
min: 0.05,
max: 0.5,
step: 0.05,
default: 0.15,
},
{ key: 'baseColor', label: 'admin.backgrounds.bgColor', type: 'color', default: '#0a0a1a' },
{ key: 'animated', label: 'admin.backgrounds.interactive', type: 'boolean', default: false },
],
},
{
type: 'ripple',
labelKey: 'admin.backgrounds.ripple',
@@ -515,30 +494,4 @@ export const backgroundRegistry: BackgroundDefinition[] = [
},
],
},
{
type: 'gemini-effect',
labelKey: 'admin.backgrounds.geminiEffect',
descriptionKey: 'admin.backgrounds.geminiEffectDesc',
category: 'canvas',
settings: [
{
key: 'speed',
label: 'admin.backgrounds.speed',
type: 'number',
min: 0.001,
max: 0.01,
step: 0.001,
default: 0.003,
},
{
key: 'lineWidth',
label: 'admin.backgrounds.waveWidth',
type: 'number',
min: 1,
max: 5,
step: 0.5,
default: 2,
},
],
},
];