I will inspect the project structure to see existing files and setup.
I will check the package.json file to see what icons or helper libraries are installed.
I will install lucide-react for UI icons and canvas-confetti for celebratory effects.
I will inspect index.html to check the title and meta tags.
I will inspect src/index.css to see the CSS setup.
I will create src/data/emotions.ts containing the curated list of 50 emotions in Russian with metadata (color accent, category, emoji, description, and intensity) so each glass face can display a rich emotional word and allow users to inspect details.
I will create src/utils/sound.ts to provide Web Audio API sound effects for button clicks, face hover/click, and the 1-second "explode" shuffle effect.
I will update src/index.css with CSS rules for 3D transforms (preserve-3d, perspective), glassmorphism (backdrop-filter), specular borders, and floating ambient background animations.
I will create src/components/AmbientBackground.tsx which renders animated glowing color spheres behind the cube so that the glass backdrop-filter: blur(...) creates a dramatic and beautiful refractive effect.
I will create src/components/Speedometer.tsx to visually display the current angular speed (°/с) and cursor distance (%) from the screen center, making the proportional acceleration interactive and transparent.
I will create src/components/EmotionModal.tsx to display an emotion's poetic description, category, quote, and intensity rating when a glass face is clicked.
I will remove the unused Heart import in src/components/EmotionModal.tsx.
I will create src/components/EmotionsListModal.tsx which allows browsing, searching, and filtering all 50 emotions in Russian, and selecting any emotion to inspect or assign to the cube.
I will create src/components/GlassCube3D.tsx implementing the pure CSS 3D cube with glassmorphic backdrop-filter faces, proportional mouse-distance rotation acceleration, and the 1-second face explosion effect.
I will create src/components/ShuffleButton.tsx for the "Перемешать" button below the cube, with keyboard shortcut support (Space bar) and rich interactive styling.
I will create src/components/Header.tsx featuring the app title, a button to browse all 50 emotions, an ambient lighting theme selector, and a sound toggle button.
I will create src/components/Footer.tsx with clear explanatory notes on the pure CSS 3D implementation, backdrop-filter glassmorphism, and interactive features.
I will update the title in index.html to reflect the 3D Glass Cube of 50 Emotions.
I will inspect index.html to see where we can add Google Fonts with Cyrillic support.
I will add Google Fonts (Inter and Plus Jakarta Sans with Cyrillic support) to index.html.
I will create src/App.tsx uniting the 3D Glass Cube, Ambient Lighting background, Speedometer gauge, Shuffle button with 1-second explosion effect, Header, and Emotion Modal dialogues.
I will remove the unused React default import from src/App.tsx.
I will build the project using build_project to verify that there are no TypeScript or compilation errors and the Vite bundle builds cleanly.
Я создал интерактивное веб-приложение «3D Стеклянный Куб 50 Эмоций» на чистом CSS 3D (без использования Three.js или сторонних WebGL-библиотек) в соответствии со всеми требованиями:
🌟 Что реализовано:
-
3D-куб на чистом CSS (transform-style: preserve-3d)
- Вся 3D-геометрия построена через CSS-свойства
perspective: 1200px, transform-style: preserve-3d, rotateX, rotateY и translateZ.
- Куб состоит из 6 граней (Передняя, Задняя, Правая, Левая, Верхняя, Нижняя), непрерывно вращающихся в 3D-пространстве через плавный цикл
requestAnimationFrame.
-
Стеклянные панели с размытием фона (backdrop-filter)
- Каждая грань оформлена в стиле стекломорфизма:
backdrop-filter: blur(18px) saturate(190%) (а также -webkit-backdrop-filter для Safari), полупрозрачный градиент, тонкий световой блик по краю и внутренняя подсветка.
- На заднем плане плавают анимированные цветовые сферы-световые орбы (4 темы освещения: Северное сияние, Киберпанк, Золотой час, Космос), благодаря чему размытие и преломление света через стеклянные грани куба выглядит невероятно эффектно.
-
Словарь из 50 эмоций на русском языке
- В файле
src/data/emotions.ts создан список из 50 эмоций (например: Вдохновение, Безмятежность, Эйфория, Восторг, Умиротворение, Кураж, Просветление, Гармония и др.) с метаданными: иконками-эмодзи, категориями, цветом подсветки, поэтическим описанием и цитатами.
- На 6 гранях куба отображаются случайные эмоции из этого списка.
- При клике на любую грань открывается детальная карточка эмоции с описанием, цитатой и возможностью установить её на главную грань. Также доступна кнопка «Все 50 эмоций» для просмотра всей коллекции.
-
Ускорение вращения пропорционально расстоянию до центра экрана
- В обычном состоянии куб вращается медленно и плавно.
- При наведении мыши вычисляется расстояние от курсора до центра экрана
(window.innerWidth / 2, window.innerHeight / 2) — чем дальше курсор от центра, тем пропорционально быстрее вращается куб.
- На экране отображается живой Тахометр скорости (°/с) и индикатор расстояния от центра в процентах.
-
Кнопка «Перемешать» с эффектом 1-секундного «взрыва» граней
Files built: src/data/emotions.ts, src/utils/sound.ts, src/index.css, src/components/AmbientBackground.tsx, src/components/Speedometer.tsx, src/components/EmotionModal.tsx, src/components/EmotionsListModal.tsx, src/components/GlassCube3D.tsx, src/components/ShuffleButton.tsx, src/components/Header.tsx, src/components/Footer.tsx, index.html, src/App.tsx