(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{653:(e,s,r)=>{Promise.resolve().then(r.bind(r,9206))},9206:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>p});var l=r(5155),t=r(2115),a=r(4805),o=r(3890),i=r(4085),c=r(7072),n=r(2800);let d=(0,n.A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var m=r(853);let x=(0,n.A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),h=(0,n.A)("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);var g=r(8173),u=r.n(g);function p(){let[e,s]=(0,t.useState)([]),[r,n]=(0,t.useState)(!0),[g,p]=(0,t.useState)(null);return(0,t.useEffect)(()=>{(async function(){try{n(!0),p(null);let e=await (0,o.tx)(8);s(e)}catch(e){console.error("Error loading projects:",e),p(e instanceof Error?e.message:"Failed to load projects")}finally{n(!1)}})()},[]),(0,l.jsxs)("div",{className:"relative flex min-h-screen flex-col",children:[(0,l.jsx)("div",{className:"relative flex w-full flex-col items-center justify-center overflow-hidden bg-background pt-8 pb-16 md:pt-16 md:pb-32",children:(0,l.jsx)("div",{className:"mx-auto max-w-7xl w-full px-4 sm:px-6 lg:px-8",children:(0,l.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col items-center text-center",children:[(0,l.jsx)(c.A,{className:"h-10 w-10 text-yellow-500"}),(0,l.jsxs)("h1",{className:"mt-4 font-bungee text-4xl tracking-tight sm:text-6xl",children:["Show Me Your"," ",(0,l.jsx)("span",{className:"bg-gradient-to-r from-yellow-500 to-orange-500 bg-clip-text text-transparent",children:"Bolt"})]}),(0,l.jsx)("p",{className:"mt-4 text-lg leading-8 text-muted-foreground",children:"Discover amazing projects built with Bolt.new and share your own creations with the community."}),(0,l.jsxs)("div",{className:"mt-6 flex w-full flex-col sm:flex-row items-center justify-center gap-4",children:[(0,l.jsx)(i.$,{asChild:!0,size:"lg",className:"w-full sm:w-auto gap-2",children:(0,l.jsxs)(u(),{href:"/projects",children:["Browse Projects",(0,l.jsx)(d,{className:"h-4 w-4"})]})}),(0,l.jsx)(i.$,{asChild:!0,variant:"outline",size:"lg",className:"w-full sm:w-auto",children:(0,l.jsx)(u(),{href:"/submit",children:"Share Your Project"})})]})]})})}),(0,l.jsx)("div",{className:"w-full mt-8",children:(0,l.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,l.jsxs)("div",{className:"grid gap-4 sm:gap-6 md:gap-8 grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",children:[(0,l.jsxs)("div",{className:"group relative space-y-3 rounded-lg border bg-background/80 backdrop-blur-sm p-6 hover:border-yellow-500/50 transition-colors",children:[(0,l.jsx)("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-lg bg-gradient-to-br from-yellow-500/10 to-orange-500/10 group-hover:from-yellow-500/20 group-hover:to-orange-500/20",children:(0,l.jsx)(c.A,{className:"h-6 w-6 text-yellow-500"})}),(0,l.jsx)("h3",{className:"font-semibold leading-tight",children:"Share Your Bolt"}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Showcase your Bolt.new projects to the community and get feedback from other developers."})]}),(0,l.jsxs)("div",{className:"group relative space-y-3 rounded-lg border bg-background/80 backdrop-blur-sm p-6 hover:border-yellow-500/50 transition-colors",children:[(0,l.jsx)("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-lg bg-gradient-to-br from-yellow-500/10 to-orange-500/10 group-hover:from-yellow-500/20 group-hover:to-orange-500/20",children:(0,l.jsx)(m.A,{className:"h-6 w-6 text-yellow-500"})}),(0,l.jsx)("h3",{className:"font-semibold leading-tight",children:"Get Discovered"}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Increase visibility for your projects and reach developers looking for solutions like yours."})]}),(0,l.jsxs)("div",{className:"group relative space-y-3 rounded-lg border bg-background/80 backdrop-blur-sm p-6 hover:border-yellow-500/50 transition-colors",children:[(0,l.jsx)("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-lg bg-gradient-to-br from-yellow-500/10 to-orange-500/10 group-hover:from-yellow-500/20 group-hover:to-orange-500/20",children:(0,l.jsx)(x,{className:"h-6 w-6 text-yellow-500"})}),(0,l.jsx)("h3",{className:"font-semibold leading-tight",children:"Community Enablement"}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Connect with other Bolt.new developers, share knowledge, and grow together."})]}),(0,l.jsxs)("div",{className:"group relative space-y-3 rounded-lg border bg-background/80 backdrop-blur-sm p-6 hover:border-yellow-500/50 transition-colors",children:[(0,l.jsx)("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-lg bg-gradient-to-br from-yellow-500/10 to-orange-500/10 group-hover:from-yellow-500/20 group-hover:to-orange-500/20",children:(0,l.jsx)(h,{className:"h-6 w-6 text-yellow-500"})}),(0,l.jsx)("h3",{className:"font-semibold leading-tight",children:"Find Amazing Apps"}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Discover innovative projects and get inspired by what others are building with Bolt.new."})]})]})})}),(0,l.jsx)("div",{className:"w-full py-12 md:py-20",children:(0,l.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,l.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col items-center text-center",children:[(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("h2",{className:"text-3xl font-bold tracking-tight",children:"Featured Projects"}),(0,l.jsxs)("p",{className:"text-muted-foreground",children:["Check out these amazing projects from our community",(0,l.jsx)("br",{})]})]}),r?(0,l.jsx)("div",{className:"w-full grid gap-4 sm:gap-6 grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",children:[...Array(8)].map((e,s)=>(0,l.jsx)("div",{className:"h-[300px] animate-pulse rounded-lg bg-muted"},s))}):g?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold",children:g}),(0,l.jsx)("p",{className:"text-muted-foreground",children:"Please try again later."})]}):0===e.length?(0,l.jsx)("div",{className:"flex flex-col items-center justify-center space-y-4",children:(0,l.jsx)("p",{className:"text-muted-foreground",children:"No featured projects yet."})}):(0,l.jsx)("div",{className:"w-full grid gap-4 sm:gap-6 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",children:e.map(e=>(0,l.jsx)(a.U,{id:e.id,name:e.name,description:e.description,screenshot:e.screenshot,websiteUrl:e.websiteUrl||"",boltUrl:e.boltUrl,creatorName:e.creatorName,creatorSocial:e.creatorSocial},e.id))})]})})})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[992,606,540,120,216,96,426,441,517,358],()=>s(653)),_N_E=e.O()}]);