-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addition of style pages, minus their content
- Loading branch information
1 parent
06294a3
commit 40e74a9
Showing
7 changed files
with
156 additions
and
2 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
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,60 @@ | ||
import React from 'react'; | ||
import { Outlet } from 'react-router-dom'; | ||
import { useNavigate, useLocation } from 'react-router-dom'; | ||
|
||
import Divider from '@mui/material/Divider'; | ||
import GitHubIcon from '@mui/icons-material/GitHub'; | ||
import LoopIcon from '@mui/icons-material/Loop'; | ||
import PodcastsIcon from '@mui/icons-material/Podcasts'; | ||
import PaletteIcon from '@mui/icons-material/Palette'; | ||
import BuildIcon from '@mui/icons-material/Build'; | ||
import CodeIcon from '@mui/icons-material/Code'; | ||
|
||
import SubNavWrapper from '../../component/SubNavWrapper'; | ||
import makePage from '../../component/makePage'; | ||
|
||
import { Context, useContext } from '../../context'; | ||
|
||
const HelpResources = ({ }) => { | ||
|
||
const { getters } = useContext(Context); | ||
const { pathname } = useLocation(); | ||
const navigate = useNavigate(); | ||
|
||
React.useEffect(() => { | ||
if (pathname.endsWith('/style')) { | ||
navigate(`/${getters.term}/style/html`); | ||
} | ||
}, []); | ||
|
||
const menu = [ | ||
{ | ||
title: 'HTML', | ||
icon: <CodeIcon />, | ||
subRoute: 'html', | ||
}, | ||
{ | ||
title: 'CSS', | ||
icon: <PaletteIcon />, | ||
subRoute: 'css', | ||
}, | ||
{ | ||
title: 'Javascript', | ||
icon: <BuildIcon />, | ||
subRoute: 'javascript', | ||
}, | ||
{ | ||
title: 'ReactJS', | ||
icon: <LoopIcon />, | ||
subRoute: 'reactjs', | ||
}, | ||
]; | ||
|
||
return ( | ||
<SubNavWrapper baseUrl={'/style'} menu={menu}> | ||
<Outlet /> | ||
</SubNavWrapper> | ||
); | ||
}; | ||
|
||
export default HelpResources |
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,21 @@ | ||
import React from 'react'; | ||
import Typography from '@mui/material/Typography'; | ||
import Divider from '@mui/material/Divider'; | ||
|
||
import makePage from '../../component/makePage'; | ||
|
||
const StyleCss = ({}) => { | ||
return ( | ||
<> | ||
<Typography variant="body1" gutterBottom> | ||
Test | ||
</Typography> | ||
|
||
</> | ||
); | ||
}; | ||
|
||
export default makePage(StyleCss, { | ||
loginRequired: true, | ||
title: 'CSS Style', | ||
}); |
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,21 @@ | ||
import React from 'react'; | ||
import Typography from '@mui/material/Typography'; | ||
import Divider from '@mui/material/Divider'; | ||
|
||
import makePage from '../../component/makePage'; | ||
|
||
const StyleHtmlCss = ({}) => { | ||
return ( | ||
<> | ||
<Typography variant="body1" gutterBottom> | ||
Test | ||
</Typography> | ||
|
||
</> | ||
); | ||
}; | ||
|
||
export default makePage(StyleHtmlCss, { | ||
loginRequired: true, | ||
title: 'HTML/CSS Style', | ||
}); |
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,21 @@ | ||
import React from 'react'; | ||
import Typography from '@mui/material/Typography'; | ||
import Divider from '@mui/material/Divider'; | ||
|
||
import makePage from '../../component/makePage'; | ||
|
||
const StyleJavascript = ({}) => { | ||
return ( | ||
<> | ||
<Typography variant="body1" gutterBottom> | ||
Test | ||
</Typography> | ||
|
||
</> | ||
); | ||
}; | ||
|
||
export default makePage(StyleJavascript, { | ||
loginRequired: true, | ||
title: 'Javascript Style', | ||
}); |
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,21 @@ | ||
import React from 'react'; | ||
import Typography from '@mui/material/Typography'; | ||
import Divider from '@mui/material/Divider'; | ||
|
||
import makePage from '../../component/makePage'; | ||
|
||
const StyleReactJS = ({}) => { | ||
return ( | ||
<> | ||
<Typography variant="body1" gutterBottom> | ||
Test | ||
</Typography> | ||
|
||
</> | ||
); | ||
}; | ||
|
||
export default makePage(StyleReactJS, { | ||
loginRequired: true, | ||
title: 'ReactJS Style', | ||
}); |