forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWelcomeMessage.js
More file actions
40 lines (38 loc) · 1.32 KB
/
WelcomeMessage.js
File metadata and controls
40 lines (38 loc) · 1.32 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
import React from 'react'
import { Trans } from '@lingui/macro'
import { Text, Box, Divider, SimpleGrid, Stack, Image } from '@chakra-ui/core'
import trackerLogo from './images/tracker_v-03.png'
import { useLingui } from '@lingui/react'
export function WelcomeMessage() {
const { i18n } = useLingui()
return (
<Box bg="primary" color="gray.50" align="center">
<SimpleGrid columns={[1, 2]}>
<Stack align="center" mx="10" my="10">
<Text
fontSize={['3xl', '3xl', '3xl', '4xl', '5xl']}
fontWeight="semibold"
>
<Trans>Track Web Security Compliance</Trans>
<Divider borderColor="accent" borderWidth="2" w="20%" />
</Text>
<Text fontSize={['xl', 'sm', 'sm', 'lg', 'xl']}>
<Trans>
Canadians rely on the Government of Canada to provide secure
digital services. A new policy notice guides government websites
to adopt good web security practices. Track how government sites
are becoming more secure.
</Trans>
</Text>
</Stack>
<Image
src={trackerLogo}
alt={i18n._('Tracker Logo')}
size={['0%', '0%', '80%', '80%', '87%']}
alignSelf="center"
mx="10"
/>
</SimpleGrid>
</Box>
)
}