From 38bbbbf169458426f27244c6b1e32d04f8bd02d7 Mon Sep 17 00:00:00 2001 From: Tanush Patel Date: Thu, 2 Jul 2026 00:24:21 +0530 Subject: [PATCH 0001/1390] Rename page component to LoginPage --- Client/src/app/login/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/src/app/login/page.tsx b/Client/src/app/login/page.tsx index cffc88e8..74c4d2b6 100644 --- a/Client/src/app/login/page.tsx +++ b/Client/src/app/login/page.tsx @@ -1,7 +1,7 @@ -const page = () => { +const LoginPage = () => { return (
to yahi hai wo route
) } -export default page \ No newline at end of file +export default LoginPage From fba115562387557b8cb9771e4bb105faaea7e249 Mon Sep 17 00:00:00 2001 From: Tanush Patel Date: Thu, 2 Jul 2026 00:25:07 +0530 Subject: [PATCH 0002/1390] Rename page component to RegisterPage --- Client/src/app/register/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/src/app/register/page.tsx b/Client/src/app/register/page.tsx index 9c1356c4..0d55f6fd 100644 --- a/Client/src/app/register/page.tsx +++ b/Client/src/app/register/page.tsx @@ -1,7 +1,7 @@ -const page = () => { +const RegisterPage = () => { return (
Regiter
) } -export default page \ No newline at end of file +export default RegisterPage From b493e053fa5410840bf067bb0c9e105d342fe442 Mon Sep 17 00:00:00 2001 From: VedantGupta19402 Date: Thu, 2 Jul 2026 04:07:45 +0530 Subject: [PATCH 0003/1390] register and login --- Client/package-lock.json | 236 ++++++- Client/package.json | 9 +- Client/src/app/globals.css | 2 +- Client/src/app/login/page.tsx | 585 +++++++++++++++++- .../register/components/BackgroundEffects.tsx | 38 ++ Client/src/app/register/components/Button.tsx | 58 ++ .../register/components/FloatingWorkspace.tsx | 253 ++++++++ .../app/register/components/HeroSection.tsx | 153 +++++ .../app/register/components/RegisterCard.tsx | 87 +++ .../app/register/components/RegisterForm.tsx | 176 ++++++ Client/src/app/register/page.tsx | 386 +++++++++++- Client/src/app/register/utils/utils.ts | 6 + 12 files changed, 1974 insertions(+), 15 deletions(-) create mode 100644 Client/src/app/register/components/BackgroundEffects.tsx create mode 100644 Client/src/app/register/components/Button.tsx create mode 100644 Client/src/app/register/components/FloatingWorkspace.tsx create mode 100644 Client/src/app/register/components/HeroSection.tsx create mode 100644 Client/src/app/register/components/RegisterCard.tsx create mode 100644 Client/src/app/register/components/RegisterForm.tsx create mode 100644 Client/src/app/register/utils/utils.ts diff --git a/Client/package-lock.json b/Client/package-lock.json index 7770c65f..6af49752 100644 --- a/Client/package-lock.json +++ b/Client/package-lock.json @@ -8,9 +8,16 @@ "name": "client", "version": "0.1.0", "dependencies": { + "@base-ui/react": "^1.6.0", + "class-variance-authority": "^0.7.1", + "framer-motion": "^12.42.2", + "lucide-react": "^1.23.0", "next": "16.2.9", "react": "19.2.4", - "react-dom": "19.2.4" + "react-dom": "19.2.4", + "react-icons": "^5.7.0", + "tailwind-merge": "^3.6.0", + "tailwind-scrollbar-hide": "^4.0.0" }, "devDependencies": { "@tailwindcss/postcss": "^4", @@ -229,6 +236,15 @@ "node": ">=6.0.0" } }, + "node_modules/@babel/runtime": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz", + "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/template": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", @@ -277,6 +293,66 @@ "node": ">=6.9.0" } }, + "node_modules/@base-ui/react": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@base-ui/react/-/react-1.6.0.tgz", + "integrity": "sha512-/jzjTWJYXhRFO45Bev9lc3cHbmjzCMpUqbMZ2AgKy/z25mY9B6shGSNcXcjQar9n5doM0KYW1W8fcFv2jZBuMw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.29.2", + "@base-ui/utils": "0.3.1", + "@floating-ui/react-dom": "^2.1.8", + "@floating-ui/utils": "^0.2.11", + "use-sync-external-store": "^1.6.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@date-fns/tz": "^1.2.0", + "@types/react": "^17 || ^18 || ^19", + "date-fns": "^4.0.0", + "react": "^17 || ^18 || ^19", + "react-dom": "^17 || ^18 || ^19" + }, + "peerDependenciesMeta": { + "@date-fns/tz": { + "optional": true + }, + "@types/react": { + "optional": true + }, + "date-fns": { + "optional": true + } + } + }, + "node_modules/@base-ui/utils": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@base-ui/utils/-/utils-0.3.1.tgz", + "integrity": "sha512-gFFiltORVmW/N6IILTGxizP3PBpVpysqML1ALY5Vk0mH+7faVkCknOU31goYHN5Aoek2dkjxva1XOD2Ce9WuIg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.29.2", + "@floating-ui/utils": "^0.2.11", + "reselect": "^5.2.0", + "use-sync-external-store": "^1.6.0" + }, + "peerDependencies": { + "@types/react": "^17 || ^18 || ^19", + "react": "^17 || ^18 || ^19", + "react-dom": "^17 || ^18 || ^19" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/@emnapi/core": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", @@ -454,6 +530,44 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@floating-ui/core": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.5.tgz", + "integrity": "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==", + "license": "MIT", + "dependencies": { + "@floating-ui/utils": "^0.2.11" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.6.tgz", + "integrity": "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==", + "license": "MIT", + "dependencies": { + "@floating-ui/core": "^1.7.5", + "@floating-ui/utils": "^0.2.11" + } + }, + "node_modules/@floating-ui/react-dom": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.8.tgz", + "integrity": "sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==", + "license": "MIT", + "dependencies": { + "@floating-ui/dom": "^1.7.6" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.11.tgz", + "integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==", + "license": "MIT" + }, "node_modules/@humanfs/core": { "version": "0.19.2", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", @@ -1580,7 +1694,7 @@ "version": "19.2.17", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.17.tgz", "integrity": "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "csstype": "^3.2.2" @@ -2685,12 +2799,33 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/class-variance-authority": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", + "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==", + "license": "Apache-2.0", + "dependencies": { + "clsx": "^2.1.1" + }, + "funding": { + "url": "https://polar.sh/cva" + } + }, "node_modules/client-only": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", "license": "MIT" }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -2744,7 +2879,7 @@ "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "dev": true, + "devOptional": true, "license": "MIT" }, "node_modules/damerau-levenshtein": { @@ -3704,6 +3839,33 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/framer-motion": { + "version": "12.42.2", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.42.2.tgz", + "integrity": "sha512-5XY9luDiu0oHfHBjpDthFMh0ES+122w6p/papSJBweMkO8Sn+PW2QaEgRblQBpWFnuvZS5qvarpt/hO2pjGmnw==", + "license": "MIT", + "dependencies": { + "motion-dom": "^12.42.2", + "motion-utils": "^12.39.0", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "@emotion/is-prop-valid": "*", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -4981,6 +5143,15 @@ "yallist": "^3.0.2" } }, + "node_modules/lucide-react": { + "version": "1.23.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.23.0.tgz", + "integrity": "sha512-38BpJcD0JhFosxHApP/BYsBetLpQFRoTRzEzstM/XCc3jsAG7wqaY1lgVwxiUe3xqYE+lNxo2PkCmYwXWrwwIw==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", @@ -5048,6 +5219,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/motion-dom": { + "version": "12.42.2", + "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.42.2.tgz", + "integrity": "sha512-5gIMWLp/PycBtJRJWRgjxke5n8dlvkSn2DrYW+tr3XcqAZY1xZh6BJyooJXCM8wdfM7wfMjkBJNLge1CKPUIRA==", + "license": "MIT", + "dependencies": { + "motion-utils": "^12.39.0" + } + }, + "node_modules/motion-utils": { + "version": "12.39.0", + "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.39.0.tgz", + "integrity": "sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==", + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -5569,6 +5755,15 @@ "react": "^19.2.4" } }, + "node_modules/react-icons": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.7.0.tgz", + "integrity": "sha512-LBLy340Rzqy6+/yVhZKT3B/QpP1BZaesGqasf09HPOBzRarcDIFH0WwXlXQfE7q7ipxK4MSiC5DIBWURCny6fw==", + "license": "MIT", + "peerDependencies": { + "react": "*" + } + }, "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", @@ -5620,6 +5815,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/reselect": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.2.0.tgz", + "integrity": "sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==", + "license": "MIT" + }, "node_modules/resolve": { "version": "2.0.0-next.7", "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.7.tgz", @@ -6192,11 +6393,29 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/tailwind-merge": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.6.0.tgz", + "integrity": "sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/dcastil" + } + }, + "node_modules/tailwind-scrollbar-hide": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/tailwind-scrollbar-hide/-/tailwind-scrollbar-hide-4.0.0.tgz", + "integrity": "sha512-gobtvVcThB2Dxhy0EeYSS1RKQJ5baDFkamkhwBvzvevwX6L4XQfpZ3me9s25Ss1ecFVT5jPYJ50n+7xTBJG9WQ==", + "license": "MIT", + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >= 4.0.0 || >= 4.0.0-beta.8 || >= 4.0.0-alpha.20" + } + }, "node_modules/tailwindcss": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.2.tgz", "integrity": "sha512-WtctNNSH8A9jlMIqxzuYumOHU5uGZyRv0Q5svQl+oEPy5w84YpBxdb7MdqyiSPQge5jTJ6zFQLq0PFygdccSBA==", - "dev": true, "license": "MIT" }, "node_modules/tapable": { @@ -6553,6 +6772,15 @@ "punycode": "^2.1.0" } }, + "node_modules/use-sync-external-store": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz", + "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", diff --git a/Client/package.json b/Client/package.json index 2a050fa0..144c1de2 100644 --- a/Client/package.json +++ b/Client/package.json @@ -9,9 +9,16 @@ "lint": "eslint" }, "dependencies": { + "@base-ui/react": "^1.6.0", + "class-variance-authority": "^0.7.1", + "framer-motion": "^12.42.2", + "lucide-react": "^1.23.0", "next": "16.2.9", "react": "19.2.4", - "react-dom": "19.2.4" + "react-dom": "19.2.4", + "react-icons": "^5.7.0", + "tailwind-merge": "^3.6.0", + "tailwind-scrollbar-hide": "^4.0.0" }, "devDependencies": { "@tailwindcss/postcss": "^4", diff --git a/Client/src/app/globals.css b/Client/src/app/globals.css index a461c505..f1d8c73c 100644 --- a/Client/src/app/globals.css +++ b/Client/src/app/globals.css @@ -1 +1 @@ -@import "tailwindcss"; \ No newline at end of file +@import "tailwindcss"; diff --git a/Client/src/app/login/page.tsx b/Client/src/app/login/page.tsx index 74c4d2b6..267c6cb2 100644 --- a/Client/src/app/login/page.tsx +++ b/Client/src/app/login/page.tsx @@ -1,7 +1,584 @@ +"use client"; +import { motion } from "framer-motion"; + const LoginPage = () => { + const repos = [ + { + name: "bytebin-core", + tech: "Next.js", + size: "1.2 MB", + }, + { + name: "bytebin-api", + tech: "TypeScript", + size: "650 KB", + }, + { + name: "bytebin-ui", + tech: "React", + size: "840 KB", + }, + ]; + return ( -
to yahi hai wo route
- ) -} +
+ + {/* Background Blobs */} +
+ +
+ +
+ +
+ +
+ + {/* Main Container */} +
+ + {/* Side Gradient */} +
+ +
+ + {/* ===================================================== */} + {/* LEFT SECTION */} + {/* ===================================================== */} + + + + {/* Logo */} +
+ +
+ B +
+ +
+

+ ByteBin +

+ +

+ Developer Cloud +

+
+ +
+ + {/* Hero Text */} +
+ +

+ + Your code. + +
+ + Deployed + +
+ + + everywhere. + + +

+ +

+ ByteBin helps you build, ship and scale modern applications + with instant deployments and global infrastructure. +

+ +
+ + {/* ===================================================== */} + {/* Deploy Card */} + {/* ===================================================== */} + + + +
+ + + Deployments + + +
+ +
+ +

+ api.bytebin.com +

+ +
+ + + Free + + + + Active + + +
+ + + + {/* ===================================================== */} + {/* Repository Card */} + {/* ===================================================== */} + + + +
+ +

+ Repositories +

+ + + +
+ + {/* Table Header */} +
+ + Repo + + Tech + + Size + +
+ + {/* Repo Rows */} +
+ + {repos.map((repo) => ( +
+ +
+ +
+ + + {repo.name} + + +
+ + + {repo.tech} + + + + {repo.size} + + +
+ ))} + +
+ + + + {/* CONTINUE IN PART 2 */} + {/* ===================================================== */} + {/* Commit Graph Card */} + {/* ===================================================== */} + + + +
+ +
+ +

+ Commit activity +

+ +

+ +47% +

+ +
+ +
+ ↑ +
+ +
+ + {/* Bars */} + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + + {/* ===================================================== */} + {/* Recent Activity Card */} + {/* ===================================================== */} + + + +
+ +

+ Recent activity +

+ +
+ +
+ +
+ +
+ +
+ + + Deployed to production + + +
+ +
+ +
+ + + Preview build generated + + +
+ +
+ +
+ + + Edge cache refreshed + + +
+ +
+ +
+ + + New commit detected + + +
+ +
+ + + + {/* ===================================================== */} + {/* Floating Terminal */} + {/* ===================================================== */} + + + + {/* Top Bar */} + +
+ +
+ +
+ +
+ +
+ + {/* Body */} + +
+ +

$ pnpm create bytebin@latest

+ +

+ ✓ Installing dependencies +

+ +

+ ✓ Starting edge runtime +

+ +

+ ✓ Deploying globally +

+ +

+ https://app.bytebin.dev +

+ +
+ + + + {/* ===================================================== */} + {/* Explore Button */} + {/* ===================================================== */} + + + Explore Platform + + + + + {/* ===================================================== */} + {/* RIGHT SECTION STARTS HERE */} + {/* ===================================================== */} + {/* ===================================================== */} + {/* RIGHT SECTION */} + {/* ===================================================== */} + + + +
+ + {/* Welcome */} +
+ +
+ 👋 Welcome back +
+ +

+ Sign in +

+ +

+ Access your deployments, repositories and developer tools. +

+ +
+ + {/* ===================================================== */} + {/* Github Button */} + {/* ===================================================== */} + + + +
+ GH +
+ + Continue with GitHub + +
+ + {/* ===================================================== */} + {/* Divider */} + {/* ===================================================== */} + +
+ +
+ + + or continue with email + + +
+ +
+ + {/* ===================================================== */} + {/* Email */} + {/* ===================================================== */} + +
+ + + + + +
+ + {/* ===================================================== */} + {/* Password */} + {/* ===================================================== */} + +
+ +
+ + + + + +
+ + + +
+ + {/* ===================================================== */} + {/* Remember Me */} + {/* ===================================================== */} + +
+ + + + + Secure session + + +
+ + {/* ===================================================== */} + {/* Sign In Button */} + {/* ===================================================== */} + + + Sign In + + + {/* ===================================================== */} + {/* Footer */} + {/* ===================================================== */} + +
+ +

+ + Don't have an account? + + + +

+ +

+ By continuing, you agree to our Terms of Service and + Privacy Policy. +

+ +
+ +
+ + + +
+ +
+ +
+ ); +}; -export default LoginPage +export default LoginPage; \ No newline at end of file diff --git a/Client/src/app/register/components/BackgroundEffects.tsx b/Client/src/app/register/components/BackgroundEffects.tsx new file mode 100644 index 00000000..954b0471 --- /dev/null +++ b/Client/src/app/register/components/BackgroundEffects.tsx @@ -0,0 +1,38 @@ +const BackgroundEffects = () => { + return ( + <> + {/* Background */} +
+ + {/* Top Left Peach Glow */} +
+ + {/* Bottom Right Lavender Glow */} +
+ + {/* Center Glow */} +
+ + {/* Decorative Grid */} +
+ {Array.from({ length: 16 }).map((_, index) => ( + + ))} +
+ + {/* Left Vertical Line */} +
+ + {/* Right Vertical Line */} +
+ + {/* Bottom Fade */} +
+ + ); +}; + +export default BackgroundEffects; \ No newline at end of file diff --git a/Client/src/app/register/components/Button.tsx b/Client/src/app/register/components/Button.tsx new file mode 100644 index 00000000..d2907a47 --- /dev/null +++ b/Client/src/app/register/components/Button.tsx @@ -0,0 +1,58 @@ +import { Button as ButtonPrimitive } from '@base-ui/react/button' +import { cva, type VariantProps } from 'class-variance-authority' + +import { cn } from '../utils/utils' + +const buttonVariants = cva( + "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + { + variants: { + variant: { + default: 'bg-primary text-primary-foreground [a]:hover:bg-primary/80', + outline: + 'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50', + secondary: + 'bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground', + ghost: + 'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50', + destructive: + 'bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40', + link: 'text-primary underline-offset-4 hover:underline', + }, + size: { + default: + 'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2', + xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3", + sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5", + lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2', + icon: 'size-8', + 'icon-xs': + "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3", + 'icon-sm': + 'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg', + 'icon-lg': 'size-9', + }, + }, + defaultVariants: { + variant: 'default', + size: 'default', + }, + }, +) + +function Button({ + className, + variant = 'default', + size = 'default', + ...props +}: ButtonPrimitive.Props & VariantProps) { + return ( + + ) +} + +export { Button, buttonVariants } diff --git a/Client/src/app/register/components/FloatingWorkspace.tsx b/Client/src/app/register/components/FloatingWorkspace.tsx new file mode 100644 index 00000000..b8a20014 --- /dev/null +++ b/Client/src/app/register/components/FloatingWorkspace.tsx @@ -0,0 +1,253 @@ +"use client"; + +import { + Activity, + ArrowUpRight, + CheckCircle2, + FolderGit2, + Plus, +} from "lucide-react"; + +const repositories = [ + { + name: "bytebin-web", + language: "React", + color: "#61DAFB", + commits: "18 commits", + }, + { + name: "bytebin-api", + language: "Node.js", + color: "#68A063", + commits: "11 commits", + }, + { + name: "bytebin-dashboard", + language: "Next.js", + color: "#111827", + commits: "25 commits", + }, +]; + +const activity = [45, 70, 35, 90, 55, 80, 60]; + +const FloatingWorkspace = () => { + return ( +
+ {/* Deployments */} + +
+ +
+ +
+ +

+ + Deployments + +

+ +

+ + 128 + +

+ +
+ +
+ + + +
+ +
+ +
+ +
+ +
+ +

+ + 82% deployment success + +

+ +
+ + {/* Workspace */} + +
+ +
+ +
+ +

+ + Workspace + +

+ +

+ + ByteBin + +

+ +
+ + + +
+ +
+ + {repositories.map((repo) => ( + +
+ +
+ +
+ + + +
+ +
+ +

+ + {repo.name} + +

+ +
+ + + + {repo.language} + +
+ +
+ +
+ + + + {repo.commits} + + + +
+ + ))} + +
+ +
+ + {/* Activity */} + +
+ +
+ +
+ +

+ + Weekly Activity + +

+ +

+ + 356 Commits + +

+ +
+ + + +
+ +
+ + {activity.map((bar, index) => ( + +
+ + ))} + +
+ +
+ + {/* Status */} + +
+ + + +
+ +
+ + All systems operational + +
+ +

+ + Updated just now + +

+ +
+ +
+ +
+ ); +}; + +export default FloatingWorkspace; \ No newline at end of file diff --git a/Client/src/app/register/components/HeroSection.tsx b/Client/src/app/register/components/HeroSection.tsx new file mode 100644 index 00000000..cf19ef95 --- /dev/null +++ b/Client/src/app/register/components/HeroSection.tsx @@ -0,0 +1,153 @@ +import { Globe, ShieldCheck, Sparkles } from "lucide-react"; + +const stats = [ + { + value: "20K+", + label: "Developers", + }, + { + value: "150K+", + label: "Projects", + }, + { + value: "99.9%", + label: "Uptime", + }, +]; + +const HeroSection = () => { + return ( +
+ + {/* Logo */} + +
+ +
+ + + +
+ +
+ +

+ ByteBin +

+ +

+ Modern Developer Workspace +

+ +
+ +
+ + {/* Badge */} + +
+ + + + + Designed for modern engineering teams + + +
+ + {/* Heading */} + +
+ +

+ + Organize + +
+ + everything + +
+ + in one workspace. + +

+ +

+ + Store snippets, manage repositories, collaborate with your + team, and build faster using a beautifully designed + developer workspace crafted for productivity. + +

+ +
+ + {/* Stats */} + +
+ + {stats.map((stat) => ( + +
+ +

+ + {stat.value} + +

+ +

+ + {stat.label} + +

+ +
+ + ))} + +
+ + {/* Trust */} + +
+ +
+ + + +
+ +
+ +

+ + Trusted worldwide + +

+ +

+ + Secure • Fast • Built for teams + +

+ +
+ +
+ +
+ ); +}; + +export default HeroSection; \ No newline at end of file diff --git a/Client/src/app/register/components/RegisterCard.tsx b/Client/src/app/register/components/RegisterCard.tsx new file mode 100644 index 00000000..d5aa183b --- /dev/null +++ b/Client/src/app/register/components/RegisterCard.tsx @@ -0,0 +1,87 @@ +"use client"; +import { FaGithub } from "react-icons/fa"; +import RegisterForm from "./RegisterForm"; + +const RegisterCard = () => { + return ( +
+ + {/* Ambient Glow */} + +
+ + {/* Card */} + +
+ + {/* Decorative Dot */} + +
+ + {/* Header */} + +
+ +

+ Welcome +

+ +

+ Create Account +

+ +

+ Join ByteBin and organize your development workflow in one beautiful workspace. +

+ +
+ + {/* Github */} + + + + {/* Divider */} + +
+ +
+ + + or continue with email + + +
+ +
+ + {/* Form */} + + + + {/* Footer */} + +

+ + Already have an account? + + + +

+ +
+ +
+ ); +}; + +export default RegisterCard; \ No newline at end of file diff --git a/Client/src/app/register/components/RegisterForm.tsx b/Client/src/app/register/components/RegisterForm.tsx new file mode 100644 index 00000000..8dca3b84 --- /dev/null +++ b/Client/src/app/register/components/RegisterForm.tsx @@ -0,0 +1,176 @@ +"use client"; + +import { useState } from "react"; +import { + Eye, + EyeOff, + Lock, + Mail, + User, +} from "lucide-react"; + +const RegisterForm = () => { + const [showPassword, setShowPassword] = useState(false); + + return ( +
+ + {/* ========================================================== + Full Name + ========================================================== */} + +
+ + + +
+ + + + + +
+ +
+ + {/* ========================================================== + Email + ========================================================== */} + +
+ + + +
+ + + + + +
+ +
+ + {/* ========================================================== + Password + ========================================================== */} + +
+ + + +
+ + + + + + + +
+ +
+ + {/* ========================================================== + Password Strength + ========================================================== */} + +
+ +
+ + + Password Strength + + + + Strong + + +
+ +
+ +
+ +
+ +
+ + {/* ========================================================== + Terms + ========================================================== */} + + + + {/* ========================================================== + Submit + ========================================================== */} + + + + + ); +}; + +export default RegisterForm; \ No newline at end of file diff --git a/Client/src/app/register/page.tsx b/Client/src/app/register/page.tsx index 0d55f6fd..5e045b63 100644 --- a/Client/src/app/register/page.tsx +++ b/Client/src/app/register/page.tsx @@ -1,7 +1,383 @@ +"use client"; + +import { useState } from "react"; +import { + Globe, + User, + Mail, + Eye, + EyeOff, + ShieldCheck, + ArrowUpRight, + Star, + Plus, +} from "lucide-react"; +import {FaGithub } from 'react-icons/fa'; + +const repositories = [ + { name: "bytebin/core", lang: "Next.js", stars: "1.2k" }, + { name: "bytebin/cli", lang: "TypeScript", stars: "856" }, + { name: "bytebin/ui", lang: "React", stars: "642" }, + { name: "bytebin/docs", lang: "MDX", stars: "313" }, +]; + +const commitBars = [30, 55, 40, 78, 50, 92, 62, 100, 70]; + const RegisterPage = () => { - return ( -
Regiter
- ) -} + const [showPassword, setShowPassword] = useState(false); + const [agreed, setAgreed] = useState(false); + + return ( +
+ {/* Ambient background blobs */} +
+
+
+ + {/* Dot grids */} +
+ {Array.from({ length: 12 }).map((_, i) => ( + + ))} +
+
+ {Array.from({ length: 8 }).map((_, i) => ( + + ))} +
+ + {/* Curved connector line */} + + + + +
+ {/* LEFT — HERO */} +
+ {/* Logo */} +
+
+ +
+

+ ByteBin +

+
+ + {/* Heading */} +

+ Your code, +
+ Deployed +
+ everywhere +

+ + {/* Paragraph */} +

+ ByteBin helps you build, ship and scale modern applications on + the edge. +

+ + {/* Stats row */} +
+
+

+ 20K+ +

+

Developers

+
+ +
+

+ 150K+ +

+

Projects

+
+ +
+

+ 99.9% +

+

Uptime

+
+
+ + {/* Commit activity card */} +
+
+

+ Commit Activity +

+ + +42% + +
+

vs last week

+
+ {commitBars.map((h, i) => ( +
+ ))} +
+
+ + {/* Trust line */} +
+ +

+ Trusted by developers worldwide +

+
+
+ + {/* DIVIDER 1 */} +
+ + {/* MIDDLE — FLOATING DASHBOARD */} +
+ {/* Deployments card */} +
+
+

+ Deployments +

+ + + Live + +
+
+
+ +
+
+

+ api.bytebin.com +

+

Production

+
+ 2m ago + +
+
+ + {/* Repositories card */} +
+
+

+ Repositories +

+ +
+ +
+ {repositories.map((repo) => ( +
+
+
+ BB +
+

+ {repo.name} +

+
+
+ {repo.lang} + + + {repo.stars} + +
+
+ ))} +
+
+
+ + {/* DIVIDER 2 */} +
+ + {/* RIGHT — REGISTER CARD */} +
+
+ + +

+ WELCOME +

+

+ Create Account +

+

+ Join ByteBin and organize your development workflow in one + beautiful workspace. +

+ + {/* GitHub button */} + + + {/* Divider */} +
+ + + or continue with email + + +
+ + {/* Form */} +
+
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+ +
+ + +
+ + {/* Password strength */} +
+
+
+
+ + Strong + +
+
+ + {/* Checkbox */} + + + {/* Submit */} + + + +

+ Already have an account?{" "} + + Sign in + +

+
+
+
+
+ ); +}; -export default RegisterPage +export default RegisterPage; \ No newline at end of file diff --git a/Client/src/app/register/utils/utils.ts b/Client/src/app/register/utils/utils.ts new file mode 100644 index 00000000..fed2fe91 --- /dev/null +++ b/Client/src/app/register/utils/utils.ts @@ -0,0 +1,6 @@ +import { clsx, type ClassValue } from 'clsx' +import { twMerge } from 'tailwind-merge' + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)) +} From 04312fa41e578f4f00f2f2c506849745527a3f16 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Thu, 2 Jul 2026 06:02:30 +0530 Subject: [PATCH 0004/1390] making the mongoose in nextserver --- Client/src/lib/mongodb.ts | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Client/src/lib/mongodb.ts diff --git a/Client/src/lib/mongodb.ts b/Client/src/lib/mongodb.ts new file mode 100644 index 00000000..48fb7e06 --- /dev/null +++ b/Client/src/lib/mongodb.ts @@ -0,0 +1,37 @@ +import mongoose from "mongoose" + +const MONGODB_URI = process.env.MONGODB_URI + +if (!MONGODB_URI) { + throw new Error("Please define the MONGODB_URI environment variable") +} + +interface MongooseCache { + conn: typeof mongoose | null + promise: Promise | null +} + +declare global { + var mongooseCache: MongooseCache | undefined +} + +const cached: MongooseCache = global.mongooseCache ?? { conn: null, promise: null } + +if (!global.mongooseCache) { + global.mongooseCache = cached +} + +async function connectDb() { + if (cached.conn) { + return cached.conn + } + + if (!cached.promise) { + cached.promise = mongoose.connect(MONGODB_URI!) + } + + cached.conn = await cached.promise + return cached.conn +} + +export default connectDb \ No newline at end of file From a3f9cd0d9b7267f95e1c3c62176ee511ebce1c01 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Thu, 2 Jul 2026 06:26:05 +0530 Subject: [PATCH 0005/1390] make a genral setup of axios --- Client/package-lock.json | 364 ++++++++++++++++++++++++++++++++++++-- Client/package.json | 3 + Client/src/lib/axios.ts | 11 ++ Client/src/lib/mongodb.ts | 3 + 4 files changed, 364 insertions(+), 17 deletions(-) create mode 100644 Client/src/lib/axios.ts diff --git a/Client/package-lock.json b/Client/package-lock.json index 6af49752..a52537a1 100644 --- a/Client/package-lock.json +++ b/Client/package-lock.json @@ -9,9 +9,12 @@ "version": "0.1.0", "dependencies": { "@base-ui/react": "^1.6.0", + "axios": "^1.18.1", "class-variance-authority": "^0.7.1", + "dotenv": "^17.4.2", "framer-motion": "^12.42.2", "lucide-react": "^1.23.0", + "mongoose": "^9.7.3", "next": "16.2.9", "react": "19.2.4", "react-dom": "19.2.4", @@ -1150,6 +1153,15 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@mongodb-js/saslprep": { + "version": "1.4.12", + "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.4.12.tgz", + "integrity": "sha512-QAfAMwNgnYxZ2C6D1HgeP7Gc4i/uvJRim415PCIL9ptRxWMNbWeLBYb2/9R4pGKny/s1FVu2JA2cxCUBUOggrA==", + "license": "MIT", + "dependencies": { + "sparse-bitfield": "^3.0.3" + } + }, "node_modules/@napi-rs/wasm-runtime": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz", @@ -1368,6 +1380,12 @@ "dev": true, "license": "MIT" }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "license": "MIT" + }, "node_modules/@swc/helpers": { "version": "0.5.15", "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", @@ -1710,6 +1728,21 @@ "@types/react": "^19.2.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/whatwg-url": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-13.0.0.tgz", + "integrity": "sha512-N8WXpbE6Wgri7KUSvrmQcqrMllKZ9uxkYWMt+mCSGwNc0Hsw9VQTW7ApqI4XNrx6/SaM2QQJCzMPDEXE058s+Q==", + "license": "MIT", + "dependencies": { + "@types/webidl-conversions": "*" + } + }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "8.62.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.62.1.tgz", @@ -2352,6 +2385,18 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, "node_modules/ajv": { "version": "6.15.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", @@ -2579,6 +2624,12 @@ "node": ">= 0.4" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, "node_modules/available-typed-arrays": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", @@ -2605,6 +2656,18 @@ "node": ">=4" } }, + "node_modules/axios": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.18.1.tgz", + "integrity": "sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.16.0", + "form-data": "^4.0.5", + "https-proxy-agent": "^5.0.1", + "proxy-from-env": "^2.1.0" + } + }, "node_modules/axobject-query": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", @@ -2702,6 +2765,15 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/bson": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/bson/-/bson-7.3.1.tgz", + "integrity": "sha512-h/C0qe6857pQhcSJHLfsR1uYGj98Ge3wKAD3Ed9KqH3wcVh+BM4Jq4xISD7vs9OPuT07n+q3QQVjslJ286j6ag==", + "license": "Apache-2.0", + "engines": { + "node": ">=20.19.0" + } + }, "node_modules/call-bind": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", @@ -2725,7 +2797,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -2846,6 +2917,18 @@ "dev": true, "license": "MIT" }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -2947,7 +3030,6 @@ "version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -3004,6 +3086,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/detect-libc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", @@ -3027,11 +3118,22 @@ "node": ">=0.10.0" } }, + "node_modules/dotenv": { + "version": "17.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", + "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", @@ -3162,7 +3264,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -3172,7 +3273,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -3210,7 +3310,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0" @@ -3223,7 +3322,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -3823,6 +3921,26 @@ "dev": true, "license": "ISC" }, + "node_modules/follow-redirects": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, "node_modules/for-each": { "version": "0.3.5", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", @@ -3839,6 +3957,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/form-data": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.4", + "mime-types": "^2.1.35" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/framer-motion": { "version": "12.42.2", "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.42.2.tgz", @@ -3870,7 +4004,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -3934,7 +4067,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -3959,7 +4091,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", @@ -4047,7 +4178,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -4119,7 +4249,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -4132,7 +4261,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" @@ -4148,7 +4276,6 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", - "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.2" @@ -4174,6 +4301,19 @@ "hermes-estree": "0.25.1" } }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -4792,6 +4932,15 @@ "node": ">=4.0" } }, + "node_modules/kareem": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-3.3.0.tgz", + "integrity": "sha512-kpSuLD3/7RenBnjnJdOHXCKC8dTd1JzeOiJhN0necWWci6cC+qX+VuwPnMVgb+a4+KNJSfgqahpnfWaeDXCimw==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", @@ -5166,12 +5315,17 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" } }, + "node_modules/memory-pager": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", + "license": "MIT" + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -5196,6 +5350,27 @@ "node": ">=8.6" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/minimatch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", @@ -5219,6 +5394,87 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/mongodb": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-7.2.0.tgz", + "integrity": "sha512-F/2+BMZtLVhY30ioZp0dAmZ+IRZMBqI+nrv6t5+9/1AIwCa8sMRC3jBf81lpxMhnZgqq8CoUD503Z1oZWq1/sw==", + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/saslprep": "^1.3.0", + "bson": "^7.2.0", + "mongodb-connection-string-url": "^7.0.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@aws-sdk/credential-providers": "^3.806.0", + "@mongodb-js/zstd": "^7.0.0", + "gcp-metadata": "^7.0.1", + "kerberos": "^7.0.0", + "mongodb-client-encryption": ">=7.0.0 <7.1.0", + "snappy": "^7.3.2", + "socks": "^2.8.6" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-providers": { + "optional": true + }, + "@mongodb-js/zstd": { + "optional": true + }, + "gcp-metadata": { + "optional": true + }, + "kerberos": { + "optional": true + }, + "mongodb-client-encryption": { + "optional": true + }, + "snappy": { + "optional": true + }, + "socks": { + "optional": true + } + } + }, + "node_modules/mongodb-connection-string-url": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-7.0.1.tgz", + "integrity": "sha512-h0AZ9A7IDVwwHyMxmdMXKy+9oNlF0zFoahHiX3vQ8e3KFcSP3VmsmfvtRSuLPxmyv2vjIDxqty8smTgie/SNRQ==", + "license": "Apache-2.0", + "dependencies": { + "@types/whatwg-url": "^13.0.0", + "whatwg-url": "^14.1.0" + }, + "engines": { + "node": ">=20.19.0" + } + }, + "node_modules/mongoose": { + "version": "9.7.3", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-9.7.3.tgz", + "integrity": "sha512-9DsD4sq0tL9IKyfttZ6qn74KXBcD4lxDTzGXoAeOLMnDFFp1gqc5oc4s2BiMPbetJrLwvVylfyR4cqLst2pasQ==", + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.1.0", + "kareem": "3.3.0", + "mongodb": "~7.2", + "mpath": "0.9.0", + "mquery": "6.0.0", + "ms": "2.1.3", + "sift": "17.1.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mongoose" + } + }, "node_modules/motion-dom": { "version": "12.42.2", "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.42.2.tgz", @@ -5234,11 +5490,28 @@ "integrity": "sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==", "license": "MIT" }, + "node_modules/mpath": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", + "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mquery": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/mquery/-/mquery-6.0.0.tgz", + "integrity": "sha512-b2KQNsmgtkscfeDgkYMcWGn9vZI9YoXh802VDEwE6qc50zxBFQ0Oo8ROkawbPAsXCY1/Z1yp0MagqsZStPWJjw==", + "license": "MIT", + "engines": { + "node": ">=20.19.0" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, "license": "MIT" }, "node_modules/nanoid": { @@ -5703,11 +5976,19 @@ "react-is": "^16.13.1" } }, + "node_modules/proxy-from-env": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -6177,6 +6458,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/sift": { + "version": "17.1.3", + "resolved": "https://registry.npmjs.org/sift/-/sift-17.1.3.tgz", + "integrity": "sha512-Rtlj66/b0ICeFzYTuNvX/EF1igRbbnGSvEyT79McoZa/DeGhMyC5pWKOEsZKnpkqtSeovd5FL/bjHWC3CIIvCQ==", + "license": "MIT" + }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", @@ -6186,6 +6473,15 @@ "node": ">=0.10.0" } }, + "node_modules/sparse-bitfield": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", + "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", + "license": "MIT", + "dependencies": { + "memory-pager": "^1.0.2" + } + }, "node_modules/stable-hash": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", @@ -6493,6 +6789,18 @@ "node": ">=8.0" } }, + "node_modules/tr46": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz", + "integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==", + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/ts-api-utils": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", @@ -6781,6 +7089,28 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz", + "integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==", + "license": "MIT", + "dependencies": { + "tr46": "^5.1.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", diff --git a/Client/package.json b/Client/package.json index 144c1de2..a9d27e3c 100644 --- a/Client/package.json +++ b/Client/package.json @@ -10,9 +10,12 @@ }, "dependencies": { "@base-ui/react": "^1.6.0", + "axios": "^1.18.1", "class-variance-authority": "^0.7.1", + "dotenv": "^17.4.2", "framer-motion": "^12.42.2", "lucide-react": "^1.23.0", + "mongoose": "^9.7.3", "next": "16.2.9", "react": "19.2.4", "react-dom": "19.2.4", diff --git a/Client/src/lib/axios.ts b/Client/src/lib/axios.ts new file mode 100644 index 00000000..1863c73e --- /dev/null +++ b/Client/src/lib/axios.ts @@ -0,0 +1,11 @@ +import axios from "axios" + +const api = axios.create({ + baseURL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:8008", + timeout: 15000, + headers: { + "Content-Type": "application/json", + }, +}) + +export default api diff --git a/Client/src/lib/mongodb.ts b/Client/src/lib/mongodb.ts index 48fb7e06..35dc6eb4 100644 --- a/Client/src/lib/mongodb.ts +++ b/Client/src/lib/mongodb.ts @@ -1,4 +1,7 @@ import mongoose from "mongoose" +import dotenv from "dotenv"; +dotenv.config({quiet:true}); + const MONGODB_URI = process.env.MONGODB_URI From 08083afbb3287664ca0613668adb0a137689c4fb Mon Sep 17 00:00:00 2001 From: VedantGupta19402 Date: Thu, 2 Jul 2026 13:02:32 +0530 Subject: [PATCH 0006/1390] update login and register --- Client/src/app/login/page.tsx | 966 ++++++++-------- Client/src/app/page.tsx | 7 - .../register/components/BackgroundEffects.tsx | 38 - Client/src/app/register/components/Button.tsx | 58 - .../register/components/FloatingWorkspace.tsx | 253 ----- .../app/register/components/HeroSection.tsx | 153 --- .../app/register/components/RegisterCard.tsx | 87 -- .../app/register/components/RegisterForm.tsx | 176 --- Client/src/app/register/page.tsx | 1006 +++++++++++------ Client/src/app/register/utils/utils.ts | 6 - Documentation.txt | 2 + 11 files changed, 1118 insertions(+), 1634 deletions(-) delete mode 100644 Client/src/app/page.tsx delete mode 100644 Client/src/app/register/components/BackgroundEffects.tsx delete mode 100644 Client/src/app/register/components/Button.tsx delete mode 100644 Client/src/app/register/components/FloatingWorkspace.tsx delete mode 100644 Client/src/app/register/components/HeroSection.tsx delete mode 100644 Client/src/app/register/components/RegisterCard.tsx delete mode 100644 Client/src/app/register/components/RegisterForm.tsx delete mode 100644 Client/src/app/register/utils/utils.ts diff --git a/Client/src/app/login/page.tsx b/Client/src/app/login/page.tsx index 267c6cb2..7791fbf8 100644 --- a/Client/src/app/login/page.tsx +++ b/Client/src/app/login/page.tsx @@ -1,584 +1,524 @@ -"use client"; +"use client" import { motion } from "framer-motion"; +import { useRouter } from "next/navigation"; +import { ArrowUpRight, Globe } from "lucide-react"; + +const cardStyle = + "border border-[#F3E8DD] bg-[#FFFDFB] shadow-[0_20px_80px_rgba(215,180,140,.08)]"; const LoginPage = () => { - const repos = [ - { - name: "bytebin-core", - tech: "Next.js", - size: "1.2 MB", - }, - { - name: "bytebin-api", - tech: "TypeScript", - size: "650 KB", - }, - { - name: "bytebin-ui", - tech: "React", - size: "840 KB", - }, - ]; + const router = useRouter(); return ( -
- - {/* Background Blobs */} -
- -
- -
- -
- -
- - {/* Main Container */} -
- - {/* Side Gradient */} -
- -
- - {/* ===================================================== */} - {/* LEFT SECTION */} - {/* ===================================================== */} - - - - {/* Logo */} -
- -
- B -
- -
-

+
+ {/* OUTER CONTAINER */} +
+ {/* BACKGROUND BLOBS */} +
+
+
+
+
+
+ + {/* GRID */} +
+ {/* LEFT SIDE */} +
+ {/* SCALING GRAPHICS CLUSTER */} +
+ + {/* TOP LOGO */} +
+
+ +
+

ByteBin -

- -

- Developer Cloud -

-
- -
- - {/* Hero Text */} -
- -

- - Your code. - -
- - Deployed - -
- - - everywhere. - - -

- -

- ByteBin helps you build, ship and scale modern applications - with instant deployments and global infrastructure. -

- -
- - {/* ===================================================== */} - {/* Deploy Card */} - {/* ===================================================== */} - - - -
- - - Deployments - - -
- -
- -

- api.bytebin.com -

- -
- - - Free - - - - Active - - -
- - - - {/* ===================================================== */} - {/* Repository Card */} - {/* ===================================================== */} - - - -
- -

- Repositories -

- - - -
- - {/* Table Header */} -
- - Repo - - Tech - - Size - +

- {/* Repo Rows */} -
+ {/* BIG HERO */} + +

+ Your code. +
+ Deployed +
+ + everywhere. + +

+

+ ByteBin helps you build, ship and scale modern applications on the edge. +

+
- {repos.map((repo) => ( + {/* DECORATIVE DOTS */} +
+ {Array.from({ length: 9 }).map((_, i) => (
- -
- -
- - - {repo.name} - - -
- - - {repo.tech} - - - - {repo.size} - - -
+ key={i} + className="h-[4px] w-[4px] rounded-full bg-[#D3ACFF]" + /> ))} -
- - - {/* CONTINUE IN PART 2 */} - {/* ===================================================== */} - {/* Commit Graph Card */} - {/* ===================================================== */} - - - -
- -
- -

- Commit activity -

- -

- +47% -

- + {/* SMALL ROUNDED OUTLINE RECTANGLE */} +
+ + {/* FLOATING CREAM BLOBS */} +
+
+
+ + {/* DEPLOYMENTS CARD */} +
+ +
+

Deployments

+
+ ● Live +
- -
- ↑ +
+
+
+ +
+
+
api.bytebin.com
+

Production

+
+
+
+ 2m ago + +
+ -
- - {/* Bars */} - -
- -
- -
- -
- -
- -
- -
- -
- -
- - - - {/* ===================================================== */} - {/* Recent Activity Card */} - {/* ===================================================== */} - - - -
- -

- Recent activity -

- -
- -
- -
- -
- -
- - - Deployed to production - + {/* WARM BLOB */} +
+ {/* REPOSITORIES CARD */} +
+ +
+

Repositories

+
- -
- -
- - - Preview build generated - - +
+ {[ + { + repo: "bytebin/core", + tech: "Next.js", + stars: "1.2k", + time: "2m ago", + }, + { + repo: "bytebin/cli", + tech: "TypeScript", + stars: "856", + time: "1h ago", + }, + { + repo: "bytebin/ui", + tech: "React", + stars: "642", + time: "3h ago", + }, + { + repo: "bytebin/docs", + tech: "MDX", + stars: "313", + time: "1d ago", + }, + ].map((repo) => ( +
+
+
+ BB +
+
{repo.repo}
+
+ {repo.tech} + ☆ {repo.stars} + {repo.time} +
+ ))}
- -
- -
- - - Edge cache refreshed - - + + + {/* COMMIT CARD */} +
+ +
+

Commit Activity

+
+
+ +42% +
+

vs last week

+
- -
- -
- - - New commit detected - - +
+
+
+
+
+
+
+
+
+
+
+
+ + + {/* RECENT ACTIVITY */} +
+ +

Recent Activity

+
+
+
+
+ ✓ +
+
+
Deployed to Production
+

by vercel-bot

+
+
+ 2m ago +
+
+
+
+ ↻ +
+
+
New Commit
+

feat: add edge middleware

+
+
+ 15m ago +
+
+
+
+ ⬢ +
+
+
Preview Deployment
+

by github-actions

+
+
+ 1h ago +
+
+
+ + {/* CONNECTOR CURVES */} + + + + -
- - - - {/* ===================================================== */} - {/* Floating Terminal */} - {/* ===================================================== */} - - - - {/* Top Bar */} - -
- -
- -
- -
- -
- - {/* Body */} - -
- -

$ pnpm create bytebin@latest

- -

- ✓ Installing dependencies -

+ {/* TERMINAL GLOW */} +
-

- ✓ Starting edge runtime -

+ {/* TERMINAL CARD */} + +
+
+
+
+
+
+
+ bash +
+
+
+

$ npx create-bytebin@latest

+

✓ Initializing project...

+

✓ Setting up Edge Functions...

+

✓ Installing dependencies...

+

✓ Deploying to global network...

+
+

Your app is live at:

+

https://amazing-app.bytebin.app 🎉

+
+
+ -

- ✓ Deploying globally -

+ {/* FLOATING LIGHTNING CUBE */} + +
⚡
+
-

- https://app.bytebin.dev + {/* BOTTOM LEFT HANDWRITING */} +

+

+ Fast. Secure. Global.

+ + + +
+ {/* SMALL ARROW ICON */} +
+ ↖
- + {/* DOT GRID */} +
+ {Array.from({ length: 12 }).map((_, i) => ( +
+ ))} +
- {/* ===================================================== */} - {/* Explore Button */} - {/* ===================================================== */} + {/* BOTTOM WARM SPHERE */} +
+
+ - + {/* Login Card */} + - Explore Platform - - - - - {/* ===================================================== */} - {/* RIGHT SECTION STARTS HERE */} - {/* ===================================================== */} - {/* ===================================================== */} - {/* RIGHT SECTION */} - {/* ===================================================== */} - - - -
- - {/* Welcome */} -
- -
- 👋 Welcome back + {/* Warm Glow */} +
+ + {/* Logo */} +
+
+
+ +
+
-

- Sign in + {/* Heading */} +
+

+ Welcome back 👋

- -

- Access your deployments, repositories and developer tools. +

+ Sign in to your ByteBin account

-
- {/* ===================================================== */} - {/* Github Button */} - {/* ===================================================== */} - - - -
- GH -
- + + + Continue with GitHub + -
- - {/* ===================================================== */} {/* Divider */} - {/* ===================================================== */} - -
- -
- - - or continue with email - - -
- +
+
+ or +
- {/* ===================================================== */} {/* Email */} - {/* ===================================================== */} -
- -
- {/* ===================================================== */} {/* Password */} - {/* ===================================================== */} - -
- -
- - - - - -
- - - -
- - {/* ===================================================== */} - {/* Remember Me */} - {/* ===================================================== */} - -
- -
- - - +

+ Don't have an account? + +

+ +
-
-

); }; -export default LoginPage; \ No newline at end of file +export default LoginPage; diff --git a/Client/src/app/page.tsx b/Client/src/app/page.tsx deleted file mode 100644 index 9a6d7ab4..00000000 --- a/Client/src/app/page.tsx +++ /dev/null @@ -1,7 +0,0 @@ -const page = () => { - return ( -
page
- ) -} - -export default page \ No newline at end of file diff --git a/Client/src/app/register/components/BackgroundEffects.tsx b/Client/src/app/register/components/BackgroundEffects.tsx deleted file mode 100644 index 954b0471..00000000 --- a/Client/src/app/register/components/BackgroundEffects.tsx +++ /dev/null @@ -1,38 +0,0 @@ -const BackgroundEffects = () => { - return ( - <> - {/* Background */} -
- - {/* Top Left Peach Glow */} -
- - {/* Bottom Right Lavender Glow */} -
- - {/* Center Glow */} -
- - {/* Decorative Grid */} -
- {Array.from({ length: 16 }).map((_, index) => ( - - ))} -
- - {/* Left Vertical Line */} -
- - {/* Right Vertical Line */} -
- - {/* Bottom Fade */} -
- - ); -}; - -export default BackgroundEffects; \ No newline at end of file diff --git a/Client/src/app/register/components/Button.tsx b/Client/src/app/register/components/Button.tsx deleted file mode 100644 index d2907a47..00000000 --- a/Client/src/app/register/components/Button.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import { Button as ButtonPrimitive } from '@base-ui/react/button' -import { cva, type VariantProps } from 'class-variance-authority' - -import { cn } from '../utils/utils' - -const buttonVariants = cva( - "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", - { - variants: { - variant: { - default: 'bg-primary text-primary-foreground [a]:hover:bg-primary/80', - outline: - 'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50', - secondary: - 'bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground', - ghost: - 'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50', - destructive: - 'bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40', - link: 'text-primary underline-offset-4 hover:underline', - }, - size: { - default: - 'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2', - xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3", - sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5", - lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2', - icon: 'size-8', - 'icon-xs': - "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3", - 'icon-sm': - 'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg', - 'icon-lg': 'size-9', - }, - }, - defaultVariants: { - variant: 'default', - size: 'default', - }, - }, -) - -function Button({ - className, - variant = 'default', - size = 'default', - ...props -}: ButtonPrimitive.Props & VariantProps) { - return ( - - ) -} - -export { Button, buttonVariants } diff --git a/Client/src/app/register/components/FloatingWorkspace.tsx b/Client/src/app/register/components/FloatingWorkspace.tsx deleted file mode 100644 index b8a20014..00000000 --- a/Client/src/app/register/components/FloatingWorkspace.tsx +++ /dev/null @@ -1,253 +0,0 @@ -"use client"; - -import { - Activity, - ArrowUpRight, - CheckCircle2, - FolderGit2, - Plus, -} from "lucide-react"; - -const repositories = [ - { - name: "bytebin-web", - language: "React", - color: "#61DAFB", - commits: "18 commits", - }, - { - name: "bytebin-api", - language: "Node.js", - color: "#68A063", - commits: "11 commits", - }, - { - name: "bytebin-dashboard", - language: "Next.js", - color: "#111827", - commits: "25 commits", - }, -]; - -const activity = [45, 70, 35, 90, 55, 80, 60]; - -const FloatingWorkspace = () => { - return ( -
- {/* Deployments */} - -
- -
- -
- -

- - Deployments - -

- -

- - 128 - -

- -
- -
- - - -
- -
- -
- -
- -
- -

- - 82% deployment success - -

- -
- - {/* Workspace */} - -
- -
- -
- -

- - Workspace - -

- -

- - ByteBin - -

- -
- - - -
- -
- - {repositories.map((repo) => ( - -
- -
- -
- - - -
- -
- -

- - {repo.name} - -

- -
- - - - {repo.language} - -
- -
- -
- - - - {repo.commits} - - - -
- - ))} - -
- -
- - {/* Activity */} - -
- -
- -
- -

- - Weekly Activity - -

- -

- - 356 Commits - -

- -
- - - -
- -
- - {activity.map((bar, index) => ( - -
- - ))} - -
- -
- - {/* Status */} - -
- - - -
- -
- - All systems operational - -
- -

- - Updated just now - -

- -
- -
- -
- ); -}; - -export default FloatingWorkspace; \ No newline at end of file diff --git a/Client/src/app/register/components/HeroSection.tsx b/Client/src/app/register/components/HeroSection.tsx deleted file mode 100644 index cf19ef95..00000000 --- a/Client/src/app/register/components/HeroSection.tsx +++ /dev/null @@ -1,153 +0,0 @@ -import { Globe, ShieldCheck, Sparkles } from "lucide-react"; - -const stats = [ - { - value: "20K+", - label: "Developers", - }, - { - value: "150K+", - label: "Projects", - }, - { - value: "99.9%", - label: "Uptime", - }, -]; - -const HeroSection = () => { - return ( -
- - {/* Logo */} - -
- -
- - - -
- -
- -

- ByteBin -

- -

- Modern Developer Workspace -

- -
- -
- - {/* Badge */} - -
- - - - - Designed for modern engineering teams - - -
- - {/* Heading */} - -
- -

- - Organize - -
- - everything - -
- - in one workspace. - -

- -

- - Store snippets, manage repositories, collaborate with your - team, and build faster using a beautifully designed - developer workspace crafted for productivity. - -

- -
- - {/* Stats */} - -
- - {stats.map((stat) => ( - -
- -

- - {stat.value} - -

- -

- - {stat.label} - -

- -
- - ))} - -
- - {/* Trust */} - -
- -
- - - -
- -
- -

- - Trusted worldwide - -

- -

- - Secure • Fast • Built for teams - -

- -
- -
- -
- ); -}; - -export default HeroSection; \ No newline at end of file diff --git a/Client/src/app/register/components/RegisterCard.tsx b/Client/src/app/register/components/RegisterCard.tsx deleted file mode 100644 index d5aa183b..00000000 --- a/Client/src/app/register/components/RegisterCard.tsx +++ /dev/null @@ -1,87 +0,0 @@ -"use client"; -import { FaGithub } from "react-icons/fa"; -import RegisterForm from "./RegisterForm"; - -const RegisterCard = () => { - return ( -
- - {/* Ambient Glow */} - -
- - {/* Card */} - -
- - {/* Decorative Dot */} - -
- - {/* Header */} - -
- -

- Welcome -

- -

- Create Account -

- -

- Join ByteBin and organize your development workflow in one beautiful workspace. -

- -
- - {/* Github */} - - - - {/* Divider */} - -
- -
- - - or continue with email - - -
- -
- - {/* Form */} - - - - {/* Footer */} - -

- - Already have an account? - - - -

- -
- -
- ); -}; - -export default RegisterCard; \ No newline at end of file diff --git a/Client/src/app/register/components/RegisterForm.tsx b/Client/src/app/register/components/RegisterForm.tsx deleted file mode 100644 index 8dca3b84..00000000 --- a/Client/src/app/register/components/RegisterForm.tsx +++ /dev/null @@ -1,176 +0,0 @@ -"use client"; - -import { useState } from "react"; -import { - Eye, - EyeOff, - Lock, - Mail, - User, -} from "lucide-react"; - -const RegisterForm = () => { - const [showPassword, setShowPassword] = useState(false); - - return ( -
- - {/* ========================================================== - Full Name - ========================================================== */} - -
- - - -
- - - - - -
- -
- - {/* ========================================================== - Email - ========================================================== */} - -
- - - -
- - - - - -
- -
- - {/* ========================================================== - Password - ========================================================== */} - -
- - - -
- - - - - - - -
- -
- - {/* ========================================================== - Password Strength - ========================================================== */} - -
- -
- - - Password Strength - - - - Strong - - -
- -
- -
- -
- -
- - {/* ========================================================== - Terms - ========================================================== */} - - - - {/* ========================================================== - Submit - ========================================================== */} - - - - - ); -}; - -export default RegisterForm; \ No newline at end of file diff --git a/Client/src/app/register/page.tsx b/Client/src/app/register/page.tsx index 4cc33406..3e09f8c8 100644 --- a/Client/src/app/register/page.tsx +++ b/Client/src/app/register/page.tsx @@ -1,380 +1,700 @@ -"use client"; - -import { useState } from "react"; -import { - Globe, - User, - Mail, - Eye, - EyeOff, - ShieldCheck, - ArrowUpRight, - Star, - Plus, -} from "lucide-react"; -import {FaGithub } from 'react-icons/fa'; - -const repositories = [ - { name: "bytebin/core", lang: "Next.js", stars: "1.2k" }, - { name: "bytebin/cli", lang: "TypeScript", stars: "856" }, - { name: "bytebin/ui", lang: "React", stars: "642" }, - { name: "bytebin/docs", lang: "MDX", stars: "313" }, -]; - -const commitBars = [30, 55, 40, 78, 50, 92, 62, 100, 70]; +"use client" +import { motion } from "framer-motion"; +import { useRouter } from "next/navigation"; +import { ArrowUpRight, Globe, User, Mail, Eye, Hash } from "lucide-react"; + +const cardStyle = + "border border-[#F3E8DE] bg-[#FFFDFB] shadow-[0_20px_80px_rgba(230,190,160,.08)]"; + +const inputStyle = + "h-[46px] w-full rounded-[16px] border border-[#F2E7DD] bg-[#FFFDFB] px-4 pr-12 text-sm font-medium outline-none transition-all text-slate-800 focus:border-[#D3ACFF] focus:shadow-[0_0_0_3px_rgba(211,172,255,0.15)]"; const RegisterPage = () => { - const [showPassword, setShowPassword] = useState(false); - const [agreed, setAgreed] = useState(false); + const router = useRouter(); return ( -
- {/* Ambient background blobs */} -
-
-
- - {/* Dot grids */} -
- {Array.from({ length: 12 }).map((_, i) => ( - - ))} -
-
- {Array.from({ length: 8 }).map((_, i) => ( - - ))} -
+
+ {/* OUTER CONTAINER */} +
- {/* Curved connector line */} - - - - -
- {/* LEFT — HERO */} -
- {/* Logo */} -
-
- -
-

- ByteBin -

-
- - {/* Heading */} -

- Your code, -
- Deployed -
- everywhere -

- - {/* Paragraph */} -

- ByteBin helps you build, ship and scale modern applications on - the edge. -

- - {/* Stats row */} -
-
-

- 20K+ -

-

Developers

-
- -
-

- 150K+ -

-

Projects

-
- -
-

- 99.9% -

-

Uptime

-
-
+ {/* Top-Middle 3D Sphere */} +
- {/* Commit activity card */} -
-
-

- Commit Activity -

- - +42% - -
-

vs last week

-
- {commitBars.map((h, i) => ( -
- ))} -
-
- - {/* Trust line */} -
- -

- Trusted by developers worldwide -

-
-
- - {/* DIVIDER 1 */} -
- - {/* MIDDLE — FLOATING DASHBOARD */} -
- {/* Deployments card */} -
-
-

- Deployments -

- - - Live - -
-
-
- + {/* Bottom-Left 3D Sphere */} +
+ + {/* Bottom-Right 3D Sphere */} +
+ + {/* Organic Background Blobs */} +
+
+
+
+ + {/* GRID */} +
+ {/* LEFT SIDE */} +
+ {/* SCALING GRAPHICS CLUSTER */} +
+ + {/* TOP LOGO */} +
+
+ +
+

+ ByteBin +

-
-

- api.bytebin.com + + {/* BIG HERO */} + +

+ Build today. +
+ Deploy +
+ + anywhere. + +

+

+ The developer platform to ship modern apps at global scale.

-

Production

+ + + {/* DECORATIVE DOTS (TOP) */} +
+ {Array.from({ length: 12 }).map((_, i) => ( +
+ ))}
- 2m ago - -
-
- {/* Repositories card */} -
-
-

- Repositories -

- -
+ {/* TINY STARS */} +
✦
+
✦
+
✦
+
✦
+ + {/* SMALL ROUNDED OUTLINE RECTANGLE */} +
+ + {/* TOP-LEFT CURLY ARROW */} + + + + + + {/* HAND-DRAWN SQUIGGLE */} + + + -
- {repositories.map((repo) => ( -
+ + + + {/* TERMINAL GLOW */} +
+ + {/* TERMINAL CARD */} + +
+
+
+
+
+
+
+ bash +
+
+
+

$ npx create-bytebin@latest

+

✓ Initializing project...

+

✓ Setting up Edge Functions...

+

✓ Installing dependencies...

+

✓ Deploying to global network...

+
+

Your app is live at:

+

+ https://amazing-app.bytebin.app 🎉 +

+
+
+ + + {/* FLOATING LIGHTNING CUBE */} +
+ -
-
- BB + + + + +
+ + {/* DEPLOYMENTS CARD */} +
+ +
+

Deployments

+
+ ● Live +
+
+
+
+
+
-

- {repo.name} -

+
+
api.bytebin.com
+

Production

+
+
+
+ 2m ago + +
+
+
+ + {/* REPOSITORIES CARD */} +
+ +
+

Repositories

+ +
+
+ {[ + { + repo: "bytebin/core", + tech: "Next.js", + stars: "1.2k", + time: "2m ago", + }, + { + repo: "bytebin/cli", + tech: "TypeScript", + stars: "856", + time: "1h ago", + }, + { + repo: "bytebin/ui", + tech: "React", + stars: "642", + time: "3h ago", + }, + { + repo: "bytebin/docs", + tech: "MDX", + stars: "313", + time: "1d ago", + }, + ].map((repo) => ( +
+
+
+ BB +
+
{repo.repo}
+
+ {repo.tech} + ☆ {repo.stars} + {repo.time} +
+ ))} +
+
+ + {/* COMMIT CARD */} +
+ +
+

Commit Activity

+
+
+ +42% +
+

vs last week

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + {/* RECENT ACTIVITY */} +
+ +

Recent Activity

+
+
+
+
+ ✓ +
+
+
Deployed to Production
+

by vercel-bot

+
+
+ 2m ago
-
- {repo.lang} - - - {repo.stars} - +
+
+
+ ↻ +
+
+
New Commit
+

feat: add analytics

+
+
+ 15m ago
+
+
+
+ ⬢ +
+
+
Preview Deployment
+

#128 opened

+
+
+ 1h ago +
+
+ + + {/* CONNECTOR CURVES */} + + + + + + {/* GLOBAL EDGE NETWORK (EARTH GLOBE) */} + + {/* Orbital Ring */} +
+ + {/* 3D Planet Sphere */} +
+
+
+ + + + + + + + +
+ + {/* Badge */} +
+ ● Global Edge Network + | 15 Regions
+ + + {/* 3D ROUNDED TRIANGLE (Bottom Left) */} + + + + + + + + + + + + + + + + + + {/* FLOATING CUBE */} + +
+ + + {/* BOTTOM LEFT HANDWRITING */} +
+

+ Fast. Secure. Global. +

+ + + +
+ + {/* SMALL ARROW ICON */} +
+ ↖ +
+ + {/* DOT GRID */} +
+ {Array.from({ length: 12 }).map((_, i) => ( +
+ ))} +
+ +
+
+ + {/* RIGHT SIDE */} +
+ + {/* DOT GRID (RIGHT OF CARD) */} +
+ {Array.from({ length: 10 }).map((_, i) => ( +
))}
-
-
- - {/* DIVIDER 2 */} -
- - {/* RIGHT — REGISTER CARD */} -
-
- - -

- WELCOME -

-

- Create Account -

-

- Join ByteBin and organize your development workflow in one - beautiful workspace. -

- - {/* GitHub button */} -
+
✦
+ + {/* Register Card */} + - - Continue with GitHub - - - {/* Divider */} -
- - - or continue with email - - -
+ {/* Floating Smiley 3D Cube */} + + {/* Smiley Cube Sparks */} + + + + + + - {/* Form */} -
-
- -
- - -
+ + + + + + + + {/* Warm Glow */} +
+ + {/* Squiggle Vector */} + + + + + {/* Heading */} +
+

+ Create your account 👋 +

+

+ Join thousands of developers building the future. +

-
- -
- - -
+ {/* Github */} + + + {/* Divider */} +
+
+ or +
-
- -
- - + {/* Form inputs */} +
+ {/* Full Name */} +
+ +
+ + +
- {/* Password strength */} -
-
-
+ {/* Email address */} +
+ +
+ + +
+
+ + {/* Password */} +
+ +
+ +
+ +
- - Strong -
- {/* Checkbox */} - + {/* Password checklist */} +
+
+
+ ✓ +
+ At least 8 characters +
+
+
+ ✓ +
+ One uppercase letter +
+
+
+ ✓ +
+ One lowercase letter +
+
+
+ One number or symbol +
+
- {/* Submit */} - - - -

- Already have an account?{" "} - - Sign in - -

-
-
+ + {/* Footer */} +

+ Already have an account? + router.push('/login')}> + Sign in + +

+ +
+
); diff --git a/Client/src/app/register/utils/utils.ts b/Client/src/app/register/utils/utils.ts deleted file mode 100644 index fed2fe91..00000000 --- a/Client/src/app/register/utils/utils.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { clsx, type ClassValue } from 'clsx' -import { twMerge } from 'tailwind-merge' - -export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)) -} diff --git a/Documentation.txt b/Documentation.txt index 3969ea53..2fd3213e 100644 --- a/Documentation.txt +++ b/Documentation.txt @@ -9,3 +9,5 @@ 30/06/26-fixing bug and Vedant's Mistakes 30/06/26-fix backend 01/07/26-implement redux + +2/07/26-update login and register \ No newline at end of file From 4689be0a4b9f59b28b5f8cc9342b2f25d4a4f142 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Thu, 2 Jul 2026 16:35:13 +0530 Subject: [PATCH 0007/1390] make a smal fixing of login page --- Client/package-lock.json | 1072 +++++++++++++++++++++++++++++++-- Client/package.json | 3 +- Client/src/app/login/page.tsx | 17 +- Client/src/lib/axios.ts | 3 +- 4 files changed, 1032 insertions(+), 63 deletions(-) diff --git a/Client/package-lock.json b/Client/package-lock.json index a52537a1..aee1b503 100644 --- a/Client/package-lock.json +++ b/Client/package-lock.json @@ -12,10 +12,11 @@ "axios": "^1.18.1", "class-variance-authority": "^0.7.1", "dotenv": "^17.4.2", + "firebase": "^12.15.0", "framer-motion": "^12.42.2", "lucide-react": "^1.23.0", "mongoose": "^9.7.3", - "next": "16.2.9", + "next": "^16.2.9", "react": "19.2.4", "react-dom": "19.2.4", "react-icons": "^5.7.0", @@ -533,6 +534,618 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@firebase/ai": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/@firebase/ai/-/ai-2.13.1.tgz", + "integrity": "sha512-RhT/VViTPBSplhQSuEp62HhLvfsV+LowMh8ZUo5MMRDzG7oFtSget4Kmg5oHP50hDVyWQuQj6to9iPFEZk08Tw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-check-interop-types": "0.3.4", + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-types": "0.x" + } + }, + "node_modules/@firebase/analytics": { + "version": "0.10.22", + "resolved": "https://registry.npmjs.org/@firebase/analytics/-/analytics-0.10.22.tgz", + "integrity": "sha512-8BSaq/QRGU1+xyi8L2PTLTJU7MH9aMA72RQdIxrbhWFauOZY9OXo8f2YDN/972xA8d588tlnNVEQ2Mo69pT9Ow==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/installations": "0.6.22", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/analytics-compat": { + "version": "0.2.28", + "resolved": "https://registry.npmjs.org/@firebase/analytics-compat/-/analytics-compat-0.2.28.tgz", + "integrity": "sha512-lIAlqUUbBu93FJMlQfslryQtBwwzdzvp23ePC6FNgymXk6Ook5v4Uvc0vdutvoIeqmyA3LfP0ZeRFK8+11kOOQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/analytics": "0.10.22", + "@firebase/analytics-types": "0.8.4", + "@firebase/component": "0.7.3", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/analytics-types": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/@firebase/analytics-types/-/analytics-types-0.8.4.tgz", + "integrity": "sha512-zQ+XTgkwH6CY/eUSHJRP7e4LxM30RCxlCmob5sy2axs25GE3Ny0XdgpDscMTHHQIGqWkxPXad4w2Mw9sCgT8zQ==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/app": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@firebase/app/-/app-0.15.0.tgz", + "integrity": "sha512-soIskolmGgbpi0K/MfrjtdpO1220qRCbXA4Z8Qx3lM+fVwA3q40m+OM+7zBHd2nuQCrLXb33L6Oc1aBH3Y26AQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "idb": "7.1.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/app-check": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@firebase/app-check/-/app-check-0.12.0.tgz", + "integrity": "sha512-wMeT6HLWRAuW7Cp/5UjWBGKgjPNxWNOoNf4PRIv0weljoGMZVeqbUY7wNBWTI2/31cX1NlXx8gQruDLsUShB3Q==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/app-check-compat": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@firebase/app-check-compat/-/app-check-compat-0.4.5.tgz", + "integrity": "sha512-JI17mVcZs34zO6ZeSCrw4U2iohqy+n6GIzkbmsA+TbVjmvFLkUKt3bs5M+qRBteQm/0IWzqSHYFzEQLzDTQebg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-check": "0.12.0", + "@firebase/app-check-types": "0.5.4", + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/app-check-interop-types": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@firebase/app-check-interop-types/-/app-check-interop-types-0.3.4.tgz", + "integrity": "sha512-zz3i6e13B8BfWiLy8MABtTh8aGIACgKbf9UVnyHcWs+yQzJXgQcl8A46b0zfaiJHdQ+niF0ouAfcpuf+3LMPQg==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/app-check-types": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/@firebase/app-check-types/-/app-check-types-0.5.4.tgz", + "integrity": "sha512-xV7JsIyzVr15aA7f3Pi0rB9gdBuVubs89FGA8VkRYA4g0l78poADgdfrScgf7NndSg9mm7cR7PJyY0+t22KaGw==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/app-compat": { + "version": "0.5.14", + "resolved": "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.5.14.tgz", + "integrity": "sha512-rgFmiofYsdS9ZG/Bht3OBxJtPD3zWE1cffShWubEm+4+qZeyzCbmtb1q6jOEjN9fB7uufe4rQmWOPXouR3758Q==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app": "0.15.0", + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/app-types": { + "version": "0.9.5", + "resolved": "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.5.tgz", + "integrity": "sha512-YevqTjvo7Iujsa9Dwowmd6dSoElhzmD63ZSrq6bzjvQ6POjYgNjOFHLmNIgJs48eNO093NCERibuFnxbfOvU7A==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/logger": "0.5.1" + } + }, + "node_modules/@firebase/auth": { + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/@firebase/auth/-/auth-1.13.3.tgz", + "integrity": "sha512-bqiq4uubDN2YyQkdvSWPQeJyXAv2O76ImF41En9b6UhV5JuBVYDoHYrrrE3NzIuGkpFMKagfhMRP4Vz6t+yQSQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@react-native-async-storage/async-storage": "^2.2.0 || ^3.0.0" + }, + "peerDependenciesMeta": { + "@react-native-async-storage/async-storage": { + "optional": true + } + } + }, + "node_modules/@firebase/auth-compat": { + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/@firebase/auth-compat/-/auth-compat-0.6.8.tgz", + "integrity": "sha512-llcBREUC4iSNKZ6rvwud7Oz9Q7aAWU6KuQLa6pdu7Q+QAQsy4JLw6yFgxwtmzabsgznHmmcsX2UjHLLzqUxi3Q==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/auth": "1.13.3", + "@firebase/auth-types": "0.13.1", + "@firebase/component": "0.7.3", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/auth-interop-types": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@firebase/auth-interop-types/-/auth-interop-types-0.2.5.tgz", + "integrity": "sha512-1Li/YuBDBAXcKv7BzY4U28gontUmAaw53sYiqbaVOMCFb2lFKK/c3CGMUWqtwe7+TXrl3poWnTCL5umYBg85Eg==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/auth-types": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/@firebase/auth-types/-/auth-types-0.13.1.tgz", + "integrity": "sha512-0c1Mnid0uMDfGJHeUS4zfvBa4/CedJXotGy/n/NZJnBjwiJawt0ZYU+wH2VAVLiRCEfG2ncCkAX3yd1/2nrB7g==", + "license": "Apache-2.0", + "peerDependencies": { + "@firebase/app-types": "0.x", + "@firebase/util": "1.x" + } + }, + "node_modules/@firebase/component": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@firebase/component/-/component-0.7.3.tgz", + "integrity": "sha512-wFofIaa2879ogD/WvkjYXJxRmfnL0scen6ORgaC3na1FNOR9ASIUANQdhqQcmWu/h77/pVHY7ch5flewa5Bcew==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/data-connect": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@firebase/data-connect/-/data-connect-0.7.1.tgz", + "integrity": "sha512-2LbUU8mmSA63HknxQMmWHjpzuNLBKflvVwQc2tpoVKg0biWleNEJX031ELks0vzFs+dDjOUkCJR72RP6mQHFOg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/auth-interop-types": "0.2.5", + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/database": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@firebase/database/-/database-1.1.3.tgz", + "integrity": "sha512-XwWCa+E4TvNGpGwXrycLRNfdogADwFcvuhyow6wDWma9W54roaQIhe+4PM0KiLsIftBdSCGI7OKCXrdSRHbIhw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-check-interop-types": "0.3.4", + "@firebase/auth-interop-types": "0.2.5", + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "faye-websocket": "0.11.4", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/database-compat": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-2.1.4.tgz", + "integrity": "sha512-3pK35F1MAgmqFJQlf2nhQl44vtAXQO1uaCaQOEUI9kCRtLFqi7N+QRKR7lFZPg+xIZIyubgxQaxY69YgfZRZWg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/database": "1.1.3", + "@firebase/database-types": "1.0.20", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/database-types": { + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/@firebase/database-types/-/database-types-1.0.20.tgz", + "integrity": "sha512-kegbOk/w8iU64pr0q6k2ItyNGjnQBMHFhwS7ohdWI4W+pc0/zhhdGXTdFj6X1oxItRjPoYOsSQmERgBkn/ihxw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-types": "0.9.5", + "@firebase/util": "1.15.1" + } + }, + "node_modules/@firebase/firestore": { + "version": "4.16.0", + "resolved": "https://registry.npmjs.org/@firebase/firestore/-/firestore-4.16.0.tgz", + "integrity": "sha512-qdHMHMvMr0nRMuZyWNR/ArWa0YlPE3C4eAbmxTASJMYXAesKPL0Y54p70moggrNPzaK7MSIIq5RDJJyntQyIYA==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "@firebase/webchannel-wrapper": "1.0.6", + "@grpc/grpc-js": "~1.9.0", + "@grpc/proto-loader": "^0.7.8", + "re2js": "^0.4.2", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/firestore-compat": { + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/@firebase/firestore-compat/-/firestore-compat-0.4.11.tgz", + "integrity": "sha512-W7o1WdwWq5aABK5Up2ncSvTQs/QGLR/fy7cVpFBNqhsXtxoMtflHf2xBIG6+aoptcuGAobddq4g2Sq27wqHaYw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/firestore": "4.16.0", + "@firebase/firestore-types": "3.0.4", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/firestore-types": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@firebase/firestore-types/-/firestore-types-3.0.4.tgz", + "integrity": "sha512-jGn+JSS4X9zZsrfu7Yw66v5YRdOLD1oyQh4USR0xWl4CUqV/DA6bNIXRPpxH/cUl3iVTNiP6MN7g+EL42A4qfA==", + "license": "Apache-2.0", + "peerDependencies": { + "@firebase/app-types": "0.x", + "@firebase/util": "1.x" + } + }, + "node_modules/@firebase/functions": { + "version": "0.13.5", + "resolved": "https://registry.npmjs.org/@firebase/functions/-/functions-0.13.5.tgz", + "integrity": "sha512-bWCx713f4kE/uFV7gdFOLBS7lDoiZj48MRkbAqe35gkXcCeWF4QjRNO07Jhmve7EJIoQOBczL29y2r8VRuN1kw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-check-interop-types": "0.3.4", + "@firebase/auth-interop-types": "0.2.5", + "@firebase/component": "0.7.3", + "@firebase/messaging-interop-types": "0.2.5", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/functions-compat": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@firebase/functions-compat/-/functions-compat-0.4.5.tgz", + "integrity": "sha512-10qlUXGY25G5/1g9UihqksPp2po+ZqSE7LEizsrdUP7vrTmkysXxGSZCDyojSEp6mQe/ecRDdDDI+z4XRdb4wQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/functions": "0.13.5", + "@firebase/functions-types": "0.6.4", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/functions-types": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/@firebase/functions-types/-/functions-types-0.6.4.tgz", + "integrity": "sha512-zV6kgqtduR4rUAdC/ilS7kmb93XD7bEZoJDlVBZqlOw2uGGGCNBQBuleww2rr0Ulr3L9o2TDjumEt68/l1f9DQ==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/installations": { + "version": "0.6.22", + "resolved": "https://registry.npmjs.org/@firebase/installations/-/installations-0.6.22.tgz", + "integrity": "sha512-ef6nn3GGQTdReCfotRMG77PJZu8CqEbiK5pEoBnM0gTu/Z9v0i/az2p3HABsa/1beQmmyh1OsOjf7P5+pgwdZw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/util": "1.15.1", + "idb": "7.1.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/installations-compat": { + "version": "0.2.22", + "resolved": "https://registry.npmjs.org/@firebase/installations-compat/-/installations-compat-0.2.22.tgz", + "integrity": "sha512-C/zpAuTP5S9OgKSPvXRupw3hoY/JZSlA1wFjD/Sb7LIQE0FNbcMdO8Y4KXVEkjVzma/DDDDIAzxEXqKMAzc88w==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/installations": "0.6.22", + "@firebase/installations-types": "0.5.4", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/installations-types": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/@firebase/installations-types/-/installations-types-0.5.4.tgz", + "integrity": "sha512-U2eFapdHwjb43Vx9o+Pmj4dFfvcHEK1IirEFLqMtWrTHvmdrS3gBpBD1kmJk/9HjsOtoHZxJ2Paoe79e+L1ZPg==", + "license": "Apache-2.0", + "peerDependencies": { + "@firebase/app-types": "0.x" + } + }, + "node_modules/@firebase/logger": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@firebase/logger/-/logger-0.5.1.tgz", + "integrity": "sha512-vZKLsqE1ABOy8OjQiE7cUTFn4gvaqlk88yp8N94Pk/sDpq61YqZGqmVFZTvOyflTwuYFcWirBdYGoJgbDaXKYQ==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/messaging": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@firebase/messaging/-/messaging-0.13.0.tgz", + "integrity": "sha512-GZoo0uGRvEbszo83xcgbjJp4FpkmBEr4l8Z4hi8gl+P1Spn/MTK3HapanMzSX4yUHuTEiF5hasWRxOaz+o5sxQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/installations": "0.6.22", + "@firebase/messaging-interop-types": "0.2.5", + "@firebase/util": "1.15.1", + "idb": "7.1.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/messaging-compat": { + "version": "0.2.27", + "resolved": "https://registry.npmjs.org/@firebase/messaging-compat/-/messaging-compat-0.2.27.tgz", + "integrity": "sha512-JNOiu1PPgdHzEPEtoFiNxQuu0x9bm4bfETSQCpGfcTlgWkhlSK7uh7nlsjC10TQLUNgYetLmuutaYTh8aeYLVA==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/messaging": "0.13.0", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/messaging-interop-types": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@firebase/messaging-interop-types/-/messaging-interop-types-0.2.5.tgz", + "integrity": "sha512-tUEKnaAP2Y/MNIqgnriPpV6e5l13Vs/+p2yrd6NGlncPJT9O3a8muYZtdnWe+IJ4fgKLHJVC79n/asxk/N5Msw==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/performance": { + "version": "0.7.12", + "resolved": "https://registry.npmjs.org/@firebase/performance/-/performance-0.7.12.tgz", + "integrity": "sha512-fe7nV8teUU3OBHlMUZ9Lw4gLhCW2k4m5Uc3pfWGV+fl8uwJQBGp9Q3lqsJ+HSrFu3Q2pJyLAgrClPGSKyDeYgQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/installations": "0.6.22", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0", + "web-vitals": "^4.2.4" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/performance-compat": { + "version": "0.2.25", + "resolved": "https://registry.npmjs.org/@firebase/performance-compat/-/performance-compat-0.2.25.tgz", + "integrity": "sha512-q6NjTXpIPoFuUmCmMN/maCdTgzT6aExs9xZo+PxfVLj6uLVGvpyAD6XWjmcrb7jChsFBYbq7E5dyNDF7Zhy9kA==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/performance": "0.7.12", + "@firebase/performance-types": "0.2.4", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/performance-types": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@firebase/performance-types/-/performance-types-0.2.4.tgz", + "integrity": "sha512-kJSEk7b0uhpcPRyL4SQ/GPujLqk52XNKcXlnsKDbWGAb9vugcLvOU3u6zfEdwd+d8hWJb5S5ZizV1JFFI0nkKg==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/remote-config": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/@firebase/remote-config/-/remote-config-0.8.5.tgz", + "integrity": "sha512-zb+7CDGFP2wYVF1LXQoYIFdoESIQM3p0+uiW1welw8+zvDxAL50K75PKTXXtunJADUrksTVpV7mD0pn54vzJRA==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/installations": "0.6.22", + "@firebase/logger": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/remote-config-compat": { + "version": "0.2.26", + "resolved": "https://registry.npmjs.org/@firebase/remote-config-compat/-/remote-config-compat-0.2.26.tgz", + "integrity": "sha512-uC57Tc7GYYOCnMgLkGIVf999XlaYaPDONoa54c93YTKDctlvCZI89z0zQ2RbhGR8Zf+QuCbQHs/99vqoE84a7g==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/logger": "0.5.1", + "@firebase/remote-config": "0.8.5", + "@firebase/remote-config-types": "0.5.1", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/remote-config-types": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@firebase/remote-config-types/-/remote-config-types-0.5.1.tgz", + "integrity": "sha512-cX/1LT6KQwkXzck2eSzeKnuvXZCyr8qaPpDcikoJs7jmI+oBOXixpDLeDtWj1U6GNMkIoXrEDNoyT2Ypcyp5/A==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/storage": { + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@firebase/storage/-/storage-0.14.3.tgz", + "integrity": "sha512-YX4/YL6P6/fufSSeGnVhjWddcIXbFq2cWIhMKFTZo1E/Rtcl2mJj/BYUQTwJfcE1Tl8un1FOya4L05jcSLN/Eg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/storage-compat": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@firebase/storage-compat/-/storage-compat-0.4.3.tgz", + "integrity": "sha512-gruVqjtUGX8tEoeNbaWXZm0Zfcfcb7fvmDmBxV8yPAbWvExRnZYLO2+qw9idxNE7BvPXt5csyjSYHy//dAizxw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.3", + "@firebase/storage": "0.14.3", + "@firebase/storage-types": "0.8.4", + "@firebase/util": "1.15.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/storage-types": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/@firebase/storage-types/-/storage-types-0.8.4.tgz", + "integrity": "sha512-BT7cwxJOx8SWwlQfrlC+bD/Sk3Cw+1odCi8UZNFNWTVZoPsBnA5W+mqtZzVnvsdJpXCFGSGQ7R7vOR6dtM/BRA==", + "license": "Apache-2.0", + "peerDependencies": { + "@firebase/app-types": "0.x", + "@firebase/util": "1.x" + } + }, + "node_modules/@firebase/util": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@firebase/util/-/util-1.15.1.tgz", + "integrity": "sha512-LUdM4Wg7YM9Pq/49nGYySJA0CSQEKnGffFzWV8+6gXN7mGxn+FL1IqvFbuZUtAQcfZgHYDwCE1wwlK7rB7gl2g==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/webchannel-wrapper": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@firebase/webchannel-wrapper/-/webchannel-wrapper-1.0.6.tgz", + "integrity": "sha512-Vr/Mqu79dMwGRAyGbJ4uN4+BtXB3/mRTdzetD1daWNeG8QaWuzhhbG77GltO5c0yYmYls8i250iX73624GJd7Q==", + "license": "Apache-2.0" + }, "node_modules/@floating-ui/core": { "version": "1.7.5", "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.5.tgz", @@ -571,6 +1184,37 @@ "integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==", "license": "MIT" }, + "node_modules/@grpc/grpc-js": { + "version": "1.9.16", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.16.tgz", + "integrity": "sha512-wE4Ut/olIzfKqp631XrG+wbF0v1vWFN4YL9FyXC2LJiG33DsV7PLzURjrCvY/6je2ntdRkeLpPDluzSRGaVltQ==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/proto-loader": "^0.7.8", + "@types/node": ">=12.12.47" + }, + "engines": { + "node": "^8.13.0 || >=10.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", + "license": "Apache-2.0", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.5", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/@humanfs/core": { "version": "0.19.2", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", @@ -1182,9 +1826,9 @@ } }, "node_modules/@next/env": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.2.9.tgz", - "integrity": "sha512-ki5VxxXfzD/9TDe13wyeTKIjQTAwBVpnr8KhRDUr8ltMUq1/NBpWNT5tiPoxiGl+PHM4X2ahSOiPk6iAimIzPg==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/@next/env/-/env-16.2.10.tgz", + "integrity": "sha512-zLPxg9M0MEHmygpj5OuxjQ+vHMiy/K7cSp74G8ecYolmgUWw0RwN02tF56npup/+qaI8JB97hQgS/r2Hb6QwVA==", "license": "MIT" }, "node_modules/@next/eslint-plugin-next": { @@ -1198,9 +1842,9 @@ } }, "node_modules/@next/swc-darwin-arm64": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.9.tgz", - "integrity": "sha512-HkfxNYUCmcct0Xsqib5KxqMSHV4AHJq857BNRchyBDs4YS19aHzVfn1kDuBYKqLLQBjXgnkIsjV2Kd4d2wzYhw==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.10.tgz", + "integrity": "sha512-v9IdJCa0H0mbo+8z5zwUpOk1Vj7RjkcI5uNYf5Ws1y6szf/p3Mzl9hLaST8SCt6L9h8NGnruZcd2+o0NTNwDhA==", "cpu": [ "arm64" ], @@ -1214,9 +1858,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.9.tgz", - "integrity": "sha512-7IAtK4MeybpqRV9GRABWEhJ62mOS+rzWOzOTFie4cSEtm12xsoOMJRcECoZx3FHPzFAqN/IJtHqWAFOLfl152w==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.10.tgz", + "integrity": "sha512-17IS0jJRViROGmA9uGdNR8VPJpfbnaVG7E9qhso5jDLkmyd0lSDORWxbcKINzcFqzZqGwGtMSnrFRxBpuUYjLQ==", "cpu": [ "x64" ], @@ -1230,9 +1874,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.9.tgz", - "integrity": "sha512-hBD75iWpUtkL9SmQmcRhmLomn9jgkPzCEkbOcLgHymPEKzv+6ONy13RRiIEz/iEObjkS2Jlb5gYS2XGoS3X4rw==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.10.tgz", + "integrity": "sha512-GRQRsRtuciNJvB54AvvuQTiq0oZtFwa1owQqtZD8wwnGpM2L39MV22kpI72YSXLKIyY40LC66EiLFv4PiicXxg==", "cpu": [ "arm64" ], @@ -1246,9 +1890,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.9.tgz", - "integrity": "sha512-qZTI3pf9SGc/obr8NkQAekBxmp1QK+kVm+VAf3BALLfFAj+1kUhkTxmrWpVos9R/UYIA8AWX2p6cGI5WdwzVUA==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.10.tgz", + "integrity": "sha512-zkN9MQYS7UQBro+FnISUq1itaQjXI9xqISzuQ+2bc921NcJ1x4yPCqrn77tVN6/dOOXaaWVX3k6/bR07pPwK+A==", "cpu": [ "arm64" ], @@ -1262,9 +1906,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.9.tgz", - "integrity": "sha512-xm0HfRNX+UkH4R3c18ynswjj5o5uEj/7iI9p9omdtTSIsRCzQqkGMA+10nzJ4EHnYC3as65IMhbbl5fWRUWHYg==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.10.tgz", + "integrity": "sha512-iCVJnwvrPYECvA6WM/7+oo+OiTvedIKLxtCLAZP4xZR3nXa1zmzZyLPbYCmWvpd4CvMYF1EMTafd0ii3DygLvA==", "cpu": [ "x64" ], @@ -1278,9 +1922,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.9.tgz", - "integrity": "sha512-QumimHkGEG6vM3PfEDWKyKen03NcqLOkeKB1EfcPe7VxzmEiCa4jNnMyBn/US5zcd/VE1CI+O8Ovb3lfjVHfGw==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.10.tgz", + "integrity": "sha512-ov2g4H0dHY9bPoOU83m91hWT7Iq5qy13bUnyyshLU3HGR1Ownn0X9QpmDPc5iIUaahTp7f7LeGAhV4DSFtackw==", "cpu": [ "x64" ], @@ -1294,9 +1938,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.9.tgz", - "integrity": "sha512-hzQpKZvw8rAwI6A2uQh6SacCSvNAXaIkPNsWwzqqfRiIMiXMfH936skDhz1OO6KpvdKkJrgHHtqQOq5PIXOvdQ==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.10.tgz", + "integrity": "sha512-DwAnhLX76HQiFFQNgWlcK+JzlnD1rZ+UK/WY0ZMI/deXpvgnesjNYrqcfo1JzBuz4Kf7o3brIBL0glI1junatA==", "cpu": [ "arm64" ], @@ -1310,9 +1954,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.2.9.tgz", - "integrity": "sha512-qr2VL3Ce5QrwgO2yh1ujSBawrimjVKX8FGF/cOynmdYKJY0BdHpGVNIRK1tqONB10Vkm25Ub1BD2bkjWs4+96w==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.2.10.tgz", + "integrity": "sha512-0JXq3b85Jk9Jg4ntLUbXSPvoDw3gpZou7twuKdoFG2jOw635v7+IiXfTaa0TxVMyx78pUjnrVYwLgjKfX4e6/A==", "cpu": [ "x64" ], @@ -1373,6 +2017,63 @@ "node": ">=12.4.0" } }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz", + "integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz", + "integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz", + "integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.1.tgz", + "integrity": "sha512-oOAWABowe8EAbMyWKM0tYDKi8Yaox52D+HWZhAIJqQXbqe0xI/GV7FhLWqlEKreMkfDjshR5FKgi3mnle0h6Eg==", + "license": "BSD-3-Clause" + }, "node_modules/@rtsao/scc": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", @@ -1702,7 +2403,6 @@ "version": "20.19.43", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz", "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==", - "dev": true, "license": "MIT", "dependencies": { "undici-types": "~6.21.0" @@ -2414,11 +3114,19 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -2888,6 +3596,20 @@ "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", "license": "MIT" }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/clsx": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", @@ -2901,7 +3623,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -2914,7 +3635,6 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, "license": "MIT" }, "node_modules/combined-stream": { @@ -3371,7 +4091,6 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -3857,6 +4576,18 @@ "reusify": "^1.0.4" } }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "license": "Apache-2.0", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", @@ -3900,6 +4631,42 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/firebase": { + "version": "12.15.0", + "resolved": "https://registry.npmjs.org/firebase/-/firebase-12.15.0.tgz", + "integrity": "sha512-p0YTLcRSTiBXMx9sGr4ZNSfLjc/RVBEw4C/TXjVMtw65+6E1Pbm47UY3F4/AqRoDobEcNX3gsbPGy7jPjxbgSQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/ai": "2.13.1", + "@firebase/analytics": "0.10.22", + "@firebase/analytics-compat": "0.2.28", + "@firebase/app": "0.15.0", + "@firebase/app-check": "0.12.0", + "@firebase/app-check-compat": "0.4.5", + "@firebase/app-compat": "0.5.14", + "@firebase/app-types": "0.9.5", + "@firebase/auth": "1.13.3", + "@firebase/auth-compat": "0.6.8", + "@firebase/data-connect": "0.7.1", + "@firebase/database": "1.1.3", + "@firebase/database-compat": "2.1.4", + "@firebase/firestore": "4.16.0", + "@firebase/firestore-compat": "0.4.11", + "@firebase/functions": "0.13.5", + "@firebase/functions-compat": "0.4.5", + "@firebase/installations": "0.6.22", + "@firebase/installations-compat": "0.2.22", + "@firebase/messaging": "0.13.0", + "@firebase/messaging-compat": "0.2.27", + "@firebase/performance": "0.7.12", + "@firebase/performance-compat": "0.2.25", + "@firebase/remote-config": "0.8.5", + "@firebase/remote-config-compat": "0.2.26", + "@firebase/storage": "0.14.3", + "@firebase/storage-compat": "0.4.3", + "@firebase/util": "1.15.1" + } + }, "node_modules/flat-cache": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", @@ -4063,6 +4830,15 @@ "node": ">=6.9.0" } }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", @@ -4301,6 +5077,12 @@ "hermes-estree": "0.25.1" } }, + "node_modules/http-parser-js": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.10.tgz", + "integrity": "sha512-Pysuw9XpUq5dVc/2SMHpuTY01RFl8fttgcyunjL7eEMhGM3cI4eOmiCycJDVCo/7O7ClfQD3SaI6ftDzqOXYMA==", + "license": "MIT" + }, "node_modules/https-proxy-agent": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", @@ -4314,6 +5096,12 @@ "node": ">= 6" } }, + "node_modules/idb": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", + "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==", + "license": "ISC" + }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -4566,6 +5354,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/is-generator-function": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", @@ -5262,6 +6059,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" + }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -5269,6 +6072,12 @@ "dev": true, "license": "MIT" }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -5556,12 +6365,12 @@ "license": "MIT" }, "node_modules/next": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/next/-/next-16.2.9.tgz", - "integrity": "sha512-MEOJiq/UvuezAdqVSceHbqDgZt1kDw2tpGVOlsdIoJsQdbN2JY2hpVG4xnXGkbdJUOEWhnRfiu/O4Hpc9Juwww==", + "version": "16.2.10", + "resolved": "https://registry.npmjs.org/next/-/next-16.2.10.tgz", + "integrity": "sha512-2som5AVXb3kE6Yjine3/mNbBayYF58eguBWIVVUdr1y/L426xyVEgYxgBG+1QC34P2x5E+tcDup6XkuOAX3dCA==", "license": "MIT", "dependencies": { - "@next/env": "16.2.9", + "@next/env": "16.2.10", "@swc/helpers": "0.5.15", "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", @@ -5575,14 +6384,14 @@ "node": ">=20.9.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "16.2.9", - "@next/swc-darwin-x64": "16.2.9", - "@next/swc-linux-arm64-gnu": "16.2.9", - "@next/swc-linux-arm64-musl": "16.2.9", - "@next/swc-linux-x64-gnu": "16.2.9", - "@next/swc-linux-x64-musl": "16.2.9", - "@next/swc-win32-arm64-msvc": "16.2.9", - "@next/swc-win32-x64-msvc": "16.2.9", + "@next/swc-darwin-arm64": "16.2.10", + "@next/swc-darwin-x64": "16.2.10", + "@next/swc-linux-arm64-gnu": "16.2.10", + "@next/swc-linux-arm64-musl": "16.2.10", + "@next/swc-linux-x64-gnu": "16.2.10", + "@next/swc-linux-x64-musl": "16.2.10", + "@next/swc-win32-arm64-msvc": "16.2.10", + "@next/swc-win32-x64-msvc": "16.2.10", "sharp": "^0.34.5" }, "peerDependencies": { @@ -5976,6 +6785,29 @@ "react-is": "^16.13.1" } }, + "node_modules/protobufjs": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.4.tgz", + "integrity": "sha512-RJJPTTpvFfHcWLkIa2JFWK4XvtSzS0yEWDmunqHXli1h3JlkbcQZXDZdcWxv+JK3Xsl5/UFDPZ0iGm7DAengYw==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.5", + "@protobufjs/eventemitter": "^1.1.1", + "@protobufjs/fetch": "^1.1.1", + "@protobufjs/float": "^1.0.2", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.1", + "@types/node": ">=13.7.0", + "long": "^5.3.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/proxy-from-env": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", @@ -6015,6 +6847,12 @@ ], "license": "MIT" }, + "node_modules/re2js": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/re2js/-/re2js-0.4.3.tgz", + "integrity": "sha512-EuNmh7jurhHEE8Ge/lBo9JuMLb3qf866Xjjfyovw3wPc7+hlqDkZq4LwhrCQMEI+ARWfrKrHozEndzlpNT0WDg==", + "license": "MIT" + }, "node_modules/react": { "version": "19.2.4", "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", @@ -6096,6 +6934,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/reselect": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.2.0.tgz", @@ -6201,6 +7048,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "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/safe-push-apply": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", @@ -6503,6 +7370,26 @@ "node": ">= 0.4" } }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, "node_modules/string.prototype.includes": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", @@ -6617,6 +7504,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-bom": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", @@ -6998,7 +7897,6 @@ "version": "6.21.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, "license": "MIT" }, "node_modules/unrs-resolver": { @@ -7089,6 +7987,12 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, + "node_modules/web-vitals": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.4.tgz", + "integrity": "sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw==", + "license": "Apache-2.0" + }, "node_modules/webidl-conversions": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", @@ -7098,6 +8002,29 @@ "node": ">=12" } }, + "node_modules/websocket-driver": { + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.5.tgz", + "integrity": "sha512-ZL2+3c7kMBdIRCMz6l8jQMHyGVxj+UL+xVk74Ombiciboca8rHa15L86B19E5oh1pL9Ii/uj54gtsIrZGMo6zA==", + "license": "Apache-2.0", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/whatwg-url": { "version": "14.2.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz", @@ -7226,6 +8153,32 @@ "node": ">=0.10.0" } }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", @@ -7233,6 +8186,33 @@ "dev": true, "license": "ISC" }, + "node_modules/yargs": { + "version": "17.7.3", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", + "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/Client/package.json b/Client/package.json index a9d27e3c..b1d3227f 100644 --- a/Client/package.json +++ b/Client/package.json @@ -13,10 +13,11 @@ "axios": "^1.18.1", "class-variance-authority": "^0.7.1", "dotenv": "^17.4.2", + "firebase": "^12.15.0", "framer-motion": "^12.42.2", "lucide-react": "^1.23.0", "mongoose": "^9.7.3", - "next": "16.2.9", + "next": "^16.2.9", "react": "19.2.4", "react-dom": "19.2.4", "react-icons": "^5.7.0", diff --git a/Client/src/app/login/page.tsx b/Client/src/app/login/page.tsx index 7791fbf8..e4bcac3f 100644 --- a/Client/src/app/login/page.tsx +++ b/Client/src/app/login/page.tsx @@ -12,7 +12,7 @@ const LoginPage = () => { return (
{/* OUTER CONTAINER */} -
+
{/* BACKGROUND BLOBS */}
@@ -26,7 +26,7 @@ const LoginPage = () => { {/* LEFT SIDE */}
{/* SCALING GRAPHICS CLUSTER */} -
+
{/* TOP LOGO */}
@@ -488,19 +488,6 @@ const LoginPage = () => {
- {/* Bottom Row */} -
- - -
- {/* Sign In */}
@@ -643,6 +651,8 @@ const RegisterPage = () => { type="password" placeholder="••••••••••••" className={inputStyle} + value={password} + onChange={(e) => dispatch(setPassword(e.target.value))} />
@@ -678,19 +688,18 @@ const RegisterPage = () => {
{/* Create account button */} - - {/* Footer */} -

- Already have an account? - router.push('/login')}> +

+ Already have an account?{" "} + Sign in - +

diff --git a/Client/src/lib/redux/hooks.ts b/Client/src/lib/redux/hooks.ts new file mode 100644 index 00000000..4669afdc --- /dev/null +++ b/Client/src/lib/redux/hooks.ts @@ -0,0 +1,6 @@ +import { useDispatch, useSelector, useStore } from "react-redux"; +import type { AppDispatch, AppStore, RootState } from "./store"; + +export const useAppDispatch = useDispatch.withTypes(); +export const useAppSelector = useSelector.withTypes(); +export const useAppStore = useStore.withTypes(); \ No newline at end of file diff --git a/Client/src/lib/redux/provider.tsx b/Client/src/lib/redux/provider.tsx new file mode 100644 index 00000000..e2b54ed5 --- /dev/null +++ b/Client/src/lib/redux/provider.tsx @@ -0,0 +1,8 @@ +"use client"; + +import { Provider } from "react-redux"; +import { store } from "./store"; + +export function ReduxProvider({ children }: { children: React.ReactNode }) { + return {children}; +} diff --git a/Client/src/lib/redux/slices/auth/registerSlice.ts b/Client/src/lib/redux/slices/auth/registerSlice.ts new file mode 100644 index 00000000..5da8e1e9 --- /dev/null +++ b/Client/src/lib/redux/slices/auth/registerSlice.ts @@ -0,0 +1,38 @@ +import { createSlice, PayloadAction } from "@reduxjs/toolkit"; + +interface RegisterState { + name: string; + email: string; + password: string; +} + +const initialState: RegisterState = { + name: "", + email: "", + password: "", +}; + +const registerSlice = createSlice({ + name: "register", + initialState, + reducers: { + setName(state, action: PayloadAction) { + state.name = action.payload; + }, + setEmail(state, action: PayloadAction) { + state.email = action.payload; + }, + setPassword(state, action: PayloadAction) { + state.password = action.payload; + }, + resetForm(state) { + state.name = ""; + state.email = ""; + state.password = ""; + }, + }, +}); + +export const { setName, setEmail, setPassword, resetForm } = + registerSlice.actions; +export default registerSlice.reducer; diff --git a/Client/src/lib/redux/store.ts b/Client/src/lib/redux/store.ts new file mode 100644 index 00000000..7d0b34b5 --- /dev/null +++ b/Client/src/lib/redux/store.ts @@ -0,0 +1,12 @@ +import { configureStore } from "@reduxjs/toolkit"; +import registerReducer from "./slices/auth/registerSlice" + +export const store = configureStore({ + reducer: { + register: registerReducer, + }, +}); + +export type RootState = ReturnType; +export type AppDispatch = typeof store.dispatch; +export type AppStore = typeof store; \ No newline at end of file From 6efdfaf3320badcda8ef1e803e24fd288142efd5 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Thu, 2 Jul 2026 17:51:10 +0530 Subject: [PATCH 0009/1390] fix some route problem --- Client/src/app/login/page.tsx | 18 ++++++++++-------- Client/src/app/register/page.tsx | 13 ++++++------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/Client/src/app/login/page.tsx b/Client/src/app/login/page.tsx index e4bcac3f..ea7c64b9 100644 --- a/Client/src/app/login/page.tsx +++ b/Client/src/app/login/page.tsx @@ -1,13 +1,12 @@ "use client" import { motion } from "framer-motion"; -import { useRouter } from "next/navigation"; import { ArrowUpRight, Globe } from "lucide-react"; +import Link from "next/link"; const cardStyle = "border border-[#F3E8DD] bg-[#FFFDFB] shadow-[0_20px_80px_rgba(215,180,140,.08)]"; const LoginPage = () => { - const router = useRouter(); return (
@@ -27,7 +26,7 @@ const LoginPage = () => {
{/* SCALING GRAPHICS CLUSTER */}
- + {/* TOP LOGO */}
@@ -450,7 +449,7 @@ const LoginPage = () => { className="mt-5 flex h-[52px] w-full items-center justify-center gap-4 rounded-[20px] bg-[#081021] text-base font-medium text-white shadow-[0_15px_40px_rgba(8,16,33,.2)] transition-all hover:opacity-95 sm:mt-6 sm:text-[18px]" > - + Continue with GitHub @@ -479,7 +478,7 @@ const LoginPage = () => { -
+
{
{/* Sign In */} - {/* Footer */}

Don't have an account? - +

diff --git a/Client/src/app/register/page.tsx b/Client/src/app/register/page.tsx index be44f22d..b407431d 100644 --- a/Client/src/app/register/page.tsx +++ b/Client/src/app/register/page.tsx @@ -1,9 +1,9 @@ "use client" import { motion } from "framer-motion"; -import { useRouter } from "next/navigation"; import { ArrowUpRight, Globe, User, Mail, Eye } from "lucide-react"; import { useAppDispatch, useAppSelector } from "@/lib/redux/hooks"; import { setName, setEmail, setPassword } from "@/lib/redux/slices/auth/registerSlice"; +import Link from "next/link"; const cardStyle = "border border-[#F3E8DE] bg-[#FFFDFB] shadow-[0_20px_80px_rgba(230,190,160,.08)]"; @@ -12,7 +12,6 @@ const inputStyle = "h-[46px] w-full rounded-[16px] border border-[#F2E7DD] bg-[#FFFDFB] px-4 pr-12 text-sm font-medium outline-none transition-all text-slate-800 focus:border-[#D3ACFF] focus:shadow-[0_0_0_3px_rgba(211,172,255,0.15)]"; const RegisterPage = () => { - const router = useRouter(); const dispatch = useAppDispatch(); const { name, email, password } = useAppSelector((state) => state.register); @@ -688,18 +687,18 @@ const RegisterPage = () => {
{/* Create account button */} - +

Already have an account?{" "} - + Sign in - +

From df1692b5dff6b6c457dc8f6ada033c41b4448466 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Thu, 2 Jul 2026 22:43:17 +0530 Subject: [PATCH 0010/1390] make a redux for login also --- Client/src/app/login/page.tsx | 13 +++++++++ Client/src/app/page.tsx | 3 ++ Client/src/app/register/page.tsx | 5 ++-- .../src/lib/redux/slices/auth/loginSlice.ts | 28 +++++++++++++++++++ Client/src/lib/redux/store.ts | 8 ++++-- 5 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 Client/src/app/page.tsx create mode 100644 Client/src/lib/redux/slices/auth/loginSlice.ts diff --git a/Client/src/app/login/page.tsx b/Client/src/app/login/page.tsx index ea7c64b9..0664f4d8 100644 --- a/Client/src/app/login/page.tsx +++ b/Client/src/app/login/page.tsx @@ -1,4 +1,6 @@ "use client" +import { useAppDispatch, useAppSelector } from "@/lib/redux/hooks"; +import { setEmail, setPassword } from "@/lib/redux/slices/auth/registerSlice"; import { motion } from "framer-motion"; import { ArrowUpRight, Globe } from "lucide-react"; import Link from "next/link"; @@ -8,6 +10,11 @@ const cardStyle = const LoginPage = () => { + const dispatch = useAppDispatch() + const {email, password} = useAppSelector((state) => state.login) + + + return (
{/* OUTER CONTAINER */} @@ -468,6 +475,9 @@ const LoginPage = () => { dispatch(setEmail(e.target.value))} placeholder="you@example.com" className="h-[50px] w-full rounded-[20px] border border-[#F3E8DD] bg-[#FFFDFB] px-5 text-base outline-none focus:border-[#D3ACFF] sm:px-7 sm:text-lg" /> @@ -480,7 +490,10 @@ const LoginPage = () => {
dispatch(setPassword(e.target.value))} placeholder="••••••••••••" className="h-[50px] w-full rounded-[20px] border border-[#F3E8DD] bg-[#FFFDFB] px-5 text-base outline-none focus:border-[#D3ACFF] sm:px-7 sm:text-lg" /> diff --git a/Client/src/app/page.tsx b/Client/src/app/page.tsx new file mode 100644 index 00000000..bbc2e7cb --- /dev/null +++ b/Client/src/app/page.tsx @@ -0,0 +1,3 @@ +export default function HomePage() { + return
HomePage
; +} \ No newline at end of file diff --git a/Client/src/app/register/page.tsx b/Client/src/app/register/page.tsx index b407431d..12d593f6 100644 --- a/Client/src/app/register/page.tsx +++ b/Client/src/app/register/page.tsx @@ -687,12 +687,11 @@ const RegisterPage = () => {
{/* Create account button */} - Create account - +

Already have an account?{" "} diff --git a/Client/src/lib/redux/slices/auth/loginSlice.ts b/Client/src/lib/redux/slices/auth/loginSlice.ts new file mode 100644 index 00000000..fe7287df --- /dev/null +++ b/Client/src/lib/redux/slices/auth/loginSlice.ts @@ -0,0 +1,28 @@ +import { createSlice,PayloadAction } from "@reduxjs/toolkit"; + +interface loginDesign { + email : string, + password : string +} + +const initialState : loginDesign = { + email : "", + password : "" +} + +const loginSlice = createSlice({ + name : "login", + initialState, + reducers : { + setEmail : (state : loginDesign, action : PayloadAction) => { + state.email = action.payload; + }, + setPassword : (state : loginDesign, action : PayloadAction) => { + state.password = action.payload; + } + } +}) + +export default loginSlice.reducer + +export const {setEmail , setPassword} = loginSlice.actions \ No newline at end of file diff --git a/Client/src/lib/redux/store.ts b/Client/src/lib/redux/store.ts index 7d0b34b5..a83659d6 100644 --- a/Client/src/lib/redux/store.ts +++ b/Client/src/lib/redux/store.ts @@ -1,10 +1,12 @@ import { configureStore } from "@reduxjs/toolkit"; import registerReducer from "./slices/auth/registerSlice" +import loginReducer from "./slices/auth/loginSlice" export const store = configureStore({ - reducer: { - register: registerReducer, - }, + reducer: { + register: registerReducer, + login: loginReducer + }, }); export type RootState = ReturnType; From ebc432001352dbd83c071657fcaea7c4f5cf2590 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Thu, 2 Jul 2026 23:32:19 +0530 Subject: [PATCH 0011/1390] make a login and registration functionality --- Client/package-lock.json | 177 +++++++++++++++++++++++++++ Client/package.json | 5 + Client/src/app/api/createMe/route.ts | 35 ++++++ Client/src/app/api/login/route.ts | 35 ++++++ Client/src/app/layout.tsx | 3 +- Client/src/app/login/page.tsx | 20 ++- Client/src/app/models/user.model.ts | 28 +++++ Client/src/app/register/page.tsx | 16 ++- Client/src/lib/auth.ts | 20 +++ Client/src/lib/hooks/useAuth.ts | 33 +++++ Client/src/lib/query-provider.tsx | 14 +++ Client/src/lib/redux/store.ts | 4 +- 12 files changed, 380 insertions(+), 10 deletions(-) create mode 100644 Client/src/app/api/createMe/route.ts create mode 100644 Client/src/app/api/login/route.ts create mode 100644 Client/src/app/models/user.model.ts create mode 100644 Client/src/lib/auth.ts create mode 100644 Client/src/lib/hooks/useAuth.ts create mode 100644 Client/src/lib/query-provider.tsx diff --git a/Client/package-lock.json b/Client/package-lock.json index 39a1ce6f..3014883d 100644 --- a/Client/package-lock.json +++ b/Client/package-lock.json @@ -10,11 +10,14 @@ "dependencies": { "@base-ui/react": "^1.6.0", "@reduxjs/toolkit": "^2.12.0", + "@tanstack/react-query": "^5.101.2", "axios": "^1.18.1", + "bcryptjs": "^3.0.3", "class-variance-authority": "^0.7.1", "dotenv": "^17.4.2", "firebase": "^12.15.0", "framer-motion": "^12.42.2", + "jsonwebtoken": "^9.0.3", "lucide-react": "^1.23.0", "mongoose": "^9.7.3", "next": "^16.2.9", @@ -27,6 +30,8 @@ }, "devDependencies": { "@tailwindcss/postcss": "^4", + "@types/bcryptjs": "^2.4.6", + "@types/jsonwebtoken": "^9.0.10", "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", @@ -2401,6 +2406,32 @@ "tailwindcss": "4.3.2" } }, + "node_modules/@tanstack/query-core": { + "version": "5.101.2", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.101.2.tgz", + "integrity": "sha512-hH5MLoJhF7KaIGd7q3xTXGXvslI+GYlM1Z/35aSHHWaCJWB7XvTSHYuV3eM7tw+aE0mT/xMro4M4Q9rCGHT0lw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { + "version": "5.101.2", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.101.2.tgz", + "integrity": "sha512-seDkr6kzGzX1okaaTtZPtgA688CDPlXUz1C6xSg0ESqn04Vuc8tlrYms1s3de+znBqhPVxFRfpAfUf+6XvfPWg==", + "license": "MIT", + "dependencies": { + "@tanstack/query-core": "5.101.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^18 || ^19" + } + }, "node_modules/@tybys/wasm-util": { "version": "0.10.3", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", @@ -2412,6 +2443,13 @@ "tslib": "^2.4.0" } }, + "node_modules/@types/bcryptjs": { + "version": "2.4.6", + "resolved": "https://registry.npmjs.org/@types/bcryptjs/-/bcryptjs-2.4.6.tgz", + "integrity": "sha512-9xlo6R2qDs5uixm0bcIqCeMCE6HiQsIyel9KQySStiyqNl2tnj2mP3DX1Nf56MD6KMenNNlBBsy3LJ7gUEQPXQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/estree": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", @@ -2433,6 +2471,24 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/jsonwebtoken": { + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.10.tgz", + "integrity": "sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/ms": "*", + "@types/node": "*" + } + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/node": { "version": "20.19.43", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz", @@ -3455,6 +3511,15 @@ "node": ">=6.0.0" } }, + "node_modules/bcryptjs": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-3.0.3.tgz", + "integrity": "sha512-GlF5wPWnSa/X5LKM1o0wz0suXIINz1iHRLvTS+sLyi7XPbe5ycmYI3DlZqVGZZtDgl4DmasFg7gOB3JYbphV5g==", + "license": "BSD-3-Clause", + "bin": { + "bcrypt": "bin/bcrypt" + } + }, "node_modules/brace-expansion": { "version": "1.1.15", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.15.tgz", @@ -3522,6 +3587,12 @@ "node": ">=20.19.0" } }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, "node_modules/call-bind": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", @@ -3904,6 +3975,15 @@ "node": ">= 0.4" } }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, "node_modules/electron-to-chromium": { "version": "1.5.383", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.383.tgz", @@ -5763,6 +5843,40 @@ "node": ">=6" } }, + "node_modules/jsonwebtoken": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz", + "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==", + "license": "MIT", + "dependencies": { + "jws": "^4.0.1", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/jsx-ast-utils": { "version": "3.3.5", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", @@ -5779,6 +5893,27 @@ "node": ">=4.0" } }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", + "dependencies": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, "node_modules/kareem": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/kareem/-/kareem-3.3.0.tgz", @@ -6115,6 +6250,42 @@ "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", "license": "MIT" }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -6122,6 +6293,12 @@ "dev": true, "license": "MIT" }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" + }, "node_modules/long": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", diff --git a/Client/package.json b/Client/package.json index 59614b85..0df39dd1 100644 --- a/Client/package.json +++ b/Client/package.json @@ -11,11 +11,14 @@ "dependencies": { "@base-ui/react": "^1.6.0", "@reduxjs/toolkit": "^2.12.0", + "@tanstack/react-query": "^5.101.2", "axios": "^1.18.1", + "bcryptjs": "^3.0.3", "class-variance-authority": "^0.7.1", "dotenv": "^17.4.2", "firebase": "^12.15.0", "framer-motion": "^12.42.2", + "jsonwebtoken": "^9.0.3", "lucide-react": "^1.23.0", "mongoose": "^9.7.3", "next": "^16.2.9", @@ -28,6 +31,8 @@ }, "devDependencies": { "@tailwindcss/postcss": "^4", + "@types/bcryptjs": "^2.4.6", + "@types/jsonwebtoken": "^9.0.10", "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", diff --git a/Client/src/app/api/createMe/route.ts b/Client/src/app/api/createMe/route.ts new file mode 100644 index 00000000..32871841 --- /dev/null +++ b/Client/src/app/api/createMe/route.ts @@ -0,0 +1,35 @@ +import connectDb from "@/lib/mongodb"; +import { User } from "@/app/models/user.model"; +import { NextRequest, NextResponse } from "next/server"; +import { hashPassword, signToken } from "@/lib/auth"; +import { nanoid } from "nanoid"; + +export const POST = async (req: NextRequest) => { + try { + await connectDb(); + const merchantCode = nanoid(10); + const { name, email, password } = await req.json(); + + const existing = await User.findOne({ email }); + if (existing) { + return NextResponse.json({ success: false, message: "User already exists" }); + } + + const hashedPassword = await hashPassword(password); + const user = await User.create({ name, email, password: hashedPassword, merchantCode }); + + const token = signToken({ userId: user._id.toString(), email: user.email }); + const response = NextResponse.json({ success: true, user: { id: user._id, name: user.name, email: user.email } }); + response.cookies.set("token", token, { + httpOnly: true, + secure: process.env.NODE_ENV === "production", + sameSite: "lax", + maxAge: 7 * 24 * 60 * 60, + }); + + return response; + } catch (error) { + console.log(error); + return NextResponse.json({ success: false, message: "Internal server error" }); + } +} \ No newline at end of file diff --git a/Client/src/app/api/login/route.ts b/Client/src/app/api/login/route.ts new file mode 100644 index 00000000..c258d636 --- /dev/null +++ b/Client/src/app/api/login/route.ts @@ -0,0 +1,35 @@ +import connectDb from "@/lib/mongodb"; +import { User } from "@/app/models/user.model"; +import { NextRequest, NextResponse } from "next/server"; +import { comparePassword, signToken } from "@/lib/auth"; + +export const POST = async (req : NextRequest) => { + try { + await connectDb(); + const { email , password } = await req.json(); + + const user = await User.findOne({ email }); + if (!user) { + return NextResponse.json({success:false , message:"Invalid credentials"}, {status:401}); + } + + const isValid = await comparePassword(password, user.password); + if (!isValid) { + return NextResponse.json({success:false , message:"Invalid credentials"}, {status:401}); + } + + const token = signToken({ userId : user._id.toString(), email : user.email }); + const response = NextResponse.json({success:true , user : { id: user._id, name: user.name, email: user.email }}); + response.cookies.set("token", token, { + httpOnly : true, + secure : process.env.NODE_ENV === "production", + sameSite : "lax", + maxAge : 7 * 24 * 60 * 60, + }); + + return response; + } catch (error) { + console.log(error); + return NextResponse.json({success:false , message:"Internal server error"}); + } +} diff --git a/Client/src/app/layout.tsx b/Client/src/app/layout.tsx index 4eee5ea8..b3fbd146 100644 --- a/Client/src/app/layout.tsx +++ b/Client/src/app/layout.tsx @@ -2,6 +2,7 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; import { ReduxProvider } from "@/lib/redux/provider"; +import { QueryProvider } from "@/lib/query-provider"; const geistSans = Geist({ variable: "--font-geist-sans", @@ -29,7 +30,7 @@ export default function RootLayout({ className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`} > - {children} + {children} ); diff --git a/Client/src/app/login/page.tsx b/Client/src/app/login/page.tsx index 0664f4d8..e139bf28 100644 --- a/Client/src/app/login/page.tsx +++ b/Client/src/app/login/page.tsx @@ -1,9 +1,11 @@ "use client" import { useAppDispatch, useAppSelector } from "@/lib/redux/hooks"; -import { setEmail, setPassword } from "@/lib/redux/slices/auth/registerSlice"; +import { setEmail, setPassword } from "@/lib/redux/slices/auth/loginSlice"; import { motion } from "framer-motion"; import { ArrowUpRight, Globe } from "lucide-react"; import Link from "next/link"; +import { useLoginMutation } from "@/lib/hooks/useAuth"; +import { FormEvent } from "react"; const cardStyle = "border border-[#F3E8DD] bg-[#FFFDFB] shadow-[0_20px_80px_rgba(215,180,140,.08)]"; @@ -12,8 +14,12 @@ const LoginPage = () => { const dispatch = useAppDispatch() const {email, password} = useAppSelector((state) => state.login) + const loginMutation = useLoginMutation() - + const handleSubmit = (e : FormEvent) => { + e.preventDefault() + loginMutation.mutate({ email, password }) + } return (

@@ -468,6 +474,7 @@ const LoginPage = () => {
+
{/* Email */}
- {/* Form inputs */} -
- {/* Full Name */} -
- -
- dispatch(setName(e.target.value))} - /> - + {/* Form inputs */} +
+ {/* Full Name */} +
+ +
+ dispatch(setName(e.target.value))} + /> + +
-
- {/* Email address */} -
- -
- dispatch(setEmail(e.target.value))} - /> - + {/* Email address */} +
+ +
+ dispatch(setEmail(e.target.value))} + /> + +
-
- {/* Password */} -
- -
- dispatch(setPassword(e.target.value))} - /> -
- + {/* Password */} +
+ +
+ dispatch(setPassword(e.target.value))} + /> +
+ +
-
- {/* Password checklist */} -
-
-
- ✓ + {/* Password checklist */} +
+
+
+ ✓ +
+ At least 8 characters
- At least 8 characters -
-
-
- ✓ +
+
+ ✓ +
+ One uppercase letter
- One uppercase letter -
-
-
- ✓ +
+
+ ✓ +
+ One lowercase letter +
+
+
+ One number or symbol
- One lowercase letter -
-
-
- One number or symbol
-
- {/* Create account button */} - + {/* Create account button */} +

diff --git a/Client/src/lib/auth.ts b/Client/src/lib/auth.ts index 8360cda4..d4074e4e 100644 --- a/Client/src/lib/auth.ts +++ b/Client/src/lib/auth.ts @@ -11,10 +11,10 @@ export async function comparePassword(password: string, hash: string) { return bcrypt.compare(password, hash); } -export function signToken(payload: { userId: string; email: string }) { +export function signToken(payload: { userId: string; role: string }) { return jwt.sign(payload, JWT_SECRET, { expiresIn: "7d" }); } export function verifyToken(token: string) { - return jwt.verify(token, JWT_SECRET) as { userId: string; email: string }; + return jwt.verify(token, JWT_SECRET) as { userId: string; role: string }; } diff --git a/Client/src/lib/hooks/useAuth.ts b/Client/src/lib/hooks/useAuth.ts index b1fd1cad..4862846a 100644 --- a/Client/src/lib/hooks/useAuth.ts +++ b/Client/src/lib/hooks/useAuth.ts @@ -6,7 +6,7 @@ export function useLoginMutation() { const router = useRouter(); return useMutation({ - mutationFn: (data: { email: string; password: string }) => + mutationFn: (data: { email: string; password?: string }) => api.post("/api/login", data).then((res) => res.data.user), onSuccess: () => { router.push("/"); @@ -21,7 +21,7 @@ export function useRegisterMutation() { const router = useRouter(); return useMutation({ - mutationFn: (data: { name: string; email: string; password: string }) => + mutationFn: (data: { name: string; email: string; password?: string }) => api.post("/api/createMe", data).then((res) => res.data.user), onSuccess: () => { router.push("/"); From ca3a8ce78e263c90cc85b62f9f3b5d8b57bd1c59 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Sat, 4 Jul 2026 01:16:32 +0530 Subject: [PATCH 0016/1390] make a env and example --- Client/.env.example | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Client/.env.example diff --git a/Client/.env.example b/Client/.env.example new file mode 100644 index 00000000..9bcdbbd6 --- /dev/null +++ b/Client/.env.example @@ -0,0 +1,12 @@ +MONGODB_URI=mongodb+srv://:@.mongodb.net/?appName= +NEXT_PUBLIC_API_URL=http://localhost:3000 +NEXT_PUBLIC_BACKEND_URL=http://localhost:8008 +JWT_SECRET= + +# Firebase config +NEXT_PUBLIC_FIREBASE_API_KEY= +NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=.firebaseapp.com +NEXT_PUBLIC_FIREBASE_PROJECT_ID= +NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=.firebasestorage.app +NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID= +NEXT_PUBLIC_FIREBASE_APP_ID= From a76a57b6572ac0bc130fcd9b169cd6c36acab5d8 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Sat, 4 Jul 2026 01:18:09 +0530 Subject: [PATCH 0017/1390] make a update in .gitingnore --- Client/.gitignore | 3 --- 1 file changed, 3 deletions(-) diff --git a/Client/.gitignore b/Client/.gitignore index 6d805f8c..c1eb3b25 100644 --- a/Client/.gitignore +++ b/Client/.gitignore @@ -30,9 +30,6 @@ yarn-debug.log* yarn-error.log* .pnpm-debug.log* -# env files (can opt-in for committing if needed) -.env* - # vercel .vercel From fd349dc76dd5e1704cae5c8e9f23e3e1b357e9e2 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Sat, 4 Jul 2026 02:11:20 +0530 Subject: [PATCH 0018/1390] this is a commit --- Client/src/app/register/page.tsx | 4 +++- Client/src/lib/auth.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Client/src/app/register/page.tsx b/Client/src/app/register/page.tsx index 98b3828f..7332c122 100644 --- a/Client/src/app/register/page.tsx +++ b/Client/src/app/register/page.tsx @@ -20,11 +20,13 @@ const RegisterPage = () => { const { name, email, password } = useAppSelector((state) => state.register); const registerMutation = useRegisterMutation(); + // Form thier the function manage the submit things. Tanstack const handleSubmit = (e: FormEvent) => { e.preventDefault(); - registerMutation.mutate({ name, email, password }); + registerMutation.mutate({ name, email, password }); }; + // Github Sign In. const handleGithubClick = async () => { try { const result = await signInWithPopup(auth, githubProvider); diff --git a/Client/src/lib/auth.ts b/Client/src/lib/auth.ts index d4074e4e..709b8f19 100644 --- a/Client/src/lib/auth.ts +++ b/Client/src/lib/auth.ts @@ -17,4 +17,4 @@ export function signToken(payload: { userId: string; role: string }) { export function verifyToken(token: string) { return jwt.verify(token, JWT_SECRET) as { userId: string; role: string }; -} +} \ No newline at end of file From 4676a5cc741c7a65720b53ba40b70fc4553a5e08 Mon Sep 17 00:00:00 2001 From: VedantGupta19402 Date: Sat, 4 Jul 2026 02:17:16 +0530 Subject: [PATCH 0019/1390] make a dashboard page --- Client/package-lock.json | 275 ++++++++++- Client/package.json | 1 + .../components/BuildActivityChart.tsx | 84 ++++ .../dashboard/components/DeploymentsChart.tsx | 36 ++ .../src/app/dashboard/components/FadeIn.tsx | 30 ++ .../app/dashboard/components/MetricCard.tsx | 48 ++ .../app/dashboard/components/ResourceBar.tsx | 34 ++ .../dashboard/components/SectionHeader.tsx | 20 + .../src/app/dashboard/components/Sidebar.tsx | 136 ++++++ .../dashboard/components/TimelineEvent.tsx | 93 ++++ Client/src/app/dashboard/data/dashboard.ts | 63 +++ Client/src/app/dashboard/page.tsx | 457 ++++++++++++++++++ Client/src/app/globals.css | 49 ++ Client/src/app/layout.tsx | 1 + 14 files changed, 1326 insertions(+), 1 deletion(-) create mode 100644 Client/src/app/dashboard/components/BuildActivityChart.tsx create mode 100644 Client/src/app/dashboard/components/DeploymentsChart.tsx create mode 100644 Client/src/app/dashboard/components/FadeIn.tsx create mode 100644 Client/src/app/dashboard/components/MetricCard.tsx create mode 100644 Client/src/app/dashboard/components/ResourceBar.tsx create mode 100644 Client/src/app/dashboard/components/SectionHeader.tsx create mode 100644 Client/src/app/dashboard/components/Sidebar.tsx create mode 100644 Client/src/app/dashboard/components/TimelineEvent.tsx create mode 100644 Client/src/app/dashboard/data/dashboard.ts create mode 100644 Client/src/app/dashboard/page.tsx diff --git a/Client/package-lock.json b/Client/package-lock.json index 3014883d..a1ccea03 100644 --- a/Client/package-lock.json +++ b/Client/package-lock.json @@ -25,6 +25,7 @@ "react-dom": "19.2.4", "react-icons": "^5.7.0", "react-redux": "^9.3.0", + "recharts": "^3.9.1", "tailwind-merge": "^3.6.0", "tailwind-scrollbar-hide": "^4.0.0" }, @@ -2450,6 +2451,69 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/d3-array": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", + "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", + "license": "MIT" + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "license": "MIT" + }, + "node_modules/@types/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", + "license": "MIT" + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "license": "MIT", + "dependencies": { + "@types/d3-color": "*" + } + }, + "node_modules/@types/d3-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", + "license": "MIT" + }, + "node_modules/@types/d3-scale": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", + "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", + "license": "MIT", + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-shape": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz", + "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", + "license": "MIT", + "dependencies": { + "@types/d3-path": "*" + } + }, + "node_modules/@types/d3-time": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", + "license": "MIT" + }, + "node_modules/@types/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "license": "MIT" + }, "node_modules/@types/estree": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", @@ -3796,6 +3860,127 @@ "devOptional": true, "license": "MIT" }, + "node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "license": "ISC", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", + "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "license": "ISC", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "license": "ISC", + "dependencies": { + "d3-path": "^3.1.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "license": "ISC", + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "license": "ISC", + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, "node_modules/damerau-levenshtein": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", @@ -3874,6 +4059,12 @@ } } }, + "node_modules/decimal.js-light": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz", + "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==", + "license": "MIT" + }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -4207,6 +4398,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-toolkit": { + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.49.0.tgz", + "integrity": "sha512-G5iZ6Pc/FNRY/soKZHC+TxGDD83rHUDXxzaWhGCX44vAv/tMs56WMusnm/KMNK+luUPsgA9U28cGr4RDlSzL2g==", + "license": "MIT", + "workspaces": [ + "docs", + "benchmarks" + ] + }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -4635,6 +4836,12 @@ "node": ">=0.10.0" } }, + "node_modules/eventemitter3": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", + "license": "MIT" + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -5284,6 +5491,15 @@ "node": ">= 0.4" } }, + "node_modules/internmap": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, "node_modules/is-array-buffer": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", @@ -7114,7 +7330,6 @@ "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true, "license": "MIT" }, "node_modules/react-redux": { @@ -7140,6 +7355,36 @@ } } }, + "node_modules/recharts": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/recharts/-/recharts-3.9.1.tgz", + "integrity": "sha512-WMcwlXcB7l+BbxiEdyClkG+1sxrMHNZpzT577LEvU4+rXPd8oTAy1wXk72hnk2KOOmxuLvw3z5DtXT7HEAydtg==", + "license": "MIT", + "workspaces": [ + "www" + ], + "dependencies": { + "@reduxjs/toolkit": "^1.9.0 || 2.x.x", + "clsx": "^2.1.1", + "decimal.js-light": "^2.5.1", + "es-toolkit": "^1.39.3", + "eventemitter3": "^5.0.1", + "immer": "^11.1.8", + "react-redux": "8.x.x || 9.x.x", + "reselect": "5.2.0", + "tiny-invariant": "^1.3.3", + "use-sync-external-store": "^1.2.2", + "victory-vendor": "^37.0.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/redux": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz", @@ -7892,6 +8137,12 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/tiny-invariant": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", + "license": "MIT" + }, "node_modules/tinyglobby": { "version": "0.2.17", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", @@ -8252,6 +8503,28 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, + "node_modules/victory-vendor": { + "version": "37.3.6", + "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-37.3.6.tgz", + "integrity": "sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==", + "license": "MIT AND ISC", + "dependencies": { + "@types/d3-array": "^3.0.3", + "@types/d3-ease": "^3.0.0", + "@types/d3-interpolate": "^3.0.1", + "@types/d3-scale": "^4.0.2", + "@types/d3-shape": "^3.1.0", + "@types/d3-time": "^3.0.0", + "@types/d3-timer": "^3.0.0", + "d3-array": "^3.1.6", + "d3-ease": "^3.0.1", + "d3-interpolate": "^3.0.1", + "d3-scale": "^4.0.2", + "d3-shape": "^3.1.0", + "d3-time": "^3.0.0", + "d3-timer": "^3.0.1" + } + }, "node_modules/web-vitals": { "version": "4.2.4", "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.4.tgz", diff --git a/Client/package.json b/Client/package.json index 0df39dd1..424b81ee 100644 --- a/Client/package.json +++ b/Client/package.json @@ -26,6 +26,7 @@ "react-dom": "19.2.4", "react-icons": "^5.7.0", "react-redux": "^9.3.0", + "recharts": "^3.9.1", "tailwind-merge": "^3.6.0", "tailwind-scrollbar-hide": "^4.0.0" }, diff --git a/Client/src/app/dashboard/components/BuildActivityChart.tsx b/Client/src/app/dashboard/components/BuildActivityChart.tsx new file mode 100644 index 00000000..cd445809 --- /dev/null +++ b/Client/src/app/dashboard/components/BuildActivityChart.tsx @@ -0,0 +1,84 @@ +"use client"; + +import React from "react"; +import { + BarChart, + Bar, + XAxis, + ResponsiveContainer, + PieChart, + Pie, + Cell, +} from "recharts"; + +interface BuildActivityChartProps { + buildData: any[]; + weeklyBuilds: any[]; +} + +export const BuildActivityChart = ({ buildData, weeklyBuilds }: BuildActivityChartProps) => { + return ( + <> +

+
+ + + + {buildData.map((entry, index) => ( + + ))} + + + +
+ + 96 + + + Total + +
+
+ +
+ {buildData.map((item) => ( +
+
+ + {item.value} + + + {item.name} + +
+ ))} +
+
+ +
+ + + + + + +
+ + ); +}; diff --git a/Client/src/app/dashboard/components/DeploymentsChart.tsx b/Client/src/app/dashboard/components/DeploymentsChart.tsx new file mode 100644 index 00000000..996bc076 --- /dev/null +++ b/Client/src/app/dashboard/components/DeploymentsChart.tsx @@ -0,0 +1,36 @@ +"use client"; + +import React from "react"; +import { + LineChart, + Line, + ResponsiveContainer, +} from "recharts"; + +interface DeploymentsChartProps { + data: any[]; +} + +export const DeploymentsChart = ({ data }: DeploymentsChartProps) => { + return ( +
+ + + + + +
+ ); +}; diff --git a/Client/src/app/dashboard/components/FadeIn.tsx b/Client/src/app/dashboard/components/FadeIn.tsx new file mode 100644 index 00000000..f3e8dd30 --- /dev/null +++ b/Client/src/app/dashboard/components/FadeIn.tsx @@ -0,0 +1,30 @@ +"use client"; + +import React from "react"; +import { motion, HTMLMotionProps } from "framer-motion"; + +interface FadeInProps extends HTMLMotionProps<"div"> { + children: React.ReactNode; + delay?: number; + yOffset?: number; + xOffset?: number; +} + +export const FadeIn = ({ + children, + delay = 0, + yOffset = 20, + xOffset = 0, + className, + ...props +}: FadeInProps) => ( + + {children} + +); diff --git a/Client/src/app/dashboard/components/MetricCard.tsx b/Client/src/app/dashboard/components/MetricCard.tsx new file mode 100644 index 00000000..fa74332b --- /dev/null +++ b/Client/src/app/dashboard/components/MetricCard.tsx @@ -0,0 +1,48 @@ +"use client"; + +import React from "react"; +import { motion } from "framer-motion"; + +export const MetricCard = ({ + icon, + title, + value, + delta, + positive, + delay, +}: { + icon: React.ReactNode; + title: string; + value: string; + delta: string; + positive: boolean; + delay: number; +}) => ( + +
+
+ {icon} +
+ {title} +
+
+

+ {value} +

+
+ {delta} +
+
+
+); diff --git a/Client/src/app/dashboard/components/ResourceBar.tsx b/Client/src/app/dashboard/components/ResourceBar.tsx new file mode 100644 index 00000000..8be21d6f --- /dev/null +++ b/Client/src/app/dashboard/components/ResourceBar.tsx @@ -0,0 +1,34 @@ +"use client"; + +import React from "react"; +import { motion } from "framer-motion"; + +export const ResourceBar = ({ + icon, + label, + value, + progress, +}: { + icon: React.ReactNode; + label: string; + value: string; + progress: number; +}) => ( +
+
+
+ {icon} + {label} +
+ {value} +
+
+ +
+
+); diff --git a/Client/src/app/dashboard/components/SectionHeader.tsx b/Client/src/app/dashboard/components/SectionHeader.tsx new file mode 100644 index 00000000..7db3cc17 --- /dev/null +++ b/Client/src/app/dashboard/components/SectionHeader.tsx @@ -0,0 +1,20 @@ +import React from "react"; +import { ChevronRight } from "lucide-react"; + +export const SectionHeader = ({ + title, + action, +}: { + title: string; + action: string; +}) => ( +
+

+ {title} +

+ +
+); diff --git a/Client/src/app/dashboard/components/Sidebar.tsx b/Client/src/app/dashboard/components/Sidebar.tsx new file mode 100644 index 00000000..16ac4e2c --- /dev/null +++ b/Client/src/app/dashboard/components/Sidebar.tsx @@ -0,0 +1,136 @@ +import React from "react"; +import { + Activity, + Bell, + ChevronRight, + FolderKanban, + Rocket, + Search, + Server, + Settings, + Users, +} from "lucide-react"; + +export const Sidebar = () => { + return ( + + ); +}; diff --git a/Client/src/app/dashboard/components/TimelineEvent.tsx b/Client/src/app/dashboard/components/TimelineEvent.tsx new file mode 100644 index 00000000..4c5863b7 --- /dev/null +++ b/Client/src/app/dashboard/components/TimelineEvent.tsx @@ -0,0 +1,93 @@ +import React from "react"; + +export const TimelineEvent = ({ + time, + icon: Icon, + iconColor, + bgColor, + title, + subtitle, + badge, + badge2, + duration, + avatars, + active, +}: { + time: string; + icon: React.ElementType; + iconColor: string; + bgColor: string; + title: string; + subtitle: string; + badge?: string; + badge2?: string; + duration?: string; + avatars?: boolean; + active?: boolean; +}) => ( +
+
+ + {time} + +
+
+
+
+
+
+
+
+
+
+

+ {title} +

+ {badge && ( + + {badge} + + )} + {badge2 && ( + + @{badge2} + + )} +
+ +
+

{subtitle}

+ {duration && ( +
+ + {duration} +
+ )} + {avatars && ( +
+ {[1, 2, 3].map((i) => ( + avatar + ))} +
+ +2 +
+
+ )} +
+
+); diff --git a/Client/src/app/dashboard/data/dashboard.ts b/Client/src/app/dashboard/data/dashboard.ts new file mode 100644 index 00000000..b6e7524d --- /dev/null +++ b/Client/src/app/dashboard/data/dashboard.ts @@ -0,0 +1,63 @@ +export const deploymentData = [ + { time: "00:00", value: 40 }, + { time: "04:00", value: 30 }, + { time: "08:00", value: 60 }, + { time: "12:00", value: 45 }, + { time: "16:00", value: 80 }, + { time: "20:00", value: 55 }, + { time: "24:00", value: 70 }, +]; + +export const buildData = [ + { name: "Successful", value: 52, color: "var(--accent)" }, + { name: "Failed", value: 8, color: "var(--text-muted)" }, // changed to muted or red + { name: "Running", value: 36, color: "var(--accent-light)" }, +]; + +export const weeklyBuilds = [ + { day: "Mon", builds: 45 }, + { day: "Tue", builds: 30 }, + { day: "Wed", builds: 55 }, + { day: "Thu", builds: 40 }, + { day: "Fri", builds: 70 }, + { day: "Sat", builds: 20 }, + { day: "Sun", builds: 15 }, +]; + +export const recentCommits = [ + { + id: 1, + message: "feat: add authentication", + author: "tanushpatel", + time: "2m ago", + status: "success", + }, + { + id: 2, + message: "fix: resolve api timeout", + author: "vercel-bot", + time: "15m ago", + status: "success", + }, + { + id: 3, + message: "chore: update dependencies", + author: "dependabot", + time: "1h ago", + status: "success", + }, + { + id: 4, + message: "docs: improve readme", + author: "tanushpatel", + time: "3h ago", + status: "success", + }, +]; + +export const activeRepositories = [ + { name: "bytebin/core", type: "Next.js", stars: "1.2k" }, + { name: "bytebin/cli", type: "TypeScript", stars: "856" }, + { name: "bytebin/ui", type: "React", stars: "642" }, + { name: "bytebin/docs", type: "MDX", stars: "313" }, +]; diff --git a/Client/src/app/dashboard/page.tsx b/Client/src/app/dashboard/page.tsx new file mode 100644 index 00000000..1375df29 --- /dev/null +++ b/Client/src/app/dashboard/page.tsx @@ -0,0 +1,457 @@ +import React from "react"; +import { + Search, + FolderKanban, + Rocket, + Server, + Activity, + Users, + Bell, + ChevronRight, + ChevronDown, + CheckCircle2, + Clock, + GitCommit, + Plus, + RefreshCw, + FilePlus, + Hash, + Sparkles, + Monitor, + GitBranch, + Sun, +} from "lucide-react"; + +import { Sidebar } from "./components/Sidebar"; +import { MetricCard } from "./components/MetricCard"; +import { SectionHeader } from "./components/SectionHeader"; +import { ResourceBar } from "./components/ResourceBar"; +import { TimelineEvent } from "./components/TimelineEvent"; +import { FadeIn } from "./components/FadeIn"; +import { DeploymentsChart } from "./components/DeploymentsChart"; +import { BuildActivityChart } from "./components/BuildActivityChart"; + +import { + deploymentData, + buildData, + weeklyBuilds, + recentCommits, + activeRepositories, +} from "./data/dashboard"; + +export default function Dashboard() { + return ( +
+ {/* Background Blobs */} +
+
+ + + +
+ {/* Topbar */} +
+
+
+ + +
+ + ⌘ + + + K + +
+
+
+ +
+
+ In: + + + + +
+ +
+ + + + +
+
+
+ + {/* Content */} +
+
+ {/* Header */} + +

+ Good morning, Developer! 👋 +

+

+ Here's what's happening with your projects today. +

+
+ + {/* Metrics */} +
+ } + title="Repositories" + value="24" + delta="↑ 3 this week" + positive + delay={0.05} + /> + } + title="Deployments" + value="38" + delta="↑ 12 this week" + positive + delay={0.1} + /> + } + title="Builds" + value="96" + delta="↑ 8 this week" + positive + delay={0.15} + /> + } + title="Uptime" + value="99.9%" + delta="All operational" + positive + delay={0.2} + /> +
+ +
+ {/* Deployments Chart */} + + +
+
+
+ + + + + +
+
+

+ api.bytebin.com +

+

Production

+
+
+
+
+
+ Live +
+

2m ago

+
+
+ + + +
+
+

+ 99.9% +

+

Uptime

+
+
+

+ 120ms +

+

Latency

+
+
+

+ 23 +

+

Instances

+
+
+ + + {/* Build Activity */} + + + + +
+ +
+ {/* Recent Commits */} + + +
+ {recentCommits.map((commit) => ( +
+
+
+ {commit.author.includes("bot") ? ( + + ) : ( + + )} +
+
+

+ {commit.message} +

+
+ by {commit.author} + + {commit.time} +
+
+
+ +
+ ))} +
+
+ + {/* Resource Usage */} + + +
+ } + label="CPU Usage" + value="48%" + progress={48} + /> + } + label="Memory Usage" + value="3.2 / 8 GB" + progress={40} + /> + } + label="Bandwidth" + value="120 / 500 GB" + progress={24} + /> + } + label="Storage" + value="45 / 200 GB" + progress={22} + /> +
+
+
+ + {/* Active Repositories */} + + +
+ {activeRepositories.map((repo, i) => ( +
+
+
+ BB +
+
+

+ {repo.name} +

+
+ + {repo.type} + + + ☆ {repo.stars} + +
+
+
+
+ {[40, 60, 30, 80, 50, 70, 40].map((h, j) => ( +
+ ))} +
+
+ ))} +
+ +
+ + {/* Right Panel */} +
+ +
+ + + May 2024 + + +
+ +
+ {["MO", "TU", "WE", "TH", "FR", "SA", "SU"].map((d) => ( +
+ {d} +
+ ))} + {[...Array(35)].map((_, i) => { + const day = i - 1; + const isCurrentMonth = day > 0 && day <= 31; + const isSelected = day === 15; + + return ( +
+ {day > 0 ? (day > 31 ? day - 31 : day) : 30 + day} +
+ ); + })} +
+ +
+ + + +
+
+ + +
+
+ Today + + May 15 +
+ +
+ +
+ + + + +
+ + +
+
+
+
+
+ ); +} diff --git a/Client/src/app/globals.css b/Client/src/app/globals.css index f1d8c73c..7822779f 100644 --- a/Client/src/app/globals.css +++ b/Client/src/app/globals.css @@ -1 +1,50 @@ +@import url('https://api.fontshare.com/v2/css?f[]=general-sans@200,300,400,500,600,700&display=swap'); @import "tailwindcss"; + +@theme { + --font-sans: 'General Sans', sans-serif; + --color-bg-base: var(--bg-base); + --color-bg-card: var(--bg-card); + --color-border-subtle: var(--border-subtle); + --color-text-main: var(--text-main); + --color-text-muted: var(--text-muted); + --color-accent: var(--accent); + --color-accent-hover: var(--accent-hover); + --color-accent-light: var(--accent-light); + --color-success: var(--success); + --color-success-bg: var(--success-bg); +} + +@layer base { + :root { + --bg-base: #FFFDFB; + --bg-card: #FFFFFF; + --border-subtle: #F1E8DE; + --text-main: #171717; + --text-muted: #6B7280; + --accent: #D3ACFF; + --accent-hover: #c296ff; + --accent-light: #F4ECFF; + --success: #22C55E; + --success-bg: #f0fdf4; + } + + .dark { + --bg-base: #13111C; + --bg-card: #1C1A27; + --border-subtle: #2D2B3B; + --text-main: #FFFFFF; + --text-muted: #9CA3AF; + --accent: #9D4EDD; + --accent-hover: #8B5CF6; + --accent-light: #2A1B43; + --success: #34D399; + --success-bg: #064E3B; + } + + body { + font-family: 'General Sans', sans-serif; + background-color: var(--bg-base); + color: var(--text-main); + } +} diff --git a/Client/src/app/layout.tsx b/Client/src/app/layout.tsx index b3fbd146..f7714abd 100644 --- a/Client/src/app/layout.tsx +++ b/Client/src/app/layout.tsx @@ -28,6 +28,7 @@ export default function RootLayout({ {children} From 9bfd0ccbf1bef108ba8fc05194bb9cc86f20ff66 Mon Sep 17 00:00:00 2001 From: VedantGupta19402 Date: Sat, 4 Jul 2026 21:36:36 +0530 Subject: [PATCH 0020/1390] littile dasboard fix --- .../src/app/dashboard/components/Sidebar.tsx | 34 +++++++++++-------- .../dashboard/components/TimelineEvent.tsx | 3 +- Client/src/app/page.tsx | 2 +- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/Client/src/app/dashboard/components/Sidebar.tsx b/Client/src/app/dashboard/components/Sidebar.tsx index 16ac4e2c..b2b322ae 100644 --- a/Client/src/app/dashboard/components/Sidebar.tsx +++ b/Client/src/app/dashboard/components/Sidebar.tsx @@ -1,4 +1,6 @@ import React from "react"; +import Link from "next/link"; +import Image from "next/image"; import { Activity, Bell, @@ -30,49 +32,49 @@ export const Sidebar = () => {

Overview

- Dashboard - - + Repositories - - + Deployments - - + Infrastructure - +
@@ -116,9 +118,11 @@ export const Sidebar = () => { {/* User Profile */}
- User
diff --git a/Client/src/app/dashboard/components/TimelineEvent.tsx b/Client/src/app/dashboard/components/TimelineEvent.tsx index 4c5863b7..4cf90f4d 100644 --- a/Client/src/app/dashboard/components/TimelineEvent.tsx +++ b/Client/src/app/dashboard/components/TimelineEvent.tsx @@ -1,3 +1,4 @@ +import Image from "next/image"; import React from "react"; export const TimelineEvent = ({ @@ -76,7 +77,7 @@ export const TimelineEvent = ({ {avatars && (
{[1, 2, 3].map((i) => ( - HomePage
; -} \ No newline at end of file +} \ No newline at end of file From 05480602c775998da9cfed80f58a750ecc6eea9d Mon Sep 17 00:00:00 2001 From: VedantGupta19402 Date: Sun, 5 Jul 2026 01:11:39 +0530 Subject: [PATCH 0021/1390] made homepage --- Client/next.config.ts | 8 + Client/package-lock.json | 56 ++++-- Client/package.json | 1 + .../dashboard/components/DeploymentsChart.tsx | 2 +- .../src/app/dashboard/components/Sidebar.tsx | 3 - .../dashboard/components/TimelineEvent.tsx | 2 + Client/src/app/dashboard/page.tsx | 4 +- .../src/app/homeComponents/BentoSection.tsx | 85 ++++++++ .../src/app/homeComponents/FeaturesGrid.tsx | 74 +++++++ Client/src/app/homeComponents/FinalCTA.tsx | 43 ++++ Client/src/app/homeComponents/Footer.tsx | 92 +++++++++ Client/src/app/homeComponents/Hero.tsx | 174 +++++++++++++++++ Client/src/app/homeComponents/HowItWorks.tsx | 77 ++++++++ .../app/homeComponents/InteractivePreview.tsx | 183 ++++++++++++++++++ Client/src/app/homeComponents/Navigation.tsx | 128 ++++++++++++ Client/src/app/homeComponents/Pricing.tsx | 98 ++++++++++ .../src/app/homeComponents/Testimonials.tsx | 67 +++++++ Client/src/app/homeComponents/TrustedBy.tsx | 34 ++++ Client/src/app/page.tsx | 37 +++- Client/src/lib/utils.ts | 6 + Documentation.txt | 3 +- 21 files changed, 1150 insertions(+), 27 deletions(-) create mode 100644 Client/src/app/homeComponents/BentoSection.tsx create mode 100644 Client/src/app/homeComponents/FeaturesGrid.tsx create mode 100644 Client/src/app/homeComponents/FinalCTA.tsx create mode 100644 Client/src/app/homeComponents/Footer.tsx create mode 100644 Client/src/app/homeComponents/Hero.tsx create mode 100644 Client/src/app/homeComponents/HowItWorks.tsx create mode 100644 Client/src/app/homeComponents/InteractivePreview.tsx create mode 100644 Client/src/app/homeComponents/Navigation.tsx create mode 100644 Client/src/app/homeComponents/Pricing.tsx create mode 100644 Client/src/app/homeComponents/Testimonials.tsx create mode 100644 Client/src/app/homeComponents/TrustedBy.tsx create mode 100644 Client/src/lib/utils.ts diff --git a/Client/next.config.ts b/Client/next.config.ts index 66e15661..33b2137c 100644 --- a/Client/next.config.ts +++ b/Client/next.config.ts @@ -3,6 +3,14 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { /* config options here */ reactCompiler: true, + images: { + remotePatterns: [ + { + protocol: "https", + hostname: "api.dicebear.com", + }, + ], + }, }; export default nextConfig; diff --git a/Client/package-lock.json b/Client/package-lock.json index a1ccea03..5ee19226 100644 --- a/Client/package-lock.json +++ b/Client/package-lock.json @@ -14,6 +14,7 @@ "axios": "^1.18.1", "bcryptjs": "^3.0.3", "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", "dotenv": "^17.4.2", "firebase": "^12.15.0", "framer-motion": "^12.42.2", @@ -6766,24 +6767,6 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "license": "MIT" }, - "node_modules/nanoid": { - "version": "3.3.15", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz", - "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, "node_modules/napi-postinstall": { "version": "0.3.4", "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", @@ -6860,6 +6843,24 @@ } } }, + "node_modules/next/node_modules/nanoid": { + "version": "3.3.15", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz", + "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, "node_modules/next/node_modules/postcss": { "version": "8.4.31", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", @@ -7206,6 +7207,25 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/postcss/node_modules/nanoid": { + "version": "3.3.15", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz", + "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", diff --git a/Client/package.json b/Client/package.json index 424b81ee..12b55585 100644 --- a/Client/package.json +++ b/Client/package.json @@ -15,6 +15,7 @@ "axios": "^1.18.1", "bcryptjs": "^3.0.3", "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", "dotenv": "^17.4.2", "firebase": "^12.15.0", "framer-motion": "^12.42.2", diff --git a/Client/src/app/dashboard/components/DeploymentsChart.tsx b/Client/src/app/dashboard/components/DeploymentsChart.tsx index 996bc076..9076f426 100644 --- a/Client/src/app/dashboard/components/DeploymentsChart.tsx +++ b/Client/src/app/dashboard/components/DeploymentsChart.tsx @@ -8,7 +8,7 @@ import { } from "recharts"; interface DeploymentsChartProps { - data: any[]; + data: Record[]; } export const DeploymentsChart = ({ data }: DeploymentsChartProps) => { diff --git a/Client/src/app/dashboard/components/Sidebar.tsx b/Client/src/app/dashboard/components/Sidebar.tsx index b2b322ae..43ac88ca 100644 --- a/Client/src/app/dashboard/components/Sidebar.tsx +++ b/Client/src/app/dashboard/components/Sidebar.tsx @@ -3,11 +3,8 @@ import Link from "next/link"; import Image from "next/image"; import { Activity, - Bell, - ChevronRight, FolderKanban, Rocket, - Search, Server, Settings, Users, diff --git a/Client/src/app/dashboard/components/TimelineEvent.tsx b/Client/src/app/dashboard/components/TimelineEvent.tsx index 4cf90f4d..3cb3847d 100644 --- a/Client/src/app/dashboard/components/TimelineEvent.tsx +++ b/Client/src/app/dashboard/components/TimelineEvent.tsx @@ -80,6 +80,8 @@ export const TimelineEvent = ({ avatar diff --git a/Client/src/app/dashboard/page.tsx b/Client/src/app/dashboard/page.tsx index 1375df29..1b958272 100644 --- a/Client/src/app/dashboard/page.tsx +++ b/Client/src/app/dashboard/page.tsx @@ -117,7 +117,7 @@ export default function Dashboard() { Good morning, Developer! 👋

- Here's what's happening with your projects today. + Here's what's happening with your projects today.

@@ -294,7 +294,7 @@ export default function Dashboard() {
- {activeRepositories.map((repo, i) => ( + {activeRepositories.map((repo) => (
+
+
+

+ Engineered for scale +

+

+ The architecture you need to grow from side project to enterprise without changing platforms. +

+
+ +
+ + {/* Card 1: Global Edge (Large 2x2) */} +
+
+
+
+ +
+

Global Edge Network

+

Deploy your frontend and serverless functions to 35+ regions automatically. Millisecond latency for every user on Earth.

+
+ {/* Abstract illustration */} +
+
+
+
+
+
+
+
+
+ + {/* Card 2: Enterprise Security (1x1) */} +
+
+ +
+
+

Enterprise Security

+

SSO, SOC2 Type II, and Role-based Access Control out of the box.

+
+
+ + {/* Card 3: Instant Deployments (1x1) */} +
+
+ +
+
+

Instant Deploy

+

Push to git and get a live preview URL in under 5 seconds.

+
+
+ + {/* Card 4: Git Integration (2x1) */} +
+
+
+
+ +
+

Git Integration

+

Seamless webhook sync with GitHub.

+
+
+
+
+
+
+
+
+
+ +
+
+ + ); +} diff --git a/Client/src/app/homeComponents/FeaturesGrid.tsx b/Client/src/app/homeComponents/FeaturesGrid.tsx new file mode 100644 index 00000000..9d55277c --- /dev/null +++ b/Client/src/app/homeComponents/FeaturesGrid.tsx @@ -0,0 +1,74 @@ +import React from "react"; +import { FolderKanban, Rocket, Zap, Users, GitMerge, BarChart2 } from "lucide-react"; + +export function FeaturesGrid() { + const features = [ + { + icon: FolderKanban, + title: "Repository Management", + description: "Organize, scale, and secure your codebases with enterprise-grade repository controls and granular access management.", + }, + { + icon: Rocket, + title: "Instant Deployments", + description: "Push to main and watch your code go live globally in milliseconds. Zero configuration required.", + }, + { + icon: Zap, + title: "Edge Functions", + description: "Run server-side logic closer to your users. Achieve ultra-low latency without managing infrastructure.", + }, + { + icon: Users, + title: "Real-time Collaboration", + description: "Review code, share preview deployments, and iterate faster with built-in team workflows.", + }, + { + icon: GitMerge, + title: "Git Integration", + description: "Deep integration with GitHub, GitLab, and Bitbucket. Automatic CI/CD triggered on every push.", + }, + { + icon: BarChart2, + title: "Developer Analytics", + description: "Gain insights into build times, deployment success rates, and team velocity with native dashboards.", + }, + ]; + + return ( +
+
+
+

+ Everything you need to ship faster +

+

+ A complete platform engineered for modern frontend teams. Build, deploy, and scale with tools that get out of your way. +

+
+ +
+ {features.map((feature, index) => { + const Icon = feature.icon; + return ( +
+
+ +
+

+ {feature.title} +

+

+ {feature.description} +

+
+ ); + })} +
+
+
+ ); +} diff --git a/Client/src/app/homeComponents/FinalCTA.tsx b/Client/src/app/homeComponents/FinalCTA.tsx new file mode 100644 index 00000000..32750f7d --- /dev/null +++ b/Client/src/app/homeComponents/FinalCTA.tsx @@ -0,0 +1,43 @@ +import React from "react"; +import Link from "next/link"; +import { ArrowRight, BookOpen } from "lucide-react"; + +export function FinalCTA() { + return ( +
+
+
+ {/* Abstract background blobs */} +
+
+
+
+ +

+ Ready to ship your next project? +

+

+ Join thousands of developers building, deploying, and scaling on ByteBin. Start for free today. +

+ +
+ + Start Building + + + + + View Documentation + +
+
+
+
+ ); +} diff --git a/Client/src/app/homeComponents/Footer.tsx b/Client/src/app/homeComponents/Footer.tsx new file mode 100644 index 00000000..db68b87a --- /dev/null +++ b/Client/src/app/homeComponents/Footer.tsx @@ -0,0 +1,92 @@ +import React from "react"; +import Link from "next/link"; +import { FaGithub, FaTwitter, FaLinkedin } from "react-icons/fa"; + +export function Footer() { + const footerLinks = { + Product: [ + { name: "Features", href: "#" }, + { name: "Integrations", href: "#" }, + { name: "Pricing", href: "#" }, + { name: "Changelog", href: "#" }, + { name: "Docs", href: "#" }, + ], + Company: [ + { name: "About Us", href: "#" }, + { name: "Careers", href: "#" }, + { name: "Blog", href: "#" }, + { name: "Contact", href: "#" }, + { name: "Partners", href: "#" }, + ], + Resources: [ + { name: "Community", href: "#" }, + { name: "Help Center", href: "#" }, + { name: "Status", href: "#" }, + { name: "Open Source", href: "#" }, + ], + Legal: [ + { name: "Privacy Policy", href: "#" }, + { name: "Terms of Service", href: "#" }, + { name: "Cookie Policy", href: "#" }, + { name: "Security", href: "#" }, + ], + }; + + return ( +
+
+
+
+ +
+ B +
+ + ByteBin + + +

+ The premium developer platform for building, deploying, and scaling modern applications. +

+ +
+ + {Object.entries(footerLinks).map(([category, links]) => ( +
+

{category}

+
    + {links.map((link, i) => ( +
  • + + {link.name} + +
  • + ))} +
+
+ ))} +
+ +
+

+ © {new Date().getFullYear()} ByteBin Inc. All rights reserved. +

+
+
+ All systems operational +
+
+
+
+ ); +} diff --git a/Client/src/app/homeComponents/Hero.tsx b/Client/src/app/homeComponents/Hero.tsx new file mode 100644 index 00000000..b77cad17 --- /dev/null +++ b/Client/src/app/homeComponents/Hero.tsx @@ -0,0 +1,174 @@ +"use client"; + +import Link from "next/link"; +import { motion } from "framer-motion"; +import { ArrowRight, Terminal, GitBranch, GitCommit, GitPullRequest } from "lucide-react"; +import { FaGithub } from "react-icons/fa"; + +export function Hero() { + return ( +
+ {/* Background Blobs */} +
+
+
+
+ +
+
+ {/* Left Content */} +
+ + + ByteBin 2.0 is now live + + + + Build software.
+ Deploy anywhere.
+ Scale without limits. +
+ + + The ultimate developer platform for managing repositories, automating CI/CD pipelines, and collaborating on deployments seamlessly from edge to cloud. + + + + + Start Building + + + + + Continue with GitHub + + +
+ + {/* Right Floating Product Preview */} + +
+ + {/* Terminal Window */} + +
+
+
+
+
+
+
+ + bash +
+
+
+
$ bytebin deploy --prod
+
Building project...
+
Bundling assets...
+
✓ Deployed to edge in 420ms
+
https://bytebin-app.vercel.app
+
+ + + {/* Repository Card */} + +
+
+
+ +
+
+

frontend-monorepo

+

Updated 2 mins ago

+
+
+
Public
+
+
+
+ + a9f2b4c + fix: hydration mismatch +
+
+ + PR #42 opened by +
+
+
+
+ + {/* Deployment Card */} + +

Latest Deployment

+
+
+
+
+
+ Ready + 12s +
+
+
+
+
+ Build + Checks + Assign Domains +
+
+ +
+ +
+
+
+ ); +} diff --git a/Client/src/app/homeComponents/HowItWorks.tsx b/Client/src/app/homeComponents/HowItWorks.tsx new file mode 100644 index 00000000..d23943b9 --- /dev/null +++ b/Client/src/app/homeComponents/HowItWorks.tsx @@ -0,0 +1,77 @@ +"use client"; + +import React from "react"; +import { GitBranch, Box, TrendingUp } from "lucide-react"; + +export function HowItWorks() { + const steps = [ + { + num: "01", + title: "Connect Repository", + description: "Import your project from GitHub, GitLab, or Bitbucket with a single click. We automatically detect your framework.", + icon: GitBranch, + color: "from-[#F5D7C8] to-orange-200", + }, + { + num: "02", + title: "Deploy Automatically", + description: "Every push to your main branch triggers a production build. Pull requests get isolated preview environments.", + icon: Box, + color: "from-[#D3ACFF] to-purple-300", + }, + { + num: "03", + title: "Scale Globally", + description: "Your site is served from our edge network across 35 regions, ensuring millisecond latency for every user.", + icon: TrendingUp, + color: "from-blue-200 to-cyan-200", + }, + ]; + + return ( +
+
+
+

+ From code to global in seconds +

+

+ A workflow so smooth it feels like magic. +

+
+ +
+ {/* Animated Connector Line */} +
+ +
+ {steps.map((step, index) => { + const Icon = step.icon; + return ( +
+
+
+ +
+
+ +
+ + + STEP {step.num} + +

+ {step.title} +

+

+ {step.description} +

+
+ ); + })} +
+
+
+
+ ); +} diff --git a/Client/src/app/homeComponents/InteractivePreview.tsx b/Client/src/app/homeComponents/InteractivePreview.tsx new file mode 100644 index 00000000..688662e2 --- /dev/null +++ b/Client/src/app/homeComponents/InteractivePreview.tsx @@ -0,0 +1,183 @@ +"use client"; + +import React, { useState } from "react"; +import { motion } from "framer-motion"; +import { Folder, File, GitCommit, PlayCircle, GitPullRequest, TerminalSquare, Search } from "lucide-react"; +import { cn } from "@/lib/utils"; + +export function InteractivePreview() { + const [activeTab, setActiveTab] = useState("repo"); + + return ( +
+
+
+

+ Everything you need.
In one place. +

+

+ Experience a seamlessly integrated workflow from code to production. +

+
+ + {/* Interactive UI Container */} +
+ {/* Top Bar */} +
+
+
+
+
+
+
+ + bytebin / nextjs-commerce +
+
{/* Spacer */} +
+ +
+ {/* Sidebar Tabs */} +
+ {[ + { id: "repo", icon: Folder, label: "Repository Tree" }, + { id: "commits", icon: GitCommit, label: "Commit History" }, + { id: "deployments", icon: PlayCircle, label: "CI/CD Pipeline" }, + { id: "prs", icon: GitPullRequest, label: "Pull Requests" }, + { id: "terminal", icon: TerminalSquare, label: "Edge Terminal" }, + ].map((tab) => { + const Icon = tab.icon; + const isActive = activeTab === tab.id; + return ( + + ); + })} +
+ + {/* Main Content Area */} +
+ {/* Fake Repository View */} + {activeTab === "repo" && ( + +
+
+

nextjs-commerce

+

Public • Updated 2 hours ago

+
+
Clone
+
+
+ {[ + { type: "folder", name: "app" }, + { type: "folder", name: "components" }, + { type: "folder", name: "lib" }, + { type: "file", name: "package.json" }, + { type: "file", name: "next.config.js" }, + ].map((item, i) => ( +
+ {item.type === "folder" ? ( + + ) : ( + + )} + {item.name} + + Update {item.name} + +
+ ))} +
+
+ )} + + {/* Fake Deployments View */} + {activeTab === "deployments" && ( + +
+ {[ + { status: "success", env: "Production", commit: "a9f2b4c", time: "2m ago" }, + { status: "success", env: "Preview", commit: "b8c3d5e", time: "1h ago" }, + { status: "failed", env: "Preview", commit: "f1a2b3c", time: "4h ago" }, + ].map((dep, i) => ( +
+
+
+
+ {dep.env} Deployment +
+ {dep.time} +
+
+ + {dep.commit} + - Update dependency to latest +
+
+
+
+
+
+
+ Build + Checks + Deploy +
+
+ ))} +
+ + )} + + {/* Fake Terminal */} + {activeTab === "terminal" && ( + +
+
➜ ~ bytebin login
+
Authenticating... Success! Logged in as vedant@bytebin.com
+ +
➜ ~ bytebin link
+
Linked to project "nextjs-commerce"
+ +
➜ ~ bytebin deploy --prod
+
✔ Building...
+
✔ Uploading assets (14.2 MB)...
+
✔ Provisioning edge functions...
+
Deployed! (4.2s)
+
https://bytebin.app/deploy/prod
+
_
+
+
+ )} + + {/* Placeholder for other tabs */} + {["commits", "prs"].includes(activeTab) && ( + + +

Explore {activeTab} in real-time

+
+ )} +
+
+
+
+
+ ); +} diff --git a/Client/src/app/homeComponents/Navigation.tsx b/Client/src/app/homeComponents/Navigation.tsx new file mode 100644 index 00000000..28428faa --- /dev/null +++ b/Client/src/app/homeComponents/Navigation.tsx @@ -0,0 +1,128 @@ +"use client"; + +import { useState, useEffect } from "react"; +import Link from "next/link"; +import { motion, AnimatePresence } from "framer-motion"; +import { cn } from "@/lib/utils"; +import { Menu, X } from "lucide-react"; + +export function Navigation() { + const [isScrolled, setIsScrolled] = useState(false); + const [mobileMenuOpen, setMobileMenuOpen] = useState(false); + + useEffect(() => { + const handleScroll = () => { + setIsScrolled(window.scrollY > 20); + }; + window.addEventListener("scroll", handleScroll); + return () => window.removeEventListener("scroll", handleScroll); + }, []); + + const navLinks = [ + { name: "Features", href: "#" }, + { name: "Solutions", href: "#" }, + { name: "Pricing", href: "#" }, + { name: "Docs", href: "#" }, + { name: "Blog", href: "#" }, + ]; + + return ( +
+
+ {/* Logo */} + +
+ B +
+ + ByteBin + + + + {/* Desktop Nav */} + + + {/* Desktop Actions */} +
+ + Sign In + + + Start Building + +
+ + {/* Mobile Toggle */} + +
+ + {/* Mobile Nav */} + + {mobileMenuOpen && ( + + {navLinks.map((link) => ( + setMobileMenuOpen(false)} + > + {link.name} + + ))} +
+ setMobileMenuOpen(false)} + > + Sign In + + setMobileMenuOpen(false)} + > + Start Building + +
+
+ )} +
+
+ ); +} diff --git a/Client/src/app/homeComponents/Pricing.tsx b/Client/src/app/homeComponents/Pricing.tsx new file mode 100644 index 00000000..63708cf2 --- /dev/null +++ b/Client/src/app/homeComponents/Pricing.tsx @@ -0,0 +1,98 @@ +import React from "react"; +import { Check } from "lucide-react"; +import { cn } from "@/lib/utils"; +import Link from "next/link"; + +export function Pricing() { + const plans = [ + { + name: "Starter", + price: "Free", + description: "Perfect for hobbyists and personal projects.", + features: ["1 User", "Deploy from GitHub", "Community Support", "100GB Bandwidth", "Shared Edge Network"], + highlighted: false, + }, + { + name: "Pro", + price: "$20", + period: "/mo", + description: "For professional developers and small teams.", + features: ["Up to 10 Users", "Unlimited Environments", "Priority Support", "1TB Bandwidth", "Password Protection", "Custom Domains"], + highlighted: true, + }, + { + name: "Enterprise", + price: "Custom", + description: "Advanced security and control for large teams.", + features: ["Unlimited Users", "SSO & SAML", "Dedicated Success Manager", "Custom Bandwidth", "SOC2 Compliance", "99.99% Uptime SLA"], + highlighted: false, + }, + ]; + + return ( +
+
+
+

+ Simple, transparent pricing +

+

+ Start for free, scale as you grow. No hidden fees. +

+
+ +
+ {plans.map((plan, i) => ( +
+ {plan.highlighted && ( +
+ Most Popular +
+ )} + +

+ {plan.name} +

+

+ {plan.description} +

+
+ {plan.price} + {plan.period && {plan.period}} +
+ +
    + {plan.features.map((feature, j) => ( +
  • + + {feature} +
  • + ))} +
+ + + Get Started + +
+ ))} +
+
+
+ ); +} diff --git a/Client/src/app/homeComponents/Testimonials.tsx b/Client/src/app/homeComponents/Testimonials.tsx new file mode 100644 index 00000000..76c5550e --- /dev/null +++ b/Client/src/app/homeComponents/Testimonials.tsx @@ -0,0 +1,67 @@ +import React from "react"; +import Image from "next/image"; +import { FaGithub } from "react-icons/fa"; + +export function Testimonials() { + const reviews = [ + { + name: "Sarah Jenkins", + username: "@sarahcodes", + role: "Frontend Lead at Acme", + content: "We migrated our entire 50-person engineering org to ByteBin in a weekend. Our deployment times dropped from 15 minutes to 45 seconds.", + avatar: "https://api.dicebear.com/7.x/notionists/svg?seed=Sarah&backgroundColor=F4ECFF" + }, + { + name: "David Chen", + username: "@dchen", + role: "CTO at StartupX", + content: "The branch preview URLs are a game changer. Product managers can review UI changes immediately without pulling the code locally.", + avatar: "https://api.dicebear.com/7.x/notionists/svg?seed=David&backgroundColor=F5D7C8" + }, + { + name: "Elena Rodriguez", + username: "@elenar", + role: "Senior Engineer", + content: "I've used every platform out there, and ByteBin's edge functions are incredibly fast to provision. The developer experience is simply unmatched.", + avatar: "https://api.dicebear.com/7.x/notionists/svg?seed=Elena&backgroundColor=E0F2FE" + }, + ]; + + return ( +
+
+
+

+ Loved by developers +

+
+ +
+ {reviews.map((review, i) => ( +
+
+ {review.name} +
+

{review.name}

+
+ + {review.username} +
+
+
+

+ "{review.content}" +

+
+ ))} +
+
+
+ ); +} diff --git a/Client/src/app/homeComponents/TrustedBy.tsx b/Client/src/app/homeComponents/TrustedBy.tsx new file mode 100644 index 00000000..a76992fe --- /dev/null +++ b/Client/src/app/homeComponents/TrustedBy.tsx @@ -0,0 +1,34 @@ +import React from "react"; +import { Command, Triangle, Hexagon, Circle, Square, Infinity } from "lucide-react"; + +export function TrustedBy() { + const companies = [ + { name: "Acme Corp", icon: Command }, + { name: "Global Tech", icon: Triangle }, + { name: "NextGen", icon: Hexagon }, + { name: "Innovate", icon: Circle }, + { name: "Synergy", icon: Square }, + { name: "Infinity", icon: Infinity }, + ]; + + return ( +
+
+

+ Trusted by innovative teams worldwide +

+
+ {companies.map((company, index) => { + const Icon = company.icon; + return ( +
+ + {company.name} +
+ ); + })} +
+
+
+ ); +} diff --git a/Client/src/app/page.tsx b/Client/src/app/page.tsx index 4dce1ef5..c4d7cbae 100644 --- a/Client/src/app/page.tsx +++ b/Client/src/app/page.tsx @@ -1,3 +1,36 @@ +import { Navigation } from "./homeComponents/Navigation"; +import { Hero } from "./homeComponents/Hero"; +import { TrustedBy } from "./homeComponents/TrustedBy"; +import { FeaturesGrid } from "./homeComponents/FeaturesGrid"; +import { InteractivePreview } from "./homeComponents/InteractivePreview"; +import { BentoSection } from "./homeComponents/BentoSection"; +import { HowItWorks } from "./homeComponents/HowItWorks"; +import { Testimonials } from "./homeComponents/Testimonials"; +import { Pricing } from "./homeComponents/Pricing"; +import { FinalCTA } from "./homeComponents/FinalCTA"; +import { Footer } from "./homeComponents/Footer"; + +export const metadata = { + title: "ByteBin | Build software. Deploy anywhere.", + description: "The ultimate developer platform for managing repositories, automating CI/CD pipelines, and collaborating on deployments seamlessly from edge to cloud.", +}; + export default function HomePage() { - return
HomePage
; -} \ No newline at end of file + return ( +
+ +
+ + + + + + + + + +
+
+
+ ); +} \ No newline at end of file diff --git a/Client/src/lib/utils.ts b/Client/src/lib/utils.ts new file mode 100644 index 00000000..a5ef1935 --- /dev/null +++ b/Client/src/lib/utils.ts @@ -0,0 +1,6 @@ +import { clsx, type ClassValue } from "clsx"; +import { twMerge } from "tailwind-merge"; + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)); +} diff --git a/Documentation.txt b/Documentation.txt index 0e5cca00..7a40941a 100644 --- a/Documentation.txt +++ b/Documentation.txt @@ -1 +1,2 @@ -3/jul/2026 -> Done the design and funtionality of the bytebin website \ No newline at end of file +3/jul/2026 -> Done the design and funtionality of the bytebin website +4/jul/2026-> \ No newline at end of file From 85dc41f55b27cb7c1146aa6afa9538a2c71bedc2 Mon Sep 17 00:00:00 2001 From: tanushpatel-git Date: Sun, 5 Jul 2026 01:17:00 +0530 Subject: [PATCH 0022/1390] push the changes --- Client/src/app/api/login/route.ts | 2 +- Client/src/app/dashboard/components/Sidebar.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Client/src/app/api/login/route.ts b/Client/src/app/api/login/route.ts index d61f53ff..f7956be7 100644 --- a/Client/src/app/api/login/route.ts +++ b/Client/src/app/api/login/route.ts @@ -7,7 +7,7 @@ export const POST = async (req: NextRequest) => { try { await connectDb(); const { email, password } = await req.json(); - + const user = await User.findOne({ email }); if (!user) { return NextResponse.json({ success: false, message: "Invalid credentials" }, { status: 401 }); diff --git a/Client/src/app/dashboard/components/Sidebar.tsx b/Client/src/app/dashboard/components/Sidebar.tsx index 43ac88ca..f9ea7308 100644 --- a/Client/src/app/dashboard/components/Sidebar.tsx +++ b/Client/src/app/dashboard/components/Sidebar.tsx @@ -26,7 +26,7 @@ export const Sidebar = () => { {/* Navigation */}