Skip to content

Commit 759ec8c

Browse files
restore changes to overview
1 parent a0eca24 commit 759ec8c

1 file changed

Lines changed: 44 additions & 21 deletions

File tree

components/overview.tsx

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,52 @@
11
import { motion } from 'framer-motion';
2+
import Link from 'next/link';
3+
4+
import { MessageIcon, VercelIcon } from './icons';
25

36
export const Overview = () => {
47
return (
5-
<div
8+
<motion.div
69
key="overview"
7-
className="max-w-3xl mx-auto md:mt-20 px-8 size-full flex flex-col justify-center"
10+
className="max-w-3xl mx-auto md:mt-20"
11+
initial={{ opacity: 0, scale: 0.98 }}
12+
animate={{ opacity: 1, scale: 1 }}
13+
exit={{ opacity: 0, scale: 0.98 }}
14+
transition={{ delay: 0.5 }}
815
>
9-
<motion.div
10-
initial={{ opacity: 0, y: 10 }}
11-
animate={{ opacity: 1, y: 0 }}
12-
exit={{ opacity: 0, y: 10 }}
13-
transition={{ delay: 0.3 }}
14-
className="text-2xl font-semibold"
15-
>
16-
Hello there!
17-
</motion.div>
18-
<motion.div
19-
initial={{ opacity: 0, y: 10 }}
20-
animate={{ opacity: 1, y: 0 }}
21-
exit={{ opacity: 0, y: 10 }}
22-
transition={{ delay: 0.4 }}
23-
className="text-2xl text-zinc-500"
24-
>
25-
How can I help you today?
26-
</motion.div>
27-
</div>
16+
<div className="rounded-xl p-6 flex flex-col gap-8 leading-relaxed text-center max-w-xl">
17+
<p className="flex flex-row justify-center gap-4 items-center">
18+
<VercelIcon size={32} />
19+
<span>+</span>
20+
<MessageIcon size={32} />
21+
</p>
22+
<p>
23+
This is an{' '}
24+
<Link
25+
className="font-medium underline underline-offset-4"
26+
href="https://github.com/vercel/ai-chatbot"
27+
target="_blank"
28+
>
29+
open source
30+
</Link>{' '}
31+
chatbot template built with Next.js and the AI SDK by Vercel. It uses
32+
the{' '}
33+
<code className="rounded-md bg-muted px-1 py-0.5">streamText</code>{' '}
34+
function in the server and the{' '}
35+
<code className="rounded-md bg-muted px-1 py-0.5">useChat</code> hook
36+
on the client to create a seamless chat experience.
37+
</p>
38+
<p>
39+
You can learn more about the AI SDK by visiting the{' '}
40+
<Link
41+
className="font-medium underline underline-offset-4"
42+
href="https://sdk.vercel.ai/docs"
43+
target="_blank"
44+
>
45+
docs
46+
</Link>
47+
.
48+
</p>
49+
</div>
50+
</motion.div>
2851
);
2952
};

0 commit comments

Comments
 (0)