Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWC-7182: SageAccountWeb: LoginPage updates on mobile #1606

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading