diff --git a/src/components/AppHeader.jsx b/src/components/AppHeader.jsx index 56be530..b09e0ba 100644 --- a/src/components/AppHeader.jsx +++ b/src/components/AppHeader.jsx @@ -7,7 +7,7 @@ import MenuDrawer from './MenuDrawer'; export default function AppHeader({ zone = 'public' }) { const bgColor = { - public: '#000000a0', + public: '#40120EFF', restricted: '#e0e0ff', private: '#d0f0e0', }; @@ -31,15 +31,12 @@ export default function AppHeader({ zone = 'public' }) { setMenuOpen(true)}> Fendi logo - - {isPrivate ? "Private" : isRestricted ? "Restricted" : "Fendi Casa Experience"} - {/* Search only visible for restricted or private zones */} {(isRestricted || isPrivate || isPublic) && ( - + @@ -59,7 +56,7 @@ export default function AppHeader({ zone = 'public' }) { {isPublic && ( - + Login diff --git a/src/private/Admin.jsx b/src/private/Admin.jsx index b9eb0d4..d3c8d59 100644 --- a/src/private/Admin.jsx +++ b/src/private/Admin.jsx @@ -8,25 +8,26 @@ import EditIcon from '@mui/icons-material/Edit'; import DeleteIcon from '@mui/icons-material/Delete'; import '../App.css'; +import { Visibility } from '@mui/icons-material'; const columnsBase = [ - { field: 'id', headerName: 'ID', width: 70 }, + { field: 'id', headerName: 'ID', width: 70, hide: false }, { field: 'company', headerName: 'Company', flex: 1 }, { field: 'name', headerName: 'Name', flex: 1 }, - { field: 'price', headerName: '$', width: 100, type: 'number' }, + { field: 'price', headerName: '$', width: 120, type: 'number' }, { field: 'provider', headerName: 'Provider', flex: 1 }, - { field: 'stock', headerName: 'Stock', width: 100, type: 'number' }, + { field: 'stock', headerName: 'Stock', width: 120, type: 'number' }, { field: 'category', headerName: 'Category', flex: 1 }, { field: 'representation', headerName: 'Representation', - width: 120, + width: 200, renderCell: (params) => ( - + Product Catalog diff --git a/src/theme.jsx b/src/theme.jsx index cf60632..ed282be 100644 --- a/src/theme.jsx +++ b/src/theme.jsx @@ -1,15 +1,67 @@ // src/theme.js +import { colors } from '@mui/material'; import { createTheme } from '@mui/material/styles'; const theme = createTheme({ typography: { fontFamily: 'Montserrat, sans-serif', }, + palette: { text: { - primary: '#26201A', + primary: '#40120EFF', }, }, + + components: { + MuiDataGrid: { + styleOverrides: { + row: { + '&:hover': { + backgroundColor: '#f0eae3', + }, + '&.Mui-selected': { + backgroundColor: '#DFCCBCFF', + color: '#26201A', + }, + '&.Mui-selected:hover': { + backgroundColor: '#d0b9a8', + }, + color: '#26201A', + }, + cell: { + '&:focus-within': { + outline: '2px solid #DFCCBCFF', // custom Fendi focus + outlineOffset: '-2px', // tighten the outline + backgroundColor: '#f5f0eb', // optional subtle highlight + }, + }, + }, + }, + MuiButton: { + styleOverrides: { + root: { + /* your current styles... */ + '&:focus': { + outline: '2px solid #DFCCBCFF', + }, + '&:focusVisible': { + outline: '2px solid #DFCCBCFF', + }, + }, + }, + }, + MuiIconButton: { + styleOverrides: { + root: { + '&:focus, &:focus-visible': { + outline: '2px solid #DFCCBCFF', + outlineOffset: '2px', + }, + }, + }, + }, + } }); export default theme; \ No newline at end of file