-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.tsx
More file actions
50 lines (47 loc) · 1.87 KB
/
index.tsx
File metadata and controls
50 lines (47 loc) · 1.87 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
45
46
47
48
49
50
import { Column, Columns, Inline, PageBlock, Stack, Text, TextLink } from '@cutting/component-library';
import cow from '~/assets/images/cow-logo-small2.png';
import github from '~/assets/images/github.png';
import twitter from '~/assets/images/twitter.png';
import { footerPages } from '~/routes';
import { TextNavLink } from '../TextNavLink/TextNavLink';
export function Footer(): JSX.Element {
return (
<PageBlock>
<Columns align="center" space="xsmall" alignY="top" collapseBelow="tablet">
<Column>
<Inline alignY="center">
<img src={cow} alt="cutting-edge cow logo" />
<Text component="span">Paul Cowan</Text>
</Inline>
</Column>
<Column>
<Stack space="medium">
{footerPages.map((page) => (
<TextNavLink key={page.path} to={page.path}>
{page.heading}
</TextNavLink>
))}
</Stack>
</Column>
<Column width="1/2">
<Stack space={{ mobile: 'xsmall', tablet: 'xxsmall' }}>
<Text>
<Inline space="small" align={{ mobile: 'center', tablet: 'left' }} alignY="center">
<TextLink external href="mailto:paul.cowan@cutting.scot">
paul.cowan@cutting.scot
</TextLink>
<TextLink external href="https://github.com/dagda1" ariaLabel="Github profile">
<img src={github} alt="github" />
</TextLink>
<TextLink external href="https://twitter.com/dagda1" ariaLabel="twitter profile">
<img src={twitter} alt="twitter" />
</TextLink>
</Inline>
</Text>
<Text size="xsmall">Copyright © Cutting-Edge Solutions (Scotland) inc. All rights reserved</Text>
</Stack>
</Column>
</Columns>
</PageBlock>
);
}