2022-11-27 16:34:37 +03:00
|
|
|
|
import React from 'react';
|
2022-11-29 22:36:58 +03:00
|
|
|
|
import { Helmet } from 'react-helmet';
|
2024-08-12 00:05:30 +03:00
|
|
|
|
import { Global, css } from '@emotion/react'
|
2023-04-16 12:18:29 +03:00
|
|
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
|
|
|
import ruLocale from 'dayjs/locale/ru';
|
|
|
|
|
import dayjs from 'dayjs';
|
2024-03-28 18:26:26 +03:00
|
|
|
|
import { ChakraProvider } from '@chakra-ui/react'
|
2022-11-27 16:34:37 +03:00
|
|
|
|
|
2023-04-16 12:18:29 +03:00
|
|
|
|
import { Dashboard } from './dashboard';
|
|
|
|
|
|
|
|
|
|
dayjs.locale('ru', ruLocale);
|
2022-11-27 16:34:37 +03:00
|
|
|
|
|
2024-08-12 00:05:30 +03:00
|
|
|
|
const App = ({ store }) => (
|
|
|
|
|
<ChakraProvider>
|
|
|
|
|
<BrowserRouter>
|
|
|
|
|
<Helmet>
|
|
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no" />
|
|
|
|
|
<title>Журнал</title>
|
|
|
|
|
</Helmet>
|
|
|
|
|
<Global
|
|
|
|
|
styles={css`
|
2024-03-28 18:26:26 +03:00
|
|
|
|
html {
|
|
|
|
|
height: 100%;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
body {
|
|
|
|
|
color: #000;
|
|
|
|
|
/* background: radial-gradient(circle at top right, rgb(154 227 33), rgb(33 160 56)); */
|
|
|
|
|
background: radial-gradient(
|
|
|
|
|
farthest-side at bottom left,
|
|
|
|
|
rgba(35, 235, 4, 0.709),
|
|
|
|
|
rgba(255, 255, 255, 0) 65%
|
|
|
|
|
),
|
|
|
|
|
radial-gradient(
|
|
|
|
|
farthest-corner at bottom center,
|
|
|
|
|
rgba(244, 244, 8, 0.6),
|
|
|
|
|
rgba(255, 255, 255, 0) 40%
|
|
|
|
|
),
|
|
|
|
|
radial-gradient(
|
|
|
|
|
farthest-side at bottom right,
|
|
|
|
|
rgba(0, 195, 255, 0.648),
|
|
|
|
|
rgb(239 244 246) 65%
|
|
|
|
|
/* rgba(255, 255, 255, 0) 65% */
|
|
|
|
|
);
|
|
|
|
|
height: 100%;
|
2024-04-03 19:47:18 +03:00
|
|
|
|
/* font-family: KiyosunaSans, Montserrat, RFKrabuler, sans-serif; */
|
2024-03-28 18:26:26 +03:00
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
#app {
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
2022-11-27 16:34:37 +03:00
|
|
|
|
|
2024-03-28 18:26:26 +03:00
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'KiyosunaSans';
|
|
|
|
|
src: url('${__webpack_public_path__ + '/remote-assets/KiyosunaSans/KiyosunaSans-B.otf'}');
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'KiyosunaSans';
|
|
|
|
|
src: url('${__webpack_public_path__ + '/remote-assets/KiyosunaSans/KiyosunaSans-L.otf'}');
|
|
|
|
|
font-weight: lighter;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'RFKrabuler';
|
|
|
|
|
src: url('${__webpack_public_path__ + '/remote-assets/RF-Krabuler/WEB/RFKrabuler-Regular.eot'}');
|
|
|
|
|
src:
|
|
|
|
|
url('${__webpack_public_path__ + '/remote-assets/RF-Krabuler/WEB/RFKrabuler-Regular.woff2'}') format('woff2'),
|
|
|
|
|
url('${__webpack_public_path__ + '/remote-assets/RF-Krabuler/WEB/RFKrabuler-Regular.woff'}') format('woff'),
|
|
|
|
|
url('${__webpack_public_path__ + '/remote-assets/RF-Krabuler/TTF/RF-Krabuler-Regular.ttf'}') format('truetype');
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
|
|
|
|
`}
|
2024-08-12 00:05:30 +03:00
|
|
|
|
/>
|
|
|
|
|
<Dashboard store={store} />
|
|
|
|
|
</BrowserRouter>
|
|
|
|
|
</ChakraProvider>
|
|
|
|
|
)
|
2022-11-27 16:34:37 +03:00
|
|
|
|
|
|
|
|
|
export default App;
|
|
|
|
|
|