@@ -52,11 +52,13 @@ export default function Features() {
5252** Dependencies** : Requires ` cobe ` package
5353
5454** Bento Grid Layout** :
55- The component also includes a complete features section with a Bento Grid layout (6-column grid) featuring four skeleton components:
55+ The component also includes a complete features section with a Bento Grid layout (6-column grid) featuring six skeleton components:
5656- ** SkeletonOne** : Image showcase with gradient overlays
5757- ** SkeletonTwo** : Interactive image gallery with hover animations
5858- ** SkeletonThree** : YouTube video link with play button overlay
5959- ** SkeletonFour** : 3D Globe component
60+ - ** SkeletonFive** : Spline Hover Cubes - Interactive 3D cubes with hover effects
61+ - ** SkeletonSix** : Spline Hover Sphere - Reactive sphere made of smaller spheres
6062
6163** Use Cases** :
6264- Global reach sections
@@ -135,7 +137,193 @@ export function HeroSection() {
135137- Timing: ease function
136138- Defined in ` tailwind.config.ts ` as ` animate-spotlight `
137139
138- ### 3. SplineSceneBasic Component
140+ ### 3. SplineHoverCubes Component
141+ ** Location** : ` ~/components/ui/spline-hover-cubes.tsx `
142+
143+ ** Purpose** : Interactive 3D scene featuring dynamically appearing cubes with hover effects, textured transitions, and immersive motion.
144+
145+ ** Scene URL** : ` https://prod.spline.design/2brKVxQg9zPVuc-s/scene.splinecode `
146+
147+ ** Tags** : ` #hero ` ` #landing ` ` #hover ` ` #interaction ` ` #cubes ` ` #boxes ` ` #cursor ` ` #dark ` ` #neon `
148+
149+ ** Color Scheme** :
150+ - Primary: ` #3F2B6D ` (Deep Purple)
151+ - Theme: Dark with neon highlights
152+ - Style: Dark, mysterious, futuristic
153+
154+ ** Features** :
155+ - Dynamic cube appearance on cursor hover
156+ - Textured transitions for visual depth
157+ - Interactive motion responsive to user interaction
158+ - Smooth animations with neon glow effects
159+ - Dark theme optimized with purple/neon accents
160+ - Lazy loaded with React Suspense
161+
162+ ** Basic Usage** :
163+ ``` tsx
164+ import { SplineHoverCubes } from " ~/components/ui/spline-hover-cubes" ;
165+
166+ export function HeroSection() {
167+ return (
168+ <div className = " relative h-[600px] w-full" >
169+ <SplineHoverCubes className = " absolute inset-0" />
170+
171+ <div className = " absolute top-8 left-8 z-10" >
172+ <h1 className = " text-white text-4xl" >Your Content</h1 >
173+ </div >
174+ </div >
175+ );
176+ }
177+ ```
178+
179+ ** Perfect For** :
180+ - Hero sections (full viewport background)
181+ - Feature showcases (bento grid cards)
182+ - Landing page centerpieces
183+ - Interactive portfolio sections
184+ - Product demonstration areas
185+
186+ ** Not Recommended For** :
187+ - Form-heavy pages
188+ - Text-dense content areas
189+ - Small containers (< 400px height)
190+ - Mobile-first experiences (consider fallback)
191+
192+ ** CRITICAL PLACEMENT GUIDELINES** :
193+
194+ ⚠️ ** The 3D effect requires unobstructed space!**
195+
196+ ** DO's** ✅:
197+ 1 . Use as full-screen background with content overlaid using z-index
198+ 2 . Give it dedicated space without overlapping interactive elements
199+ 3 . Place text/CTAs OUTSIDE the interactive area or in corners
200+ 4 . Use transparent gradients at edges for smooth content transitions
201+ 5 . Ensure min-height of 400px-600px for full effect visibility
202+ 6 . Position content in safe zones (top-left, top-right, bottom-left, bottom-right corners)
203+
204+ ** DON'Ts** ❌:
205+ 1 . Don't place clickable elements directly over the 3D scene
206+ 2 . Don't overlay dense text that blocks interaction
207+ 3 . Don't use in small containers (< 400px height)
208+ 4 . Don't stack multiple interactive layers on top
209+ 5 . Don't place forms or input fields over the scene
210+
211+ ** Z-Index Layering Strategy** :
212+ ```
213+ Layer 0 (z-0): 3D Spline Scene
214+ Layer 5 (z-5): Gradient overlays (pointer-events-none)
215+ Layer 10 (z-10): Content elements (text, buttons)
216+ Layer 20 (z-20): Interactive tooltips or modals
217+ ```
218+
219+ ** Bento Grid Implementation Example** :
220+ See ` SkeletonFive ` in ` ~/components/blocks/feature-section-with-bento-grid.tsx ` for proper integration:
221+ - Min-height of 500px for visibility
222+ - Content positioned in top-left safe zone
223+ - Bottom gradient overlay for smooth transition
224+ - Tag indicators in bottom-right corner
225+ - Proper z-index layering
226+
227+ ** Complete Documentation** : See ` ~/components/ui/SPLINE_HOVER_CUBES_GUIDE.md ` for comprehensive usage guide.
228+
229+ ### 4. SplineHoverSphere Component
230+ ** Location** : ` ~/components/ui/spline-hover-sphere.tsx `
231+
232+ ** Purpose** : Hero section interaction concept featuring a large sphere composed of smaller spheres that react on hover by changing size and color. Perfect for techy landing pages.
233+
234+ ** Scene URL** : ` https://prod.spline.design/48VBTd2o7FCZRCte/scene.splinecode `
235+
236+ ** Tags** : ` #hero ` ` #interactive ` ` #hover ` ` #animation ` ` #landing ` ` #tech ` ` #sphere ` ` #green ` ` #blue ` ` #wave `
237+
238+ ** Color Scheme** :
239+ - Primary: Green, Blue, Teal (cyan)
240+ - Theme: Dark with vibrant green/blue accents
241+ - Style: Tech, futuristic, innovative, modern
242+ - Accent: Wave effects with color transitions
243+
244+ ** Features** :
245+ - Large sphere made of smaller reactive spheres
246+ - Hover-triggered size and color changes
247+ - Smooth wave-like animations
248+ - Green/blue/teal color palette
249+ - Perfect for tech-focused landing pages
250+ - Mesmerizing interactive visual effect
251+ - Lazy loaded with React Suspense
252+
253+ ** Basic Usage** :
254+ ``` tsx
255+ import { SplineHoverSphere } from " ~/components/ui/spline-hover-sphere" ;
256+
257+ export function TechHero() {
258+ return (
259+ <div className = " relative h-screen w-full" >
260+ <SplineHoverSphere className = " absolute inset-0" />
261+
262+ <div className = " absolute top-12 left-12 z-10" >
263+ <h1 className = " text-white text-5xl" >Innovation Starts Here</h1 >
264+ </div >
265+ </div >
266+ );
267+ }
268+ ```
269+
270+ ** Perfect For** :
271+ - Hero sections (techy landing pages)
272+ - Technology showcases
273+ - Innovation-focused pages
274+ - Product launches (tech products)
275+ - Interactive portfolio headers
276+ - SaaS landing pages
277+ - AI/ML product pages
278+
279+ ** Not Recommended For** :
280+ - Light-themed pages (colors won't show well)
281+ - Small containers (< 500px)
282+ - Content-heavy pages
283+ - Multiple instances per page (performance)
284+
285+ ** CRITICAL PLACEMENT GUIDELINES** :
286+
287+ ⚠️ ** The sphere needs space to breathe!**
288+
289+ ** DO's** ✅:
290+ 1 . Use as hero section centerpiece with minimal text overlay
291+ 2 . Give the sphere space to breathe (min 500px height)
292+ 3 . Place text in corners or sides, not covering the sphere
293+ 4 . Use dark backgrounds to make colors pop
294+ 5 . Position CTAs below or to the side of the sphere
295+ 6 . Allow full viewport width for maximum impact
296+
297+ ** DON'Ts** ❌:
298+ 1 . Don't cover the sphere with dense content
299+ 2 . Don't use on light backgrounds (colors won't show well)
300+ 3 . Don't place in small containers (< 500px)
301+ 4 . Don't overlay forms or complex UI elements
302+ 5 . Don't use multiple instances on the same page
303+
304+ ** Best Practices** :
305+ - ** Centered Hero** : Use as full-viewport centerpiece
306+ - ** Minimal Overlay** : Keep text minimal and in corners
307+ - ** Dark Background** : Essential for color visibility
308+ - ** Single Instance** : One per page for performance
309+ - ** Mobile Fallback** : Consider static version for mobile
310+
311+ ** Bento Grid Implementation Example** :
312+ See ` SkeletonSix ` in ` ~/components/blocks/feature-section-with-bento-grid.tsx ` for proper integration:
313+ - Min-height of 500px for visibility
314+ - Content positioned in top-left safe zone
315+ - Bottom gradient overlay for smooth transition
316+ - Tag indicators in bottom-right corner
317+ - Teal/blue color scheme with dark background
318+
319+ ** Visual Characteristics** :
320+ - ** Center Focus** : Sphere naturally draws eye to center
321+ - ** Wave Motion** : Organic, flowing animations
322+ - ** Color Shift** : Green to blue transitions on interaction
323+ - ** Size Changes** : Smaller spheres scale on hover
324+ - ** Tech Aesthetic** : Perfect for SaaS, AI, tech products
325+
326+ ### 5. SplineSceneBasic Component
139327** Location** : ` ~/components/ui/spline-scene-basic.tsx `
140328
141329** Purpose** : Pre-built showcase section featuring a 3D robot model with text content and spotlight effects.
0 commit comments