diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx
index ddde132..a6efb57 100644
--- a/src/app/dashboard/page.tsx
+++ b/src/app/dashboard/page.tsx
@@ -1,74 +1,31 @@
"use client";
import React, { useState, useEffect } from 'react';
+import { AnimatePresence, motion } from 'framer-motion';
+import { ContainerTextFlip } from "@/components/ui/container-text-flip";
import { Search, ShoppingCart, User, Menu, X, Star, Clock, Filter } from 'lucide-react';
import { useRouter } from 'next/navigation';
import { NavbarDemo } from "@/components/nav";
-// import Loader from '@/components/loader'; // OLD LOADER REMOVED
-import { AnimatePresence } from 'framer-motion';
import AcademicHubSkeleton from '@/components/skeletons/dashboardPageSkeleton';
-
const AcademicHub = () => {
const [isMenuOpen, setIsMenuOpen] = useState(false);
const [isLoading, setIsLoading] = useState(true);
const [mounted, setMounted] = useState(false);
const router = useRouter();
- useEffect(() => {
- setMounted(true);
- }, []);
-
+ useEffect(() => setMounted(true), []);
useEffect(() => {
if (!mounted) return;
- const timer = setTimeout(() => {
- setIsLoading(false);
- }, 4000);
+ const timer = setTimeout(() => setIsLoading(false), 4000);
return () => clearTimeout(timer);
}, [mounted]);
if (!mounted) return null;
const featuredProjects = [
- {
- id: 1,
- title: "Assignment-Med",
- category: "Assignments",
- level: "Advanced",
- rating: 4.9,
- reviews: 5,
- duration: "5 days",
- price: 100,
- originalPrice: 200,
- tag: "Best Seller",
- tagColor: "bg-amber-500"
- },
- {
- id: 2,
- title: "Termwork-Med",
- category: "Termwork",
- level: "Expert",
- rating: 4.8,
- reviews: 15,
- duration: "2-3 weeks",
- price: 250,
- originalPrice: 400,
- tag: "New",
- tagColor: "bg-emerald-500"
- },
- {
- id: 3,
- title: "PPTs",
- category: "Presentations",
- level: "Intermediate",
- rating: 4.7,
- reviews: 8,
- duration: "3-4 days",
- price: 50,
- originalPrice: 100,
- tag: "Popular",
- tagColor: "bg-blue-500"
- }
-
+ { id: 1, title: "Assignment-Med", category: "Assignments", level: "Advanced", rating: 4.9, reviews: 5, duration: "5 days", price: 100, originalPrice: 200, tag: "Best Seller", tagColor: "bg-amber-500" },
+ { id: 2, title: "Termwork-Med", category: "Termwork", level: "Expert", rating: 4.8, reviews: 15, duration: "2-3 weeks", price: 250, originalPrice: 400, tag: "New", tagColor: "bg-emerald-500" },
+ { id: 3, title: "PPTs", category: "Presentations", level: "Intermediate", rating: 4.7, reviews: 8, duration: "3-4 days", price: 50, originalPrice: 100, tag: "Popular", tagColor: "bg-blue-500" }
];
const stats = [
@@ -78,212 +35,170 @@ const AcademicHub = () => {
{ number: "24/7", label: "Support" }
];
- const categories = [
- "Assignments",
- "Projects",
- "Presentations",
- "Termwork"
- ];
+ const categories = ["Assignments", "Projects", "Presentations", "Termwork"];
return (
- {/* Loading Screen --- UPDATED SECTION */}
{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
-
-