Skip to content

Commit 35ff3db

Browse files
committed
feat: Add QnA assistant page with interactive streaming chat interface.
1 parent 9caa22e commit 35ff3db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/qna/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export const metadata = {
77

88
export default function QnAPage() {
99
return (
10-
<div className="flex flex-col items-center justify-center min-h-[calc(100vh-80px)] w-full py-8 md:py-12 px-4 sm:px-6 lg:px-8 mt-16 sm:mt-20">
11-
<div className="w-full max-w-4xl max-h-[90vh]">
10+
<div className="flex flex-col items-center justify-start w-full px-0 sm:px-4 lg:px-8 mt-16 sm:mt-20 h-[calc(100dvh-4rem)] sm:h-[calc(100dvh-5rem)]">
11+
<div className="w-full max-w-4xl h-full sm:py-6">
1212
<QnAChatInterface />
1313
</div>
1414
</div>

components/qna-chat-interface.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export function QnAChatInterface() {
267267

268268

269269
return (
270-
<div className="flex flex-col h-[calc(100vh-100px)] w-full max-w-4xl mx-auto rounded-3xl overflow-hidden border border-zinc-700/60 bg-zinc-950/70 shadow-2xl backdrop-blur-3xl relative">
270+
<div className="flex flex-col h-full w-full max-w-4xl mx-auto rounded-none sm:rounded-3xl overflow-hidden border-0 sm:border border-zinc-700/60 bg-zinc-950/70 shadow-2xl backdrop-blur-3xl relative">
271271
<div className="flex flex-wrap items-center justify-between gap-3 px-6 pt-5 pb-4 border-b border-zinc-800/80 bg-zinc-900/50 shrink-0">
272272
<div className="flex items-center gap-3">
273273
<div className="relative flex items-center justify-center w-10 h-10 rounded-full bg-[var(--brand-pink)] shadow-lg shadow-[#e45a92]/40">

0 commit comments

Comments
 (0)