* OSS Friends list is out of date Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Add icons Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Refactor according to review Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> * OSS Friends list is out of date Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> Co-authored-by: niteshsingh1357 <niteshsingh1357@gmail.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: niteshsingh1357 <niteshsingh1357@gmail.com>
26 lines
816 B
TypeScript
26 lines
816 B
TypeScript
import { Background } from '@/app/components/oss-friends/Background';
|
|
import { Card, OssData } from '@/app/components/oss-friends/Card';
|
|
import { CardContainer } from '@/app/components/oss-friends/CardContainer';
|
|
import { ContentContainer } from '@/app/components/oss-friends/ContentContainer';
|
|
import { Header } from '@/app/components/oss-friends/Header';
|
|
|
|
export default async function OssFriends() {
|
|
const ossList = await fetch('https://formbricks.com/api/oss-friends');
|
|
|
|
const listJson = await ossList.json();
|
|
|
|
return (
|
|
<>
|
|
<Background />
|
|
<ContentContainer>
|
|
<Header />
|
|
<CardContainer>
|
|
{listJson.data.map((data: OssData, index: number) => (
|
|
<Card key={index} data={data} />
|
|
))}
|
|
</CardContainer>
|
|
</ContentContainer>
|
|
</>
|
|
);
|
|
}
|