Skip to content

Commit 257f232

Browse files
committed
style: aplicando prettier
1 parent 7df9834 commit 257f232

21 files changed

Lines changed: 359 additions & 213 deletions

frontend/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Currently, two official plugins are available:
88
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
99

1010
## Expanding the ESLint configuration
11+
1112
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
1213

1314
```js

frontend/next.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import path from "path";
2-
import type { NextConfig } from "next";
1+
import type { NextConfig } from 'next';
2+
import path from 'path';
33

44
const nextConfig: NextConfig = {
55
reactStrictMode: true,

frontend/postcss.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @type {import('postcss-load-config').Config} */
22
const config = {
33
plugins: {
4-
"@tailwindcss/postcss": {},
4+
'@tailwindcss/postcss': {},
55
},
66
};
77

frontend/src/app/api/subscribe/route.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { NextResponse } from "next/server";
1+
import { NextResponse } from 'next/server';
22

33
export async function POST(request: Request) {
44
try {
55
const body = await request.json();
66
const email = body?.email;
77

8-
if (!email || typeof email !== "string") {
8+
if (!email || typeof email !== 'string') {
99
return NextResponse.json(
10-
{ error: "E-mail é obrigatório" },
10+
{ error: 'E-mail é obrigatório' },
1111
{ status: 400 }
1212
);
1313
}
@@ -18,7 +18,7 @@ export async function POST(request: Request) {
1818
return NextResponse.json({ success: true });
1919
} catch {
2020
return NextResponse.json(
21-
{ error: "Erro ao processar inscrição" },
21+
{ error: 'Erro ao processar inscrição' },
2222
{ status: 500 }
2323
);
2424
}

frontend/src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "tailwindcss";
1+
@import 'tailwindcss';
22
@config "../../tailwind.config.ts";
33

44
body {

frontend/src/app/layout.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
import type { Metadata } from "next";
2-
import { Inter } from "next/font/google";
3-
import "./globals.css";
1+
import type { Metadata } from 'next';
2+
import { Inter } from 'next/font/google';
3+
4+
import './globals.css';
45

56
const inter = Inter({
6-
subsets: ["latin"],
7-
variable: "--font-inter",
7+
subsets: ['latin'],
8+
variable: '--font-inter',
89
});
910

1011
export const metadata: Metadata = {
11-
title: "Py013 - Comunidade Python da Baixada Santista",
12+
title: 'Py013 - Comunidade Python da Baixada Santista',
1213
description:
13-
"Aprenda, Colabore e Evolua com a Comunidade Python da Baixada Santista.",
14+
'Aprenda, Colabore e Evolua com a Comunidade Python da Baixada Santista.',
1415
icons: {
15-
icon: "/images/logo.png",
16+
icon: '/images/logo.png',
1617
},
1718
};
1819

frontend/src/app/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Navbar } from "@/components/navbar";
2-
import { Hero } from "@/components/hero";
3-
import { AboutSection } from "@/components/about-section";
4-
import { ImpactSection } from "@/components/impact";
5-
import { JoinCTA } from "@/components/cta";
6-
import { Footer } from "@/components/footer";
1+
import { AboutSection } from '@/components/about-section';
2+
import { JoinCTA } from '@/components/cta';
3+
import { Footer } from '@/components/footer';
4+
import { Hero } from '@/components/hero';
5+
import { ImpactSection } from '@/components/impact';
6+
import { Navbar } from '@/components/navbar';
77

88
export default function Home() {
99
return (

frontend/src/components/about-section.tsx

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { Button } from "@/components/ui/button";
2-
import { RiInstagramFill } from "./icons/instagram";
1+
import { Button } from '@/components/ui/button';
2+
3+
import { RiInstagramFill } from './icons/instagram';
34

45
export function AboutSection() {
56
return (
@@ -17,22 +18,39 @@ export function AboutSection() {
1718
<div className="grid lg:grid-cols-2 gap-12 lg:gap-20 items-center mb-20">
1819
<div className="space-y-6 text-lg text-gray-600 leading-relaxed">
1920
<p>
20-
Somos uma <strong className="text-gray-900">organização sem fins lucrativos</strong> dedicada ao ensino colaborativo de tecnologia e programação. Desde 2018 conectando pessoas e promovemos a troca de conhecimento para capacitar entusiastas, profissionais e iniciantes na área tecnológica.
21+
Somos uma{' '}
22+
<strong className="text-gray-900">
23+
organização sem fins lucrativos
24+
</strong>{' '}
25+
dedicada ao ensino colaborativo de tecnologia e programação. Desde
26+
2018 conectando pessoas e promovemos a troca de conhecimento para
27+
capacitar entusiastas, profissionais e iniciantes na área
28+
tecnológica.
2129
</p>
2230
<p>
23-
Realizamos aulas, eventos, confraternizações e ações em parceria com instituições de referência, tanto online quanto presencialmente. Nosso objetivo é criar <strong className="text-gray-900">oportunidades inclusivas</strong> para o desenvolvimento de habilidades que transformam carreiras e impactam vidas.
31+
Realizamos aulas, eventos, confraternizações e ações em parceria
32+
com instituições de referência, tanto online quanto
33+
presencialmente. Nosso objetivo é criar{' '}
34+
<strong className="text-gray-900">
35+
oportunidades inclusivas
36+
</strong>{' '}
37+
para o desenvolvimento de habilidades que transformam carreiras e
38+
impactam vidas.
2439
</p>
2540
<p>
26-
Acreditamos que a inovação nasce da colaboração. Por isso, trabalhamos para fortalecer comunidades, ampliar o acesso ao aprendizado tecnológico e construir um futuro mais acessível e conectado.
41+
Acreditamos que a inovação nasce da colaboração. Por isso,
42+
trabalhamos para fortalecer comunidades, ampliar o acesso ao
43+
aprendizado tecnológico e construir um futuro mais acessível e
44+
conectado.
2745
</p>
2846
</div>
2947
<div className="relative">
3048
<div
3149
className="rounded-2xl overflow-hidden border border-gray-100 shadow-xl aspect-[4/3] bg-gray-100"
3250
style={{
33-
backgroundImage: "url(/images/povo.jpg)",
34-
backgroundSize: "cover",
35-
backgroundPosition: "center",
51+
backgroundImage: 'url(/images/povo.jpg)',
52+
backgroundSize: 'cover',
53+
backgroundPosition: 'center',
3654
}}
3755
/>
3856
<div className="absolute inset-0 rounded-2xl bg-gradient-to-t from-black/40 via-transparent to-transparent pointer-events-none" />
@@ -61,7 +79,8 @@ export function AboutSection() {
6179
Online e presencial
6280
</h3>
6381
<p className="text-sm text-gray-600 leading-relaxed">
64-
Aulas, eventos e confraternizações para você participar do jeito que preferir.
82+
Aulas, eventos e confraternizações para você participar do jeito
83+
que preferir.
6584
</p>
6685
</div>
6786
<div className="group relative pl-6 sm:pl-8 sm:border-l-2 sm:border-gray-200 sm:hover:border-amber-400/60 transition-colors duration-300">
@@ -80,7 +99,8 @@ export function AboutSection() {
8099

81100
<div className="text-center">
82101
<p className="text-lg text-gray-600 mb-6 max-w-2xl mx-auto">
83-
Sua presença faz a diferença. Venha trocar ideias, aprender e ensinar com a gente.
102+
Sua presença faz a diferença. Venha trocar ideias, aprender e
103+
ensinar com a gente.
84104
</p>
85105
<Button asChild size="lg" className="rounded-full">
86106
<a

frontend/src/components/cta.tsx

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,49 @@
1-
"use client";
1+
'use client';
22

3-
import { useState } from "react";
4-
import axios from "axios";
5-
import { Button } from "@/components/ui/button";
6-
import { Input } from "@/components/ui/input";
3+
import { Button } from '@/components/ui/button';
4+
import { Input } from '@/components/ui/input';
5+
6+
import { useState } from 'react';
7+
8+
import axios from 'axios';
79

810
export function JoinCTA() {
9-
const [email, setEmail] = useState("");
10-
const [status, setStatus] = useState<"idle" | "loading" | "success" | "error">("idle");
11+
const [email, setEmail] = useState('');
12+
const [status, setStatus] = useState<
13+
'idle' | 'loading' | 'success' | 'error'
14+
>('idle');
1115

1216
const handleSubmit = async (e: React.FormEvent) => {
1317
e.preventDefault();
1418
if (!email.trim()) return;
15-
setStatus("loading");
19+
setStatus('loading');
1620
try {
17-
await axios.post("/api/subscribe", { email: email.trim() });
18-
setStatus("success");
19-
setEmail("");
21+
await axios.post('/api/subscribe', { email: email.trim() });
22+
setStatus('success');
23+
setEmail('');
2024
} catch {
21-
setStatus("error");
25+
setStatus('error');
2226
}
2327
};
2428

2529
return (
26-
<section
27-
id="join"
28-
className="pt-24 bg-white relative overflow-hidden"
29-
>
30+
<section id="join" className="pt-24 bg-white relative overflow-hidden">
3031
<div className="absolute top-0 left-0 w-full h-full overflow-hidden pointer-events-none z-0">
3132
<div className="absolute -top-[10%] -left-[10%] w-[50%] h-[50%] bg-blue-100 rounded-full blur-[120px] opacity-60" />
3233
<div className="absolute top-[20%] -right-[10%] w-[40%] h-[40%] bg-yellow-100 rounded-full blur-[120px] opacity-60" />
3334
</div>
3435

3536
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center relative z-10">
3637
<h2 className="text-3xl md:text-5xl font-bold text-gray-900 mb-6">
37-
Junte-se a nós nessa <span className="bg-gradient-to-r from-blue-500 to-yellow-500 text-transparent bg-clip-text">missão</span>
38+
Junte-se a nós nessa{' '}
39+
<span className="bg-gradient-to-r from-blue-500 to-yellow-500 text-transparent bg-clip-text">
40+
missão
41+
</span>
3842
</h2>
3943
<p className="text-lg md:text-xl text-gray-600 mb-10 max-w-2xl mx-auto leading-relaxed">
40-
Democratizar o aprendizado em tecnologia e moldar o futuro da educação colaborativa. Isso só acontece com você na comunidade. Participe dos eventos, troque conhecimento e faça parte da Py013.
44+
Democratizar o aprendizado em tecnologia e moldar o futuro da educação
45+
colaborativa. Isso só acontece com você na comunidade. Participe dos
46+
eventos, troque conhecimento e faça parte da Py013.
4147
</p>
4248

4349
{/* <form
@@ -77,7 +83,11 @@ export function JoinCTA() {
7783
Prometemos zero spam. Apenas conteúdo relevante sobre Python e
7884
tecnologia.
7985
</p> */}
80-
<img src="/images/logo-cut.svg" alt="Join" className="w-full h-full object-cover" />
86+
<img
87+
src="/images/logo-cut.svg"
88+
alt="Join"
89+
className="w-full h-full object-cover"
90+
/>
8191
</div>
8292
</section>
8393
);

frontend/src/components/footer.tsx

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
import { MapPin } from "lucide-react";
2-
import { RiInstagramFill } from "./icons/instagram";
3-
import { MdiLinkedin } from "./icons/linkedin";
4-
import { MdiGithub } from "./icons/github";
5-
import { IcBaselineDiscord } from "./icons/discord";
1+
import { MapPin } from 'lucide-react';
2+
3+
import { IcBaselineDiscord } from './icons/discord';
4+
import { MdiGithub } from './icons/github';
5+
import { RiInstagramFill } from './icons/instagram';
6+
import { MdiLinkedin } from './icons/linkedin';
67

78
export function Footer() {
89
return (
9-
<footer id="contact" className="bg-white pt-20 pb-10 border-t border-gray-100">
10+
<footer
11+
id="contact"
12+
className="bg-white pt-20 pb-10 border-t border-gray-100"
13+
>
1014
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
1115
<div className="flex flex-col md:flex-row md:items-start md:justify-between gap-12 mb-16">
1216
<div>
@@ -39,7 +43,13 @@ export function Footer() {
3943
>
4044
<MdiGithub className="size-5" />
4145
</a>
42-
<a href="https://discord.gg/NnrjunGjHm" target="_blank" rel="noopener noreferrer" aria-label="Discord" className="w-10 h-10 rounded-full bg-gray-50 flex items-center justify-center text-gray-600 hover:bg-blue-50 hover:text-blue-600 transition-colors">
46+
<a
47+
href="https://discord.gg/NnrjunGjHm"
48+
target="_blank"
49+
rel="noopener noreferrer"
50+
aria-label="Discord"
51+
className="w-10 h-10 rounded-full bg-gray-50 flex items-center justify-center text-gray-600 hover:bg-blue-50 hover:text-blue-600 transition-colors"
52+
>
4353
<IcBaselineDiscord className="size-5" />
4454
</a>
4555
</div>
@@ -72,9 +82,11 @@ export function Footer() {
7282
<p className="text-sm text-gray-400">
7383
© 2026 Py013. Todos os direitos reservados.
7484
</p>
75-
<p className="text-sm text-gray-400">Feito com ❤️ por membros da Py013. </p>
85+
<p className="text-sm text-gray-400">
86+
Feito com ❤️ por membros da Py013.{' '}
87+
</p>
7688
</div>
7789
</div>
78-
</footer >
90+
</footer>
7991
);
8092
}

0 commit comments

Comments
 (0)