From b04cd1045337410b158c69f67d8ab925cc5e4704 Mon Sep 17 00:00:00 2001 From: Timothy Pidashev Date: Tue, 19 Mar 2024 09:49:04 -0700 Subject: [PATCH] Add page transitions --- src/web/src/app/page.jsx | 2 +- src/web/src/app/projects/page.jsx | 1 + src/web/src/app/template.js | 5 +++++ src/web/src/components/transitions.jsx | 19 +++++++++++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/web/src/app/template.js create mode 100644 src/web/src/components/transitions.jsx diff --git a/src/web/src/app/page.jsx b/src/web/src/app/page.jsx index dc253a1..732a61d 100644 --- a/src/web/src/app/page.jsx +++ b/src/web/src/app/page.jsx @@ -6,6 +6,6 @@ import { HeroSection1, HeroSection2, HeroSection3 } from "@/components/hero"; // Exports export default function Index() { return ( -
+
Home
); } diff --git a/src/web/src/app/projects/page.jsx b/src/web/src/app/projects/page.jsx index 595ed7b..98f5457 100644 --- a/src/web/src/app/projects/page.jsx +++ b/src/web/src/app/projects/page.jsx @@ -6,6 +6,7 @@ export default function Projects() { return (
+ projects
); } diff --git a/src/web/src/app/template.js b/src/web/src/app/template.js new file mode 100644 index 0000000..8b1ba29 --- /dev/null +++ b/src/web/src/app/template.js @@ -0,0 +1,5 @@ +import PageTransition from "@/components/transitions"; + +export default function rootTemplate({ children }) { + return {children}; +} diff --git a/src/web/src/components/transitions.jsx b/src/web/src/components/transitions.jsx new file mode 100644 index 0000000..861b727 --- /dev/null +++ b/src/web/src/components/transitions.jsx @@ -0,0 +1,19 @@ +"use client" + +import { motion } from "framer-motion"; + +const PageTransition = ({ children }) => ( + + {children} + +); +export default PageTransition;