Skip to content

Commit

Permalink
Revert "Added new october art for the background"
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera authored Dec 29, 2024
1 parent 3671d85 commit bee2287
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 152 deletions.
Binary file modified assets/ferris-hero.avif
Binary file not shown.
Binary file removed assets/rustlangeshalloween.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn App() -> impl IntoView {
<Router>
<HeadInformation/>
<Body class=format!(
"bg-orange-200 dark:bg-[#131313]/90 bg-center bg-fixed {} dark:backdrop-brightness-[.25] overflow-x-hidden dark:text-[#e2cea9] bg-repeat bg-small",
"bg-orange-200 dark:bg-[#131313]/90 bg-center bg-fixed {} dark:bri dark:bg-cover dark:bg-blend-darken dark:backdrop-blur-xl overflow-x-hidden dark:text-[#e2cea9]",
bg_in_dark_mode,
)/>
<Header/>
Expand Down
46 changes: 0 additions & 46 deletions src/components/button_large_link.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/button_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]"),
Expand Down
61 changes: 0 additions & 61 deletions src/components/hacktoberfest.rs

This file was deleted.

21 changes: 0 additions & 21 deletions src/components/icons/calendar_icon.rs

This file was deleted.

3 changes: 1 addition & 2 deletions src/components/icons/discord_icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use leptos::{component, view, IntoView};
#[component]
pub fn DiscordIcon(
#[prop(default = 40)] size: u32,
#[prop(default = "fill-current dark:fill-[#bf8821]")] class: &'static str,
#[prop(default = "fill-black dark:fill-[#bf8821]")] class: &'static str,
) -> impl IntoView {
view! {
<svg
Expand All @@ -17,4 +17,3 @@ pub fn DiscordIcon(
</svg>
}
}

2 changes: 1 addition & 1 deletion src/components/icons/github_icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use leptos::{component, view, IntoView};
#[component]
pub fn GithubIcon(
#[prop(default = 40)] size: u32,
#[prop(default = "fill-current dark:fill-[#bf8821]")] class: &'static str,
#[prop(default = "fill-black dark:fill-[#bf8821]")] class: &'static str,
) -> impl IntoView {
view! {
<svg
Expand Down
3 changes: 1 addition & 2 deletions src/components/icons/linkedin_icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use leptos::*;
#[component]
pub fn LinkedinIcon(
#[prop(default = 40)] size: u32,
#[prop(default = "fill-current dark:fill-[#bf8821]")] class: &'static str,
#[prop(default = "fill-black dark:fill-[#bf8821]")] class: &'static str,
) -> impl IntoView {
view! {
<svg
Expand All @@ -17,4 +17,3 @@ pub fn LinkedinIcon(
</svg>
}
}

2 changes: 0 additions & 2 deletions src/components/icons/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mod cloudflare;
mod calendar_icon;
mod discord_icon;
mod github_icon;
mod linkedin_icon;
Expand All @@ -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::*;
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/telegram_icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use leptos::{component, view, IntoView};
#[component]
pub fn TelegramIcon(
#[prop(default = 40)] size: u32,
#[prop(default = "fill-current dark:fill-[#bf8821]")] class: &'static str,
#[prop(default = "fill-black dark:fill-[#bf8821]")] class: &'static str,
) -> impl IntoView {
view! {
<svg
Expand Down
5 changes: 0 additions & 5 deletions src/components/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
mod aprende;
mod button_link;
mod button_large_link;
mod cards;
mod community_projects;
mod footer;
Expand All @@ -9,15 +8,13 @@ mod header;
mod hero;
mod icons;
mod other_communities;
mod hacktoberfest;
mod our_communities;
pub mod separator;
mod slogan_button;
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;
Expand All @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/pages/index.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
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 {
view! {
<div>
<Hero/>
<OurCommunities/>
<Hacktoberfest/>
<CommunityProjects show_more=true/>
<OtherCommunities show_more=true/>
<Sponsors/>
Expand Down
10 changes: 3 additions & 7 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -89,4 +85,4 @@ module.exports = {
},
},
plugins: [],
};
};

0 comments on commit bee2287

Please sign in to comment.