Skip to content

Commit dce2032

Browse files
committed
fix(site): consistent layout across all pages
1 parent ba12dc6 commit dce2032

31 files changed

Lines changed: 68 additions & 58 deletions

File tree

apps/site/src/app/(index)/page.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,15 @@ export default function SiteHome() {
100100
fieldStrength={15.3}
101101
/>
102102
</div>
103-
<div className="content relative z-2 my-12 flex flex-col gap-8">
104-
<h1 className="text-6xl [font-variation-settings:'wght'_900,'wdth'_125] mb-0 text-center mt-0 font-sans-display text-foreground-neutral">
105-
Postgres, <br />
106-
perfectly managed.
107-
</h1>
103+
<div className="absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(180deg,var(--color-foreground-ppg)_0%,var(--color-background-default)_100%)] opacity-20" />
104+
<div className="content relative z-2 my-12 py-12 flex flex-col gap-8">
105+
<div className="flex flex-col gap-4 items-center text-center">
106+
107+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">
108+
Postgres, <br />
109+
perfectly managed.
110+
</h1>
111+
</div>
108112
<p className="text-center text-foreground-neutral max-w-2xl mx-auto">
109113
Real Postgres with the developer experience and infrastructure to
110114
ship faster.

apps/site/src/app/(prisma-with)/nextjs/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default async function Page({ params }: { params: Promise<{ slug: string
1919
})
2020
return (
2121
<div>
22-
<h1>{post?.title || 'Post not found'}</h1>
22+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">{post?.title || 'Post not found'}</h1>
2323
<p>{post?.content || 'No content available'}</p>
2424
</div>
2525
)

apps/site/src/app/(prisma-with)/react/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default async function UserList() {
1919
2020
return (
2121
<div>
22-
<h1>Users</h1>
22+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">Users</h1>
2323
<ul>
2424
{users.map((user) => (
2525
<li key={user.id}>{user.name} ({user.email})</li>
@@ -41,7 +41,7 @@ export default async function UsersPage() {
4141
const users = await prisma.user.findMany()
4242
return (
4343
<div>
44-
<h1>Users</h1>
44+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">Users</h1>
4545
<ul>{users.map((user) => <li key={user.id}>{user.name}</li>)}</ul>
4646
</div>
4747
)

apps/site/src/app/about/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export default function About() {
337337
return (
338338
<main className="flex-1 w-full z-1 bg-background-default">
339339
<div className="hero -mt-24 relative flex items-end justify-center px-4 pb-40 pt-30">
340-
<div className="absolute inset-0 z-1 bg-[linear-gradient(180deg,transparent_0%,var(--color-background-default)_150%)]" />
340+
<div className="absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(180deg,transparent_0%,var(--color-background-default)_150%)]" />
341341
<div className="w-screen absolute inset-0 z-0">
342342
<Image
343343
src="/illustrations/about/hero_bg.svg"
@@ -355,7 +355,7 @@ export default function About() {
355355
/>
356356
</div>
357357
<div className="content relative z-2 my-12 flex flex-col gap-8 mt-30 py-12">
358-
<h1 className="text-6xl [font-variation-settings:'wght'_900,'wdth'_125] mb-0 text-center mt-0 font-sans-display text-foreground-neutral">
358+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">
359359
Join Prisma
360360
</h1>
361361
<p className="text-center text-foreground-neutral max-w-2xl mx-auto mb-12">
@@ -388,7 +388,7 @@ export default function About() {
388388
</div>
389389
</div>
390390
<div className="py-12 px-4 relative">
391-
<div className="absolute inset-0 z-0 bg-[linear-gradient(0deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
391+
<div className="absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(0deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
392392
<div className="max-w-[1200px] w-full p-4 mx-auto">
393393
<h2 className="relative z-1 text-center m-0 mb-4 text-4xl md:text-[36px] font-black text-foreground-neutral font-sans-display stretch-display">
394394
Our Investors
@@ -439,7 +439,7 @@ export default function About() {
439439
</div>
440440
</div>
441441
<div className="py-12 px-4 relative">
442-
<div className="absolute inset-0 z-0 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
442+
<div className="absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
443443
<div className="max-w-[1200px] w-full p-4 mx-auto relative z-1">
444444
<Card className="p-12 flex-row justify-around bg-background-default border-none flex-wrap">
445445
<a

apps/site/src/app/careers/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default function Careers() {
201201
/>
202202
</div>
203203
<div className="content relative z-2 my-12 flex flex-col gap-8 mt-30 py-12">
204-
<h1 className="text-6xl [font-variation-settings:'wght'_900,'wdth'_125] mb-0 text-center mt-0 font-sans-display text-foreground-neutral">
204+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">
205205
Join Prisma
206206
</h1>
207207
<p className="text-center text-foreground-neutral max-w-2xl mx-auto">
@@ -222,7 +222,7 @@ export default function Careers() {
222222
</div>
223223

224224
<div className="py-12 relative px-4 ">
225-
<div className="absolute inset-0 z-0 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
225+
<div className="absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
226226
<div className="z-1 relative">
227227
<StatsList statsList={statsList} />
228228
</div>
@@ -232,7 +232,7 @@ export default function Careers() {
232232
</div>
233233
<div className="py-12 px-4 relative">
234234
<div className="max-w-[1200px] w-full mx-auto">
235-
<div className="absolute inset-0 z-0 bg-[linear-gradient(0deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
235+
<div className="absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(0deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
236236
<h2 className="relative z-1 text-center m-0 mb-4 text-4xl md:text-[36px] font-black text-foreground-neutral font-sans-display stretch-display">
237237
Why Prisma?
238238
</h2>
@@ -242,7 +242,7 @@ export default function Careers() {
242242
</div>
243243
</div>
244244
<div className="py-12 px-4 relative">
245-
<div className="absolute inset-0 z-0 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
245+
<div className="absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
246246
<div className="max-w-[1200px] w-full mx-auto flex flex-col gap-8 relative z-1">
247247
<section className="py-16 px-4">
248248
<div className="max-w-[1200px] mx-auto flex-col flex gap-8">

apps/site/src/app/changelog/[...slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default async function ReleaseNotesPage({
4646
>
4747
← Back to Changelog
4848
</Link>
49-
<h1 className="mt-3 mb-8 font-bold max-md:text-3xl md:text-5xl stretch-display font-sans-display text-foreground-neutral">
49+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">
5050
{page.data.title}
5151
</h1>
5252
<div className="text-sm flex gap-2 items-center text-foreground-neutral mb-4">

apps/site/src/app/changelog/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default async function ChangelogPage() {
3434
<i className="fa-regular fa-sparkles" aria-hidden />
3535
Changelog
3636
</p>
37-
<h1 className="stretch-display text-4xl font-bold mb-2 landing-h1 text-center mt-9 font-sans-display">
37+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">
3838
The Latest News from Prisma
3939
</h1>
4040
<p className="m-0 max-w-[640px] mx-auto text-center text-base text-foreground-neutral-weak md:text-lg">

apps/site/src/app/client/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ export default function Client() {
177177
return (
178178
<main className="flex-1 w-screen bg-background-default">
179179
<div className="hero relative w-full -mt-33 pt-70 pb-8 flex flex-col gap-8 px-4">
180-
<div className="bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] absolute inset-0 z-0 overflow-hidden opacity-20" />
180+
<div className="absolute inset-0 pointer-events-none z-1 overflow-hidden bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
181181
<div className="flex flex-col gap-4 relative z-1">
182182
<h5 className="stretch-display font-sans-display mx-auto w-fit my-0 text-foreground-orm-strong uppercase">
183183
Prisma Client
184184
</h5>
185-
<h1 className="stretch-display text-6xl font-bold text-center font-sans-display z-2 relative max-w-223 mx-auto">
185+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">
186186
Intuitive database client for TypeScript and Node.js
187187
<br />
188188
Database Migrations

apps/site/src/app/community/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ export default function CommunityPage() {
128128
<main className="flex-1 w-full -mt-24 bg-background-default text-foreground-neutral">
129129
{/* Hero */}
130130
<section className="relative overflow-hidden px-4 pt-36 pb-12 md:pb-16">
131-
<div className="absolute inset-0 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
131+
<div className="absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
132132
<div className="relative z-1 mx-auto flex w-full max-w-[720px] flex-col items-center gap-6 text-center">
133133
<p className="m-0 flex items-center justify-center gap-2 text-base font-semibold uppercase tracking-[1.6px] text-foreground-orm-strong font-sans">
134134
<i className="fa-regular fa-users" aria-hidden />
135135
Community
136136
</p>
137-
<h1 className="m-0 text-foreground-neutral text-4xl md:text-5xl font-sans-display [font-variation-settings:'wght'_900]">
137+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">
138138
Join the Prisma Community
139139
</h1>
140140
<p className="m-0 text-lg text-foreground-neutral-weak max-w-[560px]">

apps/site/src/app/ecosystem/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ export default function SiteHome() {
6767
return (
6868
<main className="flex-1 w-full z-1 bg-background-default">
6969
<div className="hero -mt-24 flex items-end justify-center px-4 relative pt-24">
70-
<div className="absolute inset-0 z-0 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
70+
<div className="absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
7171
<div className="content pt-31 relative z-2 my-12 flex flex-col gap-8">
72-
<h1 className="text-6xl [font-variation-settings:'wght'_900,'wdth'_125] mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-200 mx-auto">
72+
<h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">
7373
Prisma Ecosystem
7474
</h1>
7575
<p className="text-center text-foreground-neutral max-w-2xl mx-auto">

0 commit comments

Comments
 (0)