Skip to content

Commit

Permalink
feat: improve project hero in project landing
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed Apr 16, 2024
1 parent c6f4e6e commit eb55129
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
13 changes: 11 additions & 2 deletions apps/webapp/components/routes/project/project-data-card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Project, ProjectWithAuction } from '@/lib/projects'
import { AuctionInfo } from '../auction/auction-info'
import { Button } from '@/components/ui/button'
import { Button, buttonVariants } from '@/components/ui/button'
import { cn } from '@/lib/utils'

export function ProjectDataCard({ project }: { project: Project }) {
return (
Expand All @@ -17,7 +18,15 @@ export function ProjectDataCard({ project }: { project: Project }) {

<AuctionInfo project={project as ProjectWithAuction} />

<Button className="mt-5 border border-solid border-white/50">
<Button
className={cn(
buttonVariants({
variant: 'outline',
radius: 'full'
}),
'mx-auto mt-5 border border-solid border-accent bg-background px-10 py-5'
)}
>
Register for Presale
</Button>
</div>
Expand Down
2 changes: 0 additions & 2 deletions apps/webapp/components/routes/project/project-header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Image from 'next/image'
import { Project } from '@/lib/projects'
import { ProjectDataCard } from './project-data-card'
import { ProjectShare } from './project-share'

export function ProjectHeader({ project }: { project: Project }) {
return (
Expand All @@ -16,7 +15,6 @@ export function ProjectHeader({ project }: { project: Project }) {
/>
<div className="relative z-10 flex justify-between">
<ProjectDataCard project={project} />
<ProjectShare project={project} />
</div>
</div>
</header>
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/smartsale-db/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { PrismaClient } from "../prisma/client";

export const db = new PrismaClient({});

// 2303
// 2033

0 comments on commit eb55129

Please sign in to comment.