diff --git a/app/(main)/workspace/[id]/page.jsx b/app/(main)/workspace/[id]/page.jsx index ba46ed9..62b3170 100644 --- a/app/(main)/workspace/[id]/page.jsx +++ b/app/(main)/workspace/[id]/page.jsx @@ -4,17 +4,19 @@ import React from 'react'; const Workspace = () => { return ( -
+
{/* Animated background elements */}
{/* Content */} -
-
- -
+
+
+
+ +
+
diff --git a/app/globals.css b/app/globals.css index a23ac26..1180e59 100644 --- a/app/globals.css +++ b/app/globals.css @@ -70,3 +70,36 @@ body { @apply bg-background text-foreground; } } + +@layer utilities { + /* Mobile-first responsive utilities */ + .mobile-safe-padding { + @apply px-4 sm:px-6 lg:px-8; + } + + .mobile-safe-text { + @apply text-sm sm:text-base lg:text-lg; + } + + .mobile-touch-target { + @apply min-h-[44px] min-w-[44px] sm:min-h-[48px] sm:min-w-[48px]; + } + + .mobile-responsive-grid { + @apply grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4 lg:gap-6; + } + + .mobile-scrollable { + @apply overflow-x-auto scrollbar-hide; + } + + /* Prevent horizontal scrolling on mobile */ + .mobile-container { + @apply max-w-full overflow-x-hidden; + } + + /* Better mobile form inputs */ + .mobile-input { + @apply text-base sm:text-sm; /* Prevents zoom on iOS */ + } +} diff --git a/app/layout.js b/app/layout.js index b9123a1..684b2a7 100644 --- a/app/layout.js +++ b/app/layout.js @@ -5,8 +5,9 @@ import ConvexClientProvider from "./ConvexClientProvider"; export const metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "AI Powered Website Builder", + description: "Transform your wildest ideas into production-ready code with AI-powered assistance", + viewport: "width=device-width, initial-scale=1, maximum-scale=1", }; export default function RootLayout({ children }) { diff --git a/components/custom/ChatView.jsx b/components/custom/ChatView.jsx index 20c5f6b..f0fc90c 100644 --- a/components/custom/ChatView.jsx +++ b/components/custom/ChatView.jsx @@ -67,28 +67,30 @@ function ChatView() { } return ( -
+
{/* Chat Messages */} -
-
+
+
{Array.isArray(messages) && messages?.map((msg, index) => (
-
-
+
- {msg.role === 'user' ? 'You' : 'AI'} + + {msg.role === 'user' ? 'You' : 'AI'} +
- + {msg.content}
@@ -96,10 +98,10 @@ function ChatView() { ))} {loading && ( -
-
- -

Generating response...

+
+
+ +

Generating response...

)} @@ -107,27 +109,27 @@ function ChatView() {
{/* Input Section */} -
+
-
-
+
+