@@ -27,7 +27,8 @@ import { HomeSection, KeyFeatures } from '@components/Home';
27
27
const Home = ( ) => {
28
28
const theme = useTheme ( ) ;
29
29
const isReallySmallScreen = useMediaQuery ( theme . breakpoints . down ( 'sm' ) ) ;
30
- const iconSize = isReallySmallScreen ? 'medium' : 'large' ;
30
+ const isSmallScreenHeight = useMediaQuery ( '(max-height: 600px)' ) ;
31
+ const iconSize = isReallySmallScreen || isSmallScreenHeight ? 'medium' : 'large' ;
31
32
const aboutRef = useRef ( null ) ;
32
33
33
34
const handleClick = ( ) => aboutRef . current . scrollIntoView ( { behavior : 'smooth' } ) ;
@@ -45,64 +46,70 @@ const Home = () => {
45
46
) ;
46
47
const subheading = 'Personal Access System for Services' ;
47
48
48
- const logoSection = isReallySmallScreen ? (
49
- < Typography component = "h1" color = "primary" >
50
- < Stack
51
- component = "span"
52
- justifyContent = "center"
53
- alignItems = "center"
54
- spacing = { 2 }
55
- mb = { 2 }
56
- data-testid = "testStack"
57
- >
58
- < Typography
59
- color = "primary.text"
60
- variant = "h1"
61
- component = "span"
62
- fontWeight = "500"
63
- fontSize = "72px"
64
- >
65
- { heading }
66
- </ Typography >
67
- < Box component = "img" src = "/assets/PASSLogolightmode.png" alt = "" width = "50%" />
68
- < Typography color = "primary.text" variant = "h4" component = "span" fontWeight = "600" mb = { 8 } >
69
- { subheading }
70
- </ Typography >
71
- </ Stack >
72
- </ Typography >
73
- ) : (
74
- < Typography component = "h1" color = "primary.text" >
75
- < Stack
76
- justifyContent = "center"
77
- alignItems = "center"
78
- spacing = { 4 }
79
- mb = { 18 }
80
- data-testid = "testStack"
81
- >
49
+ const logoSection =
50
+ isReallySmallScreen || isSmallScreenHeight ? (
51
+ < Typography component = "h1" color = "primary" >
82
52
< Stack
83
53
component = "span"
84
- direction = "row"
85
54
justifyContent = "center"
86
55
alignItems = "center"
87
- spacing = { 4 }
56
+ spacing = { 2 }
57
+ mb = { 2 }
58
+ data-testid = "testStack"
88
59
>
89
- < Box component = "img" src = "/assets/PASSLogolightmode.png" alt = "" width = "150px" />
90
60
< Typography
91
61
color = "primary.text"
92
62
variant = "h1"
93
63
component = "span"
94
64
fontWeight = "500"
95
- fontSize = "144px "
65
+ fontSize = "72px "
96
66
>
97
67
{ heading }
98
68
</ Typography >
69
+ < Box
70
+ component = "img"
71
+ src = "/assets/PASSLogolightmode.png"
72
+ alt = ""
73
+ width = { isSmallScreenHeight ? '20%' : '50%' }
74
+ />
75
+ < Typography color = "primary.text" variant = "h4" component = "span" fontWeight = "600" mb = { 8 } >
76
+ { subheading }
77
+ </ Typography >
99
78
</ Stack >
100
- < Typography color = "primary.text" variant = "h3" component = "span" fontWeight = "600" >
101
- { subheading }
102
- </ Typography >
103
- </ Stack >
104
- </ Typography >
105
- ) ;
79
+ </ Typography >
80
+ ) : (
81
+ < Typography component = "h1" color = "primary.text" >
82
+ < Stack
83
+ justifyContent = "center"
84
+ alignItems = "center"
85
+ spacing = { 4 }
86
+ mb = { 18 }
87
+ data-testid = "testStack"
88
+ >
89
+ < Stack
90
+ component = "span"
91
+ direction = "row"
92
+ justifyContent = "center"
93
+ alignItems = "center"
94
+ spacing = { 4 }
95
+ >
96
+ < Box component = "img" src = "/assets/PASSLogolightmode.png" alt = "" width = "150px" />
97
+ < Typography
98
+ color = "primary.text"
99
+ variant = "h1"
100
+ component = "span"
101
+ fontWeight = "500"
102
+ fontSize = "144px"
103
+ >
104
+ { heading }
105
+ </ Typography >
106
+ </ Stack >
107
+ < Typography color = "primary.text" variant = "h3" component = "span" fontWeight = "600" >
108
+ { subheading }
109
+ </ Typography >
110
+ </ Stack >
111
+ </ Typography >
112
+ ) ;
106
113
107
114
return (
108
115
< Container sx = { { width : '100vw' } } >
@@ -135,7 +142,7 @@ const Home = () => {
135
142
</ Box >
136
143
< div ref = { aboutRef } >
137
144
< HomeSection
138
- isReallySmallScreen = { isReallySmallScreen }
145
+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
139
146
componentImageSrc = "/assets/web-security-blue.webp"
140
147
componentImageAlt = ""
141
148
title = "Keep Your Documents Safe and Secure Using Decentralized Technology"
@@ -145,33 +152,33 @@ const Home = () => {
145
152
hasMargin
146
153
/>
147
154
< HomeSection
148
- isReallySmallScreen = { isReallySmallScreen }
155
+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
149
156
componentImageSrc = "/assets/app-blue.webp"
150
157
componentImageAlt = ""
151
158
title = "An App for Caseworkers"
152
159
description = "PASS allows users to quickly and securely share documents of their clients within the app. The app helps caseworkers verify and share documents such as ID and proof of income while retaining total control of them."
153
160
hasMargin
154
161
/>
155
162
< HomeSection
156
- isReallySmallScreen = { isReallySmallScreen }
163
+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
157
164
componentImageSrc = "/assets/key-features-blue.webp"
158
165
componentImageAlt = ""
159
166
title = "Key Features"
160
167
/>
161
168
< KeyFeatures
162
- isReallySmallScreen = { isReallySmallScreen }
169
+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
163
170
icon = { < SecurityIcon fontSize = { iconSize } /> }
164
171
title = "Secure Storage"
165
172
description = "Store vital documents like IDs, Social Security information, birth certificates, medical records, and bank statements in a valid digital format."
166
173
/>
167
174
< KeyFeatures
168
- isReallySmallScreen = { isReallySmallScreen }
175
+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
169
176
icon = { < Diversity1Icon fontSize = { iconSize } /> }
170
177
title = "Nonprofit-Caseworker Integration"
171
178
description = "The platform facilitates smooth communication between nonprofit organizations, case workers, and the individuals they serve. It allows nonprofit organizations to maintain a contact list, and caseworkers are assigned contacts whose data they can access securely."
172
179
/>
173
180
< KeyFeatures
174
- isReallySmallScreen = { isReallySmallScreen }
181
+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
175
182
icon = { < SupportIcon fontSize = { iconSize } /> }
176
183
title = "Support Service"
177
184
description = "Verified documents can be used to facilitate access to service such as housing support and shelter accommodation. The platform simplifies the process of submitting necessary documents for such services."
0 commit comments