back to all posts

Build an Restaurant site with Gatsby and Snipcart - 9

by Nabendu Biswas / May 12th, 2020

#javascript #react #gatsby
Series: Gatsby-snipcart

Welcome to part-9 of the series. We will start with the footer component in this part. So, create a file Footer.js inside the Global folder and put the below content in it.

Here, we are importing styled-components and our global style files. After that we are also importing react-icons for facebook, twitter and instagram.

We are creating a state variable icons, containing the three social icons as array of object.

Footer.jsFooter.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

The site is live, so we can check it on https://restaurant-bangalore.netlify.app/

Site liveSite live

Our site is live and will auto-deploy everytime we push our code to github.

This completes part-9 of the series.

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

Nabendu Biswas