back to all posts

Build an Restaurant site with Gatsby and Snipcart - 2

by Nabendu Biswas / May 5th, 2020

#javascript #react #gatsby
Series: Gatsby-snipcart

Welcome to part-2 of the series. We have completed the setup in part-1 and will start creating the project in this part.

Create a folder globals inside components folder and a navbar folder in it. Then create four files inside it — Navbar.js , NavbarIcons.js, NavbarLinks.js and NavbarHeader.js

Put the below content in Navbar.js file.

Navbar.jsNavbar.js

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook.

Gatsby Cookbook

The book is currently 80% complete and available on leanpub to purchase at this url. So, please show your support and purchase the book or tell it to someone who is interested in developing blazing fast production websites in GatsbyJS.

https://leanpub.com/gatsbycookbook

leanpub

And like the below in smaller screens. Notice that the toggle icon is displayed.

Smaller screensSmaller screens

This completes part-2 of the series.

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

Nabendu Biswas