File tree Expand file tree Collapse file tree 4 files changed +45
-20
lines changed
Expand file tree Collapse file tree 4 files changed +45
-20
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { AppProvider } from "@/context/AppContext";
1212import Navbar from "@/components/layout/Navbar" ;
1313import Footer from "@/components/layout/Footer" ;
1414import Banner from "@/components/ui/Banner" ;
15- import SplashCursorDemo from "@/components/common/SplashCursorDemo " ;
15+ import DrawCursorDemo from "@/components/common/DrawCursorDemo " ;
1616
1717const nunito = Nunito ( {
1818 variable : "--font-nunito" ,
@@ -99,7 +99,7 @@ export default function RootLayout({
9999 < ThemeProvider >
100100 < Toaster />
101101 < NProgressProvider />
102- < SplashCursorDemo />
102+ < DrawCursorDemo />
103103 < Banner />
104104 < Navbar />
105105 < MainContent > { children } </ MainContent >
Original file line number Diff line number Diff line change 1+ "use client" ;
2+ import React from "react" ;
3+ import { usePathname } from "next/navigation" ;
4+ import DrawCursor from "../nurui/draw-cursor" ;
5+
6+ const DrawCursorDemo = ( ) => {
7+ const pathName = usePathname ( ) ;
8+ if ( pathName . includes ( "docs" ) || pathName . includes ( "preview" ) ) return null ;
9+ return (
10+ < DrawCursor
11+ type = "drawAlways"
12+ strokeColor = "#3ca2fa"
13+ strokeWidth = { 10 }
14+ followEffect = { true }
15+ />
16+ ) ;
17+ } ;
18+
19+ export default DrawCursorDemo ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,12 +19,30 @@ interface Particle {
1919
2020const icons : { name : string ; src : string } [ ] = [
2121 // replace with your image path
22- { name : "JavaScript" , src : "/js.png" } ,
23- { name : "TypeScript" , src : "/ts.png" } ,
24- { name : "React" , src : "/react.svg" } ,
25- { name : "Next.js" , src : "/js.png" } ,
26- { name : "HTML" , src : "/html.png" } ,
27- { name : "CSS" , src : "/css.png" } ,
22+ {
23+ name : "JavaScript" ,
24+ src : "https://res.cloudinary.com/dz1fy2tof/image/upload/v1755012752/js_nocitj.png" ,
25+ } ,
26+ {
27+ name : "TypeScript" ,
28+ src : "https://res.cloudinary.com/dz1fy2tof/image/upload/v1755012632/ts_elsqw8.png" ,
29+ } ,
30+ {
31+ name : "React" ,
32+ src : "https://res.cloudinary.com/dz1fy2tof/image/upload/v1755012941/react_ogt6ny.svg" ,
33+ } ,
34+ {
35+ name : "Next.js" ,
36+ src : "https://res.cloudinary.com/dz1fy2tof/image/upload/v1755012973/next_hrodnb.svg" ,
37+ } ,
38+ {
39+ name : "HTML" ,
40+ src : "https://res.cloudinary.com/dz1fy2tof/image/upload/v1755012812/html_xbcdkj.png" ,
41+ } ,
42+ {
43+ name : "CSS" ,
44+ src : "https://res.cloudinary.com/dz1fy2tof/image/upload/v1755012862/css_1_irojyc.png" ,
45+ } ,
2846] ;
2947
3048const TechCursor = ( ) => {
You can’t perform that action at this time.
0 commit comments