@@ -70,7 +70,7 @@ const StyledUpperContainer = styled("div")(({ theme }) => ({
7070 display : "grid" ,
7171 rowGap : theme . spacing ( 1 ) ,
7272 columnGap : theme . spacing ( 1 ) ,
73- gridTemplateColumns : "auto auto " ,
73+ gridTemplateColumns : "1fr 1fr " ,
7474 maxWidth : theme . breakpoints . values . md ,
7575 paddingInlineStart : theme . spacing ( 4 ) ,
7676 paddingInlineEnd : theme . spacing ( 4 ) ,
@@ -112,13 +112,13 @@ const StyledLowerOuterContainer = styled("div")(({ theme }) => ({
112112const StyledLowerContainer = styled ( "div" ) ( ( { theme } ) => ( {
113113 display : "flex" ,
114114 flexDirection : "column" ,
115- alignItems : "center " ,
115+ alignItems : "flex-start " ,
116116 margin : "0 auto" ,
117117 maxWidth : theme . breakpoints . values . md ,
118118 paddingInlineStart : theme . spacing ( 4 ) ,
119119 paddingInlineEnd : theme . spacing ( 4 ) ,
120120
121- [ theme . breakpoints . up ( "sm " ) ] : {
121+ [ theme . breakpoints . up ( "md " ) ] : {
122122 flexDirection : "row" ,
123123 justifyContent : "center" ,
124124
@@ -137,23 +137,22 @@ const StyledButtonContainer = styled("div")({
137137 flexDirection : "column" ,
138138 justifySelf : "flex-start" ,
139139 alignItems : "center" ,
140+ width : "100%" ,
140141} ) ;
141142
142143const StyledSocialIconsContainer = styled ( "div" ) ( {
143144 display : "flex" ,
144145 flexDirection : "row" ,
145146 justifyContent : "center" ,
146- gap : "12px" ,
147+ gap : 2 ,
147148 marginTop : "16px" ,
148149} ) ;
149150
150151const StyledButton = styled ( Button ) < ButtonProps > ( ( { theme } ) => ( {
151152 minWidth : "8rem" ,
152153 textAlign : "center" ,
153154 marginBlockEnd : theme . spacing ( 2 ) ,
154- [ theme . breakpoints . up ( "sm" ) ] : {
155- minWidth : "12rem" ,
156- } ,
155+ width : "100%" ,
157156 "& .MuiButton-label > * + *" : {
158157 marginInlineStart : theme . spacing ( 1 ) ,
159158 } ,
@@ -224,80 +223,71 @@ export default function Footer({ bottomMargin }: { bottomMargin?: string }) {
224223 < ReportButton isMenuLink />
225224 </ div >
226225 < StyledButtonContainer >
226+ { ! isNativeEmbed && (
227+ < StyledButton
228+ component = { Link }
229+ href = { donationsRoute }
230+ variant = "contained"
231+ >
232+ { t ( "nav.donate" ) }
233+ </ StyledButton >
234+ ) }
235+ < StyledButton
236+ component = { Link }
237+ href = { volunteerRoute }
238+ variant = "contained"
239+ color = "secondary"
240+ >
241+ { t ( "nav.volunteer" ) }
242+ </ StyledButton >
227243 < Box
228244 sx = { {
229245 display : "flex" ,
230- flexDirection : "column" ,
231- alignItems : "stretch" ,
232- width : "fit-content" ,
246+ flexDirection : "row" ,
247+ alignItems : "center" ,
248+ justifyContent : "flex-start" ,
249+ flexWrap : "wrap" ,
250+ gap : 1 ,
251+ mb : 1 ,
233252 } }
234253 >
235- { ! isNativeEmbed && (
236- < StyledButton
237- component = { Link }
238- href = { donationsRoute }
239- variant = "contained"
240- >
241- { t ( "nav.donate" ) }
242- </ StyledButton >
243- ) }
244- < StyledButton
245- component = { Link }
246- href = { volunteerRoute }
247- variant = "contained"
248- color = "secondary"
254+ < a
255+ href = { couchersAppStoreURL }
256+ target = "_blank"
257+ rel = "noopener noreferrer"
249258 >
250- { t ( "nav.volunteer" ) }
251- </ StyledButton >
252- < Box
253- sx = { {
254- display : "flex" ,
255- flexDirection : "row" ,
256- alignItems : "center" ,
257- justifyContent : { xs : "center" , sm : "space-between" } ,
258- gap : { xs : 1 , sm : 0 } ,
259- width : "100%" ,
260- mb : 1 ,
261- } }
259+ < img
260+ src = "/img/Download_on_the_App_Store_Badge_US-UK_RGB_blk_092917.svg"
261+ alt = { t ( "download_on_app_store" ) }
262+ style = { { height : "26px" , width : "auto" , display : "block" } }
263+ />
264+ </ a >
265+ < a
266+ href = { couchersGooglePlayURL }
267+ target = "_blank"
268+ rel = "noopener noreferrer"
262269 >
263- < a
264- href = { couchersAppStoreURL }
265- target = "_blank"
266- rel = "noopener noreferrer"
270+ < div
271+ style = { {
272+ height : "26px" ,
273+ width : "87.75px" ,
274+ overflow : "hidden" ,
275+ position : "relative" ,
276+ } }
267277 >
268278 < img
269- src = "/img/Download_on_the_App_Store_Badge_US-UK_RGB_blk_092917.svg"
270- alt = { t ( "download_on_app_store" ) }
271- style = { { height : "26px" , width : "auto" , display : "block" } }
272- />
273- </ a >
274- < a
275- href = { couchersGooglePlayURL }
276- target = "_blank"
277- rel = "noopener noreferrer"
278- >
279- < div
279+ src = "/img/GetItOnGooglePlay_Badge_Web_color_English.svg"
280+ alt = { t ( "get_it_on_google_play" ) }
280281 style = { {
281- height : "26px" ,
282- width : "87.75px" ,
283- overflow : "hidden" ,
284- position : "relative" ,
282+ height : "39px" ,
283+ width : "auto" ,
284+ position : "absolute" ,
285+ top : "-6.5px" ,
286+ left : "-6.5px" ,
285287 } }
286- >
287- < img
288- src = "/img/GetItOnGooglePlay_Badge_Web_color_English.svg"
289- alt = { t ( "get_it_on_google_play" ) }
290- style = { {
291- height : "39px" ,
292- width : "auto" ,
293- position : "absolute" ,
294- top : "-6.5px" ,
295- left : "-6.5px" ,
296- } }
297- />
298- </ div >
299- </ a >
300- </ Box >
288+ />
289+ </ div >
290+ </ a >
301291 </ Box >
302292 < StyledSocialIconsContainer >
303293 < MuiLink
0 commit comments