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";
12
12
import Navbar from "@/components/layout/Navbar" ;
13
13
import Footer from "@/components/layout/Footer" ;
14
14
import Banner from "@/components/ui/Banner" ;
15
- import SplashCursorDemo from "@/components/common/SplashCursorDemo " ;
15
+ import DrawCursorDemo from "@/components/common/DrawCursorDemo " ;
16
16
17
17
const nunito = Nunito ( {
18
18
variable : "--font-nunito" ,
@@ -99,7 +99,7 @@ export default function RootLayout({
99
99
< ThemeProvider >
100
100
< Toaster />
101
101
< NProgressProvider />
102
- < SplashCursorDemo />
102
+ < DrawCursorDemo />
103
103
< Banner />
104
104
< Navbar />
105
105
< 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 {
19
19
20
20
const icons : { name : string ; src : string } [ ] = [
21
21
// 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
+ } ,
28
46
] ;
29
47
30
48
const TechCursor = ( ) => {
You can’t perform that action at this time.
0 commit comments