mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## Description This PR ensures that the default prettier config is used for examples and templates. This config is compatible with `prettier@3` as well (upgrading prettier is bigger change that can be a future PR). ## Changes - Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will be needed upgrading to prettier@3) - Added `examples/.prettierrc.json` with default config (this will change every example) - Added `packages/create-next-app/templates/.prettierrc.json` with default config (this will change every template) ## Related - Fixes #54402 - Closes #54409
87 lines
3.1 KiB
TypeScript
87 lines
3.1 KiB
TypeScript
import type { NextPage } from "next";
|
|
import Head from "next/head";
|
|
import Image from "next/image";
|
|
|
|
const Home: NextPage = () => {
|
|
return (
|
|
<div className="flex min-h-screen flex-col items-center justify-center py-2">
|
|
<Head>
|
|
<title>Create Next App</title>
|
|
<link rel="icon" href="/favicon.ico" />
|
|
</Head>
|
|
|
|
<main className="flex w-full flex-1 flex-col items-center justify-center px-20 text-center">
|
|
<h1 className="text-6xl font-bold">
|
|
Welcome to{" "}
|
|
<a className="text-blue-600" href="https://nextjs.org">
|
|
Next.js!
|
|
</a>
|
|
</h1>
|
|
|
|
<p className="mt-3 text-2xl">
|
|
Get started by editing{" "}
|
|
<code className="rounded-md bg-gray-100 p-3 font-mono text-lg">
|
|
pages/index.tsx
|
|
</code>
|
|
</p>
|
|
|
|
<div className="mt-6 flex max-w-4xl flex-wrap items-center justify-around sm:w-full">
|
|
<a
|
|
href="https://nextjs.org/docs"
|
|
className="mt-6 w-96 rounded-xl border p-6 text-left hover:text-blue-600 focus:text-blue-600"
|
|
>
|
|
<h3 className="text-2xl font-bold">Documentation →</h3>
|
|
<p className="mt-4 text-xl">
|
|
Find in-depth information about Next.js features and API.
|
|
</p>
|
|
</a>
|
|
|
|
<a
|
|
href="https://nextjs.org/learn"
|
|
className="mt-6 w-96 rounded-xl border p-6 text-left hover:text-blue-600 focus:text-blue-600"
|
|
>
|
|
<h3 className="text-2xl font-bold">Learn →</h3>
|
|
<p className="mt-4 text-xl">
|
|
Learn about Next.js in an interactive course with quizzes!
|
|
</p>
|
|
</a>
|
|
|
|
<a
|
|
href="https://github.com/vercel/next.js/tree/canary/examples"
|
|
className="mt-6 w-96 rounded-xl border p-6 text-left hover:text-blue-600 focus:text-blue-600"
|
|
>
|
|
<h3 className="text-2xl font-bold">Examples →</h3>
|
|
<p className="mt-4 text-xl">
|
|
Discover and deploy boilerplate example Next.js projects.
|
|
</p>
|
|
</a>
|
|
|
|
<a
|
|
href="https://vercel.com/import?filter=next.js&utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
|
|
className="mt-6 w-96 rounded-xl border p-6 text-left hover:text-blue-600 focus:text-blue-600"
|
|
>
|
|
<h3 className="text-2xl font-bold">Deploy →</h3>
|
|
<p className="mt-4 text-xl">
|
|
Instantly deploy your Next.js site to a public URL with Vercel.
|
|
</p>
|
|
</a>
|
|
</div>
|
|
</main>
|
|
|
|
<footer className="flex h-24 w-full items-center justify-center border-t">
|
|
<a
|
|
className="flex items-center justify-center gap-2"
|
|
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
Powered by{" "}
|
|
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
|
|
</a>
|
|
</footer>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Home;
|