Skip to content

Commit 3442e32

Browse files
gokulvijclaude
andauthored
fix: Chakra UI v3 theme consistency and responsive layout in auth pages (#147)
Co-authored-by: Claude <[email protected]>
1 parent fe3b44f commit 3442e32

File tree

4 files changed

+53
-45
lines changed

4 files changed

+53
-45
lines changed

thingconnect.pulse.client/src/components/layout/AuthLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface AuthLayoutProps {
1010
export function AuthLayout({ children, showBenefits = true }: AuthLayoutProps) {
1111
if (!showBenefits) {
1212
return (
13-
<Box h='100vh' bg='white' w='full' fontFamily="'Open Sans', sans-serif" overflow='hidden'>
13+
<Box h='100vh' bg='bg' w='full' fontFamily="'Open Sans', sans-serif" overflow='hidden'>
1414
<Box
1515
p={{ base: 8, lg: 16 }}
1616
display='flex'
@@ -26,15 +26,15 @@ export function AuthLayout({ children, showBenefits = true }: AuthLayoutProps) {
2626
}
2727

2828
return (
29-
<Box h='100vh' bg='white' w='full' fontFamily="'Open Sans', sans-serif" overflow='hidden'>
29+
<Box h='100vh' bg='bg' w='full' fontFamily="'Open Sans', sans-serif" overflow='hidden'>
3030
<Grid templateColumns={{ base: '1fr', lg: '1fr 1fr' }} h='100vh'>
3131
<BenefitsSection />
3232
<Box
3333
p={{ base: 8, lg: 16 }}
3434
display='flex'
3535
flexDirection='column'
3636
justifyContent='center'
37-
bg='white'
37+
bg='bg'
3838
overflow='auto'
3939
>
4040
{children}

thingconnect.pulse.client/src/components/layout/BenefitsSection.tsx

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,74 +32,82 @@ const benefits = [
3232
export function BenefitsSection() {
3333
return (
3434
<Box
35-
p={{ base: 8, lg: 16 }}
35+
p={{ base: 3, sm: 4, md: 6, lg: 8 }}
3636
display='flex'
3737
flexDirection='column'
3838
justifyContent='center'
39-
bg='gray.50'
39+
bg='bg.subtle'
40+
h='100dvh'
4041
>
41-
<VStack align='start' gap={8} maxW='lg' mx='auto'>
42-
<Box>
43-
<Box mb={6}>
42+
<VStack align='start' gap={{ base: 2, sm: 3, md: 4 }} maxW={{ base: 'full', sm: 'md', lg: 'lg' }} mx='auto' w='full'>
43+
<Box w='full'>
44+
<Box mb={{ base: 2, md: 3 }}>
4445
<Image src={thingConnectLogo} alt='ThingConnect' h='50px' />
4546
</Box>
46-
<Heading size='2xl' color='gray.800' lineHeight='1.2' mb={4} fontWeight='bold'>
47+
<Heading
48+
size={{ base: 'lg', sm: 'xl', md: '2xl' }}
49+
color='fg'
50+
lineHeight='1.1'
51+
mb={{ base: 2, md: 3 }}
52+
fontWeight='bold'
53+
>
4754
Network Availability Monitoring for Manufacturing Sites
4855
</Heading>
49-
<Text color='gray.600' fontSize='lg' fontWeight='medium'>
56+
<Text color='fg.muted' fontSize={{ base: 'sm', md: 'md' }} fontWeight='medium'>
5057
Monitor your critical infrastructure with real-time network availability tracking and
5158
automated alerting.
5259
</Text>
5360
</Box>
5461

55-
<VStack align='start' gap={4} w='full'>
62+
<VStack align='start' gap={{ base: 2, md: 4 }} w='full'>
5663
{benefits.map(benefit => (
57-
<HStack key={benefit.title} align='start' gap={3}>
64+
<HStack key={benefit.title} align='start' gap={{ base: 2, md: 3 }} w='full'>
5865
<Box
5966
bg='#076bb3'
6067
borderRadius='full'
61-
p={1}
62-
mt={1}
63-
w={6}
64-
h={6}
68+
p={0.5}
69+
mt={0.5}
70+
w={{ base: 4, md: 5 }}
71+
h={{ base: 4, md: 5 }}
6572
display='flex'
6673
alignItems='center'
6774
justifyContent='center'
75+
flexShrink={0}
6876
>
69-
<Icon color='white' size='sm'>
77+
<Icon color='white' size='xs'>
7078
<Check />
7179
</Icon>
7280
</Box>
73-
<Box>
74-
<Text fontWeight='bold' color='gray.800' fontSize='md'>
81+
<Box flex='1' minW={0}>
82+
<Text fontWeight='bold' color='fg' fontSize={{ base: 'xs', md: 'sm' }}>
7583
{benefit.title}
7684
</Text>
77-
<Text color='gray.600' fontSize='sm' fontWeight='medium'>
85+
<Text color='fg.muted' fontSize={{ base: '2xs', md: 'xs' }} fontWeight='medium' lineHeight='1.3'>
7886
{benefit.description}
7987
</Text>
8088
</Box>
8189
</HStack>
8290
))}
8391
</VStack>
8492

85-
<Box pt={6}>
86-
<Text fontSize='sm' color='gray.600' mb={4} fontWeight='semibold'>
93+
<Box pt={{ base: 2, md: 3 }} w='full'>
94+
<Text fontSize={{ base: '2xs', md: 'xs' }} color='fg.muted' mb={{ base: 1, md: 2 }} fontWeight='semibold'>
8795
Trusted for manufacturing excellence
8896
</Text>
89-
<VStack align='start' gap={2}>
90-
<Text fontSize='sm' color='gray.600' fontWeight='medium'>
97+
<VStack align='start' gap={{ base: 0.5, md: 1 }}>
98+
<Text fontSize={{ base: '2xs', md: 'xs' }} color='fg.muted' fontWeight='medium'>
9199
• ICMP, TCP & HTTP endpoint monitoring
92100
</Text>
93-
<Text fontSize='sm' color='gray.600' fontWeight='medium'>
101+
<Text fontSize={{ base: '2xs', md: 'xs' }} color='fg.muted' fontWeight='medium'>
94102
• 15-minute and daily data rollups
95103
</Text>
96-
<Text fontSize='sm' color='gray.600' fontWeight='medium'>
104+
<Text fontSize={{ base: '2xs', md: 'xs' }} color='fg.muted' fontWeight='medium'>
97105
• 60-day data retention for trend analysis
98106
</Text>
99107
</VStack>
100108
</Box>
101109

102-
<Box pt={2}>
110+
{/* <Box pt={2}>
103111
<Text fontSize='sm' color='gray.600' fontWeight='medium'>
104112
Questions about deployment?{' '}
105113
<Text
@@ -112,7 +120,7 @@ export function BenefitsSection() {
112120
Contact Support
113121
</Text>
114122
</Text>
115-
</Box>
123+
</Box> */}
116124
</VStack>
117125
</Box>
118126
);

thingconnect.pulse.client/src/features/auth/components/LoginPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ export default function LoginPage() {
6161
<AuthLayout>
6262
<VStack maxW='sm' mx='auto' w='full' gap={6} align='stretch' maxH='100%' overflow='auto'>
6363
<VStack gap={2} textAlign='start' w='full'>
64-
<Heading size='xl' color='gray.800' fontWeight='bold'>
64+
<Heading size='xl' color='fg' fontWeight='bold'>
6565
Welcome Back
6666
</Heading>
67-
<Text color='gray.600' fontSize='sm' fontWeight='medium'>
67+
<Text color='fg.muted' fontSize='sm' fontWeight='medium'>
6868
Access your network monitoring dashboard
6969
</Text>
7070
</VStack>
@@ -109,9 +109,9 @@ export default function LoginPage() {
109109
Sign In
110110
</LoadingButton>
111111

112-
<Text textAlign='center' w='full' color='gray.600' fontSize='sm'>
112+
{/* <Text textAlign='center' w='full' color='fg.muted' fontSize='sm'>
113113
Need an account? Contact your system administrator.
114-
</Text>
114+
</Text> */}
115115
</VStack>
116116
</VStack>
117117
</form>

thingconnect.pulse.client/src/features/auth/components/OnboardingPage.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ export default function OnboardingPage() {
136136
const renderStep1 = () => (
137137
<VStack gap={6}>
138138
<Box textAlign='center'>
139-
<Heading size='lg' mb={2} color='gray.800' fontWeight='bold'>
139+
<Heading size='lg' mb={2} color='fg' fontWeight='bold'>
140140
Administrator Account
141141
</Heading>
142-
<Text color='gray.600' fontSize='lg' fontWeight='medium'>
142+
<Text color='fg.muted' fontSize='lg' fontWeight='medium'>
143143
Create your administrator account to get started
144144
</Text>
145145
</Box>
@@ -163,23 +163,23 @@ export default function OnboardingPage() {
163163
</Stack>
164164

165165
{/* Telemetry Consent Section */}
166-
<VStack gap={4} w="full" align="start" p={4} bg="gray.50" rounded="md">
166+
<VStack gap={4} w="full" align="start" p={4} bg="bg.subtle" rounded="md">
167167
<Box>
168-
<Text fontSize="md" fontWeight="medium" color="gray.800" mb={1}>
168+
<Text fontSize="md" fontWeight="medium" color="fg" mb={1}>
169169
Help improve ThingConnect Pulse? (Optional)
170170
</Text>
171-
<Text fontSize="sm" color="gray.600">
171+
<Text fontSize="sm" color="fg.muted">
172172
Enable anonymous diagnostics to help us fix crashes faster and improve features.
173173
</Text>
174174
</Box>
175175

176176
<Stack gap={3} w="full">
177177
<Flex justify="space-between" align="center">
178178
<VStack align="start" gap={0} flex="1">
179-
<Text fontSize="sm" fontWeight="medium" color="gray.800">
179+
<Text fontSize="sm" fontWeight="medium" color="fg">
180180
Send sanitized error diagnostics
181181
</Text>
182-
<Text fontSize="xs" color="gray.600">
182+
<Text fontSize="xs" color="fg.muted">
183183
Exception types, stack traces (no sensitive data)
184184
</Text>
185185
</VStack>
@@ -194,10 +194,10 @@ export default function OnboardingPage() {
194194

195195
<Flex justify="space-between" align="center">
196196
<VStack align="start" gap={0} flex="1">
197-
<Text fontSize="sm" fontWeight="medium" color="gray.800">
197+
<Text fontSize="sm" fontWeight="medium" color="fg">
198198
Send anonymous usage analytics
199199
</Text>
200-
<Text fontSize="xs" color="gray.600">
200+
<Text fontSize="xs" color="fg.muted">
201201
Feature usage counts (no personal information)
202202
</Text>
203203
</VStack>
@@ -226,10 +226,10 @@ export default function OnboardingPage() {
226226
const renderStep2 = () => (
227227
<VStack gap={6}>
228228
<Box textAlign='center'>
229-
<Heading size='lg' mb={2} color='gray.800' fontWeight='bold'>
229+
<Heading size='lg' mb={2} color='fg' fontWeight='bold'>
230230
Secure Your Account
231231
</Heading>
232-
<Text color='gray.600' fontSize='lg' fontWeight='medium'>
232+
<Text color='fg.muted' fontSize='lg' fontWeight='medium'>
233233
Choose a strong password for your administrator account
234234
</Text>
235235
</Box>
@@ -291,10 +291,10 @@ export default function OnboardingPage() {
291291
{/* Progress Bar */}
292292
<Box w='full'>
293293
<Flex justify='space-between' align='center' mb={2}>
294-
<Text fontSize='sm' color='gray.600' fontWeight='medium'>
294+
<Text fontSize='sm' color='fg.muted' fontWeight='medium'>
295295
Step {currentStep} of 2
296296
</Text>
297-
<Text fontSize='sm' color='gray.600' fontWeight='medium'>
297+
<Text fontSize='sm' color='fg.muted' fontWeight='medium'>
298298
{Math.round((currentStep / 2) * 100)}%
299299
</Text>
300300
</Flex>

0 commit comments

Comments
 (0)