-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
852 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import{j as t,B as o}from"./index-8a253a68.js";function s(){return t.jsx(o,{children:"About"})}export{s as default}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import{j as t,S as i}from"./index-8a253a68.js";function r(){return t.jsx(i,{direction:"column",width:"100%",children:"All"})}export{r as default}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import{j as t,O as s}from"./index-8a253a68.js";const r=()=>t.jsx(s,{});export{r as default}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Box, Stack, Typography } from "@mui/material"; | ||
|
||
export interface ErrorPageProp { | ||
reason?: string; | ||
debug?: any; | ||
} | ||
|
||
export default function ErrorPage({ reason, debug }: ErrorPageProp) { | ||
|
||
return ( | ||
<Box marginY={ 5 } width="100%"> | ||
<Stack direction="column" spacing={ 5 } justifyContent="center" alignItems="center"> | ||
<Typography variant="h5" sx={ {textTransform:'uppercase'} }> | ||
An error has occurred! | ||
</Typography> | ||
|
||
<Stack direction="column" spacing={ 1 } justifyContent="center" alignItems="center"> | ||
<Typography variant="body1" fontWeight={ 700 }> | ||
REASON | ||
</Typography> | ||
<Typography variant="body2"> | ||
{ reason } | ||
</Typography> | ||
</Stack> | ||
|
||
<Stack direction="column" spacing={ 1 } justifyContent="center" alignItems="center"> | ||
<Typography variant="body1" fontWeight={ 700 }> | ||
DEBUG | ||
</Typography> | ||
<Typography variant="body2" component="div"> | ||
<pre> | ||
<code style={ {display: 'flex', textAlign: 'center'} }> | ||
{ JSON.stringify(debug) } | ||
</code> | ||
</pre> | ||
</Typography> | ||
</Stack> | ||
</Stack> | ||
</Box> | ||
); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Stack, Typography } from "@mui/material"; | ||
import Grid from '@mui/material/Unstable_Grid2'; | ||
import { Link } from "react-router-dom"; | ||
import { flexCenter } from "../../src/shared/utils/css.utils"; | ||
// import logo from 'src/static/img/death-star.png'; | ||
|
||
|
||
export default function NotFound404Page() { | ||
|
||
return ( | ||
<Grid container sx={ {height: '100vh'} }> | ||
<Grid xs={ 6 } xsOffset={ 3 } sx={ {display: 'flex', justifyContent: 'center', alignItems: 'center'} } > | ||
<Stack direction="column" justifyContent="center" alignItems="center"> | ||
<Typography variant="h2" sx={ {mb: 5} }> | ||
404 | ||
</Typography> | ||
<Typography variant="h5" textAlign="center"> | ||
This is not the page you are looking for. | ||
</Typography> | ||
</Stack> | ||
</Grid> | ||
<Grid xs={ 6 } xsOffset={ 3 } sx={ {display: 'flex', justifyContent: 'center', alignItems: 'center'} }> | ||
<Stack direction="row" sx={ {...flexCenter} }> | ||
{/* <img src={ logo } alt="logo" style={ {height: "8rem"} }></img> */} | ||
</Stack> | ||
</Grid> | ||
<Grid xs={ 6 } xsOffset={ 3 } sx={ {display: 'flex', justifyContent: 'center', alignItems: 'center'} }> | ||
<Stack direction="row" sx={ {...flexCenter} }> | ||
<Link to={ "/" }>Go back home</Link> | ||
</Stack> | ||
</Grid> | ||
</Grid> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare module "*.module.css"; | ||
declare module "*.module.scss"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Box } from "@mui/material"; | ||
|
||
function About() { | ||
|
||
return ( | ||
<Box> | ||
About | ||
</Box> | ||
); | ||
} | ||
|
||
export default About; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Outlet } from "react-router-dom"; | ||
|
||
const FilmsLayout = () => { | ||
|
||
return ( | ||
<Outlet /> | ||
); | ||
}; | ||
|
||
export default FilmsLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Stack } from "@mui/material"; | ||
|
||
function FilmsAll() { | ||
|
||
return ( | ||
<Stack direction="column" width="100%"> | ||
All | ||
</Stack> | ||
); | ||
} | ||
|
||
export default FilmsAll; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import App from './App.tsx'; | ||
import './index.css'; | ||
import 'animate.css'; | ||
import App from './App'; | ||
import 'react-tooltip/dist/react-tooltip.css'; | ||
|
||
import '@fontsource/roboto/300.css'; | ||
import '@fontsource/roboto/400.css'; | ||
import '@fontsource/roboto/500.css'; | ||
import '@fontsource/roboto/700.css'; | ||
|
||
import '@fontsource/poppins/300.css'; | ||
import '@fontsource/poppins/400.css'; | ||
import '@fontsource/poppins/500.css'; | ||
import '@fontsource/poppins/600.css'; | ||
import '@fontsource/poppins/700.css'; | ||
import { ThemeContextProvider } from './theme/ThemeContext'; | ||
import { Provider } from 'react-redux'; | ||
import { appStore } from './store/appStore'; | ||
// import { PersistGate } from 'redux-persist/integration/react'; | ||
|
||
|
||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode>, | ||
const root = ReactDOM.createRoot( | ||
document.getElementById('root') as HTMLElement | ||
); | ||
|
||
|
||
root.render( | ||
<React.StrictMode> | ||
<Provider store={ appStore }> | ||
{/* <PersistGate loading={ null } persistor={ persistor }> */} | ||
<ThemeContextProvider> | ||
<App /> | ||
</ThemeContextProvider> | ||
{/* </PersistGate> */} | ||
</Provider> | ||
</React.StrictMode> | ||
|
||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import { useContext, useMemo } from 'react'; | ||
import { Outlet } from 'react-router-dom'; | ||
import { createTheme, Theme, ThemeProvider } from '@mui/material/styles'; | ||
import { getMyTheme } from '../../src/theme/AppTheme'; | ||
import ThemeContext from '../../src/theme/ThemeContext'; | ||
import Grid from '@mui/material/Unstable_Grid2'; | ||
import { GREY } from '../../src/theme/palette'; | ||
import { Toaster } from 'react-hot-toast'; | ||
import { Tooltip } from 'react-tooltip'; | ||
import TopNav from '../top-nav/TopNav'; | ||
import { Box } from '@mui/material'; | ||
import LayoutWithGutter from '../shared/components/layouts/LayoutWithGutter'; | ||
|
||
|
||
const Layout = () => { | ||
|
||
const themeContext = useContext(ThemeContext); | ||
const theme: Theme = useMemo(() => { | ||
return createTheme(getMyTheme(themeContext.currentTheme)); | ||
}, [themeContext.currentTheme]); | ||
|
||
|
||
return ( | ||
<ThemeProvider theme={ theme }> | ||
<Box sx={ { display: 'flex', height: '100%' } }> | ||
|
||
<Box component="main" sx={ { flexGrow: 1, bgcolor:(theme) => theme.palette.mode === 'light' ? GREY[0] : null } }> | ||
|
||
<Grid container sx={ {bgcolor:(theme) => theme.palette.mode === 'light' ? GREY[0] : null } } xs={ 12 }> | ||
<LayoutWithGutter size='skinny'> | ||
<> | ||
<TopNav /> | ||
|
||
<Outlet /> | ||
</> | ||
</LayoutWithGutter> | ||
|
||
|
||
</Grid> | ||
</Box> | ||
<Toaster | ||
position="top-center" | ||
containerClassName="toast-container" | ||
containerStyle={ {} } | ||
toastOptions={ { | ||
className: 'swdb-toast', | ||
duration: 5000, | ||
success: { | ||
duration: 8000, | ||
}, | ||
error: { | ||
duration: 10000 | ||
} | ||
} } | ||
/> | ||
<Tooltip id="tooltip" place="bottom" /> | ||
</Box> | ||
</ThemeProvider> | ||
|
||
); | ||
}; | ||
|
||
export default Layout; |
Oops, something went wrong.