diff --git a/package.json b/package.json index 5d801dc..5659621 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "vite-react-ssg build", + "build": "vite build", "lint": "eslint .", "format": "prettier --write .", "preview": "vite preview" @@ -44,7 +44,6 @@ "globals": "^16.3.0", "prettier": "^3.6.2", "tw-animate-css": "^1.3.5", - "vite": "^7.0.4", - "vite-react-ssg": "^0.8.8" + "vite": "^7.0.4" } } diff --git a/src/App.jsx b/src/App.jsx index d50f400..12450ee 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -2,19 +2,22 @@ import { Routes, Route } from 'react-router-dom' import ParticleApp from './components/ParticleApp' import Navbar from './components/ui/Navbar' import Footer from './components/ui/Footer' -import Features from './components/Features' -import Docs from './components/Docs' +import { lazy, Suspense } from "react" +const Features = lazy(() => import("./components/Features")) +const Docs = lazy(() => import("./components/Docs")) export default function App() { return ( -
+
-
- - } /> - } /> - } /> - +
+ Loading...
}> + + } /> + } /> + } /> + +
diff --git a/src/components/Docs.jsx b/src/components/Docs.jsx index 1002705..ad4d27c 100644 --- a/src/components/Docs.jsx +++ b/src/components/Docs.jsx @@ -177,8 +177,8 @@ const Docs = () => { ]; return ( -
-
+
+
{/* Enhanced Header */} {
-

+

Documentation

-
+

Complete guide to package-particlefx - A lightweight, framework-agnostic JavaScript library for interactive particle effects.

diff --git a/src/components/Features.jsx b/src/components/Features.jsx index bb12eee..7860e39 100644 --- a/src/components/Features.jsx +++ b/src/components/Features.jsx @@ -132,14 +132,14 @@ const Features = () => { ] return ( -
-
+
+
{/* Enhanced Hero Section */} {/* Background Effects */}
@@ -151,7 +151,7 @@ const Features = () => { initial={{ scale: 0.8, opacity: 0 }} animate={{ scale: 1, opacity: 1 }} transition={{ duration: 0.8, delay: 0.2, type: "spring", bounce: 0.4 }} - className="flex items-center justify-center mb-8 pt-8" + className="flex items-center justify-center mb-8" >
@@ -164,19 +164,19 @@ const Features = () => { initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.8, delay: 0.4 }} - className="text-5xl md:text-7xl font-black mb-6 relative" + className="text-5xl md:text-7xl lg:text-8xl font-black mb-6 relative" > Powerful Features -
+
Discover the powerful capabilities of our interactive particle effects library.
@@ -187,7 +187,7 @@ const Features = () => { initial={{ opacity: 0, scale: 0.9 }} animate={{ opacity: 1, scale: 1 }} transition={{ duration: 0.6, delay: 0.8 }} - className="flex flex-wrap justify-center gap-6" + className="flex flex-wrap justify-center gap-6 m-15" >