From c7a79f6fabf1285b8cb7903654e0cd36ad6e947d Mon Sep 17 00:00:00 2001 From: Ansh Aggarwal Date: Sat, 18 Oct 2025 23:15:24 +0530 Subject: [PATCH] =?UTF-8?q?Replaced=20'Add=20to=20Cart'=20button=20with=20?= =?UTF-8?q?new=20'Shop=20Now=20=E2=86=92'=20minimal=20design=20(#)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 12 - src/app/dashboard/page.tsx | 459 +++++++++++++++++++++---------------- 2 files changed, 256 insertions(+), 215 deletions(-) diff --git a/package-lock.json b/package-lock.json index ca21cea..63ce28d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3078,7 +3078,6 @@ "integrity": "sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g==", "devOptional": true, "license": "MIT", - "peer": true, "dependencies": { "csstype": "^3.0.2" } @@ -3089,7 +3088,6 @@ "integrity": "sha512-4hOiT/dwO8Ko0gV1m/TJZYk3y0KBnY9vzDh7W+DH17b2HFSOGgdj33dhihPeuy3l0q23+4e+hoXHV6hCC4dCXw==", "devOptional": true, "license": "MIT", - "peer": true, "peerDependencies": { "@types/react": "^19.0.0" } @@ -3156,7 +3154,6 @@ "integrity": "sha512-4O3idHxhyzjClSMJ0a29AcoK0+YwnEqzI6oz3vlRf3xw0zbzt15MzXwItOlnr5nIth6zlY2RENLsOPvhyrKAQA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.34.1", "@typescript-eslint/types": "8.34.1", @@ -3673,7 +3670,6 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -4093,7 +4089,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "caniuse-lite": "^1.0.30001718", "electron-to-chromium": "^1.5.160", @@ -4771,7 +4766,6 @@ "integrity": "sha512-GsGizj2Y1rCWDu6XoEekL3RLilp0voSePurjZIkxL3wlm5o5EC9VpgaP7lrCvjnkuLvzFBQWB3vWB3K5KQTveQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", @@ -4946,7 +4940,6 @@ "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.8", @@ -7497,7 +7490,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", @@ -7674,7 +7666,6 @@ "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", "license": "MIT", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -7684,7 +7675,6 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz", "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==", "license": "MIT", - "peer": true, "dependencies": { "scheduler": "^0.26.0" }, @@ -8522,7 +8512,6 @@ "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -8688,7 +8677,6 @@ "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 5aa499c..2f46d4b 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -1,12 +1,11 @@ "use client"; -import React, { useState, useEffect } from 'react'; -import { Star, Clock, Filter } from 'lucide-react'; -import { useRouter } from 'next/navigation'; +import React, { useState, useEffect } from "react"; +import { Star, Clock, Filter } from "lucide-react"; +import { useRouter } from "next/navigation"; import { NavbarDemo } from "@/components/nav"; -import { AnimatePresence } from 'framer-motion'; -import AcademicHubSkeleton from '@/components/skeletons/dashboardPageSkeleton'; -import Image from 'next/image'; - +import { AnimatePresence } from "framer-motion"; +import AcademicHubSkeleton from "@/components/skeletons/dashboardPageSkeleton"; +import Image from "next/image"; const AcademicHub = () => { const [isLoading, setIsLoading] = useState(true); @@ -39,7 +38,7 @@ const AcademicHub = () => { price: 100, originalPrice: 200, tag: "Best Seller", - tagColor: "bg-amber-500" + tagColor: "bg-amber-500", }, { id: 2, @@ -52,7 +51,7 @@ const AcademicHub = () => { price: 250, originalPrice: 400, tag: "New", - tagColor: "bg-emerald-500" + tagColor: "bg-emerald-500", }, { id: 3, @@ -65,7 +64,7 @@ const AcademicHub = () => { price: 50, originalPrice: 100, tag: "Popular", - tagColor: "bg-blue-500" + tagColor: "bg-blue-500", }, { id: 4, @@ -78,245 +77,299 @@ const AcademicHub = () => { price: 0, originalPrice: 0, tag: "Free", - tagColor: "bg-green-500" - } - + tagColor: "bg-green-500", + }, ]; const stats = [ { number: "0%", label: "Plagiarism" }, { number: "5K+", label: "Projects Delivered" }, { number: "98%", label: "Success Rate" }, - { number: "24/7", label: "Support" } + { number: "24/7", label: "Support" }, ]; - const categories = [ - "Assignments", - "Projects", - "Presentations", - "Termwork" - ]; + const categories = ["Assignments", "Projects", "Presentations", "Termwork"]; return (
{/* Loading Screen --- UPDATED SECTION */} - - {isLoading && } - - -
- + {isLoading && } - {/* Hero Section */} -
-
-
-

- Premium Academic{" "} - - Solutions - -

-

- Get high-quality assignments, projects, and research papers crafted by experts. - Boost your academic performance with our premium collection. -

-
- - -
-
-
+
+ - {/* Featured Projects */} -
-
-
-

Featured Projects

-
- -
+
-
- {featuredProjects.map((project) => ( -
-
- - {project.tag} - -
+ {/* Featured Projects */} +
+
+
+

+ Featured Projects +

+
+ + +
+
+ +
+ {featuredProjects.map((project) => ( +
+
+ + {project.tag} + +
-
- {project.id === 1 && ( - Assignment - )} - {project.id === 2 && ( - Termwork - )} - {project.id === 4 && ( -
-
🤖
+
+ {project.id === 1 && ( + Assignment + )} + {project.id === 2 && ( + Termwork + )} + {project.id === 4 && ( +
+
🤖
+
+ )} + {project.id !== 1 && + project.id !== 2 && + project.id !== 4 && ( +
+ )} +
+ +
+
+ + {project.category} + + + {project.level} +
- )} - {project.id !== 1 && project.id !== 2 && project.id !== 4 && ( -
- )} -
+

+
-
-
- {project.category} - {project.level} +
+
+ + {project.rating} + ({project.reviews} reviews) +
-

- -

-
-
-
- - {project.rating} - ({project.reviews} reviews) +
+ + {project.duration}
-
-
- - {project.duration} +
+
+ {project.id === 4 ? ( + + FREE + + ) : ( + <> + + ₹{project.price} + + + ₹{project.originalPrice} + + + )} +
+ +
+ ))} +
+
+
-
-
- {project.id === 4 ? ( - FREE - ) : ( - <> - ₹{project.price} - ₹{project.originalPrice} - - )} + {/* Stats Section */} +
+
+
+ {stats.map((stat, index) => ( +
+
+ {stat.number}
- +
{stat.label}
-
- ))} + ))} +
-
- + - {/* Stats Section */} -
-
-
- {stats.map((stat, index) => ( -
-
- {stat.number} + {/* Footer */} +
+
+
+ {/* Company Info */} +
+
+
+ A +
+ + Asshelp +
-
{stat.label}
+

+ Your trusted partner for academic excellence. Get premium + assignments and projects delivered on time. +

- ))} -
-
-
- {/* Footer */} - +
); }; -export default AcademicHub; \ No newline at end of file +export default AcademicHub;