From 8af82252b81687ae70e0fb9ec48902c188d8125b Mon Sep 17 00:00:00 2001 From: shiva raj badu Date: Thu, 23 Apr 2026 22:02:46 +0545 Subject: [PATCH] feat: Chat interface --- .../presentation/components/Chat.tsx | 122 ++++++++++++++++++ .../components/PresentationHeader.tsx | 18 ++- .../components/PresentationPage.tsx | 102 +++++++-------- .../presentation/components/SidePanel.tsx | 20 +-- .../presentation/components/SortableSlide.tsx | 9 +- 5 files changed, 197 insertions(+), 74 deletions(-) create mode 100644 servers/nextjs/app/(presentation-generator)/presentation/components/Chat.tsx diff --git a/servers/nextjs/app/(presentation-generator)/presentation/components/Chat.tsx b/servers/nextjs/app/(presentation-generator)/presentation/components/Chat.tsx new file mode 100644 index 00000000..e904586b --- /dev/null +++ b/servers/nextjs/app/(presentation-generator)/presentation/components/Chat.tsx @@ -0,0 +1,122 @@ +import { Plus, Send } from 'lucide-react' +import React from 'react' +const suggestions = [ + { + id: 1, + icon: + + + + + + + + + + + + + + + + , + suggestion: 'Generate a full presentation from my topic', + + }, + { + id: 2, + icon: + + + + + + + + + + + + + , + suggestion: 'Improve this slide content', + }, + { + id: 3, + icon: + + + , + suggestion: 'Rewrite this content professionally', + }, + { + id: 4, + icon: + + + + + , + suggestion: 'Add speaker notes to this slide', + } +] +const quickPrompts = ['Expand each section', 'Reorder for storytelling', 'Add missing sections', 'Convert to pitch flow'] +const Chat = () => { + return ( +
+

+ + + AI Assistant

+
+

SUGGESTIONS

+
+ + { + suggestions.map((suggestion) => ( +
+ {suggestion.icon} +

{suggestion.suggestion}

+
+ )) + } +
+
+
+

QUICK PROMPTS

+
+ { + quickPrompts.map((prompt) => ( + + )) + } +
+
+
+