Skip to content

Commit b1d0480

Browse files
committed
Update home page
1 parent 02dedae commit b1d0480

File tree

2 files changed

+121
-7
lines changed

2 files changed

+121
-7
lines changed

package-lock.json

+105
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/page.tsx

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Contributors } from '@/app/contributors'
22
import { StatsDisplay } from '@/app/stats-display'
33
import { TrackPage } from '@/components/track-page'
4+
import { Badge } from '@/components/ui/badge'
45
import { Button } from '@/components/ui/button'
56
import {
67
BarChartHorizontalBig,
@@ -11,9 +12,9 @@ import {
1112
Github,
1213
List,
1314
LucideIcon,
14-
Share,
1515
ShieldX,
1616
Users,
17+
Wand2,
1718
} from 'lucide-react'
1819
import Link from 'next/link'
1920
import { ReactNode } from 'react'
@@ -84,16 +85,17 @@ export default function HomePage() {
8485
name="Receipts"
8586
description="Attach receipt images to expenses."
8687
/>
88+
<Feature
89+
Icon={Wand2}
90+
name="AI Scan"
91+
description="Scan receipts to create expenses faster."
92+
beta
93+
/>
8794
<Feature
8895
Icon={Divide}
8996
name="Advanced split"
9097
description="Split expenses by percentage, shares or amount."
9198
/>
92-
<Feature
93-
Icon={Share}
94-
name="Share"
95-
description="Send the group link to participants."
96-
/>
9799
<Feature
98100
Icon={BarChartHorizontalBig}
99101
name="Balances"
@@ -157,13 +159,20 @@ function Feature({
157159
name,
158160
Icon,
159161
description,
162+
beta = false,
160163
}: {
161164
name: ReactNode
162165
Icon: LucideIcon
163166
description: ReactNode
167+
beta?: boolean
164168
}) {
165169
return (
166-
<div className="bg-card border rounded-md p-4 flex flex-col gap-2">
170+
<div className="bg-card border rounded-md p-4 flex flex-col gap-2 relative">
171+
{beta && (
172+
<Badge className="absolute top-4 right-4 bg-pink-700 hover:bg-pink-600 dark:bg-pink-500 dark:hover:bg-pink-600">
173+
Beta
174+
</Badge>
175+
)}
167176
<Icon className="w-8 h-8" />
168177
<div>
169178
<strong>{name}</strong>

0 commit comments

Comments
 (0)