Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
OK let's make a search tomorrow
Browse files Browse the repository at this point in the history
  • Loading branch information
phocks committed Jan 26, 2020
1 parent d9aefd3 commit 86531ae
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
3 changes: 2 additions & 1 deletion components/heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import css from "./heading.scss";

export default props => {
return (
<div className={css.root}>
<div className={css.heading}>
<Link href="/">
<a>
<span className={css.branding}>quoke</span>
</a>
</Link>
<img className={css.heart} src="/icons/favorite-8.svg" />
</div>
);
};
Expand Down
10 changes: 8 additions & 2 deletions components/heading.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -13,7 +17,9 @@
text-decoration: underline;
}

min-height: 100px;
.heart {
filter: invert(1);
}
}

.branding {
Expand Down
10 changes: 8 additions & 2 deletions components/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ import css from "./search.scss";

export default props => {
return (
<div className={css.root}>
<div className={css.search}>
<img src="/icons/magnifier-1.svg" />
<form method="get" action="/search">
<input type="search" placeholder="Search..." name="q"></input>
<input
type="search"
placeholder="Search..."
name="q"
autoComplete="off"
></input>
</form>
</div>
);
Expand Down
10 changes: 7 additions & 3 deletions components/search.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
.root {
.search {
background-color: white;
border-bottom: 1px solid #dcdcdc;
min-height: 100px;
display: flex;
padding-left: 1rem;
// align-items: center;

form {
flex: 1;
}

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;
}
}
1 change: 1 addition & 0 deletions public/icons/favorite-8.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/magnifier-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86531ae

Please sign in to comment.