-
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.
- setup MUI theme and fonts - setup a hash router - change website title - create a basic layout and navigation
- Loading branch information
1 parent
33e6d44
commit 42f2a3a
Showing
10 changed files
with
154 additions
and
97 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 was deleted.
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 was deleted.
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,15 @@ | ||
import { Navigation } from './Navigation' | ||
import { Box, Container } from '@mui/material' | ||
import { Outlet } from 'react-router-dom' | ||
|
||
|
||
export const Layout = () => ( | ||
<> | ||
<Navigation /> | ||
{/* a box spacer of the size of the toolbar so that nothing is hidden underneath <Navigation /> */} | ||
<Box sx={(theme) => (theme.mixins.toolbar)} /> | ||
<Container> | ||
<Outlet /> | ||
</Container> | ||
</> | ||
) |
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,26 @@ | ||
/* eslint-disable react/jsx-no-comment-textnodes */ | ||
// The title is supposed to imitate a code source file header | ||
import { AppBar, Box, Container, Tab, Tabs, Toolbar, Typography } from '@mui/material' | ||
|
||
const a11yProps = (index: number) => ({ | ||
'id': `simple-tab-${index}`, | ||
'aria-controls': `simple-tabpanel-${index}`, | ||
|
||
}) | ||
|
||
export const Navigation = () => { | ||
return( | ||
<AppBar> | ||
<Container> | ||
<Toolbar> | ||
<Typography variant='h4' sx={{ display: { xs: 'none', md: 'flex' }, mr: 1 }}>/* @author: Jan Rychly */</Typography> | ||
<Typography variant='h6'sx={{ display: { xs: 'flex', md: 'none' }, mr: 1 }}>J. R.</Typography> | ||
<Box> | ||
<Tabs value={0} > | ||
<Tab label="Dev" {...a11yProps(0)}/> | ||
</Tabs> | ||
</Box> | ||
</Toolbar> | ||
</Container> | ||
</AppBar> | ||
)} |
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 { Box, Grid, Stack, Typography } from '@mui/material' | ||
|
||
export const LandingPage = () => ( | ||
<Grid container> | ||
<Grid item xs={12} md={6}> | ||
<Stack> | ||
<Typography variant='h1' color='primary' sx={{fontWeight: 700, fontSize: '900%'}}>Jan<br/>Rychly</Typography> | ||
<Typography variant='h3'>Software Engineer</Typography> | ||
<Typography variant='body1'>I am amazing and you should hire me.</Typography> | ||
</Stack> | ||
</Grid> | ||
<Grid item xs={12} md={6}> | ||
<Box sx={{height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center'}}> | ||
<Typography><pre>H i g h l i g h t s G a l l e r y H e r e</pre></Typography> | ||
</Box> | ||
</Grid> | ||
<Grid xs={12}> | ||
<Typography>List of useful skills that I have</Typography> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { LandingPage } from './LandingPage' | ||
|
||
export { LandingPage } |
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