forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbanners.tsx
More file actions
82 lines (75 loc) · 3.55 KB
/
Copy pathbanners.tsx
File metadata and controls
82 lines (75 loc) · 3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
"use client";
import { Banner } from "fumadocs-ui/components/banner";
import Link from "next/link";
import { PaintbrushIcon } from "lucide-react";
import { PiGraph } from "react-icons/pi";
import { SiCrewai } from "@icons-pack/react-simple-icons";
import { Sparkles } from "lucide-react";
export function Banners() {
return (
<>
<V150Banner />
</>
)
}
export function NewLookAndFeelBanner() {
return (
<Banner className="w-full text-white gap-2 bg-indigo-500 dark:bg-indigo-900 h-2!" variant="rainbow" id="new-look-and-feel-banner">
<PaintbrushIcon className="w-5 h-5" />
<p>
We are launching a new default look and feel!
Checkout the <span className="underline"><Link href="/troubleshooting/migrate-to-1.8.2"> migration guide </Link></span> to learn more.
</p>
</Banner>
)
}
export function CoagentsCrewAnnouncementBanner() {
return (
<Banner className="w-full text-white gap-2 bg-indigo-500 dark:bg-indigo-900" variant="rainbow" id="coagents-crew-announcement-banner">
<SiCrewai className="w-5 h-5 inline mb-1" /> CrewAI support is here! Checkout the <Link href="/crewai-crews" className="underline">Crew</Link> and <Link href="/crewai-flows" className="underline">Flow</Link> documentation.
</Banner>
)
}
export function ModelContextProtocolBanner() {
return (
<Banner className="w-full text-white bg-indigo-500 dark:bg-indigo-900 h-24 sm:h-14 !important" variant="rainbow" id="model-context-protocol-banner">
<p className="w-3/4">
<PiGraph className="w-5 h-5 inline mr-2" /> Model Context Protocol (MCP) support is here! Try it out <Link href="/direct-to-llm/guides/model-context-protocol" className="underline">here</Link>. Register to our<Link href="https://go.copilotkit.ai/webinarMastra" target="_blank" className="underline ml-1">webinar</Link> for a walkthrough.
</p>
</Banner>
)
}
export function AGUIBanner() {
return (
<Banner className="w-full text-white bg-indigo-500 dark:bg-indigo-900 h-24 sm:h-14 !important" variant="rainbow" id="agui-banner">
<p className="w-3/4">
CopilotKit and our framework partners have launched the AG-UI protocol for agent-user interaction! <Link href="/ag-ui-protocol" target="_blank" className="underline" rel="noopener noreferrer">Learn more</Link>.
</p>
</Banner>
)
}
export function V150Banner() {
return (
<Banner className="w-full text-white bg-gradient-to-r from-indigo-600 to-purple-600 dark:from-indigo-800 dark:to-purple-800 py-2 md:py-3" variant="rainbow" id="v150-banner">
<div className="flex flex-row items-center justify-center gap-1.5 md:gap-3 w-full px-1 md:px-4">
<div className="flex items-center gap-1.5 md:gap-2 flex-shrink min-w-0 text-white/80">
<Sparkles className="w-5 h-5 hidden md:block flex-shrink-0" />
{/* Short text for mobile (below 768px) */}
<p className="text-xs md:text-base font-normal md:hidden">
CopilotKit 1.50 is available!
</p>
{/* Full text for desktop (768px and above) */}
<p className="text-sm sm:text-base font-normal hidden md:block">
CopilotKit 1.50 is available, featuring threads, no GraphQL, new interfaces, and more!
</p>
</div>
<Link
href="/whats-new/v1-50"
className="px-2 py-0.5 md:px-6 md:py-1 bg-white/50 text-white hover:bg-gray-100 rounded-lg text-xs md:text-base font-normal transition-colors whitespace-nowrap flex-shrink-0 shadow-md"
>
See What's New
</Link>
</div>
</Banner>
)
}