Skip to content

Commit

Permalink
Merge pull request #29 from softwareone-platform/features/MPT-4884-au…
Browse files Browse the repository at this point in the history
…th-pages

Features/mpt 4884 auth pages
  • Loading branch information
dwolosz authored Dec 6, 2024
2 parents 7bf6ae6 + efa36e8 commit 6809f18
Show file tree
Hide file tree
Showing 27 changed files with 478 additions and 375 deletions.
Binary file added ngui/ui/public/background-auth.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ngui/ui/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Button = forwardRef(
dashedBorder = false,
size = "small",
variant = "outlined",
uppercase = true,
uppercase = false,
disabled = false,
color = "info",
type = "button",
Expand Down
2 changes: 0 additions & 2 deletions ngui/ui/src/components/ButtonLoader/ButtonLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const ButtonLoader = ({
href,
isLoading = false,
color = "info",
uppercase = true,
tooltip,
...rest
}) => {
Expand All @@ -49,7 +48,6 @@ const ButtonLoader = ({
<Button
dataTestId={dataTestId}
dataProductTourId={dataProductTourId}
uppercase={uppercase}
messageId={messageId}
startIcon={startIcon}
color={color}
Expand Down
6 changes: 3 additions & 3 deletions ngui/ui/src/components/ClusterTypes/ClusterTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ const ClusterTypes = ({ clusterTypes, onUpdatePriority, isLoading = false }) =>
<ActionBar data={actionBarDefinition} />
<PageContentWrapper>
<Grid direction="row" container spacing={3}>
<Grid item xs={12} className={"KuBoxShadowRoot"}>
<Grid item xs={12} className={"MTPBoxShadowRoot"}>
<Box>
<Box marginBottom={MPT_SPACING_2}>
<ClusterTypesTable clusterTypes={clusterTypes} onUpdatePriority={onUpdatePriority} isLoading={isLoading} />
<Box marginTop={MPT_SPACING_2}>
<ExplanationMessage />
</Box>
<ClusterTypesTable clusterTypes={clusterTypes} onUpdatePriority={onUpdatePriority} isLoading={isLoading} />
</Box>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const ClusterTypesTable = ({ clusterTypes, onUpdatePriority, isLoading = false }
key: "add",
icon: <AddOutlinedIcon fontSize="small" />,
messageId: "add",
color: "success",
color: "primary",
variant: "contained",
type: "button",
link: CLUSTER_TYPE_CREATE,
Expand Down
15 changes: 15 additions & 0 deletions ngui/ui/src/components/DashedTypography/DashedTypography.styles.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
import { makeStyles } from "tss-react/mui";
import { MPT_BOX_SHADOW_THIN, MPT_SPACING_2 } from "../../utils/layouts";

const useStyles = makeStyles()(() => ({
dashed: {
display: "inline",
borderBottom: "1px dashed",
width: "fit-content"
},
chip: {
display: "inline",
border: `1px solid rgba(0, 0, 0, 0)`,
padding: `5px ${MPT_SPACING_2}`,
borderRadius: MPT_SPACING_2,
boxShadow: MPT_BOX_SHADOW_THIN,
background: "none",
width: "fit-content",
transition: "background, border ease-in-out 0.2s",
"&:hover": {
background: "white",
borderColor: "rgba(0, 0, 0, 0.2)"
}
},
cursorPointer: {
"&:hover": {
cursor: "pointer"
Expand Down
3 changes: 2 additions & 1 deletion ngui/ui/src/components/DashedTypography/DashedTypography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ const DashedTypography = ({
disablePointerOnHover = false,
hasRightMargin = false,
dataTestId,
chipMode = false,
...rest
}) => {
const { classes, cx } = useStyles();

const typographyClasses = cx(
classes.dashed,
chipMode ? classes.chip : classes.dashed,
disablePointerOnHover ? "" : classes.cursorPointer,
hasRightMargin ? classes.right : "",
className
Expand Down
6 changes: 5 additions & 1 deletion ngui/ui/src/components/Greeter/Greeter.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ const useStyles = makeStyles()((theme) => ({
backgroundColor: theme.palette.common.white
},
rightSideGrid: {
backgroundColor: "#333F53"
backgroundColor: theme.palette.primary.main,
backgroundImage: "url('/background-auth.jpeg')",
backgroundSize: "cover",
backgroundPosition: "center",
position: "relative"
},
...getFormAndMapWrapperClasses(theme)
}));
Expand Down
Loading

0 comments on commit 6809f18

Please sign in to comment.