diff --git a/backend/server.js b/backend/server.js
index 3b141f2..514db41 100644
--- a/backend/server.js
+++ b/backend/server.js
@@ -119,7 +119,7 @@ app.get('/api/auth/me', authenticate, async (req, res) => {
// 4. Get all projects for user
app.get('/api/projects', authenticate, async (req, res) => {
try {
- const projects = await all('SELECT id, name FROM projects WHERE user_id = ?', [req.user.id]);
+ const projects = await all('SELECT id, name, created_at FROM projects WHERE user_id = ?', [req.user.id]);
res.json({ projects });
} catch (err) {
res.status(500).json({ error: err.message });
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index 3ede93b..893928a 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -3,7 +3,7 @@ import { Box, Layers, Zap, Globe, Sparkles, Wand2, Image as ImageIcon, BoxSelect
import { useEffect, useState } from 'react';
export default function Home() {
- const { openAuthModal } = useAuthStore();
+ const { openAuthModal, user } = useAuthStore();
const [scrolled, setScrolled] = useState(false);
useEffect(() => {
@@ -23,18 +23,29 @@ export default function Home() {
Titan3d
-
-
+ {user ? (
+
+ ) : (
+ <>
+
+
+ >
+ )}
@@ -60,15 +71,18 @@ export default function Home() {
Turn flat images into stunning 3D models, edit materials in real-time, and embed a photorealistic product configurator directly into your store.
-