Restaurant Site Project with GatsbyJS-3

Image for post
Image for post
Photo by Kaboompics .com from Pexels

Welcome to part-3 of the series. You can find part-2 here.

We will start creating generic styled components here, so that we don’t have to create different style in each project. Also, these styles are reusable in other part of the project.

So, create a folder utils inside src folder. Create a file styles.js inside it and the below content in it.

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

The code is now working perfectly in localhost on click of the Menu button.

Image for post
Image for post
Gif

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