Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/blog/src/app/(blog)/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Badge, InlineTOC, Separator } from "@prisma/eclipse";
import { JsonLd } from "@prisma-docs/ui/components/json-ld";
import { FooterNewsletterForm } from "@prisma-docs/ui/components/newsletter";
import { BlogShare } from "@/components/BlogShare";
import { BlogCTA } from "@/components/BlogCTA";
import { AuthorAvatarGroup } from "@/components/AuthorAvatarGroup";
import { SeriesBanner } from "@/components/SeriesBanner";
import { SeriesMarker } from "@/components/SeriesMarker";
Expand Down Expand Up @@ -259,6 +260,9 @@ export default async function Page(props: { params: Promise<{ slug: string }> })
) : null}
<Separator className="my-12" />

{/* Conversion CTA */}
<BlogCTA />

{/* Share Container */}
<BlogShare desc={page.data.metaDescription as string} />

Expand Down
27 changes: 27 additions & 0 deletions apps/blog/src/components/BlogCTA.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Button } from "@prisma/eclipse";

const CTA_HREF = "https://pris.ly/pdp?utm_source=blog&utm_medium=blog_cta&utm_campaign=blog_post";

export const BlogCTA = () => {
return (
<div className="relative mb-12 overflow-hidden rounded-2xl border border-background-neutral shadow-box-low">
<div className="pointer-events-none absolute inset-0 bg-radial from-background-ppg-reverse/20 from-0% to-background-default to-70%" />
<div className="relative z-1 flex flex-col items-center gap-6 px-6 py-14 text-center">
<div className="flex flex-col items-center gap-2">
<h3 className="font-family-display font-[650] text-2xl text-foreground-neutral m-0">
Build your next app with Prisma
</h3>
<p className="text-foreground-neutral-weak m-0 max-w-md">
Start free. Scale when you&rsquo;re ready.
</p>
</div>
<Button asChild variant="ppg" size="2xl">
<a href={CTA_HREF}>
<span>Try Prisma</span>
<i className="fa-regular fa-arrow-right" aria-hidden />
</a>
</Button>
</div>
</div>
);
};
Loading