Skip to content

Commit

Permalink
responsive branding on signup/signin screens
Browse files Browse the repository at this point in the history
  • Loading branch information
raheeliftikhar5 committed Dec 24, 2024
1 parent 2dba7a9 commit 8bb9189
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
36 changes: 20 additions & 16 deletions client/packages/lowcoder/src/pages/userAuth/authComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const StyledBrandingColumn = styled(Col)`
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
`;

const StyledBrandingText = styled(Typography.Title)`
Expand All @@ -27,6 +28,18 @@ const StyledBrandingText = styled(Typography.Title)`
background: #0000001f;
border-radius: 18px;
text-align: center;
@media screen and (max-width: 640px) {
font-size: 34px !important;
}
`;

const StyledRightColumn = styled(Col)`
padding: 28px 36px;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
`;

const AuthCardContainer = styled.div<{$isEE?: boolean}>`
Expand All @@ -42,6 +55,7 @@ const AuthCard = styled.div<{$isEE?: boolean}>`
display: flex;
flex-direction: column;
width: ${props => props.$isEE ? '850px' : '480px'};
max-width: 90%;
background: #ffffff;
box-shadow: 0 0 20px 20px rgba(246, 248, 250, 0.85);
border-radius: 16px;
Expand All @@ -51,7 +65,7 @@ const AuthCard = styled.div<{$isEE?: boolean}>`
@media screen and (max-width: 640px) {
margin: 32px 18px 18px 18px;
width: calc(100vw - 36px);
padding: 32px 24px;
padding: ${props => props.$isEE ? '0px' : '32px 24px'};
}
`;

Expand All @@ -67,7 +81,7 @@ const AuthCardHeading = styled.div<{ $type?: string, $isEE?: boolean }>`
margin-top: ${props => props.$isEE ? '0': '107px'};
}
@media screen and (max-height: 700px) {
margin-top: 47px;
margin-top: ${props => props.$isEE ? '0': '47px'};
}
@media screen and (max-width: 640px) {
font-size: 23px;
Expand Down Expand Up @@ -169,24 +183,14 @@ const BrandingWrapper = (props: {
}
return (
<Row style={{minHeight: '500px'}}>
<StyledBrandingColumn span={12} style={{
backgroundColor: '#eaeaea',
backgroundImage: 'url(https://images.unsplash.com/photo-1589810264340-0ce27bfbf751?q=80&w=3387&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)',
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
}}>
<StyledBrandingColumn md={12} sm={24}>
<StyledBrandingText>
Join us today to explore new opportunities!
</StyledBrandingText>
</StyledBrandingColumn>
<Col span={12} style={{
padding: '28px 36px',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
}}>
<StyledRightColumn md={12} sm={24}>
{props.children}
</Col>
</StyledRightColumn>
</Row>
)
}
Expand Down Expand Up @@ -223,7 +227,7 @@ export const AuthContainer = (props: {
{props.children}
</BrandingWrapper>
</AuthCard>
{ props.subHeading && (
{ props.subHeading && !props.isEE && (
<AuthCardSubFooter>
<img src={favicon} alt={"Lowcoder | " + trans("productDesc")} width="20px"/>
<a href="https://lowcoder.cloud" target="_blank" rel="noreferrer">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const StepHeader = (props : {
title: string,
}) => (
<Flex justify="center" style={{marginBottom: '22px'}}>
<h3 style={{margin: 0}}>{props.title}</h3>
<h3 style={{margin: 0, padding: '2px 0 0 8px'}}>{props.title}</h3>
</Flex>
)

Expand Down

0 comments on commit 8bb9189

Please sign in to comment.