Skip to content

Commit e03d483

Browse files
authored
Login Improvements (#1334)
* Login Improvements Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> * Paddings everywhere Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
1 parent 2cc41d5 commit e03d483

File tree

2 files changed

+51
-14
lines changed

2 files changed

+51
-14
lines changed

portal-ui/src/icons/LoginMinIOLogo.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const LoginMinIOLogo = (props: SVGProps<SVGSVGElement>) => (
2323
width="284.616"
2424
height="49.568"
2525
viewBox="0 0 284.616 49.568"
26+
className={"min-icon"}
2627
{...props}
2728
>
2829
<g transform="translate(0.5 0.5)">

portal-ui/src/screens/LoginPage/LoginPage.tsx

Lines changed: 50 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import history from "../../history";
3939
import RefreshIcon from "../../icons/RefreshIcon";
4040
import MainError from "../Console/Common/MainError/MainError";
4141
import { encodeFileName } from "../../common/utils";
42-
import { LockIcon, UsersIcon, LoginMinIOLogo } from "../../icons";
42+
import { LockIcon, LoginMinIOLogo, UsersIcon } from "../../icons";
4343
import { spacingUtils } from "../Console/Common/FormComponents/common/styleLibrary";
4444

4545
const styles = (theme: Theme) =>
@@ -66,7 +66,8 @@ const styles = (theme: Theme) =>
6666
},
6767
},
6868
shadowBox: {
69-
boxShadow: "0px 3px 20px #00000014",
69+
boxShadow:
70+
"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.125) 0px 15px 50px 0px",
7071
height: "100%",
7172
},
7273
loginContainer: {
@@ -111,23 +112,49 @@ const styles = (theme: Theme) =>
111112
"& .left-items": {
112113
margin: "auto",
113114
textAlign: "left",
115+
paddingRight: 240,
116+
paddingBottom: 200,
117+
"@media (max-width: 1400px)": {
118+
paddingBottom: 120,
119+
paddingRight: 50,
120+
},
121+
"@media (max-width: 900px)": {
122+
paddingBottom: 0,
123+
paddingRight: 0,
124+
},
125+
"@media (max-width: 600px)": {
126+
paddingBottom: 0,
127+
paddingRight: 0,
128+
},
129+
},
130+
"& .left-logo": {
131+
"& .min-icon": {
132+
width: 108,
133+
},
134+
marginBottom: 10,
114135
},
115136
"& .text-line1": {
116-
font: "normal 100 70px 'Lato'",
117-
marginBottom: 20,
137+
font: " 100 70px 'Lato'",
138+
118139
"@media (max-width: 600px)": {
119140
fontSize: 35,
120141
},
142+
"@media (max-width: 800px)": {
143+
fontSize: 45,
144+
},
121145
},
122146
"& .text-line2": {
123-
fontSize: 70,
124-
marginLeft: 25,
125-
fontWeight: 400,
126-
147+
fontSize: 100,
148+
fontWeight: 100,
149+
textTransform: "uppercase",
127150
"@media (max-width: 600px)": {
128151
fontSize: 35,
129152
marginLeft: 0,
130153
},
154+
"@media (max-width: 800px)": {
155+
fontSize: 55,
156+
marginLeft: 0,
157+
},
131158
},
132159
"& .logo-console": {
133160
display: "flex",
@@ -197,7 +224,10 @@ const inputStyles = makeStyles((theme: Theme) =>
197224
root: {
198225
"& .MuiOutlinedInput-root": {
199226
paddingLeft: 0,
200-
"& svg": { height: 16 },
227+
"& svg": {
228+
height: 16,
229+
color: theme.palette.primary.main,
230+
},
201231
"& input": {
202232
padding: 5,
203233
paddingLeft: 0,
@@ -362,7 +392,10 @@ const Login = ({
362392
variant={"outlined"}
363393
InputProps={{
364394
startAdornment: (
365-
<InputAdornment position="start">
395+
<InputAdornment
396+
position="start"
397+
className={classes.iconColor}
398+
>
366399
<UsersIcon />
367400
</InputAdornment>
368401
),
@@ -386,7 +419,10 @@ const Login = ({
386419
variant={"outlined"}
387420
InputProps={{
388421
startAdornment: (
389-
<InputAdornment position="start">
422+
<InputAdornment
423+
position="start"
424+
className={classes.iconColor}
425+
>
390426
<LockIcon />
391427
</InputAdornment>
392428
),
@@ -521,11 +557,11 @@ const Login = ({
521557
<Grid container className={classes.loginContainer}>
522558
<Grid item className="consoleTextBanner">
523559
<div className="left-items">
524-
<div className="text-line1">Welcome to</div>
525-
<div className="logo-console">
560+
<div className="left-logo">
526561
<LoginMinIOLogo />
527-
<div className="text-line2">{consoleText}</div>
528562
</div>
563+
<div className="text-line1">Welcome to</div>
564+
<div className="text-line2">{consoleText}</div>
529565
</div>
530566
</Grid>
531567
<Grid item className="right-items">

0 commit comments

Comments
 (0)