From bf7a9fad99cb1c751e5739b2e98136ab92aaad0a Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Thu, 18 Dec 2025 08:06:31 +0000
Subject: [PATCH] Changes
---
src/App.tsx | 35 +++-
src/components/Layout.tsx | 72 +++++++
src/contexts/CartContext.tsx | 54 +++++
src/hooks/useAuth.tsx | 97 +++++++++
src/pages/Admin.tsx | 373 +++++++++++++++++++++++++++++++++++
src/pages/Auth.tsx | 136 +++++++++++++
src/pages/Checkout.tsx | 158 +++++++++++++++
src/pages/Dashboard.tsx | 206 +++++++++++++++++++
src/pages/Index.tsx | 66 +++++--
src/pages/ProductDetail.tsx | 129 ++++++++++++
src/pages/Products.tsx | 135 +++++++++++++
11 files changed, 1441 insertions(+), 20 deletions(-)
create mode 100644 src/components/Layout.tsx
create mode 100644 src/contexts/CartContext.tsx
create mode 100644 src/hooks/useAuth.tsx
create mode 100644 src/pages/Admin.tsx
create mode 100644 src/pages/Auth.tsx
create mode 100644 src/pages/Checkout.tsx
create mode 100644 src/pages/Dashboard.tsx
create mode 100644 src/pages/ProductDetail.tsx
create mode 100644 src/pages/Products.tsx
diff --git a/src/App.tsx b/src/App.tsx
index 18daf2e..6368947 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -3,7 +3,15 @@ import { Toaster as Sonner } from "@/components/ui/sonner";
import { TooltipProvider } from "@/components/ui/tooltip";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { BrowserRouter, Routes, Route } from "react-router-dom";
+import { AuthProvider } from "@/hooks/useAuth";
+import { CartProvider } from "@/contexts/CartContext";
import Index from "./pages/Index";
+import Auth from "./pages/Auth";
+import Products from "./pages/Products";
+import ProductDetail from "./pages/ProductDetail";
+import Checkout from "./pages/Checkout";
+import Dashboard from "./pages/Dashboard";
+import Admin from "./pages/Admin";
import NotFound from "./pages/NotFound";
const queryClient = new QueryClient();
@@ -11,15 +19,24 @@ const queryClient = new QueryClient();
const App = () => (
Manage your products
+Your cart is empty
+ +{item.type}
++ This is a demo checkout. No actual payment will be processed. +
+Manage your purchases and access your content
+ +You don't have access to any products yet
+ +{item.product.description}
+No orders yet
++ {order.id.slice(0, 8)} +
++ {new Date(order.created_at).toLocaleDateString()} +
+Start building your amazing project here!
-+ Access premium consulting, live webinars, and intensive bootcamps to accelerate your career. +
++ One-on-one sessions with industry experts to solve your specific challenges. +
++ Live and recorded sessions covering the latest trends and techniques. +
++ Intensive programs to master new skills in weeks, not months. +
+{product.description}
+ +Browse our consulting, webinars, and bootcamps
+ + {loading ? ( +No products available yet.
+