From f4c10fa2982afc75fedadab8fcd2237d01eccc0e Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Sun, 20 Sep 2020 00:18:59 +0300 Subject: [PATCH] Add menu bar --- src/components/layout.jsx | 17 ++++++++++++++++- src/pages/index.jsx | 2 +- static/search.svg | 1 + static/shopping-bag.svg | 1 + 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 static/search.svg create mode 100644 static/shopping-bag.svg diff --git a/src/components/layout.jsx b/src/components/layout.jsx index ec8366c..1904770 100644 --- a/src/components/layout.jsx +++ b/src/components/layout.jsx @@ -5,6 +5,7 @@ require('../styles/index.scss'); const Layout = ({ title, + isIndex = false, children }) => { return ( @@ -25,9 +26,23 @@ const Layout = ({ rel="stylesheet" /> -
+
{children}
+ { + !isIndex && +
+ + + +
+ } ); }; diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 7113d76..7d0a646 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -4,7 +4,7 @@ import Layout from '../components/layout'; const Home = () => { const [pin, setPin] = useState(''); return ( - +
diff --git a/static/shopping-bag.svg b/static/shopping-bag.svg new file mode 100644 index 0000000..936277b --- /dev/null +++ b/static/shopping-bag.svg @@ -0,0 +1 @@ +