-
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.
feat(themeAndLayout): add theme and layout
- Loading branch information
Showing
10 changed files
with
89 additions
and
52 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
import { Container } from '@mui/material'; | ||
import TrackerList from '../components/trackerList/TrackerList' | ||
import { createTheme, ThemeProvider } from '@mui/material/styles'; | ||
import palette from '../config/CustomTheme'; | ||
import './App.css'; | ||
import AppBar from './AppBar'; | ||
|
||
const theme = createTheme({ | ||
palette: palette | ||
}); | ||
|
||
|
||
function App() { | ||
return ( | ||
<ThemeProvider theme={theme}> | ||
<Container> | ||
<AppBar/> | ||
<TrackerList /> | ||
</Container> | ||
</ThemeProvider> | ||
); | ||
} | ||
|
||
export default App; |
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,28 @@ | ||
import { AppBar as MuiAppBar, Box, Button, IconButton, Toolbar, Typography } from '@mui/material'; | ||
import MenuIcon from '@mui/icons-material/Menu'; | ||
import './AppBar.css'; | ||
|
||
function AppBar() { | ||
return ( | ||
<Box sx={{ flexGrow: 1 }}> | ||
<MuiAppBar position="static"> | ||
<Toolbar> | ||
<IconButton | ||
size="large" | ||
edge="start" | ||
color="inherit" | ||
aria-label="menu" | ||
sx={{ mr: 2 }} | ||
> | ||
<MenuIcon /> | ||
</IconButton> | ||
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}> | ||
Bujo Tracker | ||
</Typography> | ||
</Toolbar> | ||
</MuiAppBar> | ||
</Box> | ||
); | ||
} | ||
|
||
export default 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,27 @@ | ||
// Coolors URL: https://coolors.co/80cbc4-eeeeee-2e4057-db7f8e-ffe66d | ||
|
||
const CHARCOAL = { | ||
main: '#2E4057' | ||
} | ||
const YELLOW_CRAYOLA = { | ||
main: '#FFE66D' | ||
} | ||
/* | ||
const WHITE = { | ||
main: '#EEEEEE' | ||
} | ||
const SHIMMERING_BLUSH = { | ||
main: '#DB7F8E' | ||
} | ||
const MIDDLE_BLUE = { | ||
main: '#80CBC4' | ||
} | ||
*/ | ||
|
||
|
||
const palette = { | ||
primary: CHARCOAL, | ||
secondary: YELLOW_CRAYOLA, | ||
} | ||
|
||
export default palette; |
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