perf: eliminate high CPU/GPU load, remove smooth cursor, remove canvas particles, throttle scroll handler
This commit is contained in:
@@ -15,7 +15,7 @@ import {
|
||||
import { ToolItem, VariantSpec, resolveLocalised } from '@/types';
|
||||
import { TryItWidget } from './TryItWidget';
|
||||
import { CardBeforeAfterSlider } from '@/components/ui/CardBeforeAfterSlider';
|
||||
import { Particles } from '@/components/magicui/particles';
|
||||
|
||||
import { BorderBeam } from '@/components/magicui/border-beam';
|
||||
import { LightRays } from '@/components/magicui/light-rays';
|
||||
import { RainbowButton } from '@/components/magicui/rainbow-button';
|
||||
@@ -213,9 +213,8 @@ export function HeroSection({
|
||||
aria-hidden="true"
|
||||
/>
|
||||
|
||||
{/* Layered Light Rays & Particles */}
|
||||
{/* Layered Light Rays */}
|
||||
<LightRays className="opacity-40" />
|
||||
<Particles quantity={25} size={0.7} color="var(--color-accent)" className="absolute inset-0 pointer-events-none" />
|
||||
|
||||
<div className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6 relative z-10">
|
||||
<BlurFade delay={0.06}>
|
||||
@@ -308,15 +307,7 @@ export function HeroSection({
|
||||
{/* Background Layer 2: Magic UI Atmospheric Light Rays */}
|
||||
<LightRays className="opacity-45" />
|
||||
|
||||
{/* Background Layer 3: Magic UI Floating Particles */}
|
||||
<Particles
|
||||
quantity={35}
|
||||
size={0.8}
|
||||
color="var(--color-accent)"
|
||||
className="absolute inset-0 pointer-events-none z-0"
|
||||
/>
|
||||
|
||||
{/* Background Layer 4: Fine Dot Matrix Pattern */}
|
||||
{/* Background Layer 3: Fine Dot Matrix Pattern */}
|
||||
<div
|
||||
className="pointer-events-none absolute inset-0 opacity-20 studio-proof-grid z-0"
|
||||
aria-hidden="true"
|
||||
|
||||
Reference in New Issue
Block a user