diff --git a/assets/ferris-hero.avif b/assets/ferris-hero.avif index 2d1df1c..7290459 100644 Binary files a/assets/ferris-hero.avif and b/assets/ferris-hero.avif differ diff --git a/assets/rustlangeshalloween.webp b/assets/rustlangeshalloween.webp deleted file mode 100644 index d1a3389..0000000 Binary files a/assets/rustlangeshalloween.webp and /dev/null differ diff --git a/src/app.rs b/src/app.rs index f94d2dd..cdef15b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -21,7 +21,7 @@ pub fn App() -> impl IntoView {
diff --git a/src/components/button_large_link.rs b/src/components/button_large_link.rs deleted file mode 100644 index 2600e30..0000000 --- a/src/components/button_large_link.rs +++ /dev/null @@ -1,46 +0,0 @@ -use leptos::{component, view, Children, IntoView}; -use std::collections::HashMap; - -#[component] -pub fn ButtonLargeLink( - #[prop(into)] href: String, - #[prop(default = "primary")] color: &'static str, - #[prop(default = "normal")] size: &'static str, - #[prop(default = "drop")] shadow: &'static str, - #[prop(into, optional)] class: String, - children: Children, -) -> impl IntoView { - let colors = HashMap::from([ - ( - "primary", - "bg-orange-200 dark:bg-transparent hover:bg-black hover:text-white", - ), - ("white", "bg-orange-100 dark:bg-transparent hover:bg-black hover:text-white"), - ]); - let shadows = HashMap::from([ - ("drop", "drop-shadow-[4px_4px_0_rgba(0,0,0)] hover:drop-shadow-[0_0_0_rgba(0,0,0)]"), - ("box", "drop-shadow-[4px_4px_0_rgba(0,0,0)] hover:drop-shadow-[0_0_0_rgba(0,0,0)] dark:drop-shadow-none shadow-sm hover:drop-shadow-none dark:hover:shadow-lg shadow-black"), - ]); - let sizes = HashMap::from([("tiny", "min-h-7"), ("normal", "h-9"), ("big", "h-12")]); - let current_color = (*colors.get(&color).unwrap()).to_string(); - let current_size = (*sizes.get(&size).unwrap()).to_string(); - let shadow = (*shadows.get(&shadow).unwrap()).to_string(); - - view! { - - - {children()} - - } -} - diff --git a/src/components/button_link.rs b/src/components/button_link.rs index 7df61f7..b5f0a03 100644 --- a/src/components/button_link.rs +++ b/src/components/button_link.rs @@ -15,7 +15,7 @@ pub fn ButtonLink( "primary", "bg-orange-200 dark:bg-transparent hover:bg-black hover:text-white", ), - ("white", "bg-orange-100 dark:bg-transparent hover:bg-black hover:text-white"), + ("white", "bg-orange-100 dark:bg-transparent hover:bg-black"), ]); let shadows = HashMap::from([ ("drop", "drop-shadow-[4px_4px_0_rgba(0,0,0)] hover:drop-shadow-[0_0_0_rgba(0,0,0)]"), diff --git a/src/components/hacktoberfest.rs b/src/components/hacktoberfest.rs deleted file mode 100644 index 162031e..0000000 --- a/src/components/hacktoberfest.rs +++ /dev/null @@ -1,61 +0,0 @@ -use leptos::{component, view, IntoView}; - -use crate::components::{ - button_link::ButtonLink, - button_large_link::ButtonLargeLink, - icons::{DiscordIcon, CalendarIcon, GithubIcon}, -}; - -#[component] -pub fn Hacktoberfest() -> impl IntoView { - view! { -
-
-
-

- - "🚀 ¡Únete a la celebración del" - " Hacktoberfest " - "con nosotros! 🚀" - -

-

- "Este" " 5 de Octubre"" - , nuestra comunidad se une a este emocionante evento de programación. - Aprovecha esta excelente oportunidad para contribuir a proyectos open-source, aprender nuevas habilidades - y conectar con otros amantes del open-source." -

-
- - - "Participa" - - - - "Añade a tu calendario" - - - - "Postula tu proyecto" - -
-
-
-
- } -} diff --git a/src/components/icons/calendar_icon.rs b/src/components/icons/calendar_icon.rs deleted file mode 100644 index bd0183f..0000000 --- a/src/components/icons/calendar_icon.rs +++ /dev/null @@ -1,21 +0,0 @@ -use leptos::{component, view, IntoView}; - -#[component] -pub fn CalendarIcon( - #[prop(default = 40)] size: u32, - #[prop(default = "fill-current dark:fill-[#bf8821]")] class: &'static str, -) -> impl IntoView { - view! { - - - - - } -} - diff --git a/src/components/icons/discord_icon.rs b/src/components/icons/discord_icon.rs index b919809..89004bd 100644 --- a/src/components/icons/discord_icon.rs +++ b/src/components/icons/discord_icon.rs @@ -17,4 +17,3 @@ pub fn DiscordIcon( } } - diff --git a/src/components/icons/linkedin_icon.rs b/src/components/icons/linkedin_icon.rs index f0ceb88..778a824 100644 --- a/src/components/icons/linkedin_icon.rs +++ b/src/components/icons/linkedin_icon.rs @@ -17,4 +17,3 @@ pub fn LinkedinIcon( } } - diff --git a/src/components/icons/mod.rs b/src/components/icons/mod.rs index ad11172..bb8a77a 100644 --- a/src/components/icons/mod.rs +++ b/src/components/icons/mod.rs @@ -1,5 +1,4 @@ mod cloudflare; -mod calendar_icon; mod discord_icon; mod github_icon; mod linkedin_icon; @@ -10,7 +9,6 @@ mod telegram_icon; mod twitter_icon; mod web_icon; -pub use calendar_icon::*; pub use cloudflare::*; pub use discord_icon::*; pub use github_icon::*; diff --git a/src/components/mod.rs b/src/components/mod.rs index f1ae8ad..f8662db 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -1,6 +1,5 @@ mod aprende; mod button_link; -mod button_large_link; mod cards; mod community_projects; mod footer; @@ -9,7 +8,6 @@ mod header; mod hero; mod icons; mod other_communities; -mod hacktoberfest; mod our_communities; pub mod separator; mod slogan_button; @@ -17,7 +15,6 @@ mod sponsors; pub use aprende::{Books, HeaderAprende, Roadmap, Youtube}; pub use button_link::ButtonLink; -pub use button_large_link::ButtonLargeLink; pub use cards::{CardTitle, CommunityCard, ContributorCard, ProjectCard}; pub use community_projects::CommunityProjects; pub use footer::Footer; @@ -28,8 +25,6 @@ pub use icons::{ CloudflareIcon, DiscordIcon, GithubIcon, LinkedinIcon, LocationIcon, NextIcon, TelegramIcon, TwitterIcon, }; - -pub use hacktoberfest::Hacktoberfest; pub use other_communities::OtherCommunities; pub use our_communities::OurCommunities; pub use separator::Separator; diff --git a/src/pages/index.rs b/src/pages/index.rs index 4968b5c..161da07 100644 --- a/src/pages/index.rs +++ b/src/pages/index.rs @@ -1,6 +1,6 @@ use leptos::{component, view, IntoView}; -use crate::components::{CommunityProjects, Hero, OtherCommunities, OurCommunities, Hacktoberfest, Sponsors}; +use crate::components::{CommunityProjects, Hero, OtherCommunities, OurCommunities, Sponsors}; #[component] pub fn Index() -> impl IntoView { @@ -8,7 +8,6 @@ pub fn Index() -> impl IntoView {
- diff --git a/tailwind.config.js b/tailwind.config.js index 9524841..109e6b8 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -14,12 +14,8 @@ module.exports = { ...theme.screens, }), backgroundImage: (theme) => ({ - "kaku-dev": "url('/assets/rustlangeshalloween.webp')", - "kaku": "url('/rustlangeshalloween.webp')", - }), - backgroundSize: (theme) => ({ - 'small': '12rem', - ...theme.backgroundSize, + "kaku-dev": "url('/assets/kaku.avif')", + "kaku": "url('/kaku.avif')", }), gridTemplateColumns: (theme) => ({ "divided": "2.5fr 1fr", @@ -89,4 +85,4 @@ module.exports = { }, }, plugins: [], -}; +}; \ No newline at end of file