Skip to content

Commit 87ee354

Browse files
committed
fix: format description strings and improve CSS module declaration
1 parent a064f14 commit 87ee354

2 files changed

Lines changed: 25 additions & 13 deletions

File tree

src/app/page.tsx

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import Link from "next/link";
44
const links = [
55
{
66
title: "Documentação",
7-
description: "Referência completa do Next.js (App Router, Data Fetching, etc.).",
7+
description:
8+
"Referência completa do Next.js (App Router, Data Fetching, etc.).",
89
href: "https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app",
910
},
1011
{
@@ -27,8 +28,7 @@ const links = [
2728
export default function Home() {
2829
return (
2930
<div className="flex min-h-screen items-center justify-center bg-zinc-50 font-sans dark:bg-black">
30-
<main className="flex min-h-screen w-full max-w-3xl flex-col items-center justify-between bg-white px-16 py-32 dark:bg-black sm:items-start">
31-
{/* Header / Brand */}
31+
<main className="flex min-h-screen w-full max-w-3xl flex-col items-center justify-between bg-white px-16 py-32 dark:bg-black sm:items-start">
3232
<div className="flex items-center gap-3">
3333
<Image
3434
className="dark:invert"
@@ -38,20 +38,30 @@ export default function Home() {
3838
height={20}
3939
priority
4040
/>
41-
<span className="rounded-full border border-black/[.08] px-3 py-1 text-sm font-medium text-zinc-700 dark:border-white/[.145] dark:text-zinc-300">
41+
<span className="rounded-full border border-black/8 px-3 py-1 text-sm font-medium text-zinc-700 dark:border-white/[.145] dark:text-zinc-300">
4242
App Router + Tailwind
4343
</span>
4444
</div>
45-
{/* Hero */}
45+
4646
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
4747
<h1 className="max-w-md text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
4848
Template base do Next.js (App Router)
4949
</h1>
5050

5151
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
52-
Comece editando <code className="font-medium text-zinc-950 dark:text-zinc-50">app/page.tsx</code>.
53-
Este layout é compatível com <span className="font-medium text-zinc-950 dark:text-zinc-50">Codespaces</span>{" "}
54-
e <span className="font-medium text-zinc-950 dark:text-zinc-50">DevContainer</span>.
52+
Comece editando{" "}
53+
<code className="font-medium text-zinc-950 dark:text-zinc-50">
54+
app/page.tsx
55+
</code>
56+
. Este layout é compatível com{" "}
57+
<span className="font-medium text-zinc-950 dark:text-zinc-50">
58+
Codespaces
59+
</span>{" "}
60+
e{" "}
61+
<span className="font-medium text-zinc-950 dark:text-zinc-50">
62+
DevContainer
63+
</span>
64+
.
5565
</p>
5666

5767
<div className="grid w-full grid-cols-1 gap-3 sm:grid-cols-2">
@@ -61,7 +71,7 @@ export default function Home() {
6171
href={item.href}
6272
target="_blank"
6373
rel="noopener noreferrer"
64-
className="group rounded-2xl border border-black/[.08] p-5 transition-colors hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a]"
74+
className="group rounded-2xl border border-black/8 p-5 transition-colors hover:bg-black/4 dark:border-white/[.145] dark:hover:bg-[#1a1a1a]"
6575
>
6676
<div className="flex items-center justify-between gap-4">
6777
<h2 className="text-base font-semibold text-zinc-950 dark:text-zinc-50">
@@ -78,10 +88,10 @@ export default function Home() {
7888
))}
7989
</div>
8090
</div>
81-
{/* CTA */}
91+
8292
<div className="mt-4 flex flex-col gap-4 text-base font-medium sm:flex-row">
8393
<Link
84-
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
94+
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-39.5"
8595
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
8696
target="_blank"
8797
rel="noopener noreferrer"
@@ -96,7 +106,7 @@ export default function Home() {
96106
Deploy
97107
</Link>
98108
<Link
99-
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
109+
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/8 px-5 transition-colors hover:border-transparent hover:bg-black/4 dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-39.5"
100110
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
101111
target="_blank"
102112
rel="noopener noreferrer"
@@ -107,4 +117,5 @@ export default function Home() {
107117
</main>
108118
</div>
109119
);
110-
}
120+
}
121+

src/types/css.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module "*.css";

0 commit comments

Comments
 (0)