diff --git a/Client/next.config.mjs b/Client/next.config.mjs index 05496e8..1d73397 100644 --- a/Client/next.config.mjs +++ b/Client/next.config.mjs @@ -4,26 +4,28 @@ import bundleAnalyzer from "@next/bundle-analyzer"; dotenv.config(); const withBundleAnalyzer = bundleAnalyzer({ - enabled: process.env.ANALYZE === "true", + enabled: process.env.ANALYZE === "true", }); + /** @type {import('next').NextConfig} */ const nextConfig = { - eslint: { - // ignoreDuringBuilds: true, - }, - typescript: { - // ignoreBuildErrors: true, - }, - env: { - BACKEND_URL: process.env.BACKEND_URL, - }, - images: { - domains: ["res.cloudinary.com", "api.dicebear.com"], - dangerouslyAllowSVG: true, - contentSecurityPolicy: "default-src 'self'; img-src * data:blob:;", - }, + eslint: { + // ignoreDuringBuilds: true, + }, + typescript: { + // ignoreBuildErrors: true, + }, + env: { + BACKEND_URL: process.env.BACKEND_URL, + }, + images: { + // I've added 'placehold.co' to this list + domains: ["res.cloudinary.com", "api.dicebear.com", "placehold.co"], + dangerouslyAllowSVG: true, + contentSecurityPolicy: "default-src 'self'; img-src * data:blob:;", + }, }; // Wrap config with analyzer -export default withBundleAnalyzer(nextConfig); +export default withBundleAnalyzer(nextConfig); \ No newline at end of file diff --git a/Client/package-lock.json b/Client/package-lock.json index 9a7ff1c..e65b822 100644 --- a/Client/package-lock.json +++ b/Client/package-lock.json @@ -25,6 +25,8 @@ "@radix-ui/react-tabs": "^1.1.2", "@radix-ui/react-tooltip": "^1.1.8", "@react-oauth/google": "^0.12.1", + "@react-three/drei": "^9.88.7", + "@react-three/fiber": "^8.15.11", "@vercel/analytics": "^1.4.1", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", @@ -33,7 +35,7 @@ "framer-motion": "^12.5.0", "lucide-react": "^0.453.0", "mongoose": "^8.8.0", - "next": "14.2.16", + "next": "^14.2.16", "next-themes": "^0.4.6", "qr-scanner": "^1.4.2", "react": "^18", @@ -46,6 +48,7 @@ "swr": "^2.3.3", "tailwind-merge": "^2.5.4", "tailwindcss-animate": "^1.0.7", + "three": "^0.158.0", "zod": "^3.23.8" }, "devDependencies": { @@ -1766,6 +1769,15 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/runtime": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz", + "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/template": { "version": "7.27.2", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", @@ -1814,6 +1826,13 @@ "node": ">=6.9.0" } }, + "node_modules/@dimforge/rapier3d-compat": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz", + "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==", + "license": "Apache-2.0", + "peer": true + }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", @@ -2332,6 +2351,12 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@mediapipe/tasks-vision": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@mediapipe/tasks-vision/-/tasks-vision-0.10.2.tgz", + "integrity": "sha512-d8Q9uRK89ZRWmED2JLI9/blpJcfdbh0iEUuMo8TgkMzNfQBY1/GC0FEJWrairTwHkxIf6Oud1vFBP+aHicWqJA==", + "license": "Apache-2.0" + }, "node_modules/@mongodb-js/saslprep": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.3.0.tgz", @@ -4881,6 +4906,199 @@ "react-dom": ">=16.8.0" } }, + "node_modules/@react-spring/animated": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.6.1.tgz", + "integrity": "sha512-ls/rJBrAqiAYozjLo5EPPLLOb1LM0lNVQcXODTC1SMtS6DbuBCPaKco5svFUQFMP2dso3O+qcC4k9FsKc0KxMQ==", + "license": "MIT", + "dependencies": { + "@react-spring/shared": "~9.6.1", + "@react-spring/types": "~9.6.1" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@react-spring/core": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.6.1.tgz", + "integrity": "sha512-3HAAinAyCPessyQNNXe5W0OHzRfa8Yo5P748paPcmMowZ/4sMfaZ2ZB6e5x5khQI8NusOHj8nquoutd6FRY5WQ==", + "license": "MIT", + "dependencies": { + "@react-spring/animated": "~9.6.1", + "@react-spring/rafz": "~9.6.1", + "@react-spring/shared": "~9.6.1", + "@react-spring/types": "~9.6.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/react-spring/donate" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@react-spring/rafz": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.6.1.tgz", + "integrity": "sha512-v6qbgNRpztJFFfSE3e2W1Uz+g8KnIBs6SmzCzcVVF61GdGfGOuBrbjIcp+nUz301awVmREKi4eMQb2Ab2gGgyQ==", + "license": "MIT" + }, + "node_modules/@react-spring/shared": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.6.1.tgz", + "integrity": "sha512-PBFBXabxFEuF8enNLkVqMC9h5uLRBo6GQhRMQT/nRTnemVENimgRd+0ZT4yFnAQ0AxWNiJfX3qux+bW2LbG6Bw==", + "license": "MIT", + "dependencies": { + "@react-spring/rafz": "~9.6.1", + "@react-spring/types": "~9.6.1" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@react-spring/three": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@react-spring/three/-/three-9.6.1.tgz", + "integrity": "sha512-Tyw2YhZPKJAX3t2FcqvpLRb71CyTe1GvT3V+i+xJzfALgpk10uPGdGaQQ5Xrzmok1340DAeg2pR/MCfaW7b8AA==", + "license": "MIT", + "dependencies": { + "@react-spring/animated": "~9.6.1", + "@react-spring/core": "~9.6.1", + "@react-spring/shared": "~9.6.1", + "@react-spring/types": "~9.6.1" + }, + "peerDependencies": { + "@react-three/fiber": ">=6.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "three": ">=0.126" + } + }, + "node_modules/@react-spring/types": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.6.1.tgz", + "integrity": "sha512-POu8Mk0hIU3lRXB3bGIGe4VHIwwDsQyoD1F394OK7STTiX9w4dG3cTLljjYswkQN+hDSHRrj4O36kuVa7KPU8Q==", + "license": "MIT" + }, + "node_modules/@react-three/drei": { + "version": "9.88.7", + "resolved": "https://registry.npmjs.org/@react-three/drei/-/drei-9.88.7.tgz", + "integrity": "sha512-UW09SYV0KGE1ClEAXaJx2488C742ypDaVKuJXQPOhuxviZBxSQ0sLlwRdJwKvl2bFV+q8e6JYGWkhHkD4W/cxA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.11.2", + "@mediapipe/tasks-vision": "0.10.2", + "@react-spring/three": "~9.6.1", + "@use-gesture/react": "^10.2.24", + "camera-controls": "^2.4.2", + "cross-env": "^7.0.3", + "detect-gpu": "^5.0.28", + "glsl-noise": "^0.0.0", + "lodash.clamp": "^4.0.3", + "lodash.omit": "^4.5.0", + "lodash.pick": "^4.4.0", + "maath": "^0.9.0", + "meshline": "^3.1.6", + "react-composer": "^5.0.3", + "react-merge-refs": "^1.1.0", + "stats-gl": "^1.0.4", + "stats.js": "^0.17.0", + "suspend-react": "^0.1.3", + "three-mesh-bvh": "^0.6.7", + "three-stdlib": "^2.28.0", + "troika-three-text": "^0.47.2", + "utility-types": "^3.10.0", + "uuid": "^9.0.1", + "zustand": "^3.5.13" + }, + "peerDependencies": { + "@react-three/fiber": ">=8.0", + "react": ">=18.0", + "react-dom": ">=18.0", + "three": ">=0.137" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + } + }, + "node_modules/@react-three/drei/node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/@react-three/fiber": { + "version": "8.15.11", + "resolved": "https://registry.npmjs.org/@react-three/fiber/-/fiber-8.15.11.tgz", + "integrity": "sha512-jOJjrjVMBJQwIK6Uirc3bErUCTiclbS2alJG1eU8pV1jIwDZwPwcfHzSi2TautxoA4ddMt5DmlpatK4rIqM4jA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.17.8", + "@types/react-reconciler": "^0.26.7", + "@types/webxr": "*", + "base64-js": "^1.5.1", + "buffer": "^6.0.3", + "its-fine": "^1.0.6", + "react-reconciler": "^0.27.0", + "react-use-measure": "^2.1.1", + "scheduler": "^0.21.0", + "suspend-react": "^0.1.3", + "zustand": "^3.7.1" + }, + "peerDependencies": { + "expo": ">=43.0", + "expo-asset": ">=8.4", + "expo-file-system": ">=11.0", + "expo-gl": ">=11.0", + "react": ">=18.0", + "react-dom": ">=18.0", + "react-native": ">=0.64", + "three": ">=0.133" + }, + "peerDependenciesMeta": { + "expo": { + "optional": true + }, + "expo-asset": { + "optional": true + }, + "expo-file-system": { + "optional": true + }, + "expo-gl": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, + "node_modules/@react-three/fiber/node_modules/scheduler": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.21.0.tgz", + "integrity": "sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, "node_modules/@svgr/babel-plugin-add-jsx-attribute": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz", @@ -5178,6 +5396,19 @@ "node": ">=10.13.0" } }, + "node_modules/@tweenjs/tween.js": { + "version": "23.1.3", + "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz", + "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==", + "license": "MIT", + "peer": true + }, + "node_modules/@types/draco3d": { + "version": "1.4.10", + "resolved": "https://registry.npmjs.org/@types/draco3d/-/draco3d-1.4.10.tgz", + "integrity": "sha512-AX22jp8Y7wwaBgAixaSvkoG4M/+PlAcm3Qs4OW8yT9DM4xUpWKeFhLueTAyZF39pviAdcDdeJoACapiAceqNcw==", + "license": "MIT" + }, "node_modules/@types/node": { "version": "22.13.10", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", @@ -5197,14 +5428,12 @@ "version": "15.7.14", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.14.tgz", "integrity": "sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==", - "devOptional": true, "license": "MIT" }, "node_modules/@types/react": { "version": "18.3.12", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz", "integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==", - "devOptional": true, "license": "MIT", "dependencies": { "@types/prop-types": "*", @@ -5222,12 +5451,50 @@ "@types/react": "*" } }, + "node_modules/@types/react-reconciler": { + "version": "0.26.7", + "resolved": "https://registry.npmjs.org/@types/react-reconciler/-/react-reconciler-0.26.7.tgz", + "integrity": "sha512-mBDYl8x+oyPX/VBb3E638N0B7xG+SPk/EAMcVPeexqus/5aTpTphQi0curhhshOqRrc9t6OPoJfEUkbymse/lQ==", + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/stats.js": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz", + "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==", + "license": "MIT", + "peer": true + }, + "node_modules/@types/three": { + "version": "0.180.0", + "resolved": "https://registry.npmjs.org/@types/three/-/three-0.180.0.tgz", + "integrity": "sha512-ykFtgCqNnY0IPvDro7h+9ZeLY+qjgUWv+qEvUt84grhenO60Hqd4hScHE7VTB9nOQ/3QM8lkbNE+4vKjEpUxKg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@dimforge/rapier3d-compat": "~0.12.0", + "@tweenjs/tween.js": "~23.1.3", + "@types/stats.js": "*", + "@types/webxr": "*", + "@webgpu/types": "*", + "fflate": "~0.8.2", + "meshoptimizer": "~0.22.0" + } + }, "node_modules/@types/webidl-conversions": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==", "license": "MIT" }, + "node_modules/@types/webxr": { + "version": "0.5.23", + "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.23.tgz", + "integrity": "sha512-GPe4AsfOSpqWd3xA/0gwoKod13ChcfV67trvxaW2krUbgb9gxQjnCx8zGshzMl8LSHZlNH5gQ8LNScsDuc7nGQ==", + "license": "MIT" + }, "node_modules/@types/whatwg-url": { "version": "11.0.5", "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz", @@ -5237,6 +5504,24 @@ "@types/webidl-conversions": "*" } }, + "node_modules/@use-gesture/core": { + "version": "10.3.1", + "resolved": "https://registry.npmjs.org/@use-gesture/core/-/core-10.3.1.tgz", + "integrity": "sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw==", + "license": "MIT" + }, + "node_modules/@use-gesture/react": { + "version": "10.3.1", + "resolved": "https://registry.npmjs.org/@use-gesture/react/-/react-10.3.1.tgz", + "integrity": "sha512-Yy19y6O2GJq8f7CHf7L0nxL8bf4PZCPaVOCgJrusOeFHY1LvHgYXnmnXg6N5iwAnbgbZCDjo60SiM6IPJi9C5g==", + "license": "MIT", + "dependencies": { + "@use-gesture/core": "10.3.1" + }, + "peerDependencies": { + "react": ">= 16.8.0" + } + }, "node_modules/@vercel/analytics": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.4.1.tgz", @@ -5274,6 +5559,13 @@ } } }, + "node_modules/@webgpu/types": { + "version": "0.1.64", + "resolved": "https://registry.npmjs.org/@webgpu/types/-/types-0.1.64.tgz", + "integrity": "sha512-84kRIAGV46LJTlJZWxShiOrNL30A+9KokD7RB3dRCIqODFjodS5tCD5yyiZ8kIReGVZSDfA3XkkwyyOIF6K62A==", + "license": "BSD-3-Clause", + "peer": true + }, "node_modules/acorn": { "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", @@ -5424,6 +5716,35 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "license": "MIT" }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/bidi-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz", + "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==", + "license": "MIT", + "dependencies": { + "require-from-string": "^2.0.2" + } + }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", @@ -5506,6 +5827,30 @@ "node": ">=16.20.1" } }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, "node_modules/busboy": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", @@ -5549,6 +5894,15 @@ "node": ">= 6" } }, + "node_modules/camera-controls": { + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/camera-controls/-/camera-controls-2.10.1.tgz", + "integrity": "sha512-KnaKdcvkBJ1Irbrzl8XD6WtZltkRjp869Jx8c0ujs9K+9WD+1D7ryBsCiVqJYUqt6i/HR5FxT7RLASieUD+Q5w==", + "license": "MIT", + "peerDependencies": { + "three": ">=0.126.1" + } + }, "node_modules/caniuse-lite": { "version": "1.0.30001726", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001726.tgz", @@ -5873,7 +6227,6 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", - "devOptional": true, "license": "MIT" }, "node_modules/debounce": { @@ -5918,6 +6271,15 @@ "node": ">=6" } }, + "node_modules/detect-gpu": { + "version": "5.0.70", + "resolved": "https://registry.npmjs.org/detect-gpu/-/detect-gpu-5.0.70.tgz", + "integrity": "sha512-bqerEP1Ese6nt3rFkwPnGbsUF9a4q+gMmpTVVOEzoCyeCc+y7/RvJnQZJx1JwhgQI5Ntg0Kgat8Uu7XpBqnz1w==", + "license": "MIT", + "dependencies": { + "webgl-constants": "^1.1.1" + } + }, "node_modules/detect-libc": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", @@ -6027,6 +6389,12 @@ "url": "https://dotenvx.com" } }, + "node_modules/draco3d": { + "version": "1.5.7", + "resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.5.7.tgz", + "integrity": "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==", + "license": "Apache-2.0" + }, "node_modules/duplexer": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", @@ -6179,6 +6547,13 @@ "reusify": "^1.0.4" } }, + "node_modules/fflate": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz", + "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==", + "license": "MIT", + "peer": true + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", @@ -6318,6 +6693,12 @@ "node": ">=4" } }, + "node_modules/glsl-noise": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/glsl-noise/-/glsl-noise-0.0.0.tgz", + "integrity": "sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==", + "license": "MIT" + }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -6363,6 +6744,26 @@ "integrity": "sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw==", "license": "BSD-3-Clause" }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, "node_modules/import-fresh": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", @@ -6467,6 +6868,27 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "license": "ISC" }, + "node_modules/its-fine": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/its-fine/-/its-fine-1.2.5.tgz", + "integrity": "sha512-fXtDA0X0t0eBYAGLVM5YsgJGsJ5jEmqZEPrGbzdf5awjv0xE7nqv3TVnvtUF060Tkes15DbDAKW/I48vsb6SyA==", + "license": "MIT", + "dependencies": { + "@types/react-reconciler": "^0.28.0" + }, + "peerDependencies": { + "react": ">=18.0" + } + }, + "node_modules/its-fine/node_modules/@types/react-reconciler": { + "version": "0.28.9", + "resolved": "https://registry.npmjs.org/@types/react-reconciler/-/react-reconciler-0.28.9.tgz", + "integrity": "sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*" + } + }, "node_modules/jackspeak": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", @@ -6567,6 +6989,12 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "license": "MIT" }, + "node_modules/lodash.clamp": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/lodash.clamp/-/lodash.clamp-4.0.3.tgz", + "integrity": "sha512-HvzRFWjtcguTW7yd8NJBshuNaCa8aqNFtnswdT7f/cMd/1YKy5Zzoq4W/Oxvnx9l7aeY258uSdDfM793+eLsVg==", + "license": "MIT" + }, "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", @@ -6574,6 +7002,20 @@ "dev": true, "license": "MIT" }, + "node_modules/lodash.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==", + "deprecated": "This package is deprecated. Use destructuring assignment syntax instead.", + "license": "MIT" + }, + "node_modules/lodash.pick": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", + "integrity": "sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q==", + "deprecated": "This package is deprecated. Use destructuring assignment syntax instead.", + "license": "MIT" + }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -6611,6 +7053,16 @@ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc" } }, + "node_modules/maath": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/maath/-/maath-0.9.0.tgz", + "integrity": "sha512-aAR8hoUqPxlsU8VOxkS9y37jhUzdUxM017NpCuxFU1Gk+nMaZASZxymZrV8LRSHzRk/watlbfyNKu6XPUhCFrQ==", + "license": "MIT", + "peerDependencies": { + "@types/three": ">=0.144.0", + "three": ">=0.144.0" + } + }, "node_modules/matchmediaquery": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/matchmediaquery/-/matchmediaquery-0.4.2.tgz", @@ -6642,6 +7094,22 @@ "node": ">= 8" } }, + "node_modules/meshline": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/meshline/-/meshline-3.3.1.tgz", + "integrity": "sha512-/TQj+JdZkeSUOl5Mk2J7eLcYTLiQm2IDzmlSvYm7ov15anEcDJ92GHqqazxTSreeNgfnYu24kiEvvv0WlbCdFQ==", + "license": "MIT", + "peerDependencies": { + "three": ">=0.137" + } + }, + "node_modules/meshoptimizer": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.22.0.tgz", + "integrity": "sha512-IebiK79sqIy+E4EgOr+CAw+Ke8hAspXKzBd0JdgEmPHiAwmvEj2S4h1rfvo+o/BnfEYd/jAOg5IeeIjzlzSnDg==", + "license": "MIT", + "peer": true + }, "node_modules/micromatch": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", @@ -7262,6 +7730,12 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "license": "MIT" }, + "node_modules/potpack": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/potpack/-/potpack-1.0.2.tgz", + "integrity": "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==", + "license": "ISC" + }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", @@ -7329,6 +7803,18 @@ "node": ">=0.10.0" } }, + "node_modules/react-composer": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/react-composer/-/react-composer-5.0.3.tgz", + "integrity": "sha512-1uWd07EME6XZvMfapwZmc7NgCZqDemcvicRi3wMJzXsQLvZ3L7fTHVyPy1bZdnWXM4iPjYuNE+uJ41MLKeTtnA==", + "license": "MIT", + "dependencies": { + "prop-types": "^15.6.0" + }, + "peerDependencies": { + "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/react-dom": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", @@ -7365,6 +7851,16 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "license": "MIT" }, + "node_modules/react-merge-refs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/react-merge-refs/-/react-merge-refs-1.1.0.tgz", + "integrity": "sha512-alTKsjEL0dKH/ru1Iyn7vliS2QRcBp9zZPGoWxUOvRGWPUYgjo+V01is7p04It6KhgrzhJGnIj9GgX8W4bZoCQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, "node_modules/react-qr-code": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/react-qr-code/-/react-qr-code-2.0.18.tgz", @@ -7378,6 +7874,31 @@ "react": "*" } }, + "node_modules/react-reconciler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.27.0.tgz", + "integrity": "sha512-HmMDKciQjYmBRGuuhIaKA1ba/7a+UsM5FzOZsMO2JYHt9Jh8reCb7j1eDC95NOyUlKM9KRyvdx0flBuDvYSBoA==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.21.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "peerDependencies": { + "react": "^18.0.0" + } + }, + "node_modules/react-reconciler/node_modules/scheduler": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.21.0.tgz", + "integrity": "sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, "node_modules/react-remove-scroll": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.6.3.tgz", @@ -7465,6 +7986,21 @@ } } }, + "node_modules/react-use-measure": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/react-use-measure/-/react-use-measure-2.1.7.tgz", + "integrity": "sha512-KrvcAo13I/60HpwGO5jpW7E9DfusKyLPLvuHlUyP5zqnmAPhNc6qTRjUQrdTADl0lpPpDVU2/Gg51UlOGHXbdg==", + "license": "MIT", + "peerDependencies": { + "react": ">=16.13", + "react-dom": ">=16.13" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + } + }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", @@ -7557,6 +8093,15 @@ "node": ">=6" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/resolve": { "version": "1.22.10", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", @@ -7788,6 +8333,18 @@ "memory-pager": "^1.0.2" } }, + "node_modules/stats-gl": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/stats-gl/-/stats-gl-1.0.7.tgz", + "integrity": "sha512-vZI82CjefSxLC1bjw36z28v0+QE9rJKymGlXtfWu+ipW70ZEAwa4EbO4LxluAfLfpqiaAS04NzpYBRLDeAwYWQ==", + "license": "MIT" + }, + "node_modules/stats.js": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/stats.js/-/stats.js-0.17.0.tgz", + "integrity": "sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==", + "license": "MIT" + }, "node_modules/streamsearch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", @@ -7949,6 +8506,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/suspend-react": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/suspend-react/-/suspend-react-0.1.3.tgz", + "integrity": "sha512-aqldKgX9aZqpoDp3e8/BZ8Dm7x1pJl+qI3ZKxDN0i/IQTWUwBx/ManmlVJ3wowqbno6c2bmiIfs+Um6LbsjJyQ==", + "license": "MIT", + "peerDependencies": { + "react": ">=17.0" + } + }, "node_modules/svg-parser": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", @@ -8101,6 +8667,44 @@ "node": ">=0.8" } }, + "node_modules/three": { + "version": "0.158.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.158.0.tgz", + "integrity": "sha512-TALj4EOpdDPF1henk2Q+s17K61uEAAWQ7TJB68nr7FKxqwyDr3msOt5IWdbGm4TaWKjrtWS8DJJWe9JnvsWOhQ==", + "license": "MIT" + }, + "node_modules/three-mesh-bvh": { + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/three-mesh-bvh/-/three-mesh-bvh-0.6.8.tgz", + "integrity": "sha512-EGebF9DZx1S8+7OZYNNTT80GXJZVf+UYXD/HyTg/e2kR/ApofIFfUS4ZzIHNnUVIadpnLSzM4n96wX+l7GMbnQ==", + "license": "MIT", + "peerDependencies": { + "three": ">= 0.151.0" + } + }, + "node_modules/three-stdlib": { + "version": "2.36.0", + "resolved": "https://registry.npmjs.org/three-stdlib/-/three-stdlib-2.36.0.tgz", + "integrity": "sha512-kv0Byb++AXztEGsULgMAs8U2jgUdz6HPpAB/wDJnLiLlaWQX2APHhiTJIN7rqW+Of0eRgcp7jn05U1BsCP3xBA==", + "license": "MIT", + "dependencies": { + "@types/draco3d": "^1.4.0", + "@types/offscreencanvas": "^2019.6.4", + "@types/webxr": "^0.5.2", + "draco3d": "^1.4.1", + "fflate": "^0.6.9", + "potpack": "^1.0.1" + }, + "peerDependencies": { + "three": ">=0.128.0" + } + }, + "node_modules/three-stdlib/node_modules/fflate": { + "version": "0.6.10", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.6.10.tgz", + "integrity": "sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==", + "license": "MIT" + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -8134,6 +8738,36 @@ "node": ">=18" } }, + "node_modules/troika-three-text": { + "version": "0.47.2", + "resolved": "https://registry.npmjs.org/troika-three-text/-/troika-three-text-0.47.2.tgz", + "integrity": "sha512-qylT0F+U7xGs+/PEf3ujBdJMYWbn0Qci0kLqI5BJG2kW1wdg4T1XSxneypnF05DxFqJhEzuaOR9S2SjiyknMng==", + "license": "MIT", + "dependencies": { + "bidi-js": "^1.0.2", + "troika-three-utils": "^0.47.2", + "troika-worker-utils": "^0.47.2", + "webgl-sdf-generator": "1.1.1" + }, + "peerDependencies": { + "three": ">=0.125.0" + } + }, + "node_modules/troika-three-utils": { + "version": "0.47.2", + "resolved": "https://registry.npmjs.org/troika-three-utils/-/troika-three-utils-0.47.2.tgz", + "integrity": "sha512-/28plhCxfKtH7MSxEGx8e3b/OXU5A0xlwl+Sbdp0H8FXUHKZDoksduEKmjQayXYtxAyuUiCRunYIv/8Vi7aiyg==", + "license": "MIT", + "peerDependencies": { + "three": ">=0.125.0" + } + }, + "node_modules/troika-worker-utils": { + "version": "0.47.2", + "resolved": "https://registry.npmjs.org/troika-worker-utils/-/troika-worker-utils-0.47.2.tgz", + "integrity": "sha512-mzss4MeyzUkYBppn4x5cdAqrhBHFEuVmMMgLMTyFV23x6GvQMyo+/R5E5Lsbrt7WSt5RfvewjcwD1DChRTA9lA==", + "license": "MIT" + }, "node_modules/ts-interface-checker": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", @@ -8299,6 +8933,39 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "license": "MIT" }, + "node_modules/utility-types": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz", + "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/webgl-constants": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/webgl-constants/-/webgl-constants-1.1.1.tgz", + "integrity": "sha512-LkBXKjU5r9vAW7Gcu3T5u+5cvSvh5WwINdr0C+9jpzVB41cjQAP5ePArDtk/WHYdVj0GefCgM73BA7FlIiNtdg==" + }, + "node_modules/webgl-sdf-generator": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/webgl-sdf-generator/-/webgl-sdf-generator-1.1.1.tgz", + "integrity": "sha512-9Z0JcMTFxeE+b2x1LJTdnaT8rT8aEp7MVxkNwoycNmJWwPdzoXzMh0BjJSh/AEFP+KPYZUli814h8bJZFIZ2jA==", + "license": "MIT" + }, "node_modules/webidl-conversions": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", @@ -8504,6 +9171,23 @@ "funding": { "url": "https://github.com/sponsors/colinhacks" } + }, + "node_modules/zustand": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-3.7.2.tgz", + "integrity": "sha512-PIJDIZKtokhof+9+60cpockVOq05sJzHCriyvaLBmEJixseQ1a5Kdov6fWZfWOu5SK9c+FhH1jU0tntLxRJYMA==", + "license": "MIT", + "engines": { + "node": ">=12.7.0" + }, + "peerDependencies": { + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } } } } diff --git a/Client/package.json b/Client/package.json index a7eabe5..262b323 100644 --- a/Client/package.json +++ b/Client/package.json @@ -27,6 +27,8 @@ "@radix-ui/react-tabs": "^1.1.2", "@radix-ui/react-tooltip": "^1.1.8", "@react-oauth/google": "^0.12.1", + "@react-three/drei": "^9.88.7", + "@react-three/fiber": "^8.15.11", "@vercel/analytics": "^1.4.1", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", @@ -35,7 +37,7 @@ "framer-motion": "^12.5.0", "lucide-react": "^0.453.0", "mongoose": "^8.8.0", - "next": "14.2.16", + "next": "^14.2.16", "next-themes": "^0.4.6", "qr-scanner": "^1.4.2", "react": "^18", @@ -48,6 +50,7 @@ "swr": "^2.3.3", "tailwind-merge": "^2.5.4", "tailwindcss-animate": "^1.0.7", + "three": "^0.158.0", "zod": "^3.23.8" }, "devDependencies": { diff --git a/Client/public/images/1.png b/Client/public/images/1.png new file mode 100644 index 0000000..001937e Binary files /dev/null and b/Client/public/images/1.png differ diff --git a/Client/public/images/2.png b/Client/public/images/2.png new file mode 100644 index 0000000..830d018 Binary files /dev/null and b/Client/public/images/2.png differ diff --git a/Client/public/images/3.png b/Client/public/images/3.png new file mode 100644 index 0000000..aa3e322 Binary files /dev/null and b/Client/public/images/3.png differ diff --git a/Client/public/images/333478817_933094361461009_7782895981002195868_n.jpg b/Client/public/images/333478817_933094361461009_7782895981002195868_n.jpg new file mode 100644 index 0000000..a95a178 Binary files /dev/null and b/Client/public/images/333478817_933094361461009_7782895981002195868_n.jpg differ diff --git a/Client/public/images/4.png b/Client/public/images/4.png new file mode 100644 index 0000000..195b704 Binary files /dev/null and b/Client/public/images/4.png differ diff --git a/Client/public/images/404.png b/Client/public/images/404.png new file mode 100644 index 0000000..390fcba Binary files /dev/null and b/Client/public/images/404.png differ diff --git a/Client/public/images/5.png b/Client/public/images/5.png new file mode 100644 index 0000000..70a0a29 Binary files /dev/null and b/Client/public/images/5.png differ diff --git a/Client/public/images/6.png b/Client/public/images/6.png new file mode 100644 index 0000000..560029e Binary files /dev/null and b/Client/public/images/6.png differ diff --git a/Client/public/images/7.png b/Client/public/images/7.png new file mode 100644 index 0000000..ba14db3 Binary files /dev/null and b/Client/public/images/7.png differ diff --git a/Client/public/images/8.png b/Client/public/images/8.png new file mode 100644 index 0000000..01dcc07 Binary files /dev/null and b/Client/public/images/8.png differ diff --git a/Client/public/images/College.png b/Client/public/images/College.png new file mode 100644 index 0000000..d6bdee5 Binary files /dev/null and b/Client/public/images/College.png differ diff --git a/Client/public/images/Date.png b/Client/public/images/Date.png new file mode 100644 index 0000000..823ea4b Binary files /dev/null and b/Client/public/images/Date.png differ diff --git a/Client/public/images/Default.png b/Client/public/images/Default.png new file mode 100644 index 0000000..9655609 Binary files /dev/null and b/Client/public/images/Default.png differ diff --git a/Client/public/images/Finding.png b/Client/public/images/Finding.png new file mode 100644 index 0000000..f645806 Binary files /dev/null and b/Client/public/images/Finding.png differ diff --git a/Client/public/images/Line 4.png b/Client/public/images/Line 4.png new file mode 100644 index 0000000..36b7b4b Binary files /dev/null and b/Client/public/images/Line 4.png differ diff --git a/Client/public/images/Logo.png b/Client/public/images/Logo.png new file mode 100644 index 0000000..49c82eb Binary files /dev/null and b/Client/public/images/Logo.png differ diff --git a/Client/public/images/Vector.png b/Client/public/images/Vector.png new file mode 100644 index 0000000..dcd9960 Binary files /dev/null and b/Client/public/images/Vector.png differ diff --git a/Client/public/images/aboutUs.png b/Client/public/images/aboutUs.png new file mode 100644 index 0000000..be0d9df Binary files /dev/null and b/Client/public/images/aboutUs.png differ diff --git a/Client/public/images/background.png b/Client/public/images/background.png new file mode 100644 index 0000000..a3ac905 Binary files /dev/null and b/Client/public/images/background.png differ diff --git a/Client/public/images/bg.png b/Client/public/images/bg.png new file mode 100644 index 0000000..7c7c090 Binary files /dev/null and b/Client/public/images/bg.png differ diff --git a/Client/public/images/bg.webp b/Client/public/images/bg.webp new file mode 100644 index 0000000..385f882 Binary files /dev/null and b/Client/public/images/bg.webp differ diff --git a/Client/public/images/calendar_month.svg b/Client/public/images/calendar_month.svg new file mode 100644 index 0000000..1204978 --- /dev/null +++ b/Client/public/images/calendar_month.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/Client/public/images/community.png b/Client/public/images/community.png new file mode 100644 index 0000000..b3a7605 Binary files /dev/null and b/Client/public/images/community.png differ diff --git a/Client/public/images/contact.png b/Client/public/images/contact.png new file mode 100644 index 0000000..1aabc39 Binary files /dev/null and b/Client/public/images/contact.png differ diff --git a/Client/public/images/disco.png b/Client/public/images/disco.png new file mode 100644 index 0000000..591851f Binary files /dev/null and b/Client/public/images/disco.png differ diff --git a/Client/public/images/eventimage.jpg b/Client/public/images/eventimage.jpg new file mode 100644 index 0000000..ea58a83 Binary files /dev/null and b/Client/public/images/eventimage.jpg differ diff --git a/Client/public/images/heart.png b/Client/public/images/heart.png new file mode 100644 index 0000000..f9bc723 Binary files /dev/null and b/Client/public/images/heart.png differ diff --git a/Client/public/images/influencer.png b/Client/public/images/influencer.png new file mode 100644 index 0000000..ba91923 Binary files /dev/null and b/Client/public/images/influencer.png differ diff --git a/Client/public/images/location.png b/Client/public/images/location.png new file mode 100644 index 0000000..c6b235e Binary files /dev/null and b/Client/public/images/location.png differ diff --git a/Client/public/images/location_on.svg b/Client/public/images/location_on.svg new file mode 100644 index 0000000..a84a5fd --- /dev/null +++ b/Client/public/images/location_on.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/Client/public/images/new_bg.png b/Client/public/images/new_bg.png new file mode 100644 index 0000000..160036f Binary files /dev/null and b/Client/public/images/new_bg.png differ diff --git a/Client/public/images/smallDefault.png b/Client/public/images/smallDefault.png new file mode 100644 index 0000000..1f4307d Binary files /dev/null and b/Client/public/images/smallDefault.png differ diff --git a/Client/public/images/succesfull.png b/Client/public/images/succesfull.png new file mode 100644 index 0000000..1b2d75e Binary files /dev/null and b/Client/public/images/succesfull.png differ diff --git a/Client/public/images/talkeyLogo.png b/Client/public/images/talkeyLogo.png new file mode 100644 index 0000000..e94f1ec Binary files /dev/null and b/Client/public/images/talkeyLogo.png differ diff --git a/Client/public/images/trophy.png b/Client/public/images/trophy.png new file mode 100644 index 0000000..c9cb8db Binary files /dev/null and b/Client/public/images/trophy.png differ diff --git a/Client/public/images/verify.png b/Client/public/images/verify.png new file mode 100644 index 0000000..ef18fcc Binary files /dev/null and b/Client/public/images/verify.png differ diff --git a/Client/public/libro_arcano_animado.glb b/Client/public/libro_arcano_animado.glb new file mode 100644 index 0000000..bcb073f Binary files /dev/null and b/Client/public/libro_arcano_animado.glb differ diff --git a/Client/src/app/layout.tsx b/Client/src/app/layout.tsx index f4fe2e2..38d52e1 100644 --- a/Client/src/app/layout.tsx +++ b/Client/src/app/layout.tsx @@ -29,8 +29,8 @@ export const metadata: Metadata = { keywords: ["talkeys", "talkeys.xyz"], authors: [ { - name: "Himanish Puri", - url: "https://himanishpuri.tech", + name: "Aaryan Beniwal", + url: "www.aaryan.codes", }, //TODO add all the authors ], @@ -46,34 +46,37 @@ export const metadata: Metadata = { }; export default function RootLayout({ - children, + children, }: Readonly<{ - children: React.ReactNode; + children: React.ReactNode; }>) { - return ( - - - - - - {children} - - - - - - - ); + return ( + + + + + + {children} + + + + + + + ); } diff --git a/Client/src/app/page.tsx b/Client/src/app/page.tsx index 0ca5109..f641cc1 100644 --- a/Client/src/app/page.tsx +++ b/Client/src/app/page.tsx @@ -67,9 +67,10 @@ export default function Home() { /> )} - + + ); diff --git a/Client/src/components/ArcaneBook.tsx b/Client/src/components/ArcaneBook.tsx new file mode 100644 index 0000000..a68523e --- /dev/null +++ b/Client/src/components/ArcaneBook.tsx @@ -0,0 +1,57 @@ +"use client"; + +import React, { useRef, useEffect } from 'react'; +import { Canvas } from '@react-three/fiber'; +import { useGLTF, useAnimations, OrbitControls } from '@react-three/drei'; +import { Suspense } from 'react'; + +// This component loads and displays the 3D model +function Model(props: any) { + const group = useRef(); + const { scene, animations } = useGLTF('/libro_arcano_animado.glb'); + const { actions } = useAnimations(animations, scene); + + useEffect(() => { + const animationName = Object.keys(actions)[0]; + if (animationName) { + actions[animationName]?.play(); + } + }, [actions]); + + return ; +} + +// This is the main component that sets up the 3D scene +export default function ArcaneBook() { + return ( +
+ + + + + + {/* CHANGE 2: Increased scale and centered the model at the origin. */} + {/* The model is now bigger and positioned at [0, y, 0] to be the scene's center. */} + + + + + +
+ ); +} + +useGLTF.preload('/libro_arcano_animado.glb'); \ No newline at end of file diff --git a/Client/src/components/Hero.tsx b/Client/src/components/Hero.tsx index 0613dea..2f65a96 100644 --- a/Client/src/components/Hero.tsx +++ b/Client/src/components/Hero.tsx @@ -1,88 +1,52 @@ -import Image from "next/image"; +"use client"; + import Link from "next/link"; import { Button } from "@/components/ui/button"; -import bg from "@/public/images/Default.png"; -import smallBg from "@/public/images/smallDefault.png"; +import ArcaneBook from "./ArcaneBook"; // Import our new 3D component +import { Suspense } from 'react'; const Hero = () => { - return ( -
- {/* Mobile hero (no fixed height, no letterboxing) */} -
- {/* Image scales down to fit, keeps aspect ratio, no crop */} - Events background - - {/* Overlay content centered */} -
-
-

- Explore shows and events with ease. -

-

- Connect with fellow enthusiasts in our chat rooms. Share - experiences and ideas anonymously. -

-
- - - - - - -
-
-
-
+ return ( +
+
+ + {/* Left Column: 3D Model */} +
+ Loading 3D Model...
}> + + +
- {/* Desktop hero (keeps cover + fixed height) */} -
- Events background -
-
-
-

- Explore shows and events with ease. -

-

- Connect with fellow enthusiasts in our chat rooms. Share - experiences and ideas anonymously. -

-
- - - - - - + {/* Right Column: Text Content */} +
+

+ Unlock a New Chapter in Education. +

+ +

+ Connect with fellow enthusiasts in our chat rooms. Share + experiences and ideas anonymously. +

+ +
+ + + + + + +
+
-
-
-
- ); + ); }; export default Hero; \ No newline at end of file diff --git a/Client/src/components/PreviousCollabs.tsx b/Client/src/components/PreviousCollabs.tsx index f98a038..53453d8 100644 --- a/Client/src/components/PreviousCollabs.tsx +++ b/Client/src/components/PreviousCollabs.tsx @@ -5,162 +5,159 @@ import "swiper/css"; import "swiper/css/autoplay"; import Image from "next/image"; -import brocode from "@/public/images/1.png"; -import gamebox from "@/public/images/7.png"; -import stripes from "@/public/images/3.png"; -import bragfit from "@/public/images/4.png"; -import cosmo from "@/public/images/5.png"; -import handa_mobile_care from "@/public/images/2.png"; -import mentor_labs from "@/public/images/6.png"; -import olivia from "@/public/images/8.png"; -import la_club from "@/public/images/333478817_933094361461009_7782895981002195868_n.jpg"; - -const sponsors = [ - { id: 1, name: "Bro Code.", src: brocode, shape: "rectangle" }, - { id: 2, name: "Immersive Gamebox", src: gamebox, shape: "rectangle" }, - { id: 3, name: "Stripes", src: stripes, shape: "rectangle" }, - { id: 4, name: "Brag Fit", src: bragfit, shape: "rectangle" }, - { id: 5, name: "CosmoGen Students Society", src: cosmo, shape: "rectangle" }, - { - id: 8, - name: "Handa Mobile Care", - src: handa_mobile_care, - shape: "rectangle", - }, - { id: 9, name: "Mentor Labs", src: mentor_labs, shape: "rectangle" }, - { id: 10, name: "Olivia", src: olivia, shape: "rectangle" }, - { id: 11, name: "La Club", src: la_club, shape: "rectangle" }, +// 1. Updated data structure for creators with name, image placeholder, and description. +const creators = [ + { + id: 1, + name: "Alice Johnson", + imageUrl: "https://placehold.co/180x180/a78bfa/ffffff?text=AJ", + description: "Expert in Web Development with over 10 years of experience.", + }, + { + id: 2, + name: "Bob Williams", + imageUrl: "https://placehold.co/180x180/f472b6/ffffff?text=BW", + description: "Award-winning graphic designer and UI/UX specialist.", + }, + { + id: 3, + name: "Charlie Brown", + imageUrl: "https://placehold.co/180x180/60a5fa/ffffff?text=CB", + description: "Data scientist passionate about machine learning and AI.", + }, + { + id: 4, + name: "Diana Miller", + imageUrl: "https://placehold.co/180x180/34d399/ffffff?text=DM", + description: "Digital marketing guru who helps brands grow online.", + }, + { + id: 5, + name: "Ethan Davis", + imageUrl: "https://placehold.co/180x180/fbbf24/ffffff?text=ED", + description: "Full-stack engineer and open-source contributor.", + }, + { + id: 6, + name: "Fiona Garcia", + imageUrl: "https://placehold.co/180x180/f87171/ffffff?text=FG", + description: "Mobile app developer for both iOS and Android platforms.", + }, ]; -export default function SponsorCarousel() { - return ( -
-
-
-

- Previous Collaborations -

-
- -
- - {[...sponsors, ...sponsors].map((sponsor, index) => ( - -
-
-
-
-
- {`${sponsor.name} -
-
-
-
-

- {sponsor.name} -

-
-
- ))} -
-
- - -
- ); -} + @keyframes shimmer { + 0% { + background-position: 200% 0; + } + 100% { + background-position: -200% 0; + } + } + `} +
+ ); +} \ No newline at end of file diff --git a/Client/src/components/theme-provider.tsx b/Client/src/components/theme-provider.tsx new file mode 100644 index 0000000..9195563 --- /dev/null +++ b/Client/src/components/theme-provider.tsx @@ -0,0 +1,11 @@ +// src/components/theme-provider.tsx + +"use client"; + +import * as React from "react"; +import { ThemeProvider as NextThemesProvider } from "next-themes"; +import { type ThemeProviderProps } from "next-themes/dist/types"; + +export function ThemeProvider({ children, ...props }: ThemeProviderProps) { + return {children}; +} \ No newline at end of file diff --git a/Client/src/public/libro_arcano_animado.glb b/Client/src/public/libro_arcano_animado.glb new file mode 100644 index 0000000..bcb073f Binary files /dev/null and b/Client/src/public/libro_arcano_animado.glb differ diff --git a/README.md b/README.md index e4fee88..8e27be7 100644 --- a/README.md +++ b/README.md @@ -1,234 +1 @@ ---- - -## 📘 **Event API Documentation** - -### **Authentication Required** - -Routes below `router.use(auth.verifyToken);` require a valid JWT token. - ---- - -### Public Endpoints - -#### `GET /getEvents` - -**Description**: Fetch all events with optional filters, pagination, and sorting. -**Query Parameters**: - -* `page` (default: 1) -* `limit` (default: 10) -* `sortBy` (e.g. startDate) -* `order` (asc | desc) -* `mode` (e.g. online/offline) -* `category` (e.g. tech, music) -* `visibility` (public/private) -* `search` (searches eventName, description, category) -* `minPrice`, `maxPrice` (filter by ticket price range) - -**Response**: - -```json -{ - "status": "success", - "data": { - "events": [...], - "pagination": { - "total": 50, - "page": 1, - "pages": 5, - "limit": 10 - } - } -} -``` - ---- - -#### `GET /getEventById/:id` - -**Description**: Fetch a single event by its ID. -**Response**: - -```json -{ - "status": "success", - "data": { - "_id": "...", - "eventName": "...", - "availableSeats": 30, - ... - } -} -``` - ---- - - - -### 🔒 Authenticated Endpoints (require JWT) - -#### `GET /likeEvent/:id` - -**Description**: Like an event by its ID. -**Response**: `200 OK` on success. - ---- - -#### `GET /unlikeEvent/:id` - -**Description**: Unlike an event. -**Response**: `200 OK` on success. - ---- - -#### `GET /getAllLikedEvents` - -**Description**: Fetch list of liked event IDs for the logged-in user. -**Response**: - -```json -{ - "status": "success", - "likedEvents": ["eventId1", "eventId2"] -} -``` - ---- - -## 🛠️ **Dashboard Endpoints (Authenticated)** - ---- - -#### `POST /dashboard/create-event` - -**Description**: Create a new event. -**Request Body**: -```json -{ - "isTeamEvent": false, - "isPaid": true, - "name": "AI Hackathon 2025", - "category": "tech", - "ticketPrice": 100, - "mode": "offline", - "location": "Main Hall", - "duration": "3h", - "slots": 100, - "visibility": "public", - "startDate": "2025-07-20T10:00:00.000Z", - "startTime": "10:00 AM", - "endRegistrationDate": "2025-07-19T23:59:59.000Z", - "totalSeats": 100, - "prizes": "Cash rewards and goodies", - "eventDescription": "A 3-hour coding challenge focused on AI solutions.", - "organizerContact": "9876543210" -} -``` - -**Response**: -```json -{ - "message": "Event created", - "event": { - "_id": "...", - "name": "AI Hackathon 2025" - } -} -``` - ---- - -#### `PUT /dashboard/edit-event/:id` - -**Description**: Edit an existing event. -**Request Body**: -```json -{ - "name": "AI Hackathon 2025 - Updated", - "ticketPrice": 150, - "location": "Auditorium B", - "prizes": "Updated cash rewards and swag", - "startTime": "11:00 AM" -} -``` - -**Response**: -```json -{ - "message": "Event updated successfully", - "event": { - "_id": "eventId", - "name": "AI Hackathon 2025 - Updated" - } -} -``` - ---- - -#### `GET /dashboard/event-analytics/:id` - -**Description**: Get analytics for a specific event. -**Response**: -```json -{ - "totalRegistrations": 2, - "approvedCount": 1 -} -``` - ---- - -#### `GET /dashboard/export-participants/:id` - -**Description**: Export participant data for an event as CSV. -**Response**: -``` -"name","email","phone","status" -"Test User","testuser@example.com","9999999999","active" -``` - ---- - -#### `GET /dashboard/participants/:id` - -**Description**: Get list of participants for an event. -**Response**: -```json -{ - "participants": [ - { - "_id": "passId", - "userId": { - "name": "Test User", - "email": "testuser@example.com", - "phoneNumber": "9999999999" - }, - "status": "active", - "passStatus": "active" - } - ] -} -``` - ---- - -#### `PUT /dashboard/approve-participant/:id` - -**Description**: Approve a pending participant for an event. -**Response**: -```json -{ - "message": "Participant approved", - "pass": { - "_id": "passId", - "userId": "userId", - "eventId": { - "_id": "eventId", - "name": "Hackathon 2025" - }, - "status": "active", - "passStatus": "active" - } -} -``` - +text diff --git a/Server/src/controllers/authentication.js b/Server/src/controllers/authentication.js index f5964e6..ef4d30a 100644 --- a/Server/src/controllers/authentication.js +++ b/Server/src/controllers/authentication.js @@ -37,7 +37,7 @@ exports.login = async (req, res) => { const accessToken = jwt.sign( { email: payload.email }, secret, - { expiresIn: '24h' } + { expiresIn: '7d' } ); user = new User({ @@ -53,7 +53,7 @@ exports.login = async (req, res) => { const accessToken = jwt.sign( { email: payload.email }, secret, - { expiresIn: '24h' } + { expiresIn: '7d' } ); const refreshToken = jwt.sign( diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 412c129..0000000 --- a/package-lock.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "talkeys_sangeet", - "lockfileVersion": 3, - "requires": true, - "packages": {} -}