Added Social and tweaked Home

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-09-02 18:18:08 +02:00
parent 0ff5419c23
commit f76a7a8c4c
7 changed files with 50 additions and 20 deletions

View File

@@ -8,7 +8,12 @@ pub fn CV() -> Element {
rsx! {
div {
class: "flex flex-col ",
Introduction {},
div {
class: "flex justify-between",
Introduction {},
Socials {}
},
HR {}
div {
class: "flex justify-between",
@@ -16,7 +21,6 @@ pub fn CV() -> Element {
Miscellaneous {},
},
HR {},
Socials {}
}
}
}
@@ -27,12 +31,14 @@ fn Introduction() -> Element {
rsx! {
div {
class: "flex",
img {
class: "rounded-full w-16 h-16 mx-16",
src: "/pictures/headshot.webp"
}
P { { translate!(i18, "cv.introduction") }}
}
P { { translate!(i18, "cv.introduction_0") } },
P { { translate!(i18, "cv.introduction_1") } }
},
}
}
@@ -228,9 +234,17 @@ fn random_badge_color(seed: usize) -> String {
}
fn Socials() -> Element {
let i18 = use_i18();
rsx! {
div {
"todo!()"
class: "ms-8 max-w-3/4",
H4 { { translate!(i18, "cv.socials.title") } },
div {
class: "flex justify-center items-center space-x-4",
P { Link { to:"https://www.linkedin.com/in/tudattr/", class:"hover:underline", new_tab: true, img { class: "h-8", src:"/pictures/LI-Bug.svg.original.svg", alt:"LinkedIn Logo" } }},
P { Link { to:"https://git.tudattr.dev/tudattr", class:"hover:underline", new_tab: true, img { class: "h-8", src:"/pictures/Gitea_Logo.svg", alt:"Gitea Logo" } }},
}
}
}
}