Skip to content

Commit 8bb9189

Browse files
responsive branding on signup/signin screens
1 parent 2dba7a9 commit 8bb9189

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

client/packages/lowcoder/src/pages/userAuth/authComponents.tsx

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const StyledBrandingColumn = styled(Col)`
1818
display: flex;
1919
flex-direction: column;
2020
justify-content: center;
21+
width: 100%;
2122
`;
2223

2324
const StyledBrandingText = styled(Typography.Title)`
@@ -27,6 +28,18 @@ const StyledBrandingText = styled(Typography.Title)`
2728
background: #0000001f;
2829
border-radius: 18px;
2930
text-align: center;
31+
32+
@media screen and (max-width: 640px) {
33+
font-size: 34px !important;
34+
}
35+
`;
36+
37+
const StyledRightColumn = styled(Col)`
38+
padding: 28px 36px;
39+
display: flex;
40+
flex-direction: column;
41+
justify-content: center;
42+
width: 100%;
3043
`;
3144

3245
const AuthCardContainer = styled.div<{$isEE?: boolean}>`
@@ -42,6 +55,7 @@ const AuthCard = styled.div<{$isEE?: boolean}>`
4255
display: flex;
4356
flex-direction: column;
4457
width: ${props => props.$isEE ? '850px' : '480px'};
58+
max-width: 90%;
4559
background: #ffffff;
4660
box-shadow: 0 0 20px 20px rgba(246, 248, 250, 0.85);
4761
border-radius: 16px;
@@ -51,7 +65,7 @@ const AuthCard = styled.div<{$isEE?: boolean}>`
5165
@media screen and (max-width: 640px) {
5266
margin: 32px 18px 18px 18px;
5367
width: calc(100vw - 36px);
54-
padding: 32px 24px;
68+
padding: ${props => props.$isEE ? '0px' : '32px 24px'};
5569
}
5670
`;
5771

@@ -67,7 +81,7 @@ const AuthCardHeading = styled.div<{ $type?: string, $isEE?: boolean }>`
6781
margin-top: ${props => props.$isEE ? '0': '107px'};
6882
}
6983
@media screen and (max-height: 700px) {
70-
margin-top: 47px;
84+
margin-top: ${props => props.$isEE ? '0': '47px'};
7185
}
7286
@media screen and (max-width: 640px) {
7387
font-size: 23px;
@@ -169,24 +183,14 @@ const BrandingWrapper = (props: {
169183
}
170184
return (
171185
<Row style={{minHeight: '500px'}}>
172-
<StyledBrandingColumn span={12} style={{
173-
backgroundColor: '#eaeaea',
174-
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)',
175-
backgroundSize: 'cover',
176-
backgroundRepeat: 'no-repeat',
177-
}}>
186+
<StyledBrandingColumn md={12} sm={24}>
178187
<StyledBrandingText>
179188
Join us today to explore new opportunities!
180189
</StyledBrandingText>
181190
</StyledBrandingColumn>
182-
<Col span={12} style={{
183-
padding: '28px 36px',
184-
display: 'flex',
185-
flexDirection: 'column',
186-
justifyContent: 'center',
187-
}}>
191+
<StyledRightColumn md={12} sm={24}>
188192
{props.children}
189-
</Col>
193+
</StyledRightColumn>
190194
</Row>
191195
)
192196
}
@@ -223,7 +227,7 @@ export const AuthContainer = (props: {
223227
{props.children}
224228
</BrandingWrapper>
225229
</AuthCard>
226-
{ props.subHeading && (
230+
{ props.subHeading && !props.isEE && (
227231
<AuthCardSubFooter>
228232
<img src={favicon} alt={"Lowcoder | " + trans("productDesc")} width="20px"/>
229233
<a href="https://lowcoder.cloud" target="_blank" rel="noreferrer">

client/packages/lowcoder/src/pages/userAuth/formLoginSteps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const StepHeader = (props : {
6666
title: string,
6767
}) => (
6868
<Flex justify="center" style={{marginBottom: '22px'}}>
69-
<h3 style={{margin: 0}}>{props.title}</h3>
69+
<h3 style={{margin: 0, padding: '2px 0 0 8px'}}>{props.title}</h3>
7070
</Flex>
7171
)
7272

0 commit comments

Comments
 (0)