Added some SEO and ran cargo update
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
52
src/main.rs
52
src/main.rs
@@ -2,9 +2,12 @@
|
||||
|
||||
use std::str::FromStr;
|
||||
|
||||
use components::H1;
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_sdk::i18n::*;
|
||||
|
||||
use layout::footer::Footer;
|
||||
use layout::header::Header;
|
||||
use tracing::Level;
|
||||
|
||||
pub mod components;
|
||||
@@ -60,6 +63,41 @@ fn App() -> Element {
|
||||
});
|
||||
|
||||
rsx! {
|
||||
meta {
|
||||
name: "description",
|
||||
content: "Visit Tuan-Dat Tran's website for his CV, publications, projects, and consulting services. Connect for collaboration.",
|
||||
},
|
||||
script {
|
||||
r#type: "application/ld+json",
|
||||
"
|
||||
{{
|
||||
\"@context\": \"https://schema.org\",
|
||||
\"@type\": \"ProfilePage\",
|
||||
\"mainEntity\": {{
|
||||
\"@type\": \"Person\",
|
||||
\"name\": \"Tuan-Dat Tran\",
|
||||
\"alternateName\": \"TuDatTr\",
|
||||
\"image\": \"https://www.tudattr.dev/pictures/headshot.webp\",
|
||||
}}
|
||||
}}
|
||||
"
|
||||
}
|
||||
// meta {
|
||||
// property: "og:title",
|
||||
// content: "Tuan-Dat Trans Personal Website",
|
||||
// }
|
||||
// meta {
|
||||
// property: "og:description",
|
||||
// content: "Explore Tuan-Dat Tran's personal website featuring his CV, publications, projects, and consulting services. Get insights into his professional journey and connect for collaboration opportunities.",
|
||||
// }
|
||||
// meta {
|
||||
// property: "og:image",
|
||||
// content: "https://www.tudattr.dev/pictures/headshot.webp",
|
||||
// }
|
||||
// meta {
|
||||
// property: "og:url",
|
||||
// content: "https://tudattr.dev",
|
||||
// }
|
||||
div {
|
||||
class: "bg-white dark:bg-gray-900 min-h-screen",
|
||||
Router::<Route> {},
|
||||
@@ -71,12 +109,16 @@ fn App() -> Element {
|
||||
fn PageNotFound(route: Vec<String>) -> Element {
|
||||
rsx! {
|
||||
div {
|
||||
class: "h-screen items-center justify-center",
|
||||
img {
|
||||
class: "size-auto",
|
||||
src: "https://raw.githubusercontent.com/SAWARATSUKI/ServiceLogos/main/404Notfound/NotFound.png"
|
||||
class: "flex flex-col min-h-screen items",
|
||||
Header {},
|
||||
div {
|
||||
class: "container mx-auto p-4 flex items-center justify-center max-w-md w-full",
|
||||
H1 {
|
||||
"Site not found (404)"
|
||||
},
|
||||
}
|
||||
}
|
||||
Footer {}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user