Skip to content

Commit 6144151

Browse files
committed
Update defaults
1 parent a15919d commit 6144151

File tree

2 files changed

+38
-41
lines changed

2 files changed

+38
-41
lines changed

apps/dashboard/src/pages/project-showcase/[slug].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function DetailPageUI() {
8181
client: thirdwebClient,
8282
uri: project.image,
8383
}) ?? "")
84-
: project.image
84+
: (project.image ?? "/assets/showcase/abstract-w.png")
8585
}
8686
alt={`${project.title} Thumbnail`}
8787
layout="fill"

apps/dashboard/src/pages/project-showcase/index.tsx

Lines changed: 37 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client";
22

3+
import { AppFooter } from "@/components/blocks/app-footer";
34
import { Badge } from "@/components/ui/badge";
45
import { Button } from "@/components/ui/button";
56
import {
@@ -19,7 +20,6 @@ import {
1920
} from "@/components/ui/pagination";
2021
import { useThirdwebClient } from "@/constants/thirdweb.client";
2122
import { resolveSchemeWithErrorHandler } from "@/lib/resolveSchemeWithErrorHandler";
22-
import { ArrowRight } from "lucide-react";
2323
import Image from "next/image";
2424
import Link from "next/link";
2525
import { useState } from "react";
@@ -29,7 +29,6 @@ import {
2929
PROJECT_SHOWCASE_INDUSTRIES,
3030
PROJECT_SHOWCASE_ITEMS_PER_PAGE,
3131
} from "../../lib/project-showcase-constants";
32-
import { AppFooter } from "@/components/blocks/app-footer";
3332

3433
export function ProjectShowcaseUI() {
3534
const thirdwebClient = useThirdwebClient();
@@ -53,43 +52,43 @@ export function ProjectShowcaseUI() {
5352

5453
return (
5554
<div className="min-h-screen bg-background">
56-
<section className="w-full">
57-
<div className="container px-4 md:px-6">
58-
<div className="grid gap-6 lg:grid-cols-[1fr_400px] lg:gap-12 xl:grid-cols-[1fr_600px]">
59-
<div className="flex flex-col justify-center space-y-4">
60-
<div className="space-y-2">
61-
<h1 className="text-3xl font-bold tracking-tighter sm:text-5xl xl:text-6xl/none">
62-
Built on thirdweb
63-
</h1>
64-
<p className="max-w-[600px] md:text-3xl">
65-
Discover the latest web3 apps and games built on thirdweb.
66-
</p>
67-
</div>
68-
<div className="flex flex-col gap-2 min-[400px]:flex-row">
69-
<Link
70-
href="https://thirdweb.com/login"
71-
className="inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-8 text-sm font-medium text-gray-50 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:hover:bg-gray-50/90 dark:focus-visible:ring-gray-300"
72-
>
73-
Get Started
74-
</Link>
75-
<Link
76-
href="https://blog.thirdweb.com/case-studies/"
77-
className="inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium 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:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300"
78-
>
79-
View all case studies
80-
</Link>
55+
<section className="w-full">
56+
<div className="container px-4 md:px-6">
57+
<div className="grid gap-6 lg:grid-cols-[1fr_400px] lg:gap-12 xl:grid-cols-[1fr_600px]">
58+
<div className="flex flex-col justify-center space-y-4">
59+
<div className="space-y-2">
60+
<h1 className="text-3xl font-bold tracking-tighter sm:text-5xl xl:text-6xl/none">
61+
Built on thirdweb
62+
</h1>
63+
<p className="max-w-[600px] md:text-3xl">
64+
Discover the latest web3 apps and games built on thirdweb.
65+
</p>
66+
</div>
67+
<div className="flex flex-col gap-2 min-[400px]:flex-row">
68+
<Link
69+
href="https://thirdweb.com/login"
70+
className="inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-8 text-sm font-medium text-gray-50 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:hover:bg-gray-50/90 dark:focus-visible:ring-gray-300"
71+
>
72+
Get Started
73+
</Link>
74+
<Link
75+
href="https://blog.thirdweb.com/case-studies/"
76+
className="inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-white px-8 text-sm font-medium 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:hover:bg-gray-800 dark:hover:text-gray-50 dark:focus-visible:ring-gray-300"
77+
>
78+
View all case studies
79+
</Link>
80+
</div>
8181
</div>
82+
<Image
83+
alt="Hero"
84+
className="mx-auto overflow-hidden object-cover object-center sm:w-full lg:order-last"
85+
height="550"
86+
src="/assets/showcase/abstract-w.png"
87+
width="550"
88+
/>
8289
</div>
83-
<Image
84-
alt="Hero"
85-
className="mx-auto overflow-hidden object-cover object-center sm:w-full lg:order-last"
86-
height="550"
87-
src="/assets/showcase/abstract-w.png"
88-
width="550"
89-
/>
9090
</div>
91-
</div>
92-
</section>
91+
</section>
9392
<main className="container mx-auto px-4 py-12 md:px-6">
9493
<section>
9594
<div className="mb-8">
@@ -125,7 +124,7 @@ export function ProjectShowcaseUI() {
125124
client: thirdwebClient,
126125
uri: project.image,
127126
}) ?? "")
128-
: project.image
127+
: (project.image ?? "/assets/showcase/abstract-w.png")
129128
}
130129
alt={project.title}
131130
width={300}
@@ -203,13 +202,11 @@ export function ProjectShowcaseUI() {
203202
);
204203
}
205204

206-
207-
208205
export default function ProjectShowcasePage() {
209206
return (
210207
<ThirdwebProvider>
211208
<ProjectShowcaseUI />
212-
<AppFooter/>
209+
<AppFooter />
213210
</ThirdwebProvider>
214211
);
215212
}

0 commit comments

Comments
 (0)