Skip to content

Commit a821abc

Browse files
authored
Update messages.html
Added a welcome alert and added badges
1 parent cb1c703 commit a821abc

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

messages.html

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,39 @@
1717
color: white;
1818
font-size: 30px;
1919
}
20+
21+
.badge {
22+
background-color: red;
23+
color: white;
24+
padding: 4px 8px;
25+
text-align: center;
26+
border-radius: 5px;
27+
}
28+
29+
/* The alert message box */
30+
.alert {
31+
padding: 20px;
32+
background-color: #f44336; /* Red */
33+
color: white;
34+
margin-bottom: 15px;
35+
}
36+
37+
/* The close button */
38+
.closebtn {
39+
margin-left: 15px;
40+
color: white;
41+
font-weight: bold;
42+
float: right;
43+
font-size: 22px;
44+
line-height: 20px;
45+
cursor: pointer;
46+
transition: 0.3s;
47+
}
48+
49+
/* When moving the mouse over the close button */
50+
.closebtn:hover {
51+
color: black;
52+
}
2053

2154
.menu-container {
2255
position: relative;
@@ -190,14 +223,20 @@ <h1>Messages</h1>
190223
<!-- The actual snackbar -->
191224
<div id="snackbar">This feature is Coming Soon!</div>
192225

193-
<h3>Alerts From Coding Hut</h3>
226+
<h3>Alerts From Coding Hut <span class="badge">1 Alert</span></h3>
194227

195228
<h4>Higher Priority Alerts</h4>
196229
<center><h3>You currently don't have any alerts. Check back later!</h3></center>
197230

198231
<h4>Lower Priority Alerts</h4>
199232
<center><h3>You currently don't have any alerts. Check back later!</h3></center>
200233

234+
<h4>Lowest Priority Alerts <span class="badge">1 Alert</span></h4>
235+
<div class="alert">
236+
<span class="closebtn" onclick="this.parentElement.style.display='none';">&times;</span>
237+
Welcome to Coding Hut! Try signing in, making orders, becoming staff and more! We are glad you joined us.
238+
</div>
239+
201240
<h3>Messages</h3>
202241
<center><h2>You currently don't have any messages. Check back later!</h2></center>
203242

0 commit comments

Comments
 (0)