chatbot-template/components/greeting.tsx

30 lines
800 B
TypeScript
Raw Normal View History

import { motion } from 'framer-motion';
2025-04-03 01:05:07 -07:00
export const Greeting = () => {
return (
<div
key="overview"
className="mx-auto mt-4 flex size-full max-w-3xl flex-col justify-center px-4 md:mt-16 md:px-8"
2025-04-03 01:05:07 -07:00
>
<motion.div
initial={{ opacity: 0, y: 10 }}
2025-04-03 01:05:07 -07:00
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: 10 }}
transition={{ delay: 0.5 }}
className="font-semibold text-xl md:text-2xl"
2025-04-03 01:05:07 -07:00
>
Hello there!
</motion.div>
<motion.div
initial={{ opacity: 0, y: 10 }}
2025-04-03 01:05:07 -07:00
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: 10 }}
transition={{ delay: 0.6 }}
className="text-xl text-zinc-500 md:text-2xl"
2025-04-03 01:05:07 -07:00
>
How can I help you today?
</motion.div>
</div>
);
};