Skip to content

Commit 9cad24d

Browse files
committed
feat(panel): add statistics dashboard component
1 parent da7f1df commit 9cad24d

3 files changed

Lines changed: 596 additions & 6 deletions

File tree

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::components::statistics::StatisticsDashboard;
12
use crate::i18n::yew::use_translation;
23
use yew::prelude::*;
34

@@ -6,12 +7,15 @@ pub fn home() -> Html {
67
let (i18n, _set_language) = use_translation();
78

89
html! {
9-
<div class="flex flex-col items-center justify-center text-center">
10-
<img src="logo.png" alt="Rustmail logo" class="w-40 h-40 mb-6" />
11-
<h1 class="text-3xl font-bold mb-2">{i18n.t("panel.title")}</h1>
12-
<p class="max-w-xl text-gray-400 mb-8">
13-
{i18n.t("panel.welcome")}
14-
</p>
10+
<div class="space-y-8">
11+
<div class="flex flex-col items-center justify-center text-center">
12+
<img src="logo.png" alt="Rustmail logo" class="w-24 h-24 mb-4" />
13+
<h1 class="text-3xl font-bold mb-2">{i18n.t("panel.title")}</h1>
14+
<p class="max-w-xl text-gray-400">
15+
{i18n.t("panel.welcome")}
16+
</p>
17+
</div>
18+
<StatisticsDashboard />
1519
</div>
1620
}
1721
}

rustmail_panel/src/components/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ pub mod home;
55
pub mod language_switcher;
66
pub mod logout_button;
77
pub mod navbar;
8+
pub mod statistics;
89
pub mod ticket;

0 commit comments

Comments
 (0)