diff --git a/src/pages/hall.rs b/src/pages/hall.rs index 1949442..e827ff9 100644 --- a/src/pages/hall.rs +++ b/src/pages/hall.rs @@ -106,6 +106,22 @@ impl Component for HallComponent { }) .collect::>(); + let tips = match articles.len() { + 0 => html! { +
+

{"This room seems to be empty 🤔..."}

+

{"Did you forget to clear your filter (🏷️)?"}

+
+ }, + _ => html! { +
+

{"You've reached the end of the this room."}

+

{"Hope you enjoyed your visit!"}

+

{"If you want to see more, check out the other halls (🏛️)!"}

+
+ }, + }; + let emitter = ctx.link().clone(); let nav_cb = Callback::from(move |msg| emitter.send_message(msg)); @@ -169,11 +185,7 @@ impl Component for HallComponent { {articles} -
-

{"You've reached the end of the this room."}

-

{"Hope you enjoyed your visit!"}

-

{"If you want to see more, check out the other halls (🏛️)!"}

-
+ {tips}
{"Museum of Code © 2023, All Rights Reserved"}