Skip to content

Commit 4ec2aa8

Browse files
authored
Project showcase patches (#5178)
1 parent 63bbb4c commit 4ec2aa8

File tree

2 files changed

+54
-17
lines changed

2 files changed

+54
-17
lines changed

apps/dashboard/src/app/(dashboard)/project-showcase/[slug]/page.tsx renamed to apps/dashboard/src/app/project-showcase/[slug]/page.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import { ExternalLink, FileText } from "lucide-react";
2-
import Image from "next/image";
32
import Link from "next/link";
4-
import { Badge } from "../../../../@/components/ui/badge";
5-
import { Button } from "../../../../@/components/ui/button";
3+
import { Badge } from "../../../@/components/ui/badge";
4+
import { Button } from "../../../@/components/ui/button";
65
import {
76
Card,
87
CardContent,
98
CardFooter,
109
CardHeader,
1110
CardTitle,
12-
} from "../../../../@/components/ui/card";
13-
import { getThirdwebClient } from "../../../../@/constants/thirdweb.server";
14-
import { resolveSchemeWithErrorHandler } from "../../../../@/lib/resolveSchemeWithErrorHandler";
15-
import { PROJECT_SHOWCASE_DATA } from "../../../../lib/project-showcase-constants";
11+
} from "../../../@/components/ui/card";
12+
import { getThirdwebClient } from "../../../@/constants/thirdweb.server";
13+
import { resolveSchemeWithErrorHandler } from "../../../@/lib/resolveSchemeWithErrorHandler";
14+
import { PROJECT_SHOWCASE_DATA } from "../../../lib/project-showcase-constants";
1615

1716
export default async function DetailPage({
1817
params,
@@ -72,7 +71,8 @@ export default async function DetailPage({
7271
</div>
7372
<div className="md:w-1/2">
7473
<div className="relative aspect-video h-full w-full md:aspect-square">
75-
<Image
74+
{/* eslint-disable @next/next/no-img-element */}
75+
<img
7676
src={
7777
project.image?.startsWith("ipfs://")
7878
? (resolveSchemeWithErrorHandler({

apps/dashboard/src/app/(dashboard)/project-showcase/page.tsx renamed to apps/dashboard/src/app/project-showcase/page.tsx

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
import type { Metadata } from "next";
22
import Image from "next/image";
33
import Link from "next/link";
4-
import { Badge } from "../../../@/components/ui/badge";
4+
import { Badge } from "../../@/components/ui/badge";
55
import {
66
Card,
77
CardContent,
88
CardDescription,
99
CardHeader,
1010
CardTitle,
11-
} from "../../../@/components/ui/card";
11+
} from "../../@/components/ui/card";
1212
import {
1313
Pagination,
1414
PaginationContent,
1515
PaginationItem,
1616
PaginationLink,
1717
PaginationNext,
1818
PaginationPrevious,
19-
} from "../../../@/components/ui/pagination";
20-
import { getThirdwebClient } from "../../../@/constants/thirdweb.server";
21-
import { resolveSchemeWithErrorHandler } from "../../../@/lib/resolveSchemeWithErrorHandler";
19+
} from "../../@/components/ui/pagination";
20+
import { getThirdwebClient } from "../../@/constants/thirdweb.server";
21+
import { resolveSchemeWithErrorHandler } from "../../@/lib/resolveSchemeWithErrorHandler";
2222
import {
2323
PROJECT_SHOWCASE_DATA,
2424
PROJECT_SHOWCASE_INDUSTRIES,
2525
PROJECT_SHOWCASE_ITEMS_PER_PAGE,
26-
} from "../../../lib/project-showcase-constants";
27-
import { getAbsoluteUrl } from "../../../lib/vercel-utils";
26+
} from "../../lib/project-showcase-constants";
27+
import { getAbsoluteUrl } from "../../lib/vercel-utils";
2828

2929
export const metadata: Metadata = {
3030
title: "Project Showcase | Built on thirdweb",
@@ -69,7 +69,43 @@ export default function ProjectShowcasePage({
6969

7070
return (
7171
<div className="min-h-screen bg-background">
72-
<section className="w-full">{/* Hero section content */}</section>
72+
<section className="w-full">
73+
<div className="container px-4 md:px-6">
74+
<div className="grid gap-6 lg:grid-cols-[1fr_400px] lg:gap-12 xl:grid-cols-[1fr_600px]">
75+
<div className="flex flex-col justify-center space-y-4">
76+
<div className="space-y-2">
77+
<h1 className="font-bold text-3xl tracking-tighter sm:text-5xl xl:text-6xl/none">
78+
Built on thirdweb
79+
</h1>
80+
<p className="max-w-[600px] md:text-3xl">
81+
Discover the latest web3 apps and games built on thirdweb.
82+
</p>
83+
</div>
84+
<div className="flex flex-col gap-2 min-[400px]:flex-row">
85+
<Link
86+
href="https://thirdweb.com/login"
87+
className="inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-8 font-medium text-gray-50 text-sm shadow transition-colors hover:bg-gray-900/90 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 disabled:pointer-events-none disabled:opacity-50 dark:bg-gray-50 dark:text-gray-900 dark:focus-visible:ring-gray-300 dark:hover:bg-gray-50/90"
88+
>
89+
Get Started
90+
</Link>
91+
<Link
92+
href="https://blog.thirdweb.com/case-studies/"
93+
className="inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-white px-8 font-medium text-sm shadow-sm transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 disabled:pointer-events-none disabled:opacity-50 dark:border-gray-800 dark:bg-gray-950 dark:focus-visible:ring-gray-300 dark:hover:bg-gray-800 dark:hover:text-gray-50"
94+
>
95+
View all case studies
96+
</Link>
97+
</div>
98+
</div>
99+
<Image
100+
alt="Hero"
101+
className="mx-auto overflow-hidden object-cover object-center sm:w-full lg:order-last"
102+
height="550"
103+
src="/assets/showcase/abstract-w.png"
104+
width="550"
105+
/>
106+
</div>
107+
</div>
108+
</section>
73109
<main className="container mx-auto px-4 py-12 md:px-6">
74110
<section>
75111
<div className="mb-8">
@@ -97,7 +133,8 @@ export default function ProjectShowcasePage({
97133
className="block"
98134
>
99135
<Card className="flex h-full cursor-pointer flex-col overflow-hidden transition-shadow hover:shadow-lg">
100-
<Image
136+
{/* eslint-disable @next/next/no-img-element */}
137+
<img
101138
src={
102139
project.image?.startsWith("ipfs://")
103140
? (resolveSchemeWithErrorHandler({

0 commit comments

Comments
 (0)