@@ -5,6 +5,7 @@ import Scene from "../../scenes/scene";
55
66import { useMediaQuery } from "usehooks-ts" ;
77import { PageStore , usePageStore } from "../../stores/page.store" ;
8+ import MobileWarning from "./mobile" ;
89import Namecard from "./namecard" ;
910import Navbar from "./navbar" ;
1011import { pages } from "./navpages" ;
@@ -14,9 +15,10 @@ export default function LandingPage() {
1415 const [ showPages , setShowPages ] = useState ( false ) ;
1516 const [ showScene , setShowScene ] = useState ( false ) ;
1617
17- const { page } = usePageStore (
18+ const { page, showWarning } = usePageStore (
1819 useShallow ( ( state : PageStore ) => ( {
1920 page : state . page ,
21+ showWarning : state . showWarning ,
2022 } ) ) ,
2123 ) ;
2224
@@ -30,28 +32,31 @@ export default function LandingPage() {
3032 } ) ;
3133
3234 return (
33- < div className = "flex h-screen w-screen flex-row font-poppins text-white" >
34- { ! isMobile && (
35- < div
35+ < div className = "flex h-screen w-screen flex-col font-poppins text-white" >
36+ { isMobile && showWarning && < MobileWarning /> }
37+ < div className = "flex h-full w-full flex-row" >
38+ { ! isMobile && (
39+ < div
40+ style = { {
41+ width : "50%" ,
42+ } }
43+ >
44+ { showScene && < Scene /> }
45+ </ div >
46+ ) }
47+ < motion . div
3648 style = { {
37- width : "50%" ,
49+ width : isMobile ? "100%" : "50%" ,
3850 } }
51+ className = "flex flex-col gap-4 py-20 pl-10 pr-20"
3952 >
40- { showScene && < Scene /> }
41- </ div >
42- ) }
43- < motion . div
44- style = { {
45- width : isMobile ? "100%" : "50%" ,
46- } }
47- className = "flex flex-col gap-4 py-20 pl-10 pr-20"
48- >
49- < div className = "flex flex-col items-end justify-center" >
50- < Namecard />
51- < Navbar />
52- </ div >
53- { showPages && pages . find ( ( item ) => item . page === page ) ?. component }
54- </ motion . div >
53+ < div className = "flex flex-col items-end justify-center" >
54+ < Namecard />
55+ < Navbar />
56+ </ div >
57+ { showPages && pages . find ( ( item ) => item . page === page ) ?. component }
58+ </ motion . div >
59+ </ div >
5560 </ div >
5661 ) ;
5762}
0 commit comments