From 86531aec1a83e75f3dd95543e5eae6943037cc04 Mon Sep 17 00:00:00 2001 From: Joshua Byrd Date: Sun, 26 Jan 2020 19:46:57 +1000 Subject: [PATCH] OK let's make a search tomorrow --- components/heading.js | 3 ++- components/heading.scss | 10 ++++++++-- components/search.js | 10 ++++++++-- components/search.scss | 10 +++++++--- public/icons/favorite-8.svg | 1 + public/icons/magnifier-1.svg | 1 + 6 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 public/icons/favorite-8.svg create mode 100644 public/icons/magnifier-1.svg diff --git a/components/heading.js b/components/heading.js index 535c09b..d31d229 100644 --- a/components/heading.js +++ b/components/heading.js @@ -3,12 +3,13 @@ import css from "./heading.scss"; export default props => { return ( -
+
quoke +
); }; diff --git a/components/heading.scss b/components/heading.scss index 83d7b90..84383c5 100644 --- a/components/heading.scss +++ b/components/heading.scss @@ -1,8 +1,12 @@ -.root { +.heading { color: white; padding: 0.5rem 1rem; display: flex; align-items: center; + min-height: 100px; + display: flex; + justify-content: space-between; + align-items: center; a { color: white; @@ -13,7 +17,9 @@ text-decoration: underline; } - min-height: 100px; + .heart { + filter: invert(1); + } } .branding { diff --git a/components/search.js b/components/search.js index b6875ff..1e7a2ff 100644 --- a/components/search.js +++ b/components/search.js @@ -2,9 +2,15 @@ import css from "./search.scss"; export default props => { return ( -
+
+
- +
); diff --git a/components/search.scss b/components/search.scss index 026cc7a..84f9737 100644 --- a/components/search.scss +++ b/components/search.scss @@ -1,8 +1,10 @@ -.root { +.search { background-color: white; border-bottom: 1px solid #dcdcdc; min-height: 100px; display: flex; + padding-left: 1rem; + // align-items: center; form { flex: 1; @@ -10,8 +12,10 @@ input[type=search] { width: 100%; - height: 100%; + min-height: 100%; border: none; - padding: 0rem 1rem; + padding: 0 1rem 0 0.8rem; + outline: none; + font-size: 1em; } } \ No newline at end of file diff --git a/public/icons/favorite-8.svg b/public/icons/favorite-8.svg new file mode 100644 index 0000000..851a714 --- /dev/null +++ b/public/icons/favorite-8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/icons/magnifier-1.svg b/public/icons/magnifier-1.svg new file mode 100644 index 0000000..2c90350 --- /dev/null +++ b/public/icons/magnifier-1.svg @@ -0,0 +1 @@ + \ No newline at end of file