Restaurant Site Project with GatsbyJS-2

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

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

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.

Image for post
Image for post
Navbar.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 the below in smaller screens. Notice that the toggle icon is displayed.

Image for post
Image for post
Smaller screens

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