Skip to content

Commit

Permalink
Merge pull request #65 from neerajkumarc/fix-formatting
Browse files Browse the repository at this point in the history
fix formating
  • Loading branch information
Codehagen authored Jan 21, 2024
2 parents 7acd49a + a2343bc commit 6fa5c27
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions app/(marketing)/oss-friends/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { Button } from "@/components/ui/button";

export const metadata = {
title: "Projectx | Open Source Friends",
description:
"Open-source projects and tools for an open world.",
description: "Open-source projects and tools for an open world.",
};

type OSSFriend = {
Expand All @@ -12,67 +11,67 @@ type OSSFriend = {
description: string;
};


export default async function Friends() {
const friends: OSSFriend[] = await fetch(
"https://formbricks.com/api/oss-friends",
{
next: {
revalidate: 3600,
},
}
},
)
.then(async (res) => res.json())
.then(({ data }) => data)
.catch(() => []);

return (
<div className="mt-14 max-w-6xl mx-auto p-4 md:p-8">
<div className="mx-auto mt-14 max-w-6xl p-4 md:p-8">
<div className="mx-auto max-w-2xl text-center">
<h2 className="text-4xl font-bold tracking-tight sm:text-5xl md:text-6xl lg:text-7xl">
Our Open Source Friends
</h2>
<p className="mt-4 text-lg text-muted-foreground leading-8">
Meet our friends who are also building and contributing to Open Source.
<p className="mt-4 text-lg leading-8 text-muted-foreground">
Meet our friends who are also building and contributing to Open
Source.
</p>
</div>
<ul
role="list"
className=" mt-12 grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-2 lg:grid-cols-3 xl:gap-x-8">
className=" mt-12 grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-2 lg:grid-cols-3 xl:gap-x-8"
>
{friends.map((friend) => (
<li
key={friend.name}
className="overflow-hidden rounded-xl bg-secondary/70 border border-gray-700 p-4 md:p-6 space-y-2 flex flex-col justify-between">
className="flex flex-col justify-between space-y-2 overflow-hidden rounded-xl border border-gray-700 bg-secondary/70 p-4 md:p-6"
>
<div>
<div className="text-xl font-medium leading-6 px-6">
<div className="px-6 text-xl font-medium leading-6">
<a
href={friend.href}
target="_blank"
rel="noopener noreferrer"
className="inline-block">
className="inline-block"
>
{friend.name}
</a>
</div>
<p className="px-6 mt-2 text-muted-foreground text-sm ">
<p className="mt-2 px-6 text-sm text-muted-foreground ">
{friend.description}
</p>
</div>
<div className="text-left px-6">
<div className="px-6 text-left">
<a
href={friend.href}
target="_blank"
rel="noopener noreferrer"
className="inline-block">
<Button
type="button"
>
Learn more
</Button>
className="inline-block"
>
<Button type="button">Learn more</Button>
</a>
</div>
</li>
))}
</ul>
</div>
);
}
}

0 comments on commit 6fa5c27

Please sign in to comment.