forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFooter.js
More file actions
44 lines (40 loc) · 1.03 KB
/
Footer.js
File metadata and controls
44 lines (40 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from 'react'
import PropTypes from 'prop-types'
import { useLingui } from '@lingui/react'
import { Box, Flex, Image } from '@chakra-ui/react'
import { Layout } from '../components/Layout'
import wordmark from '../images/canada-wordmark.svg'
export const Footer = ({ children, ...props }) => {
const { i18n } = useLingui()
return (
<Layout
borderTop="2px solid"
borderTopColor="gray.300"
bg="gray.200"
{...props}
>
<Flex mx="auto" py={4} align="center" direction="row">
{children}
<Box
py={4}
width={{ base: 147.2 }}
ml="auto"
display={{ base: 'none', md: 'initial' }}
>
<Image
src={wordmark}
width="100%"
alt={
i18n.locale === 'en'
? 'Symbol of the Government of Canada'
: 'Symbole du gouvernement du Canada'
}
/>
</Box>
</Flex>
</Layout>
)
}
Footer.propTypes = {
children: PropTypes.any,
}