blob: 2932bb76d92ba3ab99daba2fcee996ab02353e0c [file] [log] [blame]
pineafandf39fd42021-09-04 16:05:27 +01001import '../styles/globals.css';
2import NavBar from '../Components/NavBar';
Skyler Turner16c08d32021-11-04 20:06:50 +00003import { ThemeProvider } from 'theme-ui';
pineafan7bd0ad62022-10-26 22:11:29 +01004import React from 'react';
pineafanff3d4522022-05-06 19:51:02 +01005import Styles from '../styles/globals.module.css';
pineafandf39fd42021-09-04 16:05:27 +01006
Skyler Turner16c08d32021-11-04 20:06:50 +00007const theme = {
8 config: {
9 useColorSchemeMediaQuery: true,
10 initialColorModeName: 'light',
11 },
12 colors: {
13 text: '#424242',
14 background: '#ffffff',
15 primary: '#6576CC',
16 cardText: '#ffffff',
17 cardBackground: 'rgba(255, 255, 255, 0.65)',
18 cardBorder: '#C4C4C4',
19 cardFilter: 'rgba(0, 0, 0, 0)',
20 cardOverlay: '#00000080',
pineafane0283a82022-02-13 10:05:56 +000021 hint: '#E4E4E4',
22 panelColor: "#F0F0F0",
pineafan46270162022-02-13 12:06:17 +000023 fadeGradient: "rgba(240, 240, 240, 1)",
pineafan7bd0ad62022-10-26 22:11:29 +010024 offset: "2.5px",
pineafandf39fd42021-09-04 16:05:27 +010025
Skyler Turner16c08d32021-11-04 20:06:50 +000026 modes: {
27 dark: {
28 text: '#ffffff',
29 background: '#252525',
30 primary: '#6576CC',
31 cardText: '#424242',
32 cardBackground: 'rgba(0, 0, 0, 0.65)',
33 cardBorder: '#424242',
pineafana841c762021-11-14 21:21:04 +000034 cardFilter: 'brightness(0.5)',
Skyler Turner16c08d32021-11-04 20:06:50 +000035 cardOverlay: '#42424280',
pineafane0283a82022-02-13 10:05:56 +000036 hint: '#242424',
pineafan46270162022-02-13 12:06:17 +000037 panelColor: "rgba(255, 255, 255, 0.05)",
38 fadeGradient: "rgba(48, 48, 48, 1)",
pineafan7bd0ad62022-10-26 22:11:29 +010039 offset: "-20px"
Skyler Turner16c08d32021-11-04 20:06:50 +000040 }
41 }
42 },
43};
44
Samuel Shuert016ea022021-09-01 16:17:24 -050045
pineafana5ce9102021-09-02 17:21:31 +010046function App({ Component, pageProps }) {
pineafan7bd0ad62022-10-26 22:11:29 +010047 const ref = React.forwardRef(function Ref(props, ref) {
48 return <NavBar {...props} ref={ref} />
49 });
50
51 const navbar = React.useRef(ref);
52
pineafana5ce9102021-09-02 17:21:31 +010053 return <>
Skyler Turner16c08d32021-11-04 20:06:50 +000054 <ThemeProvider theme={theme}>
pineafan7bd0ad62022-10-26 22:11:29 +010055 {navbar.current.render()}
56 <Component
57 {...pageProps}
58 navbar={navbar}
59 navRef={ref}
60 />
pineafanff3d4522022-05-06 19:51:02 +010061 <div className={Styles.container} />
Skyler Turner16c08d32021-11-04 20:06:50 +000062 </ThemeProvider>
pineafana5ce9102021-09-02 17:21:31 +010063 </>
Samuel Shuert016ea022021-09-01 16:17:24 -050064}
65
pineafana5ce9102021-09-02 17:21:31 +010066export default App