diff --git a/public/jamboard_kiosk.png b/public/jamboard_kiosk.png new file mode 100644 index 000000000..66f97b1ea Binary files /dev/null and b/public/jamboard_kiosk.png differ diff --git a/src/components/App/DeviceCompatibilityNotification/index.tsx b/src/components/App/DeviceCompatibilityNotification/index.tsx new file mode 100644 index 000000000..4e03eb555 --- /dev/null +++ b/src/components/App/DeviceCompatibilityNotification/index.tsx @@ -0,0 +1,56 @@ +import { Button } from '@mui/material' +import { useEffect, useState } from 'react' +import styled from 'styled-components' +import { Flex } from '~/components/common/Flex' +import { Text } from '~/components/common/Text' +import { useIsMobile } from '~/hooks/useIsMobile' + +export const DeviceCompatibilityNotice = () => { + const [isVisible, setIsVisible] = useState(true) + const isMobile = useIsMobile() + + useEffect(() => { + setIsVisible(true) + }, [isMobile]) + + const handleClick = () => { + setIsVisible(false) + } + + return isMobile && isVisible ? ( + + screen + + Second Brain is currently + optimized for Desktop. + Mobile support coming soon. + + + + ) : null +} + +const Wrapper = styled(Flex)` + height: 100vh; + width: 100vw; + background: rgba(0, 0, 0, 0.75); + gap: 28px; + z-index: 2000000000; + position: fixed; + top: 0; + left: 0; + right: 0; +` + +const StyledText = styled(Text)` + color: #fff; + text-align: center; + font-family: Barlow; + font-size: 18px; + font-style: normal; + font-weight: 400; + line-height: 24px; + margin: 1px; +` diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index ad40d13d5..65e7fb923 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -5,10 +5,10 @@ import 'react-toastify/dist/ReactToastify.css' import { Socket } from 'socket.io-client' import * as sphinx from 'sphinx-bridge' import styled from 'styled-components' -import { Flex } from '~/components/common/Flex' import { DataRetriever } from '~/components/DataRetriever' import { GlobalStyle } from '~/components/GlobalStyle' import { Universe } from '~/components/Universe' +import { Flex } from '~/components/common/Flex' import { isDevelopment, isE2E } from '~/constants' import useSocket from '~/hooks/useSockets' import { getIsAdmin } from '~/network/auth' @@ -34,6 +34,7 @@ import { MainToolbar } from './MainToolbar' import { AppProviders } from './Providers' import { SecondarySideBar } from './SecondarySidebar' import { SideBar } from './SideBar' +import { DeviceCompatibilityNotice } from './DeviceCompatibilityNotification' import { Toasts } from './Toasts' const Wrapper = styled(Flex)` @@ -204,6 +205,8 @@ export const App = () => { + +