Skip to content

Commit

Permalink
refactor: Minimal improvements in styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mecies committed May 2, 2021
1 parent 769362b commit 166b4f2
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test": "react-scripts test --watchAll --verbose",
"eject": "react-scripts eject",
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
"lint:fix": "yarn lint --fix"
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
6 changes: 3 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<meta name="theme-color" content="#424242" />
<meta name="description" content="Find artists and their releases" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
Expand All @@ -23,7 +23,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Musical artists</title>
</head>

<body>
Expand Down
6 changes: 3 additions & 3 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Musical artists",
"name": "Find artists and their releases",
"icons": [
{
"src": "favicon.ico",
Expand All @@ -20,6 +20,6 @@
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"theme_color": "#424242",
"background_color": "#ffffff"
}
16 changes: 8 additions & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ const App: FC = () => {
</Switch>
</Grid>
{isDesktop && (
<Grid item md={2} className={classes.dividerWrapper}>
<Divider className={classes.divider} orientation="vertical" variant="middle" light />
</Grid>
)}
{isDesktop && (
<Grid item md={5} className={classes.container}>
<FavouriteArtists className={classes.favourites} />
</Grid>
<>
<Grid item md={2} className={classes.dividerWrapper}>
<Divider className={classes.divider} orientation="vertical" variant="middle" light />
</Grid>
<Grid item md={5} className={classes.container}>
<FavouriteArtists className={classes.favourites} />
</Grid>
</>
)}
</Router>
</Grid>
Expand Down
11 changes: 7 additions & 4 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ const useStyles = makeStyles((theme) => ({
iconButton: {
color: theme.palette.text.secondary,
},
drawer: {
minWidth: 200,
drawerPaper: {
backgroundColor: theme.palette.background.default,
padding: theme.spacing(2),
},
drawerContent: {
minWidth: 200,
maxWidth: 300,
},
infoText: {
color: theme.palette.text.secondary,
margin: theme.spacing(4),
Expand Down Expand Up @@ -76,8 +79,8 @@ const Header = () => {
<IconButton onClick={toggleDrawer} className={classes.iconButton}>
{hasFavouriteArtists ? <Favorite /> : <FavoriteBorder />}
</IconButton>
<Drawer classes={{ paper: classes.drawer }} anchor="right" open={isDrawerOpen} onClose={toggleDrawer}>
<FavouriteArtists />
<Drawer classes={{ paper: classes.drawerPaper }} anchor="right" open={isDrawerOpen} onClose={toggleDrawer}>
<FavouriteArtists className={classes.drawerContent} />
</Drawer>
</>
)}
Expand Down
1 change: 1 addition & 0 deletions src/components/List/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const useStyles = makeStyles((theme) => ({
},
content: {
display: 'flex',
alignItems: 'center',
width: '100%',
height: '100%',
},
Expand Down

0 comments on commit 166b4f2

Please sign in to comment.