From 02695ed925b52e02d9af147df9ccc7768e36224b Mon Sep 17 00:00:00 2001 From: dgarciah98 Date: Wed, 25 Oct 2023 20:39:16 +0200 Subject: [PATCH] feat: add github button to repo --- frontend/src/component/github.rs | 28 ++++++++++++++++++++++++++++ frontend/src/component/home_bar.rs | 7 +++---- frontend/src/component/mod.rs | 1 + frontend/src/main.rs | 2 +- 4 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 frontend/src/component/github.rs diff --git a/frontend/src/component/github.rs b/frontend/src/component/github.rs new file mode 100644 index 0000000..aeec238 --- /dev/null +++ b/frontend/src/component/github.rs @@ -0,0 +1,28 @@ +use yew::prelude::*; + +#[function_component] +pub(crate) fn Github() -> Html { + let style = "padding: 0; height: 100%; position: absolute; right: 0; margin-right: 0;"; + html! { + + + + } +} diff --git a/frontend/src/component/home_bar.rs b/frontend/src/component/home_bar.rs index f7a789f..e71a097 100644 --- a/frontend/src/component/home_bar.rs +++ b/frontend/src/component/home_bar.rs @@ -1,19 +1,18 @@ use yew::prelude::*; use yew_router::prelude::Link; -use crate::Route; +use crate::{Route, component::github::Github}; #[function_component] pub(crate) fn HomeBar() -> Html { html! { -
-
} } diff --git a/frontend/src/component/mod.rs b/frontend/src/component/mod.rs index bafe56d..6da6032 100644 --- a/frontend/src/component/mod.rs +++ b/frontend/src/component/mod.rs @@ -5,3 +5,4 @@ pub(crate) mod home; pub(crate) mod text_input; pub(crate) mod dl_button; pub(crate) mod home_bar; +pub(crate) mod github; diff --git a/frontend/src/main.rs b/frontend/src/main.rs index e38cf6a..b7d07ea 100644 --- a/frontend/src/main.rs +++ b/frontend/src/main.rs @@ -30,7 +30,7 @@ fn App() -> Html { html! {
-
+