Skip to content

Commit 7082c71

Browse files
abdoutclaude
andcommitted
fix: restore original Announcement with Tailwind CSS styling
- Restored Tailwind CSS SVG logo - Original link styling with group hover underline - RTL support with ArrowLeft/ArrowRight Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5f2c780 commit 7082c71

1 file changed

Lines changed: 20 additions & 8 deletions

File tree

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
import Link from "next/link"
2-
import { ArrowRightIcon } from "lucide-react"
2+
import { ArrowRight, ArrowLeft } from "lucide-react"
33
import type { getDictionary } from "@/components/local/dictionaries"
4-
import { Badge } from "@/components/ui/badge"
54

65
interface AnnouncementProps {
76
dictionary?: Awaited<ReturnType<typeof getDictionary>>
87
}
98

109
export function Announcement({ dictionary }: AnnouncementProps) {
1110
return (
12-
<Badge asChild variant="secondary" className="bg-transparent">
13-
<Link href="/docs/changelog">
14-
<span className="flex size-2 rounded-full bg-blue-500" title="New" />
15-
{dictionary?.announcement?.text || "npx shadcn create"} <ArrowRightIcon />
16-
</Link>
17-
</Badge>
11+
<Link
12+
href="/docs/tailwind-v4"
13+
className="group mb-2 inline-flex items-center gap-2 px-0.5 text-sm font-medium"
14+
>
15+
<svg
16+
role="img"
17+
viewBox="0 0 24 24"
18+
xmlns="http://www.w3.org/2000/svg"
19+
className="h-4 w-4 fill-current"
20+
>
21+
<title>{dictionary?.announcement?.title || "Tailwind CSS"}</title>
22+
<path d="M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z" />
23+
</svg>
24+
<span className="underline-offset-4 group-hover:underline">
25+
{dictionary?.announcement?.tailwindV4 || "Get Started with Tailwind v4"}
26+
</span>
27+
<ArrowRight className="ms-1 h-4 w-4 rtl:hidden" />
28+
<ArrowLeft className="ms-1 h-4 w-4 hidden rtl:block" />
29+
</Link>
1830
)
1931
}

0 commit comments

Comments
 (0)