import { Outlet } from "react-router-dom";
import Footer from "../components/main/footer/Footer.tsx";
import { motion } from "framer-motion";
import Nav from "../components/main/Nav";

export default function HomeLayout() {
  return (
    <div>
      <Nav />
      <motion.section
        initial={{ opacity: 0, y: 30 }}
        animate={{ opacity: 1, y: 0 }}
        transition={{ duration: 0.5 }}
        className="flex flex-col justify-center items-center"
      >
        <Outlet />
      </motion.section>
      <Footer />
    </div>
  );
}