back to all posts

Build an Restaurant site with Gatsby and Snipcart - 10

by Nabendu Biswas / May 13th, 2020

#javascript #react #gatsby
Series: Gatsby-snipcart

Welcome to part-10 of the series. We will start creating the Gallery component in the home page, in this part. So, create a new file Gallery.js in the HomeComponents folder and put the below content in it.

We are using graphql and useStaticQuery to show the image stored in homeGallery folder.


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.


It will show like below in normal desktop screens.

Normal screensNormal screens

This completes part-10 of the series.

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

Nabendu Biswas