|
| 1 | +import { |
| 2 | + Grid, |
| 3 | + Card, |
| 4 | + CardHeader, |
| 5 | + CardContent, |
| 6 | + TextField, |
| 7 | + Button, |
| 8 | + Typography, |
| 9 | + IconButton, |
| 10 | + MenuItem, |
| 11 | + Select, |
| 12 | + FormControl, |
| 13 | +} from "@mui/material"; |
| 14 | + |
| 15 | +import { styled } from "@mui/material/styles"; |
| 16 | + |
| 17 | +export const StyledCard = styled(Card)(({ theme }) => ({ |
| 18 | + background: |
| 19 | + "linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 15%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1))", |
| 20 | + boxShadow: "4px 4px 30px rgba(255, 255, 255, 0.1)", |
| 21 | + backdropFilter: "blur(4.7px)", |
| 22 | + color: "white", |
| 23 | + borderRadius: "12px", |
| 24 | + width: "100%", |
| 25 | + height: "100%", |
| 26 | + margin: "auto", |
| 27 | + display: "flex", |
| 28 | + flexDirection: "column", |
| 29 | +})); |
| 30 | + |
| 31 | +export const StyledCardHeader = styled(CardHeader)(({ theme }) => ({ |
| 32 | + textAlign: "center", |
| 33 | + color: "#fff", |
| 34 | +})); |
| 35 | + |
| 36 | +export const StyledCardContent = styled(CardContent)(({ theme }) => ({ |
| 37 | + flexGrow: 1, |
| 38 | + display: "flex", |
| 39 | + flexDirection: "column", |
| 40 | + justifyContent: "space-between", |
| 41 | +})); |
| 42 | + |
| 43 | +export const StyledGrid = styled(Grid)(({ theme }) => ({ |
| 44 | + height: "100vh", |
| 45 | +})); |
| 46 | + |
| 47 | +export const StyledTypography = styled(Typography)(({ theme }) => ({ |
| 48 | + color: "#fff", |
| 49 | + fontWeight: "bold", |
| 50 | +})); |
| 51 | + |
| 52 | +export const StyledTextField = styled(TextField)(({ theme }) => ({ |
| 53 | + "& label": { |
| 54 | + color: "#fff", |
| 55 | + fontWeight: "bold", |
| 56 | + }, |
| 57 | + "& input": { |
| 58 | + color: "#fff", |
| 59 | + fontWeight: "bold", |
| 60 | + }, |
| 61 | + "& .MuiInput-underline:before": { |
| 62 | + borderBottomColor: "#fff", |
| 63 | + }, |
| 64 | +})); |
| 65 | + |
| 66 | +export const StyledButton = styled(Button)(({ theme }) => ({ |
| 67 | + background: "transparent", |
| 68 | + backdropFilter: "blur(5px)", |
| 69 | + color: "white", |
| 70 | + fontWeight: "bold", |
| 71 | + "&:hover": { |
| 72 | + background: "rgba(255, 255, 255, 0.3)", |
| 73 | + color: "#fff", |
| 74 | + }, |
| 75 | +})); |
| 76 | + |
| 77 | +export const StyledIconButton = styled(IconButton)(({ theme }) => ({ |
| 78 | + radio: { |
| 79 | + "&$checked": { |
| 80 | + color: "#4B8DF8", |
| 81 | + }, |
| 82 | + }, |
| 83 | + checked: {}, |
| 84 | + color: "#fff", |
| 85 | +})); |
| 86 | + |
| 87 | +export const StyledFormControl = styled(FormControl)(({ theme }) => ({ |
| 88 | + minWidth: "300px", |
| 89 | + "& .MuiSelect-select": { |
| 90 | + paddingRight: theme.spacing(4), |
| 91 | + }, |
| 92 | + "& .MuiSelect-icon": { |
| 93 | + right: 0, |
| 94 | + }, |
| 95 | +})); |
| 96 | + |
| 97 | +export const StyledMenuItem = styled(MenuItem)(({ theme }) => ({ |
| 98 | + color: theme.palette.secondary.main, |
| 99 | + backgroundColor: theme.palette.background.paper, |
| 100 | + "&:hover": { |
| 101 | + backgroundColor: theme.palette.secondary.light, |
| 102 | + }, |
| 103 | + "&.Mui-selected": { |
| 104 | + backgroundColor: theme.palette.primary.main, |
| 105 | + color: theme.palette.primary.contrastText, |
| 106 | + }, |
| 107 | + "&.Mui-selected:hover": { |
| 108 | + backgroundColor: theme.palette.primary.light, |
| 109 | + }, |
| 110 | +})); |
| 111 | + |
| 112 | +export const StyledSelect = styled(Select)(({ theme }) => ({ |
| 113 | + color: "white", |
| 114 | + "&.MuiSelect-select": { |
| 115 | + paddingRight: theme.spacing(2), |
| 116 | + "&:focus": { |
| 117 | + backgroundColor: "transparent", |
| 118 | + }, |
| 119 | + }, |
| 120 | + "& .MuiSelect-icon": { |
| 121 | + color: theme.palette.secondary.main, |
| 122 | + }, |
| 123 | +})); |
0 commit comments