From 5f7eb05dc40bfeb3a68dacf1097f181d9898eaee Mon Sep 17 00:00:00 2001 From: Anton Titovets Date: Wed, 9 Jul 2025 23:33:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docusaurus/src/pages/index.js | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/docs/docusaurus/src/pages/index.js b/docs/docusaurus/src/pages/index.js index e508310d44..778a092b02 100644 --- a/docs/docusaurus/src/pages/index.js +++ b/docs/docusaurus/src/pages/index.js @@ -10,35 +10,6 @@ import styles from './index.module.css'; function HomepageHeader() { const {siteConfig} = useDocusaurusContext(); - useEffect(() => { - // Создаем частицы только для header - const header = document.querySelector(`.${styles.heroBanner}`); - if (!header) return; - - const particleCount = 30; - const particles = []; - - for (let i = 0; i < particleCount; i++) { - const particle = document.createElement('div'); - particle.className = styles.particle; - - // Позиционирование внутри header - particle.style.left = `${Math.random() * 100}%`; - particle.style.top = `${Math.random() * 100}%`; - particle.style.width = `${Math.random() * 3 + 1}px`; - particle.style.height = particle.style.width; - particle.style.animationDuration = `${Math.random() * 10 + 5}s`; - particle.style.animationDelay = `${Math.random() * 2}s`; - - header.appendChild(particle); - particles.push(particle); - } - - return () => { - particles.forEach(p => p.remove()); - }; - }, []); - return (