Skip to content
Merged
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
3 changes: 2 additions & 1 deletion docs/docs/getting-started/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Refer to the following sections for detailed instructions on setting up API keys
import DocCard from '@site/src/components/global/DocCard';
import { RiOpenaiFill } from "react-icons/ri";
import { VscAzure } from "react-icons/vsc";
import { SiOllama } from "react-icons/si";
import { SiOllama, SiAnthropic } from "react-icons/si";

<DocCard
Icon={VscAzure}
Expand All @@ -105,6 +105,7 @@ title="OpenAI"
link="/flock/docs/getting-started/openai"
/>
<DocCard
Icon={SiAnthropic}
title="Anthropic / Claude"
link="/flock/docs/getting-started/anthropic"
/>
18 changes: 14 additions & 4 deletions docs/src/components/global/DocCard.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
import React from "react";
import type { IconType } from "react-icons/lib";

export default function DocCard(props: { Icon: IconType; title: string; link: string }) {
type DocCardProps = {
Icon?: IconType;
title: string;
link: string;
};

export default function DocCard(props: DocCardProps) {
const { Icon, title, link } = props;

return (
<>
<div onClick={() => window.open(link, "_self")}
className="my-2 flex gap-2 cursor-pointer rounded-2xl items-center text-lg font-bold border-solid border-[1px] border-[#FF9128] p-4 hover:shadow-[0_0_10px_#FF9128] hover:shadow-orange-500/50 transition-all duration-300 ease-in-out">
<Icon className="text-[#FF9128] text-3xl rounded-lg border-solid border-[1px] border-[#FF9128] p-1" />
<div
onClick={() => window.open(link, "_self")}
className="my-2 flex gap-2 cursor-pointer rounded-2xl items-center text-lg font-bold border-solid border-[1px] border-[#FF9128] p-4 hover:shadow-[0_0_10px_#FF9128] hover:shadow-orange-500/50 transition-all duration-300 ease-in-out"
>
{Icon && (
<Icon className="text-[#FF9128] text-3xl rounded-lg border-solid border-[1px] border-[#FF9128] p-1" />
)}
{title}
</div>
Comment on lines +15 to 23
Copy link

Copilot AI Mar 10, 2026

Copilot uses AI. Check for mistakes.
</>
Expand Down