From 1aecab2d11ec0641d484a04c00ed053c7b8ed7c8 Mon Sep 17 00:00:00 2001
From: xaralis <filip.varecha@fragaria.cz>
Date: Thu, 7 Jan 2021 15:50:47 +0100
Subject: [PATCH] feat: better infoscreen when stream is unavailable

---
 src/pages/Home.jsx | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx
index a2cdcbf..3722835 100644
--- a/src/pages/Home.jsx
+++ b/src/pages/Home.jsx
@@ -274,10 +274,12 @@ const Home = () => {
               </div>
             )}
             {!streamUrl && (
-              <p>
-                Server neposlal informaci o aktuálním streamu. Vyčkejte na
-                aktualizaci.
-              </p>
+              <div className="px-4 py-16 lg:py-48 flex items-center justify-center bg-grey-400 text-center">
+                <span className="text-lg lg:text-xl text-grey-200">
+                  <i className="ico--warning mr-2" /> Stream teÄŹ nenĂ­ k
+                  dispozici. VyÄŤkej na aktualizaci.
+                </span>
+              </div>
             )}
             <GlobalStats />
           </div>
@@ -330,7 +332,14 @@ const Home = () => {
           )}
           {programEntry.discussionOpened &&
             isAuthenticated &&
-            !user.isBanned && <AddPostForm className="mb-8" canAddProposal={user.role === "member" || user.role === "chairman"} />}
+            !user.isBanned && (
+              <AddPostForm
+                className="mb-8"
+                canAddProposal={
+                  user.role === "member" || user.role === "chairman"
+                }
+              />
+            )}
 
           <PostsContainer
             className="container-padding--zero lg:container-padding--auto"
-- 
GitLab