This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
old-shiloh-website/pages/_app.js

30 lines
664 B
JavaScript
Raw Permalink Normal View History

import { Fira_Code } from 'next/font/google'
import { AnimatePresence, motion } from "framer-motion";
import "../styles/globals.css";
2023-04-18 00:05:35 +00:00
2023-04-18 08:36:50 +00:00
const firaCode = Fira_Code ({
subsets: ["latin"],
})
function MyApp({ Component, pageProps, router }) {
2023-04-18 08:36:50 +00:00
return (
<>
<AnimatePresence mode='wait'>
<motion.div
key={router.route}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.2 }}
>
<main className={firaCode.className}>
<Component {...pageProps} />
</main>
</motion.div>
</AnimatePresence>
</>
);
2023-04-18 00:05:35 +00:00
}
export default MyApp;