diff --git a/app/components/view-popup.tsx b/app/components/view-popup.tsx new file mode 100644 index 0000000..ca3e1e0 --- /dev/null +++ b/app/components/view-popup.tsx @@ -0,0 +1,57 @@ +import { useEffect, useRef } from "react"; +import { Button } from "@/components/ui/button"; +import { + Dialog, + DialogClose, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@/components/ui/dialog"; +import { useNavigate } from "@remix-run/react"; + +export function ViewPopup() { + let navigate = useNavigate(); + const triggerRef = useRef(null); + + useEffect(() => { + const timer = setTimeout(() => { + triggerRef.current?.click(); + }, 5000); + return () => clearTimeout(timer); + }, []); + + return ( + + + + + + + Change view + + Would you like to stick with a normal portfolio view or a more + exciting view? + + + + + + + + + + + ); +} diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index 0331700..d838128 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -5,7 +5,8 @@ import { ExperienceSection } from "@/components/experience-section"; import { ProjectsSection } from "@/components/projects-section"; import { ContactSection } from "@/components/contact-section"; import { portfolioData } from "@/data/portfolio"; -import { BusinessSection } from "~/components/business-section"; +import { BusinessSection } from "@/components/business-section"; +import { ViewPopup } from "@/components/view-popup"; export const meta: MetaFunction = () => { return [ @@ -26,6 +27,7 @@ export default function Index() { + ); } diff --git a/app/routes/fun.tsx b/app/routes/fun.tsx new file mode 100644 index 0000000..f8fd9da --- /dev/null +++ b/app/routes/fun.tsx @@ -0,0 +1,40 @@ +import { useNavigate } from "react-router-dom"; + +export default function WipPage() { + const navigate = useNavigate(); + + return ( +
+

+ 🚧 Work In Progress 🚧 +

+

+ This page is currently under construction. Please check back soon! +

+ +
+ ); +}