Skip to content

Commit 62aec54

Browse files
authored
Merge pull request #82 from afsar-dev/dev
splash cursor removed and add draw cursor
2 parents c65c2ce + 09904c4 commit 62aec54

File tree

4 files changed

+45
-20
lines changed

4 files changed

+45
-20
lines changed

src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { AppProvider } from "@/context/AppContext";
1212
import Navbar from "@/components/layout/Navbar";
1313
import Footer from "@/components/layout/Footer";
1414
import Banner from "@/components/ui/Banner";
15-
import SplashCursorDemo from "@/components/common/SplashCursorDemo";
15+
import DrawCursorDemo from "@/components/common/DrawCursorDemo";
1616

1717
const 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>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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;

src/components/common/SplashCursorDemo.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/components/nurui/tech-cursor.tsx

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,30 @@ interface Particle {
1919

2020
const 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

3048
const TechCursor = () => {

0 commit comments

Comments
 (0)