chore(dioxus): Upgraded to dioxus 0.6.0

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-12-11 23:28:12 +01:00
parent ac80065e82
commit 74f68eff5b
21 changed files with 3317 additions and 1211 deletions

View File

@@ -1,9 +1,7 @@
use dioxus::prelude::*;
use dioxus_sdk::{i18n::use_i18, translate};
use dioxus_i18n::t;
pub fn Footer() -> Element {
let i18 = use_i18();
rsx! {
div {
class: "container mx-auto pb-4",
@@ -13,14 +11,14 @@ pub fn Footer() -> Element {
class:"w-full mx-auto p-4 flex items-center justify-between",
span {
class:"text-sm text-gray-500 sm:text-center dark:text-gray-400",
{ translate!(i18, "footer.year") },
a { href: "#", class: "hover:underline", { translate!(i18, "footer.name") }},
{ translate!(i18, "footer.rights") }
{ t!("footer_year") },
a { href: "#", class: "hover:underline", { t!("footer_name") }},
{ t!("footer_rights") }
}
ul {
class:"flex flex-wrap items-center mt-3 text-sm font-medium text-gray-500 dark:text-gray-400 sm:mt-0",
li {
Link { to:"mailto:tuan-dat.tran@tudattr.dev", class:"hover:underline", { translate!(i18, "footer.contact") } }
Link { to:"mailto:tuan-dat.tran@tudattr.dev", class:"hover:underline", { t!("footer_contact") } }
},
}
}