From 06b284fd063ab5f75ff68bbcf5629e8ba66770b3 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 9 Jul 2021 08:36:52 +0200 Subject: more icons and manifests --- pages/mobile/index.tsx | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to 'pages/mobile') diff --git a/pages/mobile/index.tsx b/pages/mobile/index.tsx index 50d2558..5474827 100644 --- a/pages/mobile/index.tsx +++ b/pages/mobile/index.tsx @@ -1,4 +1,5 @@ -import { ReactNode, useState } from 'react'; +import Head from 'next/head'; +import { ReactNode, useEffect, useState } from 'react'; import AppBar from '@material-ui/core/AppBar'; import Button from '@material-ui/core/Button'; @@ -24,8 +25,45 @@ export function MobileWrapper(props: { nobar?: boolean; }) { var [drawerOpen, setDrawerOpen] = useState(false); + var [iOS, setIOS] = useState(false); + useEffect(() => { + setIOS(process.browser && /iPad|iPhone|iPod/.test(navigator.userAgent)); + }, []); return
+ + + + + + + + + + + + + + + + +