From 8682827b46cf2b10801e121b3e57864b2c041b34 Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 14 Apr 2022 18:45:26 +0200 Subject: [PATCH] Add description and some statistics Signed-off-by: trivernis --- src/app.rs | 10 +++++++++- src/pages/about.rs | 4 +++- src/pages/home.rs | 10 ++++++++++ src/styles/main.scss | 2 +- src/styles/pages/home.scss | 20 ++++++++++++++++++++ 5 files changed, 43 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index 5da33a7..59287cd 100644 --- a/src/app.rs +++ b/src/app.rs @@ -74,12 +74,20 @@ impl Component for App { onclick_signal = self.link.callback(|_| Msg::ChangeNavbarItem(0)) > route=AppRouter::RootPath>{"Home"}> + + {"GitHub"} + + + {"Discord"} + - route=AppRouter::AboutPath>{"About"}> + route=AppRouter::AboutPath>{"About this Website"}> diff --git a/src/pages/about.rs b/src/pages/about.rs index 170f217..caec012 100644 --- a/src/pages/about.rs +++ b/src/pages/about.rs @@ -26,7 +26,7 @@ impl Component for About { html! { -

{"Libraries used for building this website"}

+

{"Stuff used for building this website"}

diff --git a/src/pages/home.rs b/src/pages/home.rs index ed91e02..9c97f20 100644 --- a/src/pages/home.rs +++ b/src/pages/home.rs @@ -28,6 +28,16 @@ impl Component for Home {

{"Welcome to my website"}

+ +

{r#" + I'm a german software developer working on way too many projects at once. + I primarily use rust because it's just the best programming language. + "#}

+
+ + + + } } diff --git a/src/styles/main.scss b/src/styles/main.scss index 7d8ac31..9748b38 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -29,5 +29,5 @@ body { .content { - margin: 15% 20%; + margin: 10% 15% 5em; } \ No newline at end of file diff --git a/src/styles/pages/home.scss b/src/styles/pages/home.scss index 0835f2e..7298aba 100644 --- a/src/styles/pages/home.scss +++ b/src/styles/pages/home.scss @@ -7,4 +7,24 @@ text-align: center; width: 100%; } +} + +.home-description { + width: 100%; + font-size: 1.5em; + margin: auto; + text-align: center; +} + +.github-stats { + margin: auto; + display: flex; + width: 100%; + align-items: center; + flex-wrap: wrap; + img { + padding: 5px; + margin: auto; + display: flex; + } } \ No newline at end of file