Settings page design

This commit is contained in:
Daniel Cojocea committed 2024-07-20 20:48:59 -04:00
1 parent 2c5dc85f81
commit ba8dc2ab71
4 files changed
+183 -5

No files matched your search

+16 -2
View File
@@ -15,13 +15,21 @@ const Link = ({ level, label, url }) => {
const levelConfig = {
primary: {},
secondary: {},
secondary: {
color: theme.palette.otherColors.bluishGray,
sx: {
":hover": {
color: theme.palette.otherColors.bluishGray,
},
},
},
tertiary: {
color: theme.palette.tertiary.main,
sx: {
textDecoration: "underline",
textDecorationStyle: "dashed",
textDecorationColor: theme.palette.primary.main,
textUnderlineOffset: "1px",
":hover": {
color: theme.palette.tertiary.main,
textDecorationColor: theme.palette.primary.main,
@@ -33,7 +41,13 @@ const Link = ({ level, label, url }) => {
};
const { sx, color } = levelConfig[level];
return (
<MuiLink href={url} sx={sx} color={color}>
<MuiLink
href={url}
sx={{ width: "fit-content", ...sx }}
color={color}
target="_blank"
rel="noreferrer"
>
{label}
</MuiLink>
);