@@ -27,7 +27,8 @@ import { HomeSection, KeyFeatures } from '@components/Home';
2727const Home = ( ) => {
2828 const theme = useTheme ( ) ;
2929 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' ;
3132 const aboutRef = useRef ( null ) ;
3233
3334 const handleClick = ( ) => aboutRef . current . scrollIntoView ( { behavior : 'smooth' } ) ;
@@ -45,64 +46,70 @@ const Home = () => {
4546 ) ;
4647 const subheading = 'Personal Access System for Services' ;
4748
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" >
8252 < Stack
8353 component = "span"
84- direction = "row"
8554 justifyContent = "center"
8655 alignItems = "center"
87- spacing = { 4 }
56+ spacing = { 2 }
57+ mb = { 2 }
58+ data-testid = "testStack"
8859 >
89- < Box component = "img" src = "/assets/PASSLogolightmode.png" alt = "" width = "150px" />
9060 < Typography
9161 color = "primary.text"
9262 variant = "h1"
9363 component = "span"
9464 fontWeight = "500"
95- fontSize = "144px "
65+ fontSize = "72px "
9666 >
9767 { heading }
9868 </ 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 >
9978 </ 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+ ) ;
106113
107114 return (
108115 < Container sx = { { width : '100vw' } } >
@@ -135,7 +142,7 @@ const Home = () => {
135142 </ Box >
136143 < div ref = { aboutRef } >
137144 < HomeSection
138- isReallySmallScreen = { isReallySmallScreen }
145+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
139146 componentImageSrc = "/assets/web-security-blue.webp"
140147 componentImageAlt = ""
141148 title = "Keep Your Documents Safe and Secure Using Decentralized Technology"
@@ -145,33 +152,33 @@ const Home = () => {
145152 hasMargin
146153 />
147154 < HomeSection
148- isReallySmallScreen = { isReallySmallScreen }
155+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
149156 componentImageSrc = "/assets/app-blue.webp"
150157 componentImageAlt = ""
151158 title = "An App for Caseworkers"
152159 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."
153160 hasMargin
154161 />
155162 < HomeSection
156- isReallySmallScreen = { isReallySmallScreen }
163+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
157164 componentImageSrc = "/assets/key-features-blue.webp"
158165 componentImageAlt = ""
159166 title = "Key Features"
160167 />
161168 < KeyFeatures
162- isReallySmallScreen = { isReallySmallScreen }
169+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
163170 icon = { < SecurityIcon fontSize = { iconSize } /> }
164171 title = "Secure Storage"
165172 description = "Store vital documents like IDs, Social Security information, birth certificates, medical records, and bank statements in a valid digital format."
166173 />
167174 < KeyFeatures
168- isReallySmallScreen = { isReallySmallScreen }
175+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
169176 icon = { < Diversity1Icon fontSize = { iconSize } /> }
170177 title = "Nonprofit-Caseworker Integration"
171178 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."
172179 />
173180 < KeyFeatures
174- isReallySmallScreen = { isReallySmallScreen }
181+ isReallySmallScreen = { isReallySmallScreen || isSmallScreenHeight }
175182 icon = { < SupportIcon fontSize = { iconSize } /> }
176183 title = "Support Service"
177184 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