Skip to content

Commit

Permalink
Add a dummy search button
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth committed Mar 21, 2019
1 parent 266a0fb commit 2042b9b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/components/ZoneMasterView.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,16 @@ export default function ZoneMasterView({ contentHeader, contentBody, popup }) {
}}
>
<div css={{ marginTop: 10 }}>
<ZoneFilterPanel triggerSearch={activeSidebar === "search"} />
{
// @todo #1 Implement and style search button on desktop.
}
<button
css={{ float: "right" }}
onClick={() => setActiveSidebar("search")}
>
Search
</button>
<ZoneFilterPanel />
</div>
</div>

Expand All @@ -129,6 +138,7 @@ export default function ZoneMasterView({ contentHeader, contentBody, popup }) {
<Responsive
breakpoint={DESKTOP_MIN_WIDTH}
narrow={renderMobileSidebar()}
wide={renderMobileSidebar()}
/>
</ContentWrapper>
</div>
Expand Down Expand Up @@ -283,7 +293,7 @@ function Popup({ children }) {
left: 0,
zIndex: 20,
background: "#eee",
animation: `${popup} 0.5s`,
animation: `${popup} 0.7s`,
[media(DESKTOP_MIN_WIDTH)]: {
position: "absolute",
animation: "none",
Expand All @@ -297,7 +307,10 @@ function Popup({ children }) {

const popup = keyframes({
from: {
transform: "translateY(100%)",
transform: "translateY(100%) scale(0.5)",
},
"50%": {
transform: "scale(0.5)",
},
to: {
transform: "translateY(0%)",
Expand Down

1 comment on commit 2042b9b

@0pdd
Copy link

@0pdd 0pdd commented on 2042b9b Mar 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1-67a5e157 discovered in src/components/ZoneMasterView.js and submitted as #66. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.