mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 08:24:27 +00:00
Set up Mantine ui
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import React from 'react';
|
||||
import { GeistProvider, CssBaseline, Page } from '@geist-ui/core';
|
||||
import { GeistProvider, CssBaseline } from '@geist-ui/core';
|
||||
import { MantineProvider, AppShell, Container } from '@mantine/core';
|
||||
import Header from './components/Header';
|
||||
import MainContent from './components/MainContent';
|
||||
import { SettingsProvider, useSettings } from './contexts/SettingsContext';
|
||||
import { ModalProvider } from './contexts/ModalContext';
|
||||
import '@mantine/core/styles.css';
|
||||
import './App.scss';
|
||||
|
||||
function AppContent() {
|
||||
@@ -15,13 +17,41 @@ function AppContent() {
|
||||
|
||||
return (
|
||||
<GeistProvider themeType={settings.theme}>
|
||||
<CssBaseline />
|
||||
<Page>
|
||||
<Header />
|
||||
<Page.Content className="page-content">
|
||||
<MainContent />
|
||||
</Page.Content>
|
||||
</Page>
|
||||
<MantineProvider
|
||||
withGlobalStyles
|
||||
withNormalizeCSS
|
||||
theme={{
|
||||
colorScheme: settings.theme,
|
||||
components: {
|
||||
Container: {
|
||||
defaultProps: {
|
||||
sizes: {
|
||||
xs: 540,
|
||||
sm: 720,
|
||||
md: 960,
|
||||
lg: 1140,
|
||||
xl: 1320,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}}
|
||||
>
|
||||
<CssBaseline />
|
||||
<AppShell header={{ height: 60 }} padding="md">
|
||||
<AppShell.Header>
|
||||
<Container size="xl">
|
||||
<Header />
|
||||
</Container>
|
||||
</AppShell.Header>
|
||||
|
||||
<AppShell.Main>
|
||||
<Container size="xl">
|
||||
<MainContent />
|
||||
</Container>
|
||||
</AppShell.Main>
|
||||
</AppShell>
|
||||
</MantineProvider>
|
||||
</GeistProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user