Use shadcn Button on HomePage for consistent styling with AssistantPage.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { Boxes, Plus, Sparkles, Video } from "lucide-react";
|
import { Boxes, Plus, Sparkles, Video } from "lucide-react";
|
||||||
import type { NavKey } from "@/components/layout/AppShell";
|
import type { NavKey } from "@/components/layout/AppShell";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
|
||||||
type HomePageProps = {
|
type HomePageProps = {
|
||||||
onNavigate: (key: NavKey) => void;
|
onNavigate: (key: NavKey) => void;
|
||||||
@@ -36,21 +37,19 @@ export function HomePage({ onNavigate }: HomePageProps) {
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="mt-8 flex gap-3">
|
<div className="mt-8 flex gap-3">
|
||||||
<button
|
<Button className="gap-2" onClick={() => onNavigate("assistant-prompt")}>
|
||||||
onClick={() => onNavigate("assistant-prompt")}
|
|
||||||
className="flex h-11 items-center gap-2 rounded-xl bg-blue-500 px-5 text-sm font-semibold text-white shadow-[0_8px_24px_rgba(29,123,255,.35)]"
|
|
||||||
>
|
|
||||||
<Plus size={17} />
|
<Plus size={17} />
|
||||||
创建助手
|
创建助手
|
||||||
</button>
|
</Button>
|
||||||
|
|
||||||
<button
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
className="gap-2 border-[#1b2233] bg-[#0f1521] text-[#9aa6bd] hover:bg-[#1b2233] hover:text-[#e9eef7]"
|
||||||
onClick={() => onNavigate("components")}
|
onClick={() => onNavigate("components")}
|
||||||
className="flex h-11 items-center gap-2 rounded-xl border border-[#1b2233] bg-[#0f1521] px-5 text-sm font-semibold text-[#9aa6bd]"
|
|
||||||
>
|
>
|
||||||
<Boxes size={17} />
|
<Boxes size={17} />
|
||||||
配置组件
|
配置组件
|
||||||
</button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user