Skip to content

smart-developer1791/solidjs-threejs-gsap-dimensional-glass-landing

Repository files navigation

✨ Dimensional Glass Landing

Stunning 3D glass morphism landing page with prismatic refraction effects

Solid.js Three.js GSAP Tailwind CSS Vite

License MIT Deploy to Netlify


Live Demo


🌟 Overview

A next-generation landing page featuring real-time 3D glass panels with physically-accurate prismatic light refraction. Built with Solid.js for blazing-fast reactivity, Three.js for immersive 3D graphics, GSAP ScrollTrigger for buttery-smooth animations, and Tailwind CSS for modern styling.


✨ Features

Feature Description
🔮 3D Glass Panels Real-time rendered glass surfaces with prismatic refraction
🌈 Prismatic Colors Dynamic color shifting based on view angle
🎯 Magnetic Cursor Interactive cursor with gravitational pull effects
📜 Scroll Animations GSAP ScrollTrigger powered smooth transitions
🎨 Glassmorphism UI Modern glass-like UI components
📱 Fully Responsive Optimized for all devices
Accessible Reduced motion support included
Lightning Fast Solid.js fine-grained reactivity

🛠️ Tech Stack

┌─────────────────────────────────────────────────────┐
│  FRAMEWORK        │  Solid.js 1.8                   │
│  3D ENGINE        │  Three.js r161                  │
│  ANIMATIONS       │  GSAP 3.12 + ScrollTrigger      │
│  STYLING          │  Tailwind CSS 3.4               │
│  BUILD TOOL       │  Vite 5                         │
│  NOISE            │  simplex-noise 4.0              │
│  DEPLOYMENT       │  Netlify                        │
└─────────────────────────────────────────────────────┘

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/smart-developer1791/solidjs-threejs-gsap-dimensional-glass-landing

# Navigate to directory
cd solidjs-threejs-gsap-dimensional-glass-landing

# Install dependencies
npm install

# Start development server
npm run dev

Build for Production

# Create optimized build
npm run build

# Preview production build
npm run preview

📁 Project Structure

solidjs-threejs-gsap-dimensional-glass-landing/
├── public/
│   └── _redirects              # Netlify SPA redirects
├── src/
│   ├── components/
│   │   ├── DimensionalGlassBackground.jsx  # 3D glass scene
│   │   ├── Header.jsx          # Navigation header
│   │   ├── Hero.jsx            # Hero section
│   │   ├── Features.jsx        # Features grid
│   │   ├── Contact.jsx         # Contact form
│   │   ├── Footer.jsx          # Footer
│   │   └── Cursor.jsx          # Custom cursor
│   ├── App.jsx                 # Main app component
│   ├── index.jsx               # Entry point
│   └── index.css               # Global styles
├── index.html                  # HTML template
├── package.json
├── vite.config.js
├── tailwind.config.js
├── postcss.config.js
├── netlify.toml                # Netlify configuration
└── README.md

🎨 Customization

Colors

Edit tailwind.config.js to customize the prismatic color palette:

colors: {
  prism: {
    violet: '#8B5CF6',
    blue: '#3B82F6',
    cyan: '#06B6D4',
    emerald: '#10B981',
    amber: '#F59E0B',
    rose: '#F43F5E'
  }
}

3D Scene

Adjust glass panel count and behavior in DimensionalGlassBackground.jsx:

const panelCount = 8       // Number of glass panels
const particleCount = 500  // Floating particles

🌐 Deployment

Netlify (Recommended)

  1. Push your code to GitHub
  2. Connect repository to Netlify
  3. Build settings are auto-configured via netlify.toml
  4. Deploy!

Deploy to Netlify

Manual Deploy

npm run build
# Upload 'dist' folder to your hosting

📊 Performance

Metric Score
Lighthouse Performance 95+
First Contentful Paint < 1.2s
Time to Interactive < 2.5s
Bundle Size (gzipped) ~85KB

🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

Distributed under the MIT License. See LICENSE for more information.


🙏 Acknowledgments


Refracted through prismatic code • Forged with Solid.js, Three.js & endless ☕

About

✨ Stunning 3D dimensional glass landing page with prismatic refraction effects. Built with Solid.js, Three.js, GSAP ScrollTrigger & Tailwind CSS. Features real-time glass panel rendering, magnetic cursor, and buttery-smooth scroll animations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors