Skip to content

Commit

Permalink
Merge pull request #1606 from kianamcc/SWC-7182
Browse files Browse the repository at this point in the history
SWC-7182: SageAccountWeb: LoginPage updates on mobile
  • Loading branch information
kianamcc authored Feb 28, 2025
2 parents 85d3e7f + fb34bf3 commit 883286d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
20 changes: 15 additions & 5 deletions apps/SageAccountWeb/src/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,15 @@ function LoginPage(props: LoginPageProps) {

return (
<StyledOuterContainer>
<StyledInnerContainer>
<StyledInnerContainer
sx={theme => ({
[theme.breakpoints.down('sm')]: {
'& > div:nth-of-type(1), & > div:nth-of-type(2)': {
padding: '40px',
},
},
})}
>
<Box
sx={{
py: 10,
Expand All @@ -67,7 +75,7 @@ function LoginPage(props: LoginPageProps) {
>
<Box
sx={{
minHeight: '600px',
minHeight: { xs: '100%', md: '600px' },
}}
>
<div className={'panel-logo'}>
Expand Down Expand Up @@ -100,14 +108,16 @@ function LoginPage(props: LoginPageProps) {
</Box>
<Box
sx={{
background:
"url('https://s3.amazonaws.com/static.synapse.org/images/login-panel-bg.svg') no-repeat right bottom 20px",
background: {
sm: 'none',
md: "url('https://s3.amazonaws.com/static.synapse.org/images/login-panel-bg.svg') no-repeat right bottom 20px",
},
}}
>
<Typography
className="headline"
variant="headline2"
sx={{ marginTop: '95px' }}
sx={{ marginTop: { xs: '45px', md: '95px' } }}
>
Sign in to your account
</Typography>
Expand Down
15 changes: 11 additions & 4 deletions apps/SageAccountWeb/src/components/RegisterAccount1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ export const RegisterAccount1 = () => {
<Box
display="flex"
flexDirection="column"
sx={{ minHeight: '530px' }}
sx={{
minHeight: { xs: '100%', md: '530px' },
}}
>
<div className="panel-logo logo-wrapper">
<SourceAppLogo />
Expand Down Expand Up @@ -363,11 +365,16 @@ export const RegisterAccount1 = () => {
</Box>
<Box
sx={{
background:
"url('https://s3.amazonaws.com/static.synapse.org/images/login-panel-bg.svg') no-repeat right bottom 20px",
background: {
xs: 'none',
md: "url('https://s3.amazonaws.com/static.synapse.org/images/login-panel-bg.svg') no-repeat right bottom 20px",
},
}}
>
<Typography variant="headline2" sx={{ marginTop: '95px' }}>
<Typography
variant="headline2"
sx={{ marginTop: { xs: '45px', md: '95px' } }}
>
Create an Account
</Typography>
{page !== Pages.GOOGLE_REGISTRATION && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function SystemUseNotification() {
<Box
sx={{
color: 'grey.700',
maxHeight: '110px',
maxHeight: { xs: '170px', md: '110px' },
overflow: 'auto',
margin: '20px 0px',
}}
Expand Down

0 comments on commit 883286d

Please sign in to comment.