back to all posts

Build an Restaurant site with Gatsby and Snipcart - 3

by Nabendu Biswas / May 6th, 2020

#javascript #react #gatsby
Series: Gatsby-snipcart

Welcome to part-3 of the series. 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.


Rest of the chapter is exclusive content and is from my book Foundation Gatsby Projects.

The book can be purchased from Apress site here

Foundation Gatsby Projects

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


This completes part-3 of the series.

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

Nabendu Biswas