Restaurant Site Project with GatsbyJS-14

Welcome to part-14 of the series. You can find part-13 here.

We will start to show the data from contentful in our site in this part. So, create a file Menu.js inside the HomeComponents folder and put the below content in it.

Here, we are again using useStaticQuery to get all the data from graphql. After we are getting the data, we are storing it in a const edges.

Image for post
Image for post
Menu.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

And like below in Mobile screen.

Image for post
Image for post
Mobile View

I have pushed the code to github, so it had re-deployed the site at https://restaurant-bangalore.netlify.app/

This completes part-14 of the series. You can find part-15 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