Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions public/images/partners/cix.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions public/images/partners/microsoft_surface.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions public/images/partners/nxp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/partners/tweede_golf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub mod header;
pub mod image_button;
pub mod landing_page;
pub mod main;
pub mod partners_grid;
pub mod project_introduction;
pub mod projects_component;
pub mod repo_view;
Expand Down
51 changes: 51 additions & 0 deletions src/components/partners_grid.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
use leptos::prelude::*;

struct Partner {
name: &'static str,
logo: &'static str,
}

const PARTNERS: &[Partner] = &[
Partner {
name: "Microsoft Surface",
logo: "/images/partners/microsoft_surface.svg",
},
Partner {
name: "NXP",
logo: "/images/partners/nxp.svg",
},
Partner {
name: "tweede golf",
logo: "/images/partners/tweede_golf.svg",
},
Partner {
name: "CIX",
logo: "/images/partners/cix.svg"
}
Comment on lines +23 to +24
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PARTNERS array has invalid Rust syntax: the last Partner entry is missing trailing commas (after the logo field and after the struct literal). As written this won't compile; add the missing commas (and let rustfmt format the array).

Suggested change
logo: "/images/partners/cix.svg"
}
logo: "/images/partners/cix.svg",
},

Copilot uses AI. Check for mistakes.
];

#[component]
pub fn PartnersGrid() -> impl IntoView {
view! {
<section class="background_primary px-4 md:px-[120px] py-[80px]">
<div class="mb-[60px]">
<span class="h1_mobile md:h1 break-words w-full" style="display: block; text-align: left;">
{"Our Partners"}
</span>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-[40px] md:gap-[60px] items-center justify-items-center">
{PARTNERS.iter().map(|partner| {
view! {
<div class="flex items-center justify-center w-full h-[80px] md:h-[100px]">
<img
src=partner.logo
alt=partner.name
class="max-w-[180px] max-h-[70px] md:max-w-[200px] md:max-h-[80px] object-contain"
/>
</div>
}
}).collect_view()}
</div>
</section>
}
}
Loading