-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve chat and image generation UI
- Add separate Chat and Image Generation buttons - Move image generation input to bottom - Improve layout of image generation component - Update navigation handling
- Loading branch information
1 parent
22966c2
commit 24561d5
Showing
4 changed files
with
72 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use client" | ||
|
||
import { useRouter } from 'next/navigation' | ||
import { ImageGeneration } from '@/components/chat/image-generation' | ||
import { Button } from "@/components/ui/button" | ||
import { ArrowLeft } from "lucide-react" | ||
import Link from "next/link" | ||
|
||
export default function ImageGenerationPage() { | ||
const router = useRouter() | ||
|
||
return ( | ||
<div className="flex flex-col min-h-[100dvh] bg-black"> | ||
<div className="flex items-center justify-between h-14 px-4 bg-black border-b border-gray-800"> | ||
<div className="flex items-center gap-2"> | ||
<Link href="/chat"> | ||
<Button variant="ghost" size="icon" className="text-white hover:bg-gray-800"> | ||
<ArrowLeft className="h-4 w-4" /> | ||
</Button> | ||
</Link> | ||
<span className="text-white">Image Generation</span> | ||
</div> | ||
</div> | ||
<div className="flex-1 overflow-hidden"> | ||
<ImageGeneration /> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters