Skip to content

feat: add Studio page for AI generation#53

Open
Abhishekucs wants to merge 8 commits intomainfrom
Abhishekucs/studio-page
Open

feat: add Studio page for AI generation#53
Abhishekucs wants to merge 8 commits intomainfrom
Abhishekucs/studio-page

Conversation

@Abhishekucs
Copy link
Copy Markdown
Contributor

Summary

  • Add protected /studio page with auth guard (redirects unauthenticated users to sign-in)
  • Bottom-anchored prompt bar with auto-resizing textarea and orange submit button
  • Vertical mode switcher to toggle between Image and Video generation
  • Image mode: aspect ratio selector, style preset dropdown, image count (1-4)
  • Video mode: first/last frame upload, duration selector, aspect ratio
  • Canvas area with placeholder headline, loading animation, and generation display
  • Framer Motion animations for transitions between states
  • Installed shadcn/ui components: textarea, toggle-group, select, slider, toggle

Test plan

  • Navigate to /studio while logged out — verify redirect to /sign-in?redirect=/studio
  • Sign in and navigate to /studio — verify Studio UI loads
  • Verify no navigation header or footer on Studio page
  • Switch between Image and Video modes — settings animate swap
  • In Image mode: change aspect ratio, style, count
  • In Video mode: upload first/last frame images, select duration
  • Type a prompt and submit — loading animation plays, then mock result displays
  • Test responsive layout on mobile/tablet/desktop
  • Toggle dark/light theme — verify all elements respect theme
  • Run npm run build — no errors

🤖 Generated with Claude Code

Protected creative workspace with prompt bar, image/video mode switching,
contextual settings panels, and mock generation flow. Auth-gated with
redirect to sign-in for unauthenticated users.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tsl-website-io4z Ready Ready Preview, Comment Apr 3, 2026 10:59am

… bar

- Prompt bar and mode switcher now stretch to equal height via flex items-stretch
- Settings moved inside the prompt bar at bottom-left below the textarea
- Submit button enlarged to 48x48 squircle (rounded-2xl)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Prompt bar is now a tall container (180px default) with a drag handle
  at the top for vertical resizing (140px-400px range)
- Textarea fills the top area, settings sit at bottom-left as compact pills
- Large "Generate" button with label at bottom-right
- Mode switcher updated to icon+label vertical stack aligned to bottom
- Settings use rounded-full pill style matching reference design

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… generate

- Replace lucide icons with hugeicons throughout studio components
- Image count uses plus/minus buttons instead of toggle group
- Aspect ratio and resolution use Select dropdowns with icons
- Video mode adds audio on/off toggle with volume icon
- Generate button fills right side as a squircle column
- Textarea background matches prompt bar (transparent)
- Add imageResolution and videoAudio to Zustand store

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add subtle background to Image/Video mode toggle
- Remove textarea background color (transparent)
- Use rounded-md for all settings controls
- Replace style presets with AI model selector (Invook V2, Flux Pro, etc.)
- Uploaded images shown at top inside prompt bar with plus icon for more
- Generate button at bottom-right, half prompt bar height, no icon
- Add subtle upward gradient glow behind prompt + toggle bar
- Add attachments support to Zustand store

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…olor

- Mode toggle background wraps content (self-end, no stretch)
- Prompt bar widened to max-w-4xl
- Aspect ratio dropdowns show numbers only (1:1, 16:9, etc.)
- Audio toggle uses neutral foreground color instead of red
- Gradient uses inline style with CSS var for proper rendering
- Gradient covers 320px upward from bottom

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant