|
| 1 | +import { EcosystemGrid } from "@/components/ecosystem/grid"; |
| 2 | +import Antigravity from "../../components/homepage/antigravity"; |
| 3 | +import type { Metadata } from "next"; |
| 4 | +import { |
| 5 | + SITE_HOME_DESCRIPTION, |
| 6 | + SITE_HOME_TITLE, |
| 7 | +} from "../../lib/blog-metadata"; |
| 8 | +import { Button } from "@prisma/eclipse"; |
| 9 | +import { CopyCode } from "@/components/homepage/copy-btn"; |
| 10 | +import LogoParade from "@prisma-docs/ui/components/logo-parade"; |
| 11 | +import React from "react"; |
| 12 | +import { Bento } from "@/components/homepage/bento"; |
| 13 | +import { CardSection } from "@/components/homepage/card-section/card-section"; |
| 14 | +import review from "../../data/homepage.json"; |
| 15 | +import Testimonials from "../../components/homepage/testimonials"; |
| 16 | + |
| 17 | +const twoCol = [ |
| 18 | + { |
| 19 | + content: ( |
| 20 | + <> |
| 21 | + <h2 className="text-foreground-neutral stretch-display text-4xl font-black! font-sans-display mt-0 mb-4"> |
| 22 | + Postgres that <br /> fits your stack. |
| 23 | + </h2> |
| 24 | + <p className="text-foreground-neutral-weak! text-base"> |
| 25 | + Works with your existing stack, wherever you deploy.Your choice of |
| 26 | + ORM, frameworks, and tools, they all just connect. |
| 27 | + </p> |
| 28 | + </> |
| 29 | + ), |
| 30 | + imageUrl: null, |
| 31 | + imageAlt: null, |
| 32 | + mobileImageUrl: null, |
| 33 | + mobileImageAlt: null, |
| 34 | + logos: null, |
| 35 | + useDefaultLogos: true, |
| 36 | + visualPosition: "right" as const, |
| 37 | + visualType: "logoGrid" as const, |
| 38 | + }, |
| 39 | + { |
| 40 | + content: ( |
| 41 | + <> |
| 42 | + <h2 className="text-foreground-neutral stretch-display text-4xl font-black! font-sans-display mt-0 mb-4"> |
| 43 | + Real Postgres. <br /> Better experience. |
| 44 | + </h2> |
| 45 | + <p className="text-foreground-neutral-weak! text-base"> |
| 46 | + The PostgreSQL millions know and trust in production, ready in seconds |
| 47 | + with zero configuration. Automatic backups, observability and |
| 48 | + compliance. |
| 49 | + </p> |
| 50 | + </> |
| 51 | + ), |
| 52 | + imageUrl: "/illustrations/homepage/real_ppg", |
| 53 | + imageAlt: "Real Postgres", |
| 54 | + mobileImageUrl: "/illustrations/homepage/real_ppg_mobile", |
| 55 | + mobileImageAlt: "Real PPG mobile", |
| 56 | + logos: null, |
| 57 | + useDefaultLogos: false, |
| 58 | + visualPosition: "left" as const, |
| 59 | + visualType: "image" as const, |
| 60 | + }, |
| 61 | +]; |
| 62 | +export const metadata: Metadata = { |
| 63 | + title: SITE_HOME_TITLE, |
| 64 | + description: SITE_HOME_DESCRIPTION, |
| 65 | +}; |
| 66 | + |
| 67 | +export default function SiteHome() { |
| 68 | + return ( |
| 69 | + <main className="flex-1 w-full z-1 bg-background-default"> |
| 70 | + <div className="hero -mt-24 flex items-end justify-center px-4 relative"> |
| 71 | + <div className="absolute inset-0 z-0 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" /> |
| 72 | + <div className="content pt-31 relative z-2 my-12 flex flex-col gap-8"> |
| 73 | + <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"> |
| 74 | + Prisma Ecosystem |
| 75 | + </h1> |
| 76 | + <p className="text-center text-foreground-neutral max-w-2xl mx-auto"> |
| 77 | + Explore the wide variety of tools created by our amazing community. |
| 78 | + </p> |
| 79 | + <div className="flex flex-col md:flex-row gap-4 items-center justify-center"> |
| 80 | + <Button |
| 81 | + variant="orm" |
| 82 | + href="https://pris.ly/submit-your-package" |
| 83 | + size="3xl" |
| 84 | + target="_blank" |
| 85 | + rel="noopener noreferrer" |
| 86 | + className="font-sans-display! font-[650]" |
| 87 | + > |
| 88 | + <span>Submit your package</span> |
| 89 | + <i className="fa-regular fa-envelope ml-2" /> |
| 90 | + </Button> |
| 91 | + </div> |
| 92 | + </div> |
| 93 | + </div> |
| 94 | + <div className="my-12 px-4"> |
| 95 | + <div className="py-12 flex flex-col gap-6 max-w-[1200px] mx-auto"> |
| 96 | + <h2 className="text-foreground-neutral stretch-display text-center text-4xl font-black! font-sans-display my-0"> |
| 97 | + Dedicated ORM support options |
| 98 | + </h2> |
| 99 | + <p className="text-center text-foreground-neutral max-w-xl mx-auto"> |
| 100 | + Focus on core competencies of your team, rather than building and |
| 101 | + managing complex infrastructure components. |
| 102 | + </p> |
| 103 | + <EcosystemGrid /> |
| 104 | + </div> |
| 105 | + </div> |
| 106 | + </main> |
| 107 | + ); |
| 108 | +} |
0 commit comments