back to all posts

Build an Restaurant site with Gatsby and Snipcart - 7

by Nabendu Biswas / May 10th, 2020

#javascript #react #gatsby
Series: Gatsby-snipcart

Welcome to part-7 of the series. We will start this part by creating the Banner button component. This will allow us to place a button within each picture, below the Banner text.

So, create a new file Button.js inside the utils folder and put the below content in it. Now, this is a simple component which have mainly a styled-component BannerButton.


Rest of the chapter is exclusive content and is from my book Foundation Gatsby Projects.

The book can be purchased from Apress site here

Foundation Gatsby Projects

Now, the QuickInfo is showing perfectly in our Home Page, after the photo.

Home PageHome Page

This completes part-7 of the series.

You can find the code for the project in this github repo.

Nabendu Biswas