Skip to content

Commit

Permalink
changed main colors of app
Browse files Browse the repository at this point in the history
  • Loading branch information
elenavolpato committed Jul 22, 2023
1 parent 4243cc7 commit ccf98e2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/HeaderBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function HeaderBar(props: Props) {

const StyledAppBar = styled(AppBar)(() => ({
borderRadius: "2%",
background: "#13bf8d",
background: 'primary.main' ,
marginTop: "0",
}));

Expand Down
1 change: 1 addition & 0 deletions src/components/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const ImgBox = styled(Box)(({ theme }) => ({
width: "6em",
boxShadow: "3px 4px 8px #888888",
textAlign: "center",
backgroundColor:"#fefefe",
[theme.breakpoints.down("xs")]: {
width: "115px",
},
Expand Down
3 changes: 2 additions & 1 deletion src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ body {
font-size: 1.2135rem;
margin: 0 auto;
width: 100%;
background-color: rgb(227, 244, 229);
background-color: #fefefe;
overflow-x: hidden;
color:#393232
}

.App {
Expand Down
6 changes: 3 additions & 3 deletions src/routes/FoodOfTheMonth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ export default function FoodOfTheMonth() {
<Tabs
value={foodType}
onChange={(_, value) => handleChange(value)}
variant="fullWidth"
sx={{ fontWeight: 700 }}
variant="fullWidth"
sx={{ fontWeight: 700}}
aria-label="tabs for the selection of fruits, vegetables or others"
>
<Tab
label={
<span>
<Chip label={num_fruits} sx={{ mr: 1 }} size="small" />
<Chip label={num_fruits} sx={{ mr: 1, }} size="small" />
{t("FoodOfTheMonth_fruitsTabText")}
</span>
}
Expand Down
14 changes: 8 additions & 6 deletions src/routes/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ import { useTranslation } from "react-i18next";
const theme = createTheme({
palette: {
primary: {
main: "#13bf8d",
light: "#f4fbeb",
dark: "#555766",
main: "#3A6351",
light: "#F2EDD7",
dark: "#393232",


},
secondary: {
main: "#ff7664", //red
dark: "#4071d8", //blue
main: "#E48257", //red

},
}
});
Expand Down Expand Up @@ -149,7 +151,7 @@ function Layout({ food }: { food: FoodList }) {

return (
<ThemeProvider theme={theme}>
<MainBox bgcolor="primary.white" className="main-container">
<MainBox bgcolor="primary.light" className="main-container">
<Drawer open={state} onClick={toggleDrawer}>
{sideBarList}
</Drawer>
Expand Down

0 comments on commit ccf98e2

Please sign in to comment.