diff --git a/src/components/footer.rs b/src/components/footer.rs index 6a9fe38..c99dc94 100644 --- a/src/components/footer.rs +++ b/src/components/footer.rs @@ -4,35 +4,45 @@ use rustlanges_components::{ icons::{Discord, Github, Linkedin, Telegram}, }; +use crate::components::{GITHUB_PATH, JOIN_PATH, LINKEDIN_PATH, TELEGRAM_PATH}; + #[component] pub fn Footer() -> impl IntoView { view! { -
-
-

"Comunidad - Rust Lang en Español"

- -
+ } } diff --git a/src/components/header.rs b/src/components/header.rs index 9e41fe4..0eccbc2 100644 --- a/src/components/header.rs +++ b/src/components/header.rs @@ -1,5 +1,8 @@ use crate::{ - components::icons::{NewLogoRustDarkPageIcon, NewLogoRustLightPageIcon}, + components::{ + BOOK_PATH, JOIN_PATH, + icons::{NewLogoRustDarkPageIcon, NewLogoRustLightPageIcon}, + }, context::theme_provider::{Theme, use_theme}, }; use leptos::prelude::*; @@ -9,9 +12,6 @@ use rustlanges_components::{ icons::{Close, Menu, Moon, SunLine, SunMoon}, }; -const BOOK_PATH: &str = "https://book.rustlang-es.org/"; -const JOIN_PATH: &str = "https://discord.rustlang-es.org/"; - #[island] pub fn Header() -> impl IntoView { let this = use_window(); diff --git a/src/components/mod.rs b/src/components/mod.rs index b760610..cab02ef 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -20,3 +20,9 @@ pub mod project_card; pub mod resources; pub mod sponsor_block; pub mod why_rust; + +const BOOK_PATH: &str = "https://book.rustlang-es.org/"; +const JOIN_PATH: &str = "https://discord.rustlang-es.org/"; +const GITHUB_PATH: &str = "https://github.com/RustLangES"; +const LINKEDIN_PATH: &str = "https://www.linkedin.com/company/rustlanges"; +const TELEGRAM_PATH: &str = "https://t.me/rust_es";