From 257ad11bf3e6207415c6fd18344f7c7ba7b8874b Mon Sep 17 00:00:00 2001 From: masterhc Date: Sun, 11 Feb 2024 01:09:19 +0000 Subject: [PATCH] Handle no Strikes --- public/css/strikesdashboard.css | 14 ++++++++++++++ views/strikelist.ejs | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/public/css/strikesdashboard.css b/public/css/strikesdashboard.css index 468e84c..638c5bd 100644 --- a/public/css/strikesdashboard.css +++ b/public/css/strikesdashboard.css @@ -123,4 +123,18 @@ body background-color: darkslategray; border:none; border-radius: 5px; +} +.NoStrikes +{ + background-color: var(--card-color); + height: 5em; + width: 50%; + border:none; + border-radius: 10px; +} +.NoStrikes > h2 +{ + color:rgb(15, 98, 131); + font-family: 'Lato'; + font-weight: bolder; } \ No newline at end of file diff --git a/views/strikelist.ejs b/views/strikelist.ejs index d1c1c83..ca1be34 100644 --- a/views/strikelist.ejs +++ b/views/strikelist.ejs @@ -34,3 +34,8 @@ <% });%> +<%if(strikes.length==0){%> +
+

THERE ARE NO STRIKES

+
+<% } %> \ No newline at end of file