2022-08-27 15:58:36 +02:00
|
|
|
import React from 'react';
|
2022-10-27 16:44:21 +02:00
|
|
|
import ReactDOM from 'react-dom/client';
|
2022-08-27 15:58:36 +02:00
|
|
|
import './index.css';
|
|
|
|
|
import App from './App';
|
|
|
|
|
import { theme } from './theme';
|
|
|
|
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
|
import { far } from '@fortawesome/free-regular-svg-icons';
|
|
|
|
|
import { fab } from '@fortawesome/free-brands-svg-icons';
|
|
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
|
|
|
import { isEnvBrowser } from './utils/misc';
|
|
|
|
|
import LocaleProvider from './providers/LocaleProvider';
|
2022-12-16 11:55:12 +01:00
|
|
|
import { MantineProvider } from '@mantine/core';
|
2022-03-20 11:14:46 +01:00
|
|
|
|
|
|
|
|
library.add(fas, far, fab);
|
2022-03-15 15:42:54 +01:00
|
|
|
|
2022-03-20 17:38:38 +01:00
|
|
|
if (isEnvBrowser()) {
|
2022-08-27 15:58:36 +02:00
|
|
|
const root = document.getElementById('root');
|
2022-03-20 17:38:38 +01:00
|
|
|
|
2022-03-20 19:58:52 +01:00
|
|
|
// https://i.imgur.com/iPTAdYV.png - Night time img
|
2022-03-20 17:38:38 +01:00
|
|
|
root!.style.backgroundImage = 'url("https://i.imgur.com/3pzRj9n.png")';
|
2022-08-27 15:58:36 +02:00
|
|
|
root!.style.backgroundSize = 'cover';
|
|
|
|
|
root!.style.backgroundRepeat = 'no-repeat';
|
|
|
|
|
root!.style.backgroundPosition = 'center';
|
2022-03-20 17:38:38 +01:00
|
|
|
}
|
|
|
|
|
|
2022-10-27 16:44:21 +02:00
|
|
|
const root = document.getElementById('root');
|
|
|
|
|
ReactDOM.createRoot(root!).render(
|
2022-03-13 22:30:57 +01:00
|
|
|
<React.StrictMode>
|
2022-04-30 14:49:49 +02:00
|
|
|
<LocaleProvider>
|
2023-01-02 14:02:07 +01:00
|
|
|
<MantineProvider withNormalizeCSS withGlobalStyles theme={theme}>
|
|
|
|
|
<App />
|
2022-12-16 11:55:12 +01:00
|
|
|
</MantineProvider>
|
2022-04-30 14:49:49 +02:00
|
|
|
</LocaleProvider>
|
2022-10-27 16:44:21 +02:00
|
|
|
</React.StrictMode>
|
2022-03-13 22:30:57 +01:00
|
|
|
);
|