Locaft/src/components/Footer.js

83 lines
2.2 KiB
JavaScript
Raw Normal View History

2020-12-14 09:38:21 -08:00
import React from 'react';
import styled from 'styled-components';
2021-01-20 09:05:30 -08:00
import { Facebook, Twitter, Instagram } from "@styled-icons/fa-brands";
2020-12-24 08:44:08 -08:00
import { Envelope } from "@styled-icons/fa-solid";
2021-01-20 09:05:30 -08:00
import { StyledIconBase } from '@styled-icons/styled-icon'
2020-12-24 08:44:08 -08:00
2021-01-20 09:05:30 -08:00
import {
2020-12-16 07:31:17 -08:00
Container
} from 'react-bootstrap';
const ContainerPadded = styled(Container)`
padding: 7% 15%;
2021-01-19 06:38:27 -08:00
2020-12-14 09:38:21 -08:00
`;
2020-12-16 07:31:17 -08:00
const WhiteSection = styled.footer`
2021-01-20 09:05:30 -08:00
background: ${props => props.background || "white"};
2021-01-19 06:38:27 -08:00
`;
const ContainerCentered = styled.div`
text-align: center;
2020-12-14 09:38:21 -08:00
`;
2021-01-20 09:05:30 -08:00
const IconStyler = styled.div`
${StyledIconBase} {
width: ${props => props.width ? props.width : 26}px;
height: ${props => props.height ? props.height : 26};
color: ${props => props.color ? props.color : "white"};
}
margin: 20px 10px;
`;
2020-12-24 08:44:08 -08:00
const FacebookIcon = styled(Facebook)`
margin: 20px 10px;
width: 16px;
height: 16px;
`;
const TwitterIcon = styled(Twitter)`
margin: 20px 10px;
width: 16px;
height: 16px;
`;
const InstagramIcon = styled(Instagram)`
margin: 20px 10px;
width: 16px;
height: 16px;
2020-12-16 07:31:17 -08:00
`;
2020-12-24 08:44:08 -08:00
const EnvelopeIcon = styled(Envelope)`
margin: 20px 10px;
width: 16px;
height: 16px;
`;
2020-12-14 09:38:21 -08:00
2020-12-22 08:43:32 -08:00
const Footer = (props) => {
2020-12-14 09:38:21 -08:00
return (
<WhiteSection>
2020-12-16 07:31:17 -08:00
<ContainerPadded fluid>
2021-01-19 06:38:27 -08:00
<ContainerCentered>
2021-01-20 09:05:30 -08:00
<IconStyler color="#66bfbf" width={16} height={16}<Facebook /></IconStyler>
<IconStyler color="#66bfbf" width={16} height={16}<Twitter /></IconStyler>
<IconStyler color="#66bfbf" width={16} height={16}<Instagram /></IconStyler>
<IconStyler color="#66bfbf" width={16} height={16}<Envelope /></IconStyler >
<FacebookIcon />
<TwitterIcon />
<InstagramIcon />
<EnvelopeIcon />
<p>© Copyright 2020 Locaft</p>
<p><a href="/tc">Terms and Conditions</a></p>
<p><a href="/pp">Privacy Policy</a></p>
</ContainerCentered >
</ContainerPadded >
</WhiteSection >
2020-12-14 09:38:21 -08:00
)
}
export default Footer;