Skip to content

Commit f8ae7ed

Browse files
feat: adiciona nome no step de falha e corrige erros prettier
1 parent b72f6a5 commit f8ae7ed

File tree

3 files changed

+77
-114
lines changed

3 files changed

+77
-114
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
- name: 🧰 Setup node
1414
uses: actions/setup-node@v4
1515

16-
- name: 🎨 prettier
16+
- name: 🎨 Prettier
1717
run: |
1818
npm i
1919
npx prettier . --check
2020
21-
- if: failure()
21+
- name: ❌ Em caso de falha
22+
if: failure()
2223
run: echo "🚫 O prettier encotrou erros de estilo" && echo "Use o comando 'npx prettier . --write' para corrigir automaticamente"

src/app/layout.tsx

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
1-
import type { Metadata } from "next";
2-
import { Geist, Geist_Mono } from "next/font/google";
3-
import "./globals.css";
1+
import type { Metadata } from 'next'
2+
import { Geist, Geist_Mono } from 'next/font/google'
3+
import './globals.css'
44

55
const geistSans = Geist({
6-
variable: "--font-geist-sans",
7-
subsets: ["latin"],
8-
});
6+
variable: '--font-geist-sans',
7+
subsets: ['latin'],
8+
})
99

1010
const geistMono = Geist_Mono({
11-
variable: "--font-geist-mono",
12-
subsets: ["latin"],
13-
});
11+
variable: '--font-geist-mono',
12+
subsets: ['latin'],
13+
})
1414

1515
export const metadata: Metadata = {
16-
title: "Create Next App",
17-
description: "Generated by create next app",
18-
};
16+
title: 'Create Next App',
17+
description: 'Generated by create next app',
18+
}
1919

2020
export default function RootLayout({
21-
children,
21+
children,
2222
}: Readonly<{
23-
children: React.ReactNode;
23+
children: React.ReactNode
2424
}>) {
25-
return (
26-
<html lang="en">
27-
<body className={`${geistSans.variable} ${geistMono.variable}`}>
28-
{children}
29-
</body>
30-
</html>
31-
);
25+
return (
26+
<html lang='en'>
27+
<body className={`${geistSans.variable} ${geistMono.variable}`}>{children}</body>
28+
</html>
29+
)
3230
}

src/app/page.tsx

Lines changed: 55 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,59 @@
1-
import Image from "next/image";
2-
import styles from "./page.module.css";
1+
import Image from 'next/image'
2+
import styles from './page.module.css'
33

44
export default function Home() {
5-
return (
6-
<div className={styles.page}>
7-
<main className={styles.main}>
8-
<Image
9-
className={styles.logo}
10-
src="/next.svg"
11-
alt="Next.js logo"
12-
width={180}
13-
height={38}
14-
priority
15-
/>
16-
<ol>
17-
<li>
18-
Get started by editing <code>src/app/page.tsx</code>.
19-
</li>
20-
<li>Save and see your changes instantly.</li>
21-
</ol>
5+
return (
6+
<div className={styles.page}>
7+
<main className={styles.main}>
8+
<Image className={styles.logo} src='/next.svg' alt='Next.js logo' width={180} height={38} priority />
9+
<ol>
10+
<li>
11+
Get started by editing <code>src/app/page.tsx</code>.
12+
</li>
13+
<li>Save and see your changes instantly.</li>
14+
</ol>
2215

23-
<div className={styles.ctas}>
24-
<a
25-
className={styles.primary}
26-
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
27-
target="_blank"
28-
rel="noopener noreferrer"
29-
>
30-
<Image
31-
className={styles.logo}
32-
src="/vercel.svg"
33-
alt="Vercel logomark"
34-
width={20}
35-
height={20}
36-
/>
37-
Deploy now
38-
</a>
39-
<a
40-
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
41-
target="_blank"
42-
rel="noopener noreferrer"
43-
className={styles.secondary}
44-
>
45-
Read our docs
46-
</a>
47-
</div>
48-
</main>
49-
<footer className={styles.footer}>
50-
<a
51-
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
52-
target="_blank"
53-
rel="noopener noreferrer"
54-
>
55-
<Image
56-
aria-hidden
57-
src="/file.svg"
58-
alt="File icon"
59-
width={16}
60-
height={16}
61-
/>
62-
Learn
63-
</a>
64-
<a
65-
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
66-
target="_blank"
67-
rel="noopener noreferrer"
68-
>
69-
<Image
70-
aria-hidden
71-
src="/window.svg"
72-
alt="Window icon"
73-
width={16}
74-
height={16}
75-
/>
76-
Examples
77-
</a>
78-
<a
79-
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
80-
target="_blank"
81-
rel="noopener noreferrer"
82-
>
83-
<Image
84-
aria-hidden
85-
src="/globe.svg"
86-
alt="Globe icon"
87-
width={16}
88-
height={16}
89-
/>
90-
Go to nextjs.org →
91-
</a>
92-
</footer>
93-
</div>
94-
);
16+
<div className={styles.ctas}>
17+
<a
18+
className={styles.primary}
19+
href='https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app'
20+
target='_blank'
21+
rel='noopener noreferrer'>
22+
<Image className={styles.logo} src='/vercel.svg' alt='Vercel logomark' width={20} height={20} />
23+
Deploy now
24+
</a>
25+
<a
26+
href='https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app'
27+
target='_blank'
28+
rel='noopener noreferrer'
29+
className={styles.secondary}>
30+
Read our docs
31+
</a>
32+
</div>
33+
</main>
34+
<footer className={styles.footer}>
35+
<a
36+
href='https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app'
37+
target='_blank'
38+
rel='noopener noreferrer'>
39+
<Image aria-hidden src='/file.svg' alt='File icon' width={16} height={16} />
40+
Learn
41+
</a>
42+
<a
43+
href='https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app'
44+
target='_blank'
45+
rel='noopener noreferrer'>
46+
<Image aria-hidden src='/window.svg' alt='Window icon' width={16} height={16} />
47+
Examples
48+
</a>
49+
<a
50+
href='https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app'
51+
target='_blank'
52+
rel='noopener noreferrer'>
53+
<Image aria-hidden src='/globe.svg' alt='Globe icon' width={16} height={16} />
54+
Go to nextjs.org →
55+
</a>
56+
</footer>
57+
</div>
58+
)
9559
}

0 commit comments

Comments
 (0)