Skip to content

Commit

Permalink
Add "Our Partners"
Browse files Browse the repository at this point in the history
  • Loading branch information
aahei committed Dec 31, 2024
1 parent 3b60254 commit 9c2a5f5
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 5 deletions.
Binary file added public/partner-logo/milkv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions public/partner-logo/riscv.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 31 additions & 3 deletions src/components/home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Image from "next/image"
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
import { MailIcon } from "lucide-react"
import { teamMembers, websites, newsList, teamIntro } from "@/lib/data"
import { teamMembers, websites, newsList, teamIntro, partners } from "@/lib/data"
import { TeamMemberCard } from "@/components/team-member-card"

export function HomePage() {
Expand Down Expand Up @@ -92,6 +92,34 @@ export function HomePage() {
</div>
</section>

<section className="py-16 bg-background">
<div className="container mx-auto px-4">
<h2 className="text-3xl font-bold text-center mb-4">Our Partners</h2>
<div className="flex flex-wrap justify-center items-center gap-24 max-w-4xl mx-auto">
{partners.map((partner) => (
<div key={partner.name} className="flex-shrink-0 w-full sm:w-auto">
<a
href={partner.link}
target="_blank"
rel="noopener noreferrer"
className="block transition-opacity hover:opacity-80 focus:opacity-80"
aria-label={`${partner.name} Website`}
>
<Image
src={partner.logo}
alt={`${partner.name} logo`}
width={240}
height={80}
className="max-w-full h-auto mx-auto"
/>
</a>
</div>
))}
</div>
</div>
</section>


{/* News Section */}
{/* <section id="news" className="py-16 bg-background">
<div className="container mx-auto px-4">
Expand All @@ -116,7 +144,7 @@ export function HomePage() {
</div>
</section> */}

<section id="team" className="py-16 bg-background">
<section id="team" className="py-16 bg-muted">
<div className="container mx-auto px-4">
<h2 className="text-3xl font-bold mb-8 text-center">Team Members</h2>
<div className="grid grid-cols-2 md:grid-cols-4 gap-6">
Expand All @@ -127,7 +155,7 @@ export function HomePage() {
</div>
</section>

<section id="contact" className="py-16 bg-muted">
<section id="contact" className="py-16 bg-background">
<div className="container mx-auto px-4 text-center">
<h2 className="text-3xl font-bold mb-8">Contact Us</h2>
<div className="flex items-center justify-center">
Expand Down
17 changes: 15 additions & 2 deletions src/lib/data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TeamMember, Website, News } from "./types";
import { TeamMember, Website, News, Partner } from "./types";

export const teamMembers: TeamMember[] = [
{
Expand Down Expand Up @@ -111,11 +111,24 @@ export const websites: Website[] = [
}
]

export const partners: Partner[] = [
{
name: "RISC-V",
logo: "/partner-logo/riscv.svg",
link: "https://riscv.org/"
},
{
name: "milkV",
logo: "/partner-logo/milkv.png",
link: "https://milkv.io/"
},
]

export const newsList: News[] = [
// {
// title: "Fedora",
// date: "Sep 20, 2024",
// content: "Fedora FedoraFedora FedoraFedoraFedoraFedora FedoraFedoraFedora.",
// content: "Fedora FedoraFedora FedoraFedoraFedoraFedoraFedora FedoraFedoraFedora.",
// },
]

Expand Down
6 changes: 6 additions & 0 deletions src/lib/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export type Website = {
link: string
}

export type Partner = {
name: string
logo: string
link: string
}

export type News = {
title: string
date: string
Expand Down

0 comments on commit 9c2a5f5

Please sign in to comment.