Skip to content
Snippets Groups Projects
Commit 1aecab2d authored by xaralis's avatar xaralis
Browse files

feat: better infoscreen when stream is unavailable

parent dca1560c
No related branches found
No related tags found
No related merge requests found
Pipeline #2068 passed
...@@ -274,10 +274,12 @@ const Home = () => { ...@@ -274,10 +274,12 @@ const Home = () => {
</div> </div>
)} )}
{!streamUrl && ( {!streamUrl && (
<p> <div className="px-4 py-16 lg:py-48 flex items-center justify-center bg-grey-400 text-center">
Server neposlal informaci o aktuálním streamu. Vyčkejte na <span className="text-lg lg:text-xl text-grey-200">
aktualizaci. <i className="ico--warning mr-2" /> Stream teď není k
</p> dispozici. Vyčkej na aktualizaci.
</span>
</div>
)} )}
<GlobalStats /> <GlobalStats />
</div> </div>
...@@ -330,7 +332,14 @@ const Home = () => { ...@@ -330,7 +332,14 @@ const Home = () => {
)} )}
{programEntry.discussionOpened && {programEntry.discussionOpened &&
isAuthenticated && 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 <PostsContainer
className="container-padding--zero lg:container-padding--auto" className="container-padding--zero lg:container-padding--auto"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment