From cccebd8494966e6d7ddb3e7a273088d3e22148d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 28 Jan 2024 11:18:37 +0100 Subject: [PATCH] title and no brews UI --- .../pages/archivePage/archivePage.jsx | 10 ++++++++- .../pages/archivePage/archivePage.less | 21 ++++++++++++++----- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/client/homebrew/pages/archivePage/archivePage.jsx b/client/homebrew/pages/archivePage/archivePage.jsx index f088591e8..7b3f6c40d 100644 --- a/client/homebrew/pages/archivePage/archivePage.jsx +++ b/client/homebrew/pages/archivePage/archivePage.jsx @@ -64,7 +64,12 @@ const ArchivePage = createClass({ console.log('brews: ',brews); if (!brews || brews.length === 0) { - return
No brews found.
; + return( +
+

We haven't found brews meeting your request.

+
+ + ); } this.updateUrl(); return
@@ -118,6 +123,9 @@ const ArchivePage = createClass({ renderNavItems: function () { return ( + + Archive: Search for brews + diff --git a/client/homebrew/pages/archivePage/archivePage.less b/client/homebrew/pages/archivePage/archivePage.less index 4271cdb58..fe5430a81 100644 --- a/client/homebrew/pages/archivePage/archivePage.less +++ b/client/homebrew/pages/archivePage/archivePage.less @@ -11,6 +11,13 @@ body { height: 100%; background-color: #2C3E50; + h1,h2,h3 { + font-family: 'Open Sans'; + font-size: 30px; + color: white; + font-weight: 900; + } + .content { display: grid; grid-template-rows: 20vh 1fr; @@ -26,8 +33,6 @@ body { h1 { font-size: 40px; - font-weight: 900; - color: white; filter:drop-shadow(0 0 5px black); } } @@ -47,7 +52,6 @@ body { h2 { font-size: 30px; - font-weight: 900; border-bottom: 2px solid; margin-block: 20px; } @@ -77,8 +81,6 @@ body { h2 { font-size: 30px; - color: white; - font-weight: 900; } } .foundBrews { @@ -90,6 +92,15 @@ body { padding: 50px; overflow-y:scroll; + &.noBrews { + display:grid; + place-items:center; + + h3 { + font-size: 25px; + } + } + .limit { position: fixed; bottom: 0;