mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
* sign up copy nits * first pass at new onboarding page * wip join onboard logic * refactor auth provider fetch logic * add member approval and invite link flag logic * update join request flow and remove jit logic * onboard guard * nits, onboard role check, invite link enabled check * fix bg color issue in onboarding page * refactor onboard UI * ui nits and more onboarding resource cards * revamp auth docs * change member approval default behavior and updated docs * merge prisma migrations * add id to resource card * feedback * feedback * feedback and fixed build * settings drop down UI nit * ui nits * handle join when max capacity case * add news data for member toggle * refactor for public access case * add iap bridge to onboard logic * fetch member approval req and invite link enabled flag on server * ui nits * fix invite link enable toggle snapping issue * ui nits * styling and ui nits, pass in invite id from server * add mcp resource in onboard step * get invite link in server * fix build issue * refactor docs on config * minor doc nit
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
"use client"
|
|
|
|
import { ExternalLink } from "lucide-react"
|
|
import Link from "next/link"
|
|
|
|
import { Button } from "@/components/ui/button"
|
|
import { Card, CardContent } from "@/components/ui/card"
|
|
import useCaptureEvent from "@/hooks/useCaptureEvent"
|
|
|
|
export default function DemoCard() {
|
|
const captureEvent = useCaptureEvent();
|
|
|
|
return (
|
|
<Card className="mb-6 w-full border bg-card text-card-foreground">
|
|
<CardContent className="p-4">
|
|
<div className="flex flex-col space-y-4">
|
|
<div className="flex items-center justify-between">
|
|
<div className="space-y-1">
|
|
<h3 className="text-sm font-medium">New to Sourcebot?</h3>
|
|
<p className="text-xs text-muted-foreground">Try our public demo before creating an account</p>
|
|
</div>
|
|
|
|
<Button asChild variant="outline" size="sm" className="h-8 text-xs">
|
|
<Link
|
|
href="https://demo.sourcebot.dev"
|
|
target="_blank"
|
|
className="flex items-center gap-1.5"
|
|
onClick={() => captureEvent('wa_demo_card_click', {})}
|
|
>
|
|
Try demo
|
|
<ExternalLink className="h-3.5 w-3.5" />
|
|
</Link>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|