chatbot-template/components/greeting.tsx

30 lines
803 B
TypeScript
Raw Normal View History

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