Skip to content

Commit a4ccd6d

Browse files
authored
Merge pull request #76 from afsar-dev/dev
Dev
2 parents ce88dda + dbf29d5 commit a4ccd6d

File tree

14 files changed

+394
-1115
lines changed

14 files changed

+394
-1115
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ If you find this project useful, please consider [sponsoring me](https://github.
5252
[![Sponsor](https://img.shields.io/badge/Sponsor-%F0%9F%92%96-pink)](https://github.com/sponsors/your-username) -->
5353

5454

55-
## Author
55+
## Maintainer
5656

5757
**Md Afsar Mahmud**
5858
Full Stack Developer

og-image.png

52.3 KB
Loading

package.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@babel/core": "^7.27.4",
13-
"@babel/preset-react": "^7.27.1",
14-
"@babel/preset-typescript": "^7.27.1",
1512
"@gsap/react": "^2.1.2",
1613
"@mdx-js/loader": "^3.1.0",
1714
"@mdx-js/react": "^3.1.0",
18-
"@next/bundle-analyzer": "^15.4.5",
1915
"@next/mdx": "^15.3.3",
2016
"@radix-ui/react-avatar": "^1.1.10",
2117
"@radix-ui/react-collapsible": "^1.1.11",
@@ -24,11 +20,7 @@
2420
"@radix-ui/react-slot": "^1.2.3",
2521
"@radix-ui/react-tabs": "^1.1.12",
2622
"@radix-ui/react-visually-hidden": "^1.2.3",
27-
"@react-three/drei": "^10.0.7",
2823
"@react-three/fiber": "^9.0.0-alpha.8",
29-
"@types/matter-js": "^0.19.8",
30-
"@types/mdx": "^2.0.13",
31-
"@types/react-syntax-highlighter": "^15.5.13",
3224
"@vercel/analytics": "^1.5.0",
3325
"class-variance-authority": "^0.7.1",
3426
"clsx": "^2.1.1",
@@ -44,14 +36,10 @@
4436
"next-mdx-remote": "^5.0.0",
4537
"next-themes": "^0.4.4",
4638
"nprogress": "^0.2.0",
47-
"poly-decomp": "^0.3.0",
48-
"postcss-scss": "^4.0.9",
49-
"postprocessing": "^6.37.3",
5039
"prettier": "^3.6.1",
5140
"react": "^19.0.0",
5241
"react-countup": "^6.5.3",
5342
"react-dom": "^19.0.0",
54-
"react-fast-marquee": "^1.6.5",
5543
"react-hot-toast": "^2.5.2",
5644
"react-icons": "^5.4.0",
5745
"react-intersection-observer": "^9.16.0",
@@ -60,24 +48,25 @@
6048
"remark-gfm": "^4.0.1",
6149
"simplebar": "^6.3.2",
6250
"simplebar-react": "^3.3.2",
63-
"simplex-noise": "^4.0.3",
6451
"svg-path-commander": "^2.1.10",
6552
"tailwind-merge": "^3.3.1",
66-
"tailwindcss-animate": "^1.0.7",
6753
"three": "^0.176.0",
68-
"three-globe": "^2.42.4",
6954
"tw-animate-css": "^1.3.4",
7055
"typescript": "^5.8.3",
7156
"uuid": "^11.1.0",
7257
"vaul": "^1.1.2"
7358
},
7459
"devDependencies": {
7560
"@eslint/eslintrc": "^3",
61+
"@react-three/drei": "^10.6.1",
7662
"@types/lodash": "^4.17.15",
63+
"@types/matter-js": "^0.20.0",
64+
"@types/mdx": "^2.0.13",
7765
"@types/node": "^20",
7866
"@types/nprogress": "^0.2.3",
7967
"@types/react": "^19",
8068
"@types/react-dom": "^19",
69+
"@types/react-syntax-highlighter": "^15.5.13",
8170
"eslint": "^9",
8271
"eslint-config-next": "15.1.7",
8372
"postcss": "^8",

public/og-image.png

52.3 KB
Loading

public/r/marquee-testimonial.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

src/app/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
import FaqSection from "@/components/pages/about-us/FaqSection";
12
import AllComponentSection from "@/components/pages/Home/AllComponentSection";
23
import ComponentDemosSection from "@/components/pages/Home/ComponentDemosSection";
34
import HeroSection from "@/components/pages/Home/HeroSection";
5+
import MarqueeTestimonialSection from "@/components/pages/Home/MarqueeTestimonialSection";
46

57
const Home = () => {
68
return (
79
<main className="section-gap">
810
<HeroSection />
911
<AllComponentSection />
1012
<ComponentDemosSection />
13+
<MarqueeTestimonialSection />
14+
<FaqSection />
1115
</main>
1216
);
1317
};

src/app/test/page.tsx

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

src/components/common/Gravity.tsx

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,24 @@ const Gravity = forwardRef<GravityRef, GravityProps>(
175175
const x = calculatePosition(props.x, canvasRect.width, width);
176176
const y = calculatePosition(props.y, canvasRect.height, height);
177177

178+
// Clean options to remove null chamfer and narrow type
179+
const rawOptions = { ...props.matterBodyOptions };
180+
if (rawOptions.chamfer === null) {
181+
delete rawOptions.chamfer;
182+
}
183+
const cleanOptions = rawOptions as Omit<
184+
typeof rawOptions,
185+
"chamfer"
186+
> & {
187+
chamfer?: Matter.IChamfer;
188+
};
189+
178190
let body;
179191
if (props.bodyType === "circle") {
180192
const radius = Math.max(width, height) / 2;
181193
body = Bodies.circle(x, y, radius, {
182-
...props.matterBodyOptions,
183-
angle: angle,
194+
...cleanOptions,
195+
angle,
184196
render: {
185197
fillStyle: debug ? "#888888" : "#00000000",
186198
strokeStyle: debug ? "#333333" : "#00000000",
@@ -198,8 +210,8 @@ const Gravity = forwardRef<GravityRef, GravityProps>(
198210
});
199211

200212
body = Bodies.fromVertices(x, y, vertexSets, {
201-
...props.matterBodyOptions,
202-
angle: angle,
213+
...cleanOptions,
214+
angle,
203215
render: {
204216
fillStyle: debug ? "#888888" : "#00000000",
205217
strokeStyle: debug ? "#333333" : "#00000000",
@@ -208,8 +220,8 @@ const Gravity = forwardRef<GravityRef, GravityProps>(
208220
});
209221
} else {
210222
body = Bodies.rectangle(x, y, width, height, {
211-
...props.matterBodyOptions,
212-
angle: angle,
223+
...cleanOptions,
224+
angle,
213225
render: {
214226
fillStyle: debug ? "#888888" : "#00000000",
215227
strokeStyle: debug ? "#333333" : "#00000000",

0 commit comments

Comments
 (0)