chatbot-template/components/overview.tsx

53 lines
1.6 KiB
TypeScript
Raw Normal View History

import { motion } from 'framer-motion';
import Link from 'next/link';
2024-10-11 18:00:22 +05:30
import { MessageIcon, VercelIcon } from './icons';
2024-10-11 18:00:22 +05:30
export const Overview = () => {
return (
<motion.div
key="overview"
className="max-w-3xl mx-auto md:mt-20"
2024-10-11 18:00:22 +05:30
initial={{ opacity: 0, scale: 0.98 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.98 }}
transition={{ delay: 0.5 }}
>
<div className="rounded-xl p-6 flex flex-col gap-8 leading-relaxed text-center max-w-xl">
<p className="flex flex-row justify-center gap-4 items-center">
<VercelIcon size={32} />
2024-10-11 18:00:22 +05:30
<span>+</span>
<MessageIcon size={32} />
2024-10-11 18:00:22 +05:30
</p>
<p>
2024-10-28 17:23:19 -04:00
This is an{' '}
<Link
className="font-medium underline underline-offset-4"
href="https://github.com/vercel/ai-chatbot"
target="_blank"
>
open source
</Link>{' '}
2024-10-28 17:23:30 -04:00
chatbot template built with Next.js and the AI SDK by Vercel. It uses
2024-10-28 17:23:19 -04:00
the{' '}
<code className="rounded-md bg-muted px-1 py-0.5">streamText</code>{' '}
function in the server and the{' '}
2024-10-11 18:00:22 +05:30
<code className="rounded-md bg-muted px-1 py-0.5">useChat</code> hook
on the client to create a seamless chat experience.
</p>
<p>
You can learn more about the AI SDK by visiting the{' '}
2024-10-11 18:00:22 +05:30
<Link
className="font-medium underline underline-offset-4"
2024-10-11 18:00:22 +05:30
href="https://sdk.vercel.ai/docs"
target="_blank"
>
docs
2024-10-11 18:00:22 +05:30
</Link>
.
</p>
</div>
</motion.div>
);
};