# joaomarcelo22/perfil architecture

> Architecture diagram of the GitHub repository joaomarcelo22/perfil, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joaomarcelo22/perfil
- Repository: https://github.com/joaomarcelo22/perfil

## Overview

This is a Next.js personal profile and portfolio site. Visitors enter through the home page to view the profile header and sections for goals, education, experience, skills, and languages; separate routes expose projects, an online-profile page, and article pages. Profile sections obtain typed profile data through a shared hook and an HTTP data client. The README describes an atomic-design UI, reflected in shared components and page templates. Connections below follow the supplied excerpts and SOURCE INDEX; unsampled route and component details are not inferred.

Main entry points: [`src/app/page.tsx`](https://github.com/joaomarcelo22/perfil/blob/main/src/app/page.tsx) (Home profile), [`src/services/data.tsx`](https://github.com/joaomarcelo22/perfil/blob/main/src/services/data.tsx) (Profile data hook), [`src/template/Formacao/index.tsx`](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Formacao/index.tsx) (Education), [`src/template/Experiencia/index.tsx`](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Experiencia/index.tsx) (Experience)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Pages and routes"]
  node_home["Home profile<br/>[page.tsx]"]
  node_projects["Projects route<br/>[page.tsx]"]
  node_online_route["Online profile route<br/>[page.tsx]"]
  node_articles["Articles route<br/>[page.tsx]"]
  node_papers["Scientific articles<br/>[page.tsx]"]
end

subgraph group_profile["Profile content"]
  node_main["Page frame<br/>[index.tsx]"]
  node_header["Profile header<br/>[index.tsx]"]
  node_objective["Career objective<br/>[index.tsx]"]
  node_education["Education<br/>[index.tsx]"]
  node_experience["Experience<br/>[index.tsx]"]
  node_skills["Skills<br/>[index.tsx]"]
  node_languages["Languages<br/>[index.tsx]"]
  node_online_content["Profile presentation<br/>[index.tsx]"]
  node_menu["Project navigation<br/>[index.tsx]"]
  node_table["Profile table<br/>[index.tsx]"]
end

subgraph group_data["Profile data"]
  node_hook["Profile data hook<br/>[data.tsx]"]
  node_client["HTTP data client<br/>[axiosData.ts]"]
  node_profile_types["Profile data types<br/>[perfil.ts]"]
end

subgraph group_ui["Shared interface"]
  node_photo["Profile photo<br/>[index.tsx]"]
  node_exp_item["Experience item<br/>[index.tsx]"]
  node_edu_item["Education item<br/>[index.tsx]"]
  node_button["Link button<br/>[index.tsx]"]
  node_error_page["Unavailable notice<br/>[index.tsx]"]
  node_stars["Star background<br/>[Stars.tsx]"]
end

node_visitor(("Visitor"))
node_github_data[("GitHub-hosted JSON")]

node_visitor -.->|"opens"| node_home
node_home -->|"renders"| node_main
node_home -->|"renders"| node_header
node_home -->|"renders"| node_objective
node_home -->|"renders"| node_education
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_languages
node_projects -->|"renders"| node_menu
node_online_route -->|"renders"| node_main
node_online_route -->|"renders"| node_online_content
node_articles -->|"renders"| node_error_page
node_articles -->|"renders"| node_button
node_papers -->|"renders"| node_error_page
node_papers -->|"renders"| node_button
node_header -->|"renders"| node_photo
node_education -->|"reads"| node_hook
node_education -->|"renders"| node_edu_item
node_experience -->|"reads"| node_hook
node_experience -->|"renders"| node_exp_item
node_objective -->|"reads"| node_hook
node_skills -->|"reads"| node_hook
node_languages -->|"reads"| node_hook
node_online_content -->|"reads"| node_hook
node_hook -->|"calls"| node_client
node_client -->|"fetches"| node_github_data
node_hook -->|"uses types"| node_profile_types
node_visitor -.->|"opens"| node_projects
node_visitor -.->|"opens"| node_online_route
node_visitor -.->|"opens"| node_articles
node_visitor -.->|"opens"| node_papers

click node_home "https://github.com/joaomarcelo22/perfil/blob/main/src/app/page.tsx"
click node_projects "https://github.com/joaomarcelo22/perfil/blob/main/src/app/Projetos/page.tsx"
click node_online_route "https://github.com/joaomarcelo22/perfil/blob/main/src/app/PerfilOnline/page.tsx"
click node_articles "https://github.com/joaomarcelo22/perfil/blob/main/src/app/Artigos/page.tsx"
click node_papers "https://github.com/joaomarcelo22/perfil/blob/main/src/app/ArtigosCientificos/page.tsx"
click node_main "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Main/index.tsx"
click node_header "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Header/index.tsx"
click node_objective "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Objetivo/index.tsx"
click node_education "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Formacao/index.tsx"
click node_experience "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Experiencia/index.tsx"
click node_skills "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Skills/index.tsx"
click node_languages "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Idiomas/index.tsx"
click node_online_content "https://github.com/joaomarcelo22/perfil/blob/main/src/template/PerfilOnline/index.tsx"
click node_menu "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Menu/index.tsx"
click node_table "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Table/index.tsx"
click node_hook "https://github.com/joaomarcelo22/perfil/blob/main/src/services/data.tsx"
click node_client "https://github.com/joaomarcelo22/perfil/blob/main/src/api/axiosData.ts"
click node_profile_types "https://github.com/joaomarcelo22/perfil/blob/main/src/interface/perfil.ts"
click node_photo "https://github.com/joaomarcelo22/perfil/blob/main/src/components/FotoPerfil/index.tsx"
click node_exp_item "https://github.com/joaomarcelo22/perfil/blob/main/src/components/ExperienciaComponent/index.tsx"
click node_edu_item "https://github.com/joaomarcelo22/perfil/blob/main/src/components/FormacaoComponent/index.tsx"
click node_button "https://github.com/joaomarcelo22/perfil/blob/main/src/components/atoms/ButtonLink/index.tsx"
click node_error_page "https://github.com/joaomarcelo22/perfil/blob/main/src/components/pgError/index.tsx"
click node_stars "https://github.com/joaomarcelo22/perfil/blob/main/src/template/Main/Stars.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_projects,node_online_route,node_articles,node_papers toneBlue
class node_main,node_header,node_objective,node_education,node_experience,node_skills,node_languages,node_online_content,node_menu,node_table,node_github_data toneAmber
class node_hook,node_client,node_profile_types toneMint
class node_photo,node_exp_item,node_edu_item,node_button,node_error_page,node_stars toneRose
class node_visitor toneIndigo
```

## Components

### Pages and routes

- [Home profile](https://github.com/joaomarcelo22/perfil/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Projects route](https://github.com/joaomarcelo22/perfil/blob/main/src/app/Projetos/page.tsx): `src/app/Projetos/page.tsx`
- [Online profile route](https://github.com/joaomarcelo22/perfil/blob/main/src/app/PerfilOnline/page.tsx): `src/app/PerfilOnline/page.tsx`
- [Articles route](https://github.com/joaomarcelo22/perfil/blob/main/src/app/Artigos/page.tsx): `src/app/Artigos/page.tsx`
- [Scientific articles](https://github.com/joaomarcelo22/perfil/blob/main/src/app/ArtigosCientificos/page.tsx): `src/app/ArtigosCientificos/page.tsx`

### Profile content

- [Page frame](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Main/index.tsx): `src/template/Main/index.tsx`
- [Profile header](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Header/index.tsx): `src/template/Header/index.tsx`
- [Career objective](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Objetivo/index.tsx): `src/template/Objetivo/index.tsx`
- [Education](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Formacao/index.tsx): `src/template/Formacao/index.tsx`
- [Experience](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Experiencia/index.tsx): `src/template/Experiencia/index.tsx`
- [Skills](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Skills/index.tsx): `src/template/Skills/index.tsx`
- [Languages](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Idiomas/index.tsx): `src/template/Idiomas/index.tsx`
- [Profile presentation](https://github.com/joaomarcelo22/perfil/blob/main/src/template/PerfilOnline/index.tsx): `src/template/PerfilOnline/index.tsx`
- [Project navigation](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Menu/index.tsx): `src/template/Menu/index.tsx`
- [Profile table](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Table/index.tsx): `src/template/Table/index.tsx`

### Profile data

- [Profile data hook](https://github.com/joaomarcelo22/perfil/blob/main/src/services/data.tsx): `src/services/data.tsx`
- [HTTP data client](https://github.com/joaomarcelo22/perfil/blob/main/src/api/axiosData.ts): `src/api/axiosData.ts`
- [Profile data types](https://github.com/joaomarcelo22/perfil/blob/main/src/interface/perfil.ts): `src/interface/perfil.ts`

### Shared interface

- [Profile photo](https://github.com/joaomarcelo22/perfil/blob/main/src/components/FotoPerfil/index.tsx): `src/components/FotoPerfil/index.tsx`
- [Experience item](https://github.com/joaomarcelo22/perfil/blob/main/src/components/ExperienciaComponent/index.tsx): `src/components/ExperienciaComponent/index.tsx`
- [Education item](https://github.com/joaomarcelo22/perfil/blob/main/src/components/FormacaoComponent/index.tsx): `src/components/FormacaoComponent/index.tsx`
- [Link button](https://github.com/joaomarcelo22/perfil/blob/main/src/components/atoms/ButtonLink/index.tsx): `src/components/atoms/ButtonLink/index.tsx`
- [Unavailable notice](https://github.com/joaomarcelo22/perfil/blob/main/src/components/pgError/index.tsx): `src/components/pgError/index.tsx`
- [Star background](https://github.com/joaomarcelo22/perfil/blob/main/src/template/Main/Stars.tsx): `src/template/Main/Stars.tsx`

### Other components

- **Visitor**
- **GitHub-hosted JSON**

## Connections

- Visitor → Home profile: opens
- Home profile → Page frame: renders (evidence: `src/app/page.tsx`)
- Home profile → Profile header: renders (evidence: `src/app/page.tsx`)
- Home profile → Career objective: renders (evidence: `src/app/page.tsx`)
- Home profile → Education: renders (evidence: `src/app/page.tsx`)
- Home profile → Experience: renders (evidence: `src/app/page.tsx`)
- Home profile → Skills: renders (evidence: `src/app/page.tsx`)
- Home profile → Languages: renders (evidence: `src/app/page.tsx`)
- Projects route → Project navigation: renders (evidence: `src/app/Projetos/page.tsx`)
- Online profile route → Page frame: renders (evidence: `src/app/PerfilOnline/page.tsx`)
- Online profile route → Profile presentation: renders (evidence: `src/app/PerfilOnline/page.tsx`)
- Articles route → Unavailable notice: renders (evidence: `src/app/Artigos/page.tsx`)
- Articles route → Link button: renders (evidence: `src/app/Artigos/page.tsx`)
- Scientific articles → Unavailable notice: renders (evidence: `src/app/ArtigosCientificos/page.tsx`)
- Scientific articles → Link button: renders (evidence: `src/app/ArtigosCientificos/page.tsx`)
- Profile header → Profile photo: renders (evidence: `src/template/Header/index.tsx`)
- Education → Profile data hook: reads (evidence: `src/template/Formacao/index.tsx`)
- Education → Education item: renders (evidence: `src/template/Formacao/index.tsx`)
- Experience → Profile data hook: reads (evidence: `src/template/Experiencia/index.tsx`)
- Experience → Experience item: renders (evidence: `src/template/Experiencia/index.tsx`)
- Career objective → Profile data hook: reads (evidence: `src/template/Objetivo/index.tsx`)
- Skills → Profile data hook: reads (evidence: `src/template/Skills/index.tsx`)
- Languages → Profile data hook: reads (evidence: `src/template/Idiomas/index.tsx`)
- Profile presentation → Profile data hook: reads (evidence: `src/template/PerfilOnline/index.tsx`)
- Profile data hook → HTTP data client: calls (evidence: `src/services/data.tsx`)
- HTTP data client → GitHub-hosted JSON: fetches (evidence: `src/api/axiosData.ts`)
- Profile data hook → Profile data types: uses types (evidence: `src/services/data.tsx`)
- Visitor → Projects route: opens
- Visitor → Online profile route: opens
- Visitor → Articles route: opens
- Visitor → Scientific articles: opens
