mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
4466ba436b
## 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
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
import Container from "./container";
|
|
import { EXAMPLE_PATH } from "../lib/constants";
|
|
|
|
export default function Footer() {
|
|
return (
|
|
<footer className="border-t bg-accent-1 border-accent-2">
|
|
<Container>
|
|
<div className="flex flex-col items-center py-28 lg:flex-row">
|
|
<h3 className="mb-10 text-4xl font-bold leading-tight tracking-tighter text-center lg:text-5xl lg:text-left lg:mb-0 lg:pr-4 lg:w-1/2">
|
|
Statically Generated with Next.js.
|
|
</h3>
|
|
<div className="flex flex-col items-center justify-center lg:flex-row lg:pl-4 lg:w-1/2">
|
|
<a
|
|
href="https://nextjs.org/docs/basic-features/pages"
|
|
className="px-12 py-3 mx-3 mb-6 font-bold text-white transition-colors duration-200 bg-black border border-black hover:bg-white hover:text-black lg:px-8 lg:mb-0"
|
|
>
|
|
Read Documentation
|
|
</a>
|
|
<a
|
|
href={`https://github.com/vercel/next.js/tree/canary/examples/${EXAMPLE_PATH}`}
|
|
className="mx-3 font-bold hover:underline"
|
|
>
|
|
View on GitHub
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</Container>
|
|
</footer>
|
|
);
|
|
}
|