Restaurant Site Project with GatsbyJS-10

Image for post
Image for post
Photo by Toa Heftiba on Unsplash

Welcome to part-10 of the series. You can find part-9 here.

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.

Image for post
Image for post
Gallery.js

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook. You can find more details about it here.

Image for post
Image for post
Gatsby Cookbook

It will show like below in normal desktop screens.

Image for post
Image for post
Normal screens

This completes part-10 of the series. You can find part-11 here.

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

Written by

UI Lead- ReactJS, JavaScript and everything in-between.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store