138 Commits

Author SHA1 Message Date
f5bcc6e40d Merge version_2 into main
Merge version_2 into main
2026-03-04 19:34:26 +00:00
03df96f083 Update src/app/gym-3d/page.tsx 2026-03-04 19:34:21 +00:00
6518d28772 Merge version_2 into main
Merge version_2 into main
2026-03-04 19:33:06 +00:00
5013b53765 Update src/app/gym-3d/page.tsx 2026-03-04 19:33:02 +00:00
06dcaf500d Merge version_2 into main
Merge version_2 into main
2026-03-04 19:31:54 +00:00
7cfd7b9740 Update src/app/gym-3d/page.tsx 2026-03-04 19:31:49 +00:00
9ba60256e2 Merge version_2 into main
Merge version_2 into main
2026-03-04 19:30:35 +00:00
cd4d18a801 Update src/app/gym-3d/page.tsx 2026-03-04 19:30:31 +00:00
39fbb62e9d Merge version_2 into main
Merge version_2 into main
2026-03-04 19:29:25 +00:00
10e3fad348 Update src/app/gym-3d/page.tsx 2026-03-04 19:29:21 +00:00
101737d93b Merge version_2 into main
Merge version_2 into main
2026-03-04 19:28:15 +00:00
c38c3287c1 Update src/app/page.tsx 2026-03-04 19:28:11 +00:00
3c8e21634d Update src/app/layout.tsx 2026-03-04 19:28:11 +00:00
39736cb05d Update src/app/gym-3d/page.tsx 2026-03-04 19:28:10 +00:00
bcd3ed80c7 Merge version_2 into main
Merge version_2 into main
2026-03-04 19:15:44 +00:00
b958875873 Update src/app/page.tsx 2026-03-04 19:13:28 +00:00
4a760304bf Update src/app/layout.tsx 2026-03-04 19:13:28 +00:00
f51f6aac7f Update src/app/page.tsx 2026-03-04 19:11:53 +00:00
1f88228dbd Update src/app/layout.tsx 2026-03-04 19:11:52 +00:00
7dfb6f3f95 Update src/app/page.tsx 2026-03-04 19:10:10 +00:00
58697ead0e Update src/app/layout.tsx 2026-03-04 19:10:10 +00:00
037ef82c3d Add src/app/gym-3d/page.tsx 2026-03-04 19:10:09 +00:00
fe948f40d8 Update src/app/page.tsx 2026-03-04 19:08:35 +00:00
3df05324f8 Update src/app/layout.tsx 2026-03-04 19:08:34 +00:00
aa174c3fba Update src/app/gym-3d/page.tsx 2026-03-04 19:08:33 +00:00
25fef0aec6 Switch to version 1: remove src/hooks/useCardAnimation.ts 2026-03-04 19:07:21 +00:00
b55725bda8 Switch to version 1: remove src/app/gym-3d/page.tsx 2026-03-04 19:07:20 +00:00
ca9ddc0a90 Switch to version 1: modified src/lib/api/product.ts 2026-03-04 19:07:20 +00:00
aa349f3d83 Switch to version 1: modified src/hooks/useProducts.ts 2026-03-04 19:07:19 +00:00
a53e0030bb Switch to version 1: modified src/hooks/useProductDetail.ts 2026-03-04 19:07:19 +00:00
5f850bac37 Switch to version 1: modified src/hooks/useProductCatalog.ts 2026-03-04 19:07:19 +00:00
2c9735cce2 Switch to version 1: modified src/hooks/useProduct.ts 2026-03-04 19:07:18 +00:00
521faa156b Switch to version 1: modified src/hooks/useCheckout.ts 2026-03-04 19:07:17 +00:00
4966363406 Switch to version 1: modified src/components/shared/Dashboard.tsx 2026-03-04 19:07:16 +00:00
10f33044ae Switch to version 1: modified src/components/sections/team/TeamCardFive.tsx 2026-03-04 19:07:16 +00:00
39c2ca6ef4 Switch to version 1: modified src/components/sections/product/ProductCardTwo.tsx 2026-03-04 19:07:15 +00:00
a5fc9943c4 Switch to version 1: modified src/components/sections/product/ProductCardThree.tsx 2026-03-04 19:07:14 +00:00
c1e8d6c8d5 Switch to version 1: modified src/components/sections/product/ProductCardOne.tsx 2026-03-04 19:07:14 +00:00
0c037dd603 Switch to version 1: modified src/components/sections/product/ProductCardFour.tsx 2026-03-04 19:07:13 +00:00
be20bbb4dc Switch to version 1: modified src/components/sections/pricing/PricingCardEight.tsx 2026-03-04 19:07:13 +00:00
aade90a21f Switch to version 1: modified src/components/sections/metrics/MetricCardEleven.tsx 2026-03-04 19:07:12 +00:00
1286dc1aa5 Switch to version 1: modified src/components/sections/feature/FeatureCardSixteen.tsx 2026-03-04 19:07:12 +00:00
ca5ff42d8f Switch to version 1: modified src/components/sections/contact/ContactSplitForm.tsx 2026-03-04 19:07:12 +00:00
5c2f7f374e Switch to version 1: modified src/components/sections/contact/ContactSplit.tsx 2026-03-04 19:07:11 +00:00
2ccea76e4f Switch to version 1: modified src/components/sections/contact/ContactFaq.tsx 2026-03-04 19:07:11 +00:00
02dad55fe9 Switch to version 1: modified src/components/sections/contact/ContactCenter.tsx 2026-03-04 19:07:10 +00:00
bfa4a8db78 Switch to version 1: modified src/components/sections/blog/BlogCardTwo.tsx 2026-03-04 19:07:09 +00:00
14398cadd7 Switch to version 1: modified src/components/sections/blog/BlogCardThree.tsx 2026-03-04 19:07:09 +00:00
6c1bc0b01d Switch to version 1: modified src/components/sections/blog/BlogCardOne.tsx 2026-03-04 19:07:08 +00:00
ea2ee7f715 Switch to version 1: modified src/components/ecommerce/productCatalog/ProductCatalog.tsx 2026-03-04 19:07:08 +00:00
e8b2a950ad Switch to version 1: modified src/components/cardStack/layouts/timelines/TimelineProcessFlow.tsx 2026-03-04 19:07:07 +00:00
e4e3ac93f3 Switch to version 1: modified src/components/cardStack/layouts/timelines/TimelinePhoneView.tsx 2026-03-04 19:07:07 +00:00
8e9ebbfd20 Switch to version 1: modified src/components/cardStack/layouts/timelines/TimelineHorizontalCardStack.tsx 2026-03-04 19:07:06 +00:00
5309779be9 Switch to version 1: modified src/components/cardStack/layouts/timelines/TimelineBase.tsx 2026-03-04 19:07:06 +00:00
d114bef4d0 Switch to version 1: modified src/components/cardStack/layouts/grid/GridLayout.tsx 2026-03-04 19:07:05 +00:00
9102f58624 Switch to version 1: modified src/components/cardStack/layouts/carousels/ButtonCarousel.tsx 2026-03-04 19:07:05 +00:00
bab04bed97 Switch to version 1: modified src/components/cardStack/layouts/carousels/AutoCarousel.tsx 2026-03-04 19:07:04 +00:00
c9b303b81a Switch to version 1: modified src/components/cardStack/hooks/useDepth3DAnimation.ts 2026-03-04 19:07:04 +00:00
a6d3b35969 Switch to version 1: modified src/components/cardStack/hooks/useCardAnimation.ts 2026-03-04 19:07:03 +00:00
af2a39ee2a Switch to version 1: modified src/components/cardStack/CardStack.tsx 2026-03-04 19:07:03 +00:00
ed81a59c66 Switch to version 1: modified src/components/cardStack/CardList.tsx 2026-03-04 19:07:02 +00:00
2d7f08f1f9 Switch to version 1: modified src/app/page.tsx 2026-03-04 19:07:02 +00:00
810ec6d9a3 Switch to version 1: modified src/app/layout.tsx 2026-03-04 19:07:01 +00:00
094645cc72 Merge version_2 into main
Merge version_2 into main
2026-03-04 19:02:08 +00:00
957f27d3f4 Update src/components/sections/blog/BlogCardTwo.tsx 2026-03-04 19:02:03 +00:00
bb604433c5 Update src/components/sections/blog/BlogCardThree.tsx 2026-03-04 19:02:03 +00:00
98927d5c65 Update src/components/sections/blog/BlogCardOne.tsx 2026-03-04 19:02:02 +00:00
278ac5189f Merge version_2 into main
Merge version_2 into main
2026-03-04 19:00:33 +00:00
8c13071105 Update src/components/sections/blog/BlogCardTwo.tsx 2026-03-04 19:00:29 +00:00
d2c9774934 Update src/components/sections/blog/BlogCardThree.tsx 2026-03-04 19:00:28 +00:00
a9c442f17a Update src/components/sections/blog/BlogCardOne.tsx 2026-03-04 19:00:28 +00:00
49b118c1eb Merge version_2 into main
Merge version_2 into main
2026-03-04 18:59:01 +00:00
7f361fa741 Update src/components/sections/blog/BlogCardTwo.tsx 2026-03-04 18:58:57 +00:00
561a19bc2e Update src/components/sections/blog/BlogCardThree.tsx 2026-03-04 18:58:56 +00:00
9604c47d9f Update src/components/sections/blog/BlogCardOne.tsx 2026-03-04 18:58:56 +00:00
869ce33d0b Merge version_2 into main
Merge version_2 into main
2026-03-04 18:57:32 +00:00
8e74cf1994 Update src/components/sections/blog/BlogCardTwo.tsx 2026-03-04 18:57:28 +00:00
fc8ac045cd Update src/components/sections/blog/BlogCardThree.tsx 2026-03-04 18:57:28 +00:00
2c5d2a4959 Update src/components/sections/blog/BlogCardOne.tsx 2026-03-04 18:57:27 +00:00
1d06ae95a3 Update src/app/gym-3d/page.tsx 2026-03-04 18:57:27 +00:00
32b3c9ef3f Merge version_2 into main
Merge version_2 into main
2026-03-04 18:55:34 +00:00
f808026c6d Update src/app/page.tsx 2026-03-04 18:55:30 +00:00
e2d3bbb4d0 Update src/app/layout.tsx 2026-03-04 18:55:30 +00:00
d16d1f0b26 Update src/app/gym-3d/page.tsx 2026-03-04 18:55:29 +00:00
c876b1fd20 Merge version_2 into main
Merge version_2 into main
2026-03-04 18:53:38 +00:00
7e3f6595c7 Update src/components/shared/Dashboard.tsx 2026-03-04 18:53:34 +00:00
936394f078 Update src/components/cardStack/layouts/timelines/TimelineProcessFlow.tsx 2026-03-04 18:53:33 +00:00
9185617dea Update src/components/cardStack/layouts/timelines/TimelinePhoneView.tsx 2026-03-04 18:53:33 +00:00
64cadcb367 Update src/components/cardStack/layouts/timelines/TimelineHorizontalCardStack.tsx 2026-03-04 18:53:32 +00:00
7962fb0ad5 Update src/components/cardStack/layouts/carousels/AutoCarousel.tsx 2026-03-04 18:53:32 +00:00
ca488ea512 Update src/components/cardStack/CardList.tsx 2026-03-04 18:53:31 +00:00
326ea116f9 Merge version_2 into main
Merge version_2 into main
2026-03-04 18:50:32 +00:00
39aabdb7b7 Add src/hooks/useCardAnimation.ts 2026-03-04 18:50:27 +00:00
d1d6ebe559 Update src/components/shared/Dashboard.tsx 2026-03-04 18:50:27 +00:00
2102e120b8 Update src/components/sections/team/TeamCardFive.tsx 2026-03-04 18:50:26 +00:00
93e306122c Update src/components/sections/metrics/MetricCardEleven.tsx 2026-03-04 18:50:26 +00:00
af3b5b15f1 Update src/components/sections/feature/FeatureCardSixteen.tsx 2026-03-04 18:50:25 +00:00
29b3444668 Update src/components/sections/contact/ContactFaq.tsx 2026-03-04 18:50:25 +00:00
c1d17c5dec Update src/components/ecommerce/productCatalog/ProductCatalog.tsx 2026-03-04 18:50:24 +00:00
94567ac331 Update src/components/cardStack/layouts/timelines/TimelineProcessFlow.tsx 2026-03-04 18:50:23 +00:00
e7460a8877 Update src/components/cardStack/layouts/timelines/TimelinePhoneView.tsx 2026-03-04 18:50:21 +00:00
cc961688fb Update src/components/cardStack/layouts/grid/GridLayout.tsx 2026-03-04 18:50:19 +00:00
69d3b51d51 Update src/components/cardStack/layouts/carousels/ButtonCarousel.tsx 2026-03-04 18:50:18 +00:00
abf61bbeb1 Update src/components/cardStack/layouts/carousels/AutoCarousel.tsx 2026-03-04 18:50:17 +00:00
a1b6e7a70b Update src/components/cardStack/CardStack.tsx 2026-03-04 18:50:17 +00:00
f0ed8b9744 Update src/components/cardStack/CardList.tsx 2026-03-04 18:50:16 +00:00
b6e0ce95e4 Merge version_2 into main
Merge version_2 into main
2026-03-04 18:48:44 +00:00
3de2f401cc Update src/hooks/useProducts.ts 2026-03-04 18:48:38 +00:00
583fd7d255 Update src/hooks/useProduct.ts 2026-03-04 18:48:37 +00:00
3cbb15e331 Update src/components/sections/product/ProductCardTwo.tsx 2026-03-04 18:48:37 +00:00
dc29c790ab Update src/components/sections/product/ProductCardThree.tsx 2026-03-04 18:48:36 +00:00
4e7e90f543 Update src/components/sections/product/ProductCardOne.tsx 2026-03-04 18:48:35 +00:00
7dc92b519f Update src/components/sections/product/ProductCardFour.tsx 2026-03-04 18:48:34 +00:00
f253534b66 Update src/components/cardStack/hooks/useCardAnimation.ts 2026-03-04 18:48:33 +00:00
bd2a303a19 Update src/components/cardStack/CardStack.tsx 2026-03-04 18:48:32 +00:00
0d1bb2cd3f Update src/app/page.tsx 2026-03-04 18:48:32 +00:00
6610d14553 Merge version_2 into main
Merge version_2 into main
2026-03-04 18:47:03 +00:00
0c09a6ce21 Update src/lib/api/product.ts 2026-03-04 18:46:58 +00:00
8dc9577019 Update src/hooks/useProductDetail.ts 2026-03-04 18:46:57 +00:00
9cf8e53beb Update src/hooks/useProductCatalog.ts 2026-03-04 18:46:57 +00:00
ae8604d266 Update src/hooks/useCheckout.ts 2026-03-04 18:46:56 +00:00
2cd96e4e08 Update src/components/sections/pricing/PricingCardEight.tsx 2026-03-04 18:46:56 +00:00
5888e66d4f Update src/components/sections/contact/ContactSplitForm.tsx 2026-03-04 18:46:55 +00:00
8460ad5c63 Update src/components/sections/contact/ContactSplit.tsx 2026-03-04 18:46:55 +00:00
13d9c450ac Update src/components/sections/contact/ContactCenter.tsx 2026-03-04 18:46:54 +00:00
c07adff29a Update src/components/cardStack/layouts/timelines/TimelineBase.tsx 2026-03-04 18:46:54 +00:00
788afa1f30 Update src/components/cardStack/hooks/useDepth3DAnimation.ts 2026-03-04 18:46:53 +00:00
6294dc789d Update src/app/page.tsx 2026-03-04 18:46:53 +00:00
888aeff34a Update src/app/gym-3d/page.tsx 2026-03-04 18:46:53 +00:00
8bbf752b4d Merge version_2 into main
Merge version_2 into main
2026-03-04 18:44:07 +00:00
0aca3c2d2b Update src/app/gym-3d/page.tsx 2026-03-04 18:44:02 +00:00
700bc27fa7 Merge version_2 into main
Merge version_2 into main
2026-03-04 18:42:11 +00:00
27007b9bc5 Update src/app/page.tsx 2026-03-04 18:42:07 +00:00
c94eeace0c Update src/app/layout.tsx 2026-03-04 18:42:06 +00:00
9524e66ac2 Add src/app/gym-3d/page.tsx 2026-03-04 18:42:06 +00:00
b19d8ebc55 Merge version_1 into main
Merge version_1 into main
2026-03-04 18:29:42 +00:00
e7c7f72b82 Merge version_1 into main
Merge version_1 into main
2026-03-04 18:28:42 +00:00
f1d7310e68 Merge version_1 into main
Merge version_1 into main
2026-03-04 18:27:04 +00:00
3 changed files with 277 additions and 42 deletions

268
src/app/gym-3d/page.tsx Normal file
View File

@@ -0,0 +1,268 @@
"use client";
import { useEffect, useRef, useState } from "react";
import * as THREE from "three";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import { ContactSplitForm } from '@/components/sections/contact/ContactSplitForm';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Phone } from "lucide-react";
export default function Gym3DPage() {
const containerRef = useRef<HTMLDivElement>(null);
const sceneRef = useRef<THREE.Scene | null>(null);
const cameraRef = useRef<THREE.PerspectiveCamera | null>(null);
const rendererRef = useRef<THREE.WebGLRenderer | null>(null);
const [isLoading, setIsLoading] = useState(true);
useEffect(() => {
if (!containerRef.current) return;
// Scene setup
const scene = new THREE.Scene();
scene.background = new THREE.Color(0x0a0a0a);
sceneRef.current = scene;
// Camera setup
const camera = new THREE.PerspectiveCamera(
75,
containerRef.current.clientWidth / containerRef.current.clientHeight,
0.1,
1000
);
camera.position.set(0, 10, 20);
camera.lookAt(0, 5, 0);
cameraRef.current = camera;
// Renderer setup
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(containerRef.current.clientWidth, containerRef.current.clientHeight);
renderer.shadowMap.enabled = true;
containerRef.current.appendChild(renderer.domElement);
rendererRef.current = renderer;
// Lighting
const ambientLight = new THREE.AmbientLight(0xffffff, 0.6);
scene.add(ambientLight);
const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8);
directionalLight.position.set(10, 15, 10);
directionalLight.castShadow = true;
directionalLight.shadow.mapSize.width = 2048;
directionalLight.shadow.mapSize.height = 2048;
scene.add(directionalLight);
// Ground/Floor
const groundGeometry = new THREE.PlaneGeometry(40, 40);
const groundMaterial = new THREE.MeshStandardMaterial({ color: 0x1a1a1a });
const ground = new THREE.Mesh(groundGeometry, groundMaterial);
ground.rotation.x = -Math.PI / 2;
ground.receiveShadow = true;
scene.add(ground);
// Gym Equipment - Power Rack
const rackGeometry = new THREE.BoxGeometry(2, 3, 1.5);
const rackMaterial = new THREE.MeshStandardMaterial({ color: 0x333333, metalness: 0.8 });
const rack = new THREE.Mesh(rackGeometry, rackMaterial);
rack.position.set(-8, 1.5, 0);
rack.castShadow = true;
scene.add(rack);
// Barbell
const barbellGeometry = new THREE.CylinderGeometry(0.02, 0.02, 2.2, 16);
const barbellMaterial = new THREE.MeshStandardMaterial({ color: 0xffff00, metalness: 1 });
const barbell = new THREE.Mesh(barbellGeometry, barbellMaterial);
barbell.position.set(-8, 1.8, 0);
barbell.rotation.z = Math.PI / 2;
barbell.castShadow = true;
scene.add(barbell);
// Weight plates on barbell
for (let i = 0; i < 4; i++) {
const plateGeometry = new THREE.CylinderGeometry(0.5, 0.5, 0.05, 32);
const plateMaterial = new THREE.MeshStandardMaterial({ color: 0xff0000, metalness: 0.6 });
const plate = new THREE.Mesh(plateGeometry, plateMaterial);
plate.position.set(-8 + (i - 1.5) * 0.6, 1.8, 0);
plate.castShadow = true;
scene.add(plate);
}
// Dumbbells rack
for (let i = 0; i < 5; i++) {
const dumbellGeometry = new THREE.CylinderGeometry(0.15, 0.15, 0.5, 16);
const dumbellMaterial = new THREE.MeshStandardMaterial({ color: 0xffaa00, metalness: 0.7 });
const dumbell = new THREE.Mesh(dumbellGeometry, dumbellMaterial);
dumbell.position.set(0 + i * 1.5, 0.5, -10);
dumbell.castShadow = true;
scene.add(dumbell);
}
// Gymnastics Rig
const rigGeometry = new THREE.BoxGeometry(0.1, 0.1, 5);
const rigMaterial = new THREE.MeshStandardMaterial({ color: 0x333333, metalness: 0.8 });
const rig = new THREE.Mesh(rigGeometry, rigMaterial);
rig.position.set(0, 8, 0);
rig.castShadow = true;
scene.add(rig);
// Olympic Rings
const ringRadius = 0.3;
const ringPositions = [-1.2, -0.4, 0.4, 1.2];
ringPositions.forEach((x) => {
const torusGeometry = new THREE.TorusGeometry(ringRadius, 0.08, 16, 100);
const torusMaterial = new THREE.MeshStandardMaterial({ color: 0xffffff, metalness: 0.9 });
const ring = new THREE.Mesh(torusGeometry, torusMaterial);
ring.position.set(x, 7, 0);
ring.rotation.x = Math.PI / 5;
ring.castShadow = true;
scene.add(ring);
});
// Rowing Machine
const rowingGeometry = new THREE.BoxGeometry(0.8, 1, 2.5);
const rowingMaterial = new THREE.MeshStandardMaterial({ color: 0x222222, metalness: 0.6 });
const rowingMachine = new THREE.Mesh(rowingGeometry, rowingMaterial);
rowingMachine.position.set(8, 0.8, -5);
rowingMachine.castShadow = true;
scene.add(rowingMachine);
// Treadmill
const treadmillGeometry = new THREE.BoxGeometry(1, 1.2, 2);
const treadmillMaterial = new THREE.MeshStandardMaterial({ color: 0x1a1a1a, metalness: 0.5 });
const treadmill = new THREE.Mesh(treadmillGeometry, treadmillMaterial);
treadmill.position.set(8, 0.8, 0);
treadmill.castShadow = true;
scene.add(treadmill);
// Kettlebells
for (let i = 0; i < 3; i++) {
const kettlebellGeometry = new THREE.SphereGeometry(0.4, 16, 16);
const kettlebellMaterial = new THREE.MeshStandardMaterial({ color: 0x333333, metalness: 0.7 });
const kettlebell = new THREE.Mesh(kettlebellGeometry, kettlebellMaterial);
kettlebell.position.set(-10, 0.6, -5 + i * 2);
kettlebell.castShadow = true;
scene.add(kettlebell);
}
// Battle Ropes anchor
const ropeAnchorGeometry = new THREE.BoxGeometry(0.2, 3, 0.2);
const ropeAnchorMaterial = new THREE.MeshStandardMaterial({ color: 0x444444, metalness: 0.8 });
const ropeAnchor = new THREE.Mesh(ropeAnchorGeometry, ropeAnchorMaterial);
ropeAnchor.position.set(0, 2, 10);
ropeAnchor.castShadow = true;
scene.add(ropeAnchor);
// Walls
const wallGeometry = new THREE.BoxGeometry(40, 5, 0.5);
const wallMaterial = new THREE.MeshStandardMaterial({ color: 0x0f0f0f });
const wallBack = new THREE.Mesh(wallGeometry, wallMaterial);
wallBack.position.set(0, 2.5, -20);
wallBack.receiveShadow = true;
scene.add(wallBack);
// Loading complete
setIsLoading(false);
// Animation loop
const animate = () => {
requestAnimationFrame(animate);
// Rotate dumbbells slightly
scene.children.forEach((child) => {
if (child instanceof THREE.Mesh && child.geometry instanceof THREE.CylinderGeometry) {
if (child.position.z === -10) {
child.rotation.x += 0.01;
}
}
});
// Rotate camera slightly
const time = Date.now() * 0.0005;
camera.position.x = Math.sin(time) * 25;
camera.position.z = Math.cos(time) * 25;
camera.lookAt(0, 5, 0);
renderer.render(scene, camera);
};
animate();
// Handle window resize
const handleResize = () => {
if (!containerRef.current) return;
const width = containerRef.current.clientWidth;
const height = containerRef.current.clientHeight;
camera.aspect = width / height;
camera.updateProjectionMatrix();
renderer.setSize(width, height);
};
window.addEventListener("resize", handleResize);
return () => {
window.removeEventListener("resize", handleResize);
containerRef.current?.removeChild(renderer.domElement);
};
}, []);
return (
<ThemeProvider
defaultButtonVariant="text-shift"
defaultTextAnimation="reveal-blur"
borderRadius="pill"
contentWidth="medium"
sizing="largeSmallSizeMediumTitles"
background="circleGradient"
cardStyle="gradient-bordered"
primaryButtonStyle="primary-glow"
secondaryButtonStyle="radial-glow"
headingFontWeight="normal"
>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingOverlay
brandName="Iron Pulse"
navItems={[
{ name: "WOD", id: "wod" },
{ name: "Pricing", id: "pricing" },
{ name: "Gallery", id: "gallery" },
{ name: "Testimonials", id: "testimonials" },
{ name: "Home", id: "/" }
]}
button={{ text: "Start Your Trial", href: "contact" }}
/>
</div>
<div className="w-full h-screen bg-background" ref={containerRef}>
{isLoading && (
<div className="absolute inset-0 flex items-center justify-center bg-background/80 backdrop-blur-sm">
<div className="text-center">
<div className="inline-block animate-spin rounded-full h-12 w-12 border-t-2 border-primary-cta"></div>
<p className="text-foreground mt-4">Loading 3D Gym Tour...</p>
</div>
</div>
)}
</div>
<div id="contact" data-section="contact" className="py-20">
<ContactSplitForm
title="Interested in joining Iron Pulse?"
description="Fill out the form below and our coaching team will reach out within 24 hours to schedule your trial session."
inputs={[
{ name: "name", type: "text", placeholder: "Full Name", required: true },
{ name: "email", type: "email", placeholder: "Email Address", required: true }
]}
textarea={{
name: "message", placeholder: "Tell us about your fitness goals and experience level...", rows: 5,
required: false
}}
useInvertedBackground={false}
mediaAnimation="slide-up"
buttonText="Schedule Trial"
onSubmit={(data) => {
console.log("Form submitted:", data);
alert("Thank you for reaching out! We'll contact you soon.");
}}
ariaLabel="Contact form section"
/>
</div>
</ThemeProvider>
);
}

View File

@@ -1,54 +1,22 @@
import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Manrope } from "next/font/google";
import { DM_Sans } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
const halant = Halant({
variable: "--font-halant", subsets: ["latin"],
weight: ["300", "400", "500", "600", "700"],
});
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
});
const manrope = Manrope({
variable: "--font-manrope", subsets: ["latin"],
});
const dmSans = DM_Sans({
variable: "--font-dm-sans", subsets: ["latin"],
});
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "Iron Pulse CrossFit | Elite Coaching & High-Intensity Training", description: "Transform your strength at Iron Pulse CrossFit. Elite coaching, daily WODs, and a community of athletes pushing limits. Start your trial today.", keywords: "CrossFit gym, high-intensity training, coaching, fitness community, WOD, elite athletes", openGraph: {
title: "Iron Pulse CrossFit | Elite Coaching & High-Intensity Training", description: "Transform your strength at Iron Pulse CrossFit. Elite coaching, daily WODs, and a community of athletes pushing limits.", type: "website", siteName: "Iron Pulse"},
twitter: {
card: "summary_large_image", title: "Iron Pulse CrossFit | Elite Coaching & High-Intensity Training", description: "Transform your strength at Iron Pulse CrossFit. Elite coaching, daily WODs, and a community of athletes pushing limits."},
robots: {
index: true,
follow: true,
},
};
title: "Iron Pulse - CrossFit Gym", description: "Elite CrossFit training and coaching"};
export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${halant.variable} ${inter.variable} ${manrope.variable} ${dmSans.variable} antialiased`}
>
<Tag />
{children}
<html lang="en">
<body className={inter.className}>
{children}
<script
dangerouslySetInnerHTML={{
__html: `
@@ -1416,7 +1384,6 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}

View File

@@ -33,7 +33,7 @@ export default function LandingPage() {
{ name: "Pricing", id: "pricing" },
{ name: "Gallery", id: "gallery" },
{ name: "Testimonials", id: "testimonials" },
{ name: "Contact", id: "contact" }
{ name: "3D Gym", id: "/gym-3d" }
]}
button={{ text: "Start Your Trial", href: "contact" }}
/>