Restaurant Site Project with GatsbyJS-7

Welcome to part-7 of the series. You can find part-6 here.

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.

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

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

Image for post
Image for post
Home Page

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