Skip to content

Commit

Permalink
build: footer (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhrifat committed Aug 17, 2022
1 parent c465eec commit eeeb7b3
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import React from "react";
import {Paper,Stack,Link,Box,Button,Container} from "@mui/material";
import { BsGlobe } from "react-icons/bs";
import { IoChevronUpOutline } from "react-icons/io5";
import {
flexBetweenCenter,
justifyCenter,
fullWidthFlex,
} from "themes/commonStyles";

const footerLinks = [
{ id: 1, text: "Privacy", url: "#" },
{ id: 2, text: "Terms", url: "#" },
{ id: 3, text: "Sitemap", url: "#" },
{ id: 4, text: "Destinations", url: "#" },
];

const Footer = () => {
return (
<Box
sx={{
...fullWidthFlex,
borderTop: "1px solid #ddd",
}}
>
<Container maxWidth="xl">
<Box
sx={{
...flexBetweenCenter,
width: "100%",
}}
>
<Stack>
<Paper>
<Link href="#"> 2022 Airbnb Copyright </Link>
</Paper>
{footerLinks.map((link) => {
return (
<Paper key={link.id}>
<Link href={link.url}> {link.text}</Link>
</Paper>
);
})}
</Stack>

<Stack>
<Paper sx={justifyCenter}>
<Button>
<Box sx={{ ...justifyCenter, mr: 1 }}>
<BsGlobe size={24} />
</Box>
English (CA)
</Button>
<Button> $CAD </Button>
<Button>
Support & Resources
<Box sx={{ ...justifyCenter, ml: 1 }}>
<IoChevronUpOutline size={24} />
</Box>
</Button>
</Paper>
</Stack>
</Box>
</Container>
</Box>
);
};

export default Footer;

0 comments on commit eeeb7b3

Please sign in to comment.