-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add community showcase (#1191)
- Loading branch information
Showing
7 changed files
with
191 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import { | ||
ChevronDown, | ||
Code, | ||
MessageSquare, | ||
Pen, | ||
Settings2, | ||
Sparkles, | ||
} from "lucide-react"; | ||
import Image from "next/image"; | ||
|
||
import { Card } from "@/components/ui/card"; | ||
|
||
export default function Component() { | ||
return ( | ||
<div className="min-h-screen"> | ||
<div className="mx-auto max-w-7xl px-4 py-8"> | ||
<header className="mb-28 mt-12 text-center"> | ||
<div className="text-muted-foreground text-sm uppercase tracking-wider"> | ||
COMMUNITY SHOWCASE | ||
</div> | ||
<h1 className="mt-4 text-5xl font-bold"> | ||
Built with | ||
<br /> | ||
assistant-ui | ||
</h1> | ||
</header> | ||
<div className="grid gap-6 md:grid-cols-3"> | ||
<ShowcaseCard | ||
title="Closing.wtf" | ||
image="/screenshot/closing-wtf.png" | ||
tag="AI Assistant" | ||
link="https://closing.wtf/" | ||
description="Helps homebuyers get the best deal and avoid getting screwed on their mortgage" | ||
/> | ||
<ShowcaseCard | ||
title="Entelligence" | ||
image="/screenshot/entelligence.png" | ||
tag="Developer Tools" | ||
link="https://entelligence.ai/" | ||
description="AI-powered software engineering assistant" | ||
/> | ||
<ShowcaseCard | ||
title="Helicone" | ||
image="/screenshot/helicone.png" | ||
tag="Developer Tools" | ||
link="https://www.helicone.ai/" | ||
description="Open-source LLM observability for developers" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
function ShowcaseCard({ | ||
title, | ||
image, | ||
tag, | ||
secondaryTag, | ||
link, | ||
description, | ||
}: { | ||
title: string; | ||
image: string; | ||
tag: string; | ||
secondaryTag?: string; | ||
link: string; | ||
description?: string; | ||
}) { | ||
return ( | ||
<a href={link} target="_blank"> | ||
<Card className="group relative overflow-hidden rounded-lg border-zinc-800 bg-zinc-950"> | ||
<div className="aspect-[5/3] overflow-hidden"> | ||
<Image | ||
src={image} | ||
alt={title} | ||
width={600} | ||
height={400} | ||
className="object-cover transition-transform duration-300 group-hover:scale-105" | ||
/> | ||
</div> | ||
<div className="flex flex-col gap-1 p-4 pt-2"> | ||
<div className="flex items-center justify-between"> | ||
<h3 className="text-lg font-semibold">{title}</h3> | ||
<div className="flex gap-2"> | ||
<span className="rounded bg-purple-900/50 px-2 py-1 text-xs"> | ||
{tag} | ||
</span> | ||
{secondaryTag && ( | ||
<span className="rounded bg-zinc-800 px-2 py-1 text-xs"> | ||
{secondaryTag} | ||
</span> | ||
)} | ||
</div> | ||
</div> | ||
<p className="text-muted-foreground">{description}</p> | ||
</div> | ||
</Card> | ||
</a> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import * as React from "react" | ||
|
||
import { cn } from "@/lib/utils" | ||
|
||
const Card = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn( | ||
"rounded-xl border bg-card text-card-foreground shadow", | ||
className | ||
)} | ||
{...props} | ||
/> | ||
)) | ||
Card.displayName = "Card" | ||
|
||
const CardHeader = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn("flex flex-col space-y-1.5 p-6", className)} | ||
{...props} | ||
/> | ||
)) | ||
CardHeader.displayName = "CardHeader" | ||
|
||
const CardTitle = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn("font-semibold leading-none tracking-tight", className)} | ||
{...props} | ||
/> | ||
)) | ||
CardTitle.displayName = "CardTitle" | ||
|
||
const CardDescription = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn("text-sm text-muted-foreground", className)} | ||
{...props} | ||
/> | ||
)) | ||
CardDescription.displayName = "CardDescription" | ||
|
||
const CardContent = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} /> | ||
)) | ||
CardContent.displayName = "CardContent" | ||
|
||
const CardFooter = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn("flex items-center p-6 pt-0", className)} | ||
{...props} | ||
/> | ||
)) | ||
CardFooter.displayName = "CardFooter" | ||
|
||
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.