I have a problem centering a button on the footer. I have two icons on the left and right, I am able to create the UI but it does not look the same(the center icon is a little weird with padding and shadow). I am using material-ui. Here's the picture of what I would like to create:
Here's the code sandbox URL: https://codesandbox.io/s/footer-mobile-responsive-icvvs?file=/src/App.js
Component code :
<AppBar position="fixed" className="footer__app-bar">
<Toolbar disableGutters className="footer__toolbar">
<Link href="/">
<div className="footer__home">
<img src={HomeIcon} alt="home" />
<div className="footer__home-title">HOME</div>
</div>
</Link>
<Link href="/book">
<>
<div className="footer__book-fab-container">
<Fab aria-label="book">
<img src={CalendarIcon} alt="book" />
</Fab>
</div>
<div className="footer__book-title">BOOK</div>
</>
</Link>
<Link href="/profile">
<div className="footer__profile">
<img src={ProfileIcon} alt="profile" />
<div className="footer__profile-title">PROFILE</div>
</div>
</Link>
</Toolbar>
</AppBar>
Styles:
.footer__app-bar {
background-color: $color-white;
color: $color-black;
top: auto;
bottom: 0;
box-shadow: 0px -5px 23px -5px rgba(0, 0, 0, 0.17);
font-family: AvenirNext;
padding: 0px 35px 0px;
.footer__toolbar {
display: flex;
align-items: center;
justify-content: space-between;
.footer__home {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
img {
width: 18px;
height: 19px;
}
.footer__home-title {
}
}
.footer__book-fab-container {
position: absolute;
z-index: 1;
top: -28px;
left: 0;
right: 0;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
border: 10px solid white;
width: 76px;
border-radius: 50%;
box-shadow: 0px -5px 23px -5px rgb(0 0 0 / 17%);
img {
position: absolute;
z-index: 1;
left: 0;
right: 0;
margin: 0 auto;
}
.footer__book-title {
}
}
.footer__profile {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
img {
width: 15px;
height: 20px;
}
.footer__profile-title {
}
}
}
}
How can I create the exact same UI?

