Skip to content

Commit

Permalink
button styling and color theme change
Browse files Browse the repository at this point in the history
  • Loading branch information
mykovasyl committed Mar 31, 2023
1 parent fe53ca5 commit be8ca43
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 19 deletions.
7 changes: 4 additions & 3 deletions client/src/components/LogIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ function LogIn() {
autoComplete='current-password'
/>
<Button
type='submit'
fullWidth
type='submit'
variant='contained'
sx={{ mt: 3, mb: 2 }}
onClick={handleSubmit}
sx={{ mt: 3, mb: 2, backgroundColor: "#DE5928" }}
>
Sign In
Log In
</Button>
</Box>
</Box>
Expand Down
8 changes: 6 additions & 2 deletions client/src/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,16 @@ function NavBar() {
<>
<ListItem disablePadding as={Link} to='/login'>
<ListItemButton sx={buttonStyle}>
<ListItemText>Log In</ListItemText>
<ListItemText>
<div style={boldText}>Log In</div>
</ListItemText>
</ListItemButton>
</ListItem>
<ListItem disablePadding as={Link} to='/signup'>
<ListItemButton sx={buttonStyle}>
<ListItemText>Sign Up</ListItemText>
<ListItemText>
<div style={boldText}>Sign Up</div>
</ListItemText>
</ListItemButton>
</ListItem>
</>
Expand Down
7 changes: 6 additions & 1 deletion client/src/components/RandomRecipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ function RandomRecipe() {

return (
<div>
<Button type='button' variant='contained' onClick={handleClick}>
<Button
type='button'
variant='contained'
onClick={handleClick}
style={{ backgroundColor: "#DE5928" }}
>
Get Random Recipe
</Button>
{recipe.title ? (
Expand Down
9 changes: 7 additions & 2 deletions client/src/components/Recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ function Recipe({ recipe }) {
<CardActions disableSpacing>
{user_id ? (
id ? (
<Button type='button' variant='contained' onClick={deleteRecipe}>
<Button
type='button'
variant='contained'
onClick={deleteRecipe}
style={{ backgroundColor: "#bd2a00" }}
>
Delete it!
</Button>
) : null
Expand All @@ -111,7 +116,7 @@ function Recipe({ recipe }) {
variant='contained'
onClick={addRecipe}
>
<FavoriteIcon />
<FavoriteIcon sx={{ color: "#FF7844" }} />
</IconButton>
)}
<ExpandMore
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/RecipeBook.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function RecipeBook() {
}));
const recipesDisplayed = currentUser.recipes.map((recipe) => (
<Grid item xs={6} md={4} key={recipe.id}>
<Item>
<Item sx={{ backgroundColor: "#fbd0a8" }}>
<Recipe key={recipe.summary} recipe={recipe} />
</Item>
</Grid>
Expand Down
17 changes: 9 additions & 8 deletions client/src/components/RecipeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,15 @@ function RecipeForm() {
/>
</Grid>
</Grid>
<Button
type='submit'
fullWidth
variant='contained'
sx={{ mt: 3, mb: 2 }}
>
Add to booka!
</Button>
<Grid display='flex' justifyContent='center' alignItems='center'>
<Button
type='submit'
variant='contained'
sx={{ mt: 3, mb: 2, backgroundColor: "#DE5928" }}
>
Add to booka!
</Button>
</Grid>
</Box>
</Box>
</Container>
Expand Down
5 changes: 3 additions & 2 deletions client/src/components/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@ function SignUp() {
</Grid>
</Grid>
<Button
type='submit'
fullWidth
type='submit'
variant='contained'
sx={{ mt: 3, mb: 2 }}
onClick={handleSubmit}
sx={{ mt: 3, mb: 2, backgroundColor: "#DE5928" }}
>
Sign Up
</Button>
Expand Down

0 comments on commit be8ca43

Please sign in to comment.