Skip to content

Commit 1f77c11

Browse files
committed
feat: add lucide-react dependency and update HomePage component
- Add lucide-react library for icon usage in the project - Refactor HomePage component to use Button component with icons - Enhance user interface with improved button design and functionality
1 parent 323f379 commit 1f77c11

File tree

3 files changed

+31
-17
lines changed

3 files changed

+31
-17
lines changed

app/(home)/page.tsx

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { BookCheckIcon, BugPlayIcon, WebhookIcon } from 'lucide-react';
12
import Link from 'next/link';
23

34
export default function HomePage() {
@@ -8,25 +9,25 @@ export default function HomePage() {
89
This is the MultiPost documentation center, where you can find all the information and usage guides about MultiPost.
910
</p>
1011
<div className="flex flex-col sm:flex-row gap-4">
11-
<Link
12-
href="/docs/user-guide"
13-
className="px-6 py-3 bg-fd-primary text-fd-primary-foreground rounded-md font-medium hover:bg-fd-primary/90 transition-colors"
14-
>
15-
User Guide
16-
</Link>
17-
<Link
18-
href="https://api-docs.multipost.app/"
19-
className="px-6 py-3 bg-fd-primary text-fd-primary-foreground rounded-md font-medium hover:bg-fd-primary/90 transition-colors"
20-
>
21-
API Reference
22-
</Link>
23-
<Link
24-
href="/docs/development"
25-
className="px-6 py-3 bg-fd-primary text-fd-primary-foreground rounded-md font-medium hover:bg-fd-primary/90 transition-colors"
26-
>
12+
<Button href="/docs/user-guide" icon={<BookCheckIcon />}>
13+
User Guide
14+
</Button>
15+
<Button href="https://api-docs.multipost.app/" icon={<WebhookIcon />}>
16+
API Reference
17+
</Button>
18+
<Button href="/docs/development" icon={<BugPlayIcon />}>
2719
Development
28-
</Link>
20+
</Button>
2921
</div>
3022
</main>
3123
);
3224
}
25+
26+
const Button = ({ children, icon, href }: { children: React.ReactNode, icon: React.ReactNode, href: string }) => {
27+
return (
28+
<Link href={href} className="flex items-center gap-2 px-6 py-3 bg-fd-primary text-fd-primary-foreground rounded-md font-medium hover:bg-fd-primary/90 transition-colors">
29+
{icon}
30+
{children}
31+
</Link>
32+
);
33+
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"fumadocs-mdx": "11.5.8",
1414
"fumadocs-openapi": "^7.0.13",
1515
"fumadocs-ui": "15.2.5",
16+
"lucide-react": "^0.488.0",
1617
"next": "15.2.4",
1718
"react": "^19.1.0",
1819
"react-dom": "^19.1.0",

pnpm-lock.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)