diff --git a/app/mobile/page.module.css b/app/mobile/page.module.css new file mode 100644 index 0000000..c77e46f --- /dev/null +++ b/app/mobile/page.module.css @@ -0,0 +1,12 @@ +.main { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 100%; + padding-inline: 12px; +} + +.message { + font-weight: 500; +} diff --git a/app/mobile/page.tsx b/app/mobile/page.tsx new file mode 100644 index 0000000..63a848d --- /dev/null +++ b/app/mobile/page.tsx @@ -0,0 +1,25 @@ +"use client"; + +import React, { useEffect } from "react"; +import styles from "./page.module.css"; +import classnames from "classnames"; +import { outfitFont } from "../styles/fonts"; + +export default function Mobile() { + useEffect(() => { + // if not on mobile, redirect to the main page + if (window.innerWidth > 768) { + window.location.href = "/"; + } + }, []); + return ( +