Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

заглушка на десктоп #96

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/app/providers/router/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Box, Container, Flex, Stack } from '@chakra-ui/react';

Check warning on line 1 in src/app/providers/router/Layout.tsx

View workflow job for this annotation

GitHub Actions / checks

'Container' is defined but never used. Allowed unused vars must match /^_/u
import { useEffect, useRef } from 'react';
import { ScrollRestoration, useLocation } from 'react-router-dom';

import { BlankPage } from '~/pages/blank';

import { MenuBase, MenuDesktop } from '~/widgets/menu';

Check warning on line 7 in src/app/providers/router/Layout.tsx

View workflow job for this annotation

GitHub Actions / checks

'MenuDesktop' is defined but never used. Allowed unused vars must match /^_/u

import { LayoutContext } from '~/shared/contexts';
import { useIsMobile, useWindowSizes } from '~/shared/hooks';
Expand All @@ -19,7 +21,7 @@
const footerRef = useRef<HTMLDivElement>(null);
const headerRef = useRef<HTMLDivElement>(null);

const isNotFoundPage = location.pathname === PATHS.notFound;

Check warning on line 24 in src/app/providers/router/Layout.tsx

View workflow job for this annotation

GitHub Actions / checks

'isNotFoundPage' is assigned a value but never used. Allowed unused vars must match /^_/u
const isOnboardingPage = location.pathname === PATHS.onboarding;
const isDialogPage = new RegExp(`${PATHS.chats}/\\d+`).test(location.pathname);

Expand All @@ -45,7 +47,8 @@
</Stack>
) : (
<Flex alignItems="start" h="full">
{!isNotFoundPage && <MenuDesktop />}
<BlankPage />
{/* {!isNotFoundPage && <MenuDesktop />}
<Container
maxW="6xl"
minW="4xl"
Expand All @@ -57,7 +60,7 @@
flexDirection="column"
>
<Routes />
</Container>
</Container> */}
</Flex>
)}
</AuthProvider>
Expand Down
11 changes: 6 additions & 5 deletions src/pages/blank/BlankPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ export function BlankPage() {
textAlign="center"
mb="8"
>
Наш сайт <br />в разработке
Десктоп
<br />в разработке
</Heading>
<Box textAlign="center" mb={[10, null, 12]} fontSize={['sm', 'xl']}>
<Text>
Создаём продукт для Хабра, где специалисты смогут объединяться в команды и
Создаём продукт, где специалисты смогут объединяться <br /> в команды и
делать проекты.
</Text>
<Text
Expand All @@ -80,18 +81,18 @@ export function BlankPage() {
position: 'absolute',
width: '45px',
top: '10px',
left: '-60px',
left: '-100px',
},
}}
>
Ещё немного, и вы сможете его увидеть!
Используйте мобильную версию.
</Text>
</Box>
<Box>
<Button
as="a"
target="_blank"
href="https://t.me/+EqCvrAXmK_IyOTky"
href="https://t.me/+6JjDGzNZqgozMWE6"
rightIcon={<Icon as={TelegramIcon} />}
fontSize={['sm', 'lg']}
py={['4', '7']}
Expand Down
Loading