-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpage.tsx
More file actions
276 lines (264 loc) · 11.3 KB
/
page.tsx
File metadata and controls
276 lines (264 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
'use client';
import React from 'react';
import Link from 'next/link';
import Image from 'next/image';
import { Navbar } from './components/Navbar';
import { ArticleCard } from './components/ArticleCard';
import { BlogCard } from './components/BlogCard';
import { ProjectCard } from './components/ProjectCard';
import {
FaGithub, FaMedium, FaEnvelope, FaInstagram, FaArrowRight,
FaBriefcase, FaCode, FaCloud, FaRocket, FaShieldAlt, FaChalkboardTeacher, FaUserGraduate
} from 'react-icons/fa';
import { featuredArticles, featuredProjects, featuredBlogPosts, contacts, quickLinks } from '@/data/content';
import { ContactForm } from './components/ContactForm';
// Create icon mapping for contacts
const iconMap = {
FaGithub: <FaGithub className="text-2xl" />,
FaMedium: <FaMedium className="text-2xl" />,
FaInstagram: <FaInstagram className="text-2xl" />,
FaEnvelope: <FaEnvelope className="text-2xl" />
};
// Map contacts with icons
const contactsWithIcons = contacts.map(contact => ({
...contact,
icon: iconMap[contact.icon as keyof typeof iconMap]
}));
export default function Home() {
const services = [
{
icon: <FaBriefcase className="text-blue-600 text-3xl" />,
title: 'Consultoria em Arquitetura',
desc: 'Diagnóstico, desenho e evolução de arquiteturas escaláveis e seguras.'
},
{
icon: <FaCode className="text-blue-600 text-3xl" />,
title: 'Desenvolvimento de Projetos',
desc: 'Entrega ponta a ponta: backend, frontend, integrações e automações.'
},
{
icon: <FaCloud className="text-blue-600 text-3xl" />,
title: 'Cloud & DevOps',
desc: 'Infra como código, pipelines, observabilidade e custos otimizados.'
},
{
icon: <FaShieldAlt className="text-blue-600 text-3xl" />,
title: 'Qualidade & Segurança',
desc: 'Revisão de código, testes, performance e práticas de segurança.'
},
{
icon: <FaRocket className="text-blue-600 text-3xl" />,
title: 'Performance & Escala',
desc: 'Perfis de desempenho, caching, filas e arquitetura orientada a eventos.'
},
{
icon: <FaChalkboardTeacher className="text-blue-600 text-3xl" />,
title: 'Treinamentos Corporativos',
desc: 'Workshops e capacitação sob medida para seu time e empresa.'
},
{
icon: <FaUserGraduate className="text-blue-600 text-3xl" />,
title: 'Mentoria Especializada para Desenvolvedor',
desc: 'Orientação 1:1 personalizada para evolução técnica, carreira e boas práticas de desenvolvimento.'
}
] as const;
const mailtoHref =
'mailto:gbzarelli@helpdev.com.br?subject=Proposta%20-%20Consultoria%20e%20Desenvolvimento&body=Olá%20Guilherme,%20gostaria%20de%20conversar%20sobre%20um%20projeto/consultoria.%20Resumo:%20';
return (
<div className="min-h-screen bg-gray-100">
<Navbar />
{/* Hero Section - knowledge sharing focus */}
<section className="bg-white py-16">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex flex-col md:flex-row md:items-center md:justify-between gap-8">
<div className="md:w-3/5">
<h1 className="text-4xl sm:text-5xl font-bold text-gray-900 mb-4">
Artigos e conhecimento aplicado em engenharia de software
</h1>
<p className="text-xl text-gray-600 mb-8">
Compartilho experiências práticas sobre arquitetura, plataformas cloud e liderança técnica para ajudar times e devs a evoluírem com conteúdos acionáveis.
</p>
<div className="flex flex-wrap gap-4 mb-8">
<Link
href="/articles"
className="inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors"
>
Explorar artigos
<FaArrowRight className="ml-2" />
</Link>
<Link
href="/blog"
className="inline-flex items-center px-6 py-3 border border-gray-300 text-base font-medium rounded-md bg-white text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors"
>
Ver blog & gists
</Link>
</div>
<div className="flex gap-4">
{contactsWithIcons.map((contact) => (
<a
key={contact.name}
href={contact.url}
target="_blank"
rel="noopener noreferrer"
className="p-2 text-gray-600 hover:text-blue-600 transition-colors"
title={contact.name}
>
{contact.icon}
</a>
))}
</div>
</div>
<div className="md:w-2/5 flex justify-center md:justify-end">
<div className="relative h-64 w-64 md:h-80 md:w-80">
<Image
src="/images/logo-2.png"
alt="HelpDev Logo"
fill
className="rounded-full object-cover shadow-xl"
priority
/>
</div>
</div>
</div>
</div>
</section>
{/* Featured Articles Section (social proof) */}
<section className="py-16">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center mb-8">
<h2 className="text-3xl font-bold text-gray-900">Artigos em Destaque</h2>
<Link
href="/articles"
className="text-blue-600 hover:text-blue-800 flex items-center transition-colors"
>
Ver todos os artigos
<FaArrowRight className="ml-2" />
</Link>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
{featuredArticles.map((article, index) => (
<ArticleCard
key={index}
title={article.title}
description={article.description}
imageUrl={article.imageUrl}
link={article.link}
/>
))}
</div>
</div>
</section>
{/* Featured Blog Posts Section */}
<section className="py-16 bg-gray-50">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center mb-8">
<h2 className="text-3xl font-bold text-gray-900">Blog & Gists</h2>
<Link
href="/blog"
className="text-blue-600 hover:text-blue-800 flex items-center transition-colors"
>
Ver todas as postagens
<FaArrowRight className="ml-2" />
</Link>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
{featuredBlogPosts.map((post, index) => (
<BlogCard
key={index}
title={post.title}
description={post.description}
date={post.date}
link={post.link}
imageUrl={post.imageUrl}
tags={post.tags}
/>
))}
</div>
</div>
</section>
{/* Services Section */}
<section id="servicos" className="py-16">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center mb-8">
<h2 className="text-3xl font-bold text-gray-900">Serviços</h2>
<a href={mailtoHref} className="text-blue-600 hover:text-blue-800 flex items-center transition-colors">
Solicitar proposta
<FaArrowRight className="ml-2" />
</a>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
{services.map((s, i) => (
<div key={i} className="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow duration-300 h-full">
<div className="mb-4">{s.icon}</div>
<h3 className="text-xl font-semibold text-gray-900 mb-2">{s.title}</h3>
<p className="text-gray-600">{s.desc}</p>
</div>
))}
</div>
</div>
</section>
{/* Projects Section (portfolio) */}
<section className="py-16">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center mb-8">
<h2 className="text-3xl font-bold text-gray-900">Projetos Open Source</h2>
<Link
href="/projects"
className="text-blue-600 hover:text-blue-800 flex items-center transition-colors"
>
Ver todos os projetos
<FaArrowRight className="ml-2" />
</Link>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
{featuredProjects.map((project, index) => (
<ProjectCard
key={index}
title={project.title}
description={project.description}
imageUrl={project.imageUrl}
link={project.link}
languages={project.languages}
/>
))}
</div>
</div>
</section>
{/* Quick Links Section */}
<section className="py-16 bg-blue-50">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<h2 className="text-2xl font-bold text-gray-900 mb-8 text-center">Explore Mais</h2>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
{quickLinks.map((item, index) => (
<Link href={item.link} key={index}>
<div className="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow duration-300 flex flex-col items-center text-center h-full">
<span className="text-4xl mb-4">{item.icon}</span>
<h3 className="text-xl font-bold text-gray-900 mb-2">{item.title}</h3>
<p className="text-gray-600">{item.description}</p>
</div>
</Link>
))}
</div>
</div>
</section>
{/* Contact Section - static form */}
<section id="contato" className="bg-blue-600 py-16">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<h2 className="text-3xl font-bold text-white mb-4 text-center">Pronto para acelerar seu produto?</h2>
<p className="text-xl text-blue-100 mb-8 max-w-3xl mx-auto text-center">Preencha o formulário e retorno com uma proposta objetiva.</p>
<ContactForm />
<div className="text-center mt-6">
<a
href="https://linkedin.com/in/gbzarelli/"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center px-6 py-3 border border-white text-base font-medium rounded-md shadow-sm text-white bg-transparent hover:bg-blue-700"
>
Falar no LinkedIn
</a>
</div>
</div>
</section>
</div>
);
}