Skip to content

Commit b4ae26b

Browse files
committed
added top level journey and page banner links to main pages for item submissions
1 parent f01b938 commit b4ae26b

8 files changed

Lines changed: 315 additions & 8 deletions

File tree

app/community/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export default async function CommunityPage() {
4646
description="Share work, ask questions, and discover opportunities with fellow entrepreneurs"
4747
emoji="💬"
4848
themeColor="pink"
49+
actionLabel="Create Post"
50+
actionHref="#compose"
4951
/>
5052

5153
{/* Header */}

app/crowdfunding/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default async function CrowdfundingPage() {
3232
emoji="💸"
3333
themeColor="purple"
3434
actionLabel="Start a Campaign"
35+
actionHref="/submit/campaign"
3536
/>
3637

3738
{/* Header */}

app/launchpad/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default async function LaunchpadPage() {
4040
emoji="🚀"
4141
themeColor="sky"
4242
actionLabel="Submit Your Product"
43+
actionHref="/submit/product"
4344
/>
4445

4546
{/* Header */}
@@ -134,7 +135,9 @@ export default async function LaunchpadPage() {
134135
<Card>
135136
<CardContent className="p-8 text-center">
136137
<p className="text-muted-foreground">No launches today yet. Be the first!</p>
137-
<Button className="mt-4 bg-sky-500 hover:bg-sky-600 text-white">Submit Your Product</Button>
138+
<Link href="/submit/product">
139+
<Button className="mt-4 bg-sky-500 hover:bg-sky-600 text-white">Submit Your Product</Button>
140+
</Link>
138141
</CardContent>
139142
</Card>
140143
)}

app/marketplace/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ export default async function MarketplacePage() {
2424
description="Buy and sell profitable digital businesses with verified metrics"
2525
emoji="🛍️"
2626
themeColor="orange"
27+
actionLabel="List Your Business"
28+
actionHref="/submit/listing"
2729
/>
2830

2931
{/* Action Buttons */}

app/startups/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default async function StartupsPage() {
3232
emoji="📈"
3333
themeColor="indigo"
3434
actionLabel="Submit Your Startup"
35+
actionHref="/submit/startup"
3536
/>
3637

3738
{/* Header */}

components/animated/hero-section.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
"use client"
22

3+
import { useState } from "react"
34
import { motion } from "framer-motion"
45
import { Button } from "@/components/ui/button"
56
import { Badge } from "@/components/ui/badge"
67
import { Card, CardContent } from "@/components/ui/card"
78
import { ArrowRight } from "lucide-react"
89
import { FluentEmoji } from "@lobehub/fluent-emoji"
10+
import { GetStartedDialog } from "@/components/dialogs/get-started-dialog"
911

1012
const containerVariants = {
1113
hidden: { opacity: 0 },
@@ -72,6 +74,8 @@ const statsVariants = {
7274
}
7375

7476
export function HeroSection() {
77+
const [getStartedOpen, setGetStartedOpen] = useState(false)
78+
7579
return (
7680
<section
7781
className="border-b border-border -mt-14 pt-20 sm:pt-14 overflow-hidden relative"
@@ -267,7 +271,12 @@ export function HeroSection() {
267271
className="mt-6 sm:mt-8 flex flex-col sm:flex-row flex-wrap gap-3 sm:gap-4 justify-center lg:justify-start"
268272
variants={itemVariants}
269273
>
270-
<Button size="lg" variant="gradient" className="w-full sm:w-auto">
274+
<Button
275+
size="lg"
276+
variant="gradient"
277+
className="w-full sm:w-auto"
278+
onClick={() => setGetStartedOpen(true)}
279+
>
271280
Get Started
272281
<ArrowRight className="ml-2 h-4 w-4" />
273282
</Button>
@@ -444,6 +453,9 @@ export function HeroSection() {
444453
</motion.div>
445454
</motion.div>
446455
</div>
456+
457+
{/* Get Started Dialog */}
458+
<GetStartedDialog open={getStartedOpen} onOpenChange={setGetStartedOpen} />
447459
</section>
448460
)
449461
}

components/animated/page-banner.tsx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface PageBannerProps {
1010
emoji: string
1111
themeColor: ThemeName
1212
actionLabel?: string
13+
actionHref?: string
1314
onActionClick?: () => void
1415
}
1516

@@ -42,6 +43,7 @@ export function PageBanner({
4243
emoji,
4344
themeColor,
4445
actionLabel,
46+
actionHref,
4547
onActionClick,
4648
}: PageBannerProps) {
4749
const gradient = getThemeGradientHex(themeColor)
@@ -105,12 +107,21 @@ export function PageBanner({
105107

106108
{actionLabel && (
107109
<motion.div variants={itemVariants}>
108-
<button
109-
onClick={onActionClick}
110-
className="px-6 py-3 bg-white text-gray-900 font-semibold rounded-lg hover:bg-white/90 transition-colors shadow-lg"
111-
>
112-
{actionLabel}
113-
</button>
110+
{actionHref ? (
111+
<a
112+
href={actionHref}
113+
className="inline-block px-6 py-3 bg-white text-gray-900 font-semibold rounded-lg hover:bg-white/90 transition-colors shadow-lg"
114+
>
115+
{actionLabel}
116+
</a>
117+
) : (
118+
<button
119+
onClick={onActionClick}
120+
className="px-6 py-3 bg-white text-gray-900 font-semibold rounded-lg hover:bg-white/90 transition-colors shadow-lg"
121+
>
122+
{actionLabel}
123+
</button>
124+
)}
114125
</motion.div>
115126
)}
116127
</div>

0 commit comments

Comments
 (0)