2024-06-21 22:24:27 +05:30
|
|
|
import React from 'react';
|
2024-09-10 02:30:02 +05:30
|
|
|
import { Routes, Route } from 'react-router-dom';
|
2024-10-19 03:43:22 +05:30
|
|
|
import { ThemeProvider, createTheme } from "@mui/material/styles";
|
2024-06-21 22:24:27 +05:30
|
|
|
import { GlobalInfoProvider } from "./context/globalInfo";
|
|
|
|
|
import { PageWrapper } from "./pages/PageWrappper";
|
|
|
|
|
|
2024-10-19 03:43:22 +05:30
|
|
|
const theme = createTheme({
|
|
|
|
|
palette: {
|
|
|
|
|
primary: {
|
|
|
|
|
main: "#ff00c3",
|
|
|
|
|
contrastText: "#ffffff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
MuiButton: {
|
|
|
|
|
styleOverrides: {
|
|
|
|
|
root: {
|
2024-10-19 05:25:10 +05:30
|
|
|
// Default styles for all buttons (optional)
|
2024-10-19 14:41:39 +05:30
|
|
|
textTransform: "none",
|
2024-10-19 05:25:10 +05:30
|
|
|
},
|
|
|
|
|
containedPrimary: {
|
|
|
|
|
// Styles for 'contained' variant with 'primary' color
|
2024-10-19 03:43:22 +05:30
|
|
|
'&:hover': {
|
|
|
|
|
backgroundColor: "#ff66d9",
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-10-19 05:25:10 +05:30
|
|
|
outlined: {
|
|
|
|
|
// Apply white background for all 'outlined' variant buttons
|
|
|
|
|
backgroundColor: "#ffffff",
|
|
|
|
|
'&:hover': {
|
|
|
|
|
backgroundColor: "#f0f0f0", // Optional lighter background on hover
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-10-19 03:43:22 +05:30
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
MuiLink: {
|
|
|
|
|
styleOverrides: {
|
|
|
|
|
root: {
|
|
|
|
|
'&:hover': {
|
2024-10-19 03:43:32 +05:30
|
|
|
color: "#ff00c3",
|
2024-10-19 03:43:22 +05:30
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
MuiIconButton: {
|
|
|
|
|
styleOverrides: {
|
|
|
|
|
root: {
|
|
|
|
|
'&:hover': {
|
|
|
|
|
color: "#ff66d9",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2024-10-19 05:25:10 +05:30
|
|
|
|
2024-06-21 22:24:40 +05:30
|
|
|
function App() {
|
2024-06-21 22:24:27 +05:30
|
|
|
return (
|
2024-10-19 03:43:22 +05:30
|
|
|
<ThemeProvider theme={theme}>
|
2024-10-19 03:43:32 +05:30
|
|
|
<GlobalInfoProvider>
|
|
|
|
|
<Routes>
|
|
|
|
|
<Route path="/*" element={<PageWrapper />} />
|
|
|
|
|
</Routes>
|
|
|
|
|
</GlobalInfoProvider>
|
2024-10-19 03:43:22 +05:30
|
|
|
</ThemeProvider>
|
2024-06-21 22:24:27 +05:30
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default App;
|