Skip to content

Commit

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

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

const MobileFooter = () => {
return (
<Box sx={{ borderTop: "1px solid #ccc", mt: 3, pt: 2, width: "100%" }}>
<Paper>
<Button>
<Box sx={{ ...justifyCenter, mr: 1 }}>
<BsGlobe size={24} />
</Box>
English ( CA )
</Button>

<Button> $ CAD </Button>
</Paper>

<Stack sx={{ mt: 2 }}>
<Paper>
<Link href="#"> 2022 AirBnB copyright Inc</Link>
</Paper>
</Stack>
<Stack sx={{ mt: 2 }}>
{footerLinks.map((link) => {
return (
<Paper key={link.id}>
<Link href={link.url}> {link.text}</Link>
</Paper>
);
})}
</Stack>
</Box>
);
};

export default MobileFooter;

0 comments on commit 85f1a4e

Please sign in to comment.