diff --git a/src/pages/login/Login.tsx b/src/pages/login/Login.tsx index 8b2a9c584f..c283cd5965 100644 --- a/src/pages/login/Login.tsx +++ b/src/pages/login/Login.tsx @@ -1,5 +1,5 @@ import { FC } from "react"; -import { Button, Col, Icon, Row } from "@canonical/react-components"; +import { Button, Icon } from "@canonical/react-components"; import { Link, Navigate, useNavigate } from "react-router-dom"; import { useAuth } from "context/auth"; import Loader from "components/Loader"; @@ -22,52 +22,50 @@ const Login: FC = () => { return ( - - - -

Login

- {hasOidc && ( - <> -

Choose your login method

- - Login with SSO - -

Other methods

-
- Either{" "} - - create a new certificate - -
-
- Or{" "} - - use an existing certificate - {" "} - already added to your browser -
- - )} - {!hasOidc && ( - <> -

Certificate selection

- -

- Or{" "} - - use an existing certificate - {" "} - already added to your browser -

- - )} - -
+
+ +

Login

+ {hasOidc && ( + <> +

Choose your login method

+ + Login with SSO + +

Other methods

+
+ Either{" "} + + create a new certificate + +
+
+ Or{" "} + + use an existing certificate + {" "} + already added to your browser +
+ + )} + {!hasOidc && ( + <> +

Certificate selection

+ +

+ Or{" "} + + use an existing certificate + {" "} + already added to your browser +

+ + )} +
); }; diff --git a/src/sass/_login.scss b/src/sass/_login.scss new file mode 100644 index 0000000000..c915c9fa0e --- /dev/null +++ b/src/sass/_login.scss @@ -0,0 +1,5 @@ +.login { + padding-left: $sph--large; + padding-right: $sph--large; + width: fit-content; +} diff --git a/src/sass/styles.scss b/src/sass/styles.scss index f3cb0a6445..34d155d25f 100644 --- a/src/sass/styles.scss +++ b/src/sass/styles.scss @@ -67,6 +67,7 @@ $border-thin: 1px solid $color-mid-light !default; @import "instance_detail_panel"; @import "instance_detail_terminal"; @import "instance_list"; +@import "login"; @import "meter"; @import "network_detail_overview"; @import "network_form";