@@ -52,11 +52,12 @@ export const Authentication: FC<Props> = (props: Props) => {
5252 } ;
5353
5454 return (
55- < Box
56- sx = { {
55+ < Box
56+ sx = { {
5757 width : '100vw' ,
5858 height : '100vh' ,
5959 display : 'flex' ,
60+ flexDirection : { xs : 'column' , sm : 'row' } ,
6061 position : 'fixed' ,
6162 top : 0 ,
6263 left : 0 ,
@@ -65,13 +66,16 @@ export const Authentication: FC<Props> = (props: Props) => {
6566 { /* Left Column - Login Form */ }
6667 < Box
6768 sx = { {
68- width : '40%' ,
69+ width : { xs : '100%' , sm : '50%' , md : '40%' } ,
70+ height : { xs : '90vh' , sm : '100%' } ,
6971 backgroundColor : 'white' ,
7072 display : 'flex' ,
7173 flexDirection : 'column' ,
7274 justifyContent : 'center' ,
7375 alignItems : 'center' ,
74- padding : '40px' ,
76+ padding : { xs : 2.5 , sm : '40px' } ,
77+ boxSizing : 'border-box' ,
78+ overflowY : { xs : 'auto' , sm : 'visible' } ,
7579 } }
7680 >
7781 { props . isLoading ? (
@@ -85,16 +89,16 @@ export const Authentication: FC<Props> = (props: Props) => {
8589 height : '100%' ,
8690 } }
8791 >
88- < CircularProgress
89- size = { 60 }
90- sx = { {
92+ < CircularProgress
93+ size = { 60 }
94+ sx = { {
9195 color : '#1976d2' ,
9296 marginBottom : '20px' ,
93- } }
97+ } }
9498 />
95- < Typography
96- variant = "h6"
97- sx = { {
99+ < Typography
100+ variant = "h6"
101+ sx = { {
98102 color : 'grey.600' ,
99103 textAlign : 'center' ,
100104 } }
@@ -107,14 +111,15 @@ export const Authentication: FC<Props> = (props: Props) => {
107111 < Box
108112 sx = { {
109113 width : '100%' ,
110- maxWidth : '400px' ,
114+ maxWidth : { xs : '100%' , sm : '400px' } ,
115+ boxSizing : 'border-box' ,
111116 } }
112117 >
113118 { /* Title */ }
114- < Typography
115- variant = "h3"
116- component = "h1"
117- sx = { {
119+ < Typography
120+ variant = "h3"
121+ component = "h1"
122+ sx = { {
118123 fontWeight : 'bold' ,
119124 color : 'black' ,
120125 marginBottom : '40px' ,
@@ -125,7 +130,7 @@ export const Authentication: FC<Props> = (props: Props) => {
125130 </ Typography >
126131
127132 { /* Username Field */ }
128- < Box sx = { { marginBottom : '20px' } } >
133+ < Box sx = { { marginBottom : '20px' } } >
129134 < TextField
130135 fullWidth
131136 value = { username }
@@ -219,9 +224,9 @@ export const Authentication: FC<Props> = (props: Props) => {
219224
220225 { /* Error Text */ }
221226 { props . errorText && (
222- < Typography
223- variant = "body2"
224- sx = { {
227+ < Typography
228+ variant = "body2"
229+ sx = { {
225230 color : 'error.main' ,
226231 fontSize : '0.8rem' ,
227232 marginBottom : '20px' ,
@@ -258,9 +263,9 @@ export const Authentication: FC<Props> = (props: Props) => {
258263 { /* Divider */ }
259264 < Box sx = { { display : 'flex' , alignItems : 'center' , marginBottom : '20px' } } >
260265 < Divider sx = { { flex : 1 , backgroundColor : 'grey.300' } } />
261- < Typography
262- variant = "body2"
263- sx = { {
266+ < Typography
267+ variant = "body2"
268+ sx = { {
264269 color : 'grey.600' ,
265270 margin : '0 15px' ,
266271 fontSize : '0.875rem' ,
@@ -296,11 +301,7 @@ export const Authentication: FC<Props> = (props: Props) => {
296301 } }
297302 >
298303 Sign in with Google
299- < img
300- src = "/static/images/google.svg"
301- alt = "Google Logo"
302- style = { { marginRight : '10px' , height : '20px' } }
303- />
304+ < img src = "/static/images/google.svg" alt = "Google Logo" style = { { marginRight : '10px' , height : '20px' } } />
304305 </ Button >
305306
306307 < Button
@@ -339,17 +340,19 @@ export const Authentication: FC<Props> = (props: Props) => {
339340 { /* Right Column - Visual Element */ }
340341 < Box
341342 sx = { {
342- width : '60%' ,
343+ width : { xs : '100%' , sm : '50%' , md : '60%' } ,
344+ height : { xs : '10vh' , sm : '100%' } ,
343345 backgroundColor : '#2c2c2c' ,
344346 display : 'flex' ,
345347 alignItems : 'center' ,
346348 justifyContent : 'center' ,
349+ order : { xs : - 1 , sm : 0 } ,
347350 } }
348351 >
349352 < Box
350353 sx = { {
351- width : ' 300px',
352- height : ' 300px',
354+ width : { xs : '12vh' , sm : ' 300px' } ,
355+ height : { xs : '12vh' , sm : ' 300px' } ,
353356 display : 'flex' ,
354357 alignItems : 'center' ,
355358 justifyContent : 'center' ,
0 commit comments