Skip to content

Commit

Permalink
Small changes. Use align center properly I believe, although I may be…
Browse files Browse the repository at this point in the history
… mistaken. And move the game up a little because it looks weird how it was.
  • Loading branch information
aeum1016 committed Apr 9, 2022
1 parent d0c3768 commit 1775aae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 31 deletions.
14 changes: 3 additions & 11 deletions src/components/Home/Attempt/Attempt.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,9 @@ const Attempt = ({ stats, toHome }) => {
<StatCard title="Completed" value={stats.completed} units="Questions" />
<StatCard title="Time" value={stats.time / 1000} units="seconds" />
</div>
<Box
style={{
width: "180px",
marginLeft: "auto",
marginRight: "auto",
}}
>
<Typography variant="h6" fontSize="10pt" color="#bdbdbd">
Press Space or Enter to return
</Typography>
</Box>
<Typography variant="h6" fontSize="10pt" color="#bdbdbd" align="center">
Press Space or Enter to return
</Typography>
</Paper>
);
};
Expand Down
10 changes: 2 additions & 8 deletions src/components/Home/Game/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,7 @@ const Game = ({

return (
<>
<Box
style={{
width: "40px",
marginLeft: "auto",
marginRight: "auto",
}}
>
<div align="center">
<IconButton
aria-label="settings"
onClick={toSettings}
Expand All @@ -218,7 +212,7 @@ const Game = ({
>
<SettingsOutlinedIcon className={classes.grey} />
</IconButton>
</Box>
</div>
<span>
<Typography variant="h4" className={classes.grey}>
Questions:{" "}
Expand Down
14 changes: 3 additions & 11 deletions src/components/Home/Settings/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,9 @@ const Settings = ({ settings, handleSettings, toHome }) => {
<CalculateOutlinedIcon className={classes.grey} />
</IconButton>
</Box>
<Box
style={{
width: "180px",
marginLeft: "auto",
marginRight: "auto",
}}
>
<Typography variant="h6" fontSize="10pt" color="#bdbdbd">
Press Space or Enter to return
</Typography>
</Box>
<Typography variant="h6" fontSize="10pt" color="#bdbdbd" align="center">
Press Space or Enter to return
</Typography>
<FormControl
style={{
width: "150px",
Expand Down
1 change: 0 additions & 1 deletion src/styles/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { grey } from "@mui/material/colors";

export default makeStyles((theme) => ({
grid: {
height: "240px",
justifyContent: "center",
alignItems: "center",
},
Expand Down

0 comments on commit 1775aae

Please sign in to comment.