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.

Button.jsButton.js

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook.

Gatsby Cookbook

The book is currently 80% complete and available on leanpub to purchase at this url. So, please show your support and purchase the book or tell it to someone who is interested in developing blazing fast production websites in GatsbyJS.

https://leanpub.com/gatsbycookbook

leanpub

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