# 0xdiego-dev/huellaamiga architecture

> Architecture diagram of the GitHub repository 0xdiego-dev/huellaamiga, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/0xdiego-dev/huellaamiga
- Repository: https://github.com/0xdiego-dev/huellaamiga

## Overview

Huella Amiga is a small React adoption-browsing interface. The workflow starts at the app root, which selects the home or favorites view and keeps favorites in component state; the home view presents a static pet catalog and lets users add entries, while the favorites view lists saved entries and lets users remove them. Shared navigation and footer frame both views. The graph reflects the shown imports and component/data flow; no persistence or external service is evidenced.

Main entry points: [`src/App.jsx`](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/App.jsx) (App state and routing), [`src/pages/Inicio.jsx`](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/pages/Inicio.jsx) (Home page), [`src/pages/Favoritos.jsx`](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/pages/Favoritos.jsx) (Favorites page), [`src/main.jsx`](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["App state and routing<br/>[App.jsx]"]
  node_navbar["Navigation bar<br/>[Navbar.jsx]"]
  node_footer["Shared footer<br/>[Footer.jsx]"]
end

subgraph group_discovery["Pet discovery"]
  node_home["Home page<br/>[Inicio.jsx]"]
  node_hero["Welcome hero<br/>[Hero.jsx]"]
  node_catalog["Pet catalog data<br/>[mascotas.js]"]
  node_petcard["Pet card<br/>[PetCard.jsx]"]
end

subgraph group_saved["Favorites"]
  node_favorites["Favorites page<br/>[Favoritos.jsx]"]
  node_favitem["Saved pet item<br/>[FavItem.jsx]"]
end

node_entry -->|"renders"| node_app
node_app -->|"renders; passes state"| node_navbar
node_app -->|"selects; passes favorites"| node_home
node_app -->|"selects; passes favorites"| node_favorites
node_app -->|"renders"| node_footer
node_home -->|"renders"| node_hero
node_home -->|"reads"| node_catalog
node_home -->|"renders per pet"| node_petcard
node_favorites -->|"renders per favorite"| node_favitem

click node_entry "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/main.jsx"
click node_app "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/App.jsx"
click node_navbar "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/Navbar.jsx"
click node_footer "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/Footer.jsx"
click node_home "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/pages/Inicio.jsx"
click node_hero "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/Hero.jsx"
click node_catalog "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/data/mascotas.js"
click node_petcard "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/PetCard.jsx"
click node_favorites "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/pages/Favoritos.jsx"
click node_favitem "https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/FavItem.jsx"

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_entry,node_app,node_navbar,node_footer toneBlue
class node_home,node_hero,node_catalog,node_petcard toneAmber
class node_favorites,node_favitem toneMint
```

## Components

### App shell

- [React entry](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/main.jsx): `src/main.jsx`
- [App state and routing](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/App.jsx): `src/App.jsx`
- [Navigation bar](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Shared footer](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Pet discovery

- [Home page](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/pages/Inicio.jsx): `src/pages/Inicio.jsx`
- [Welcome hero](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [Pet catalog data](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/data/mascotas.js): `src/data/mascotas.js`
- [Pet card](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/PetCard.jsx): `src/components/PetCard.jsx`

### Favorites

- [Favorites page](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/pages/Favoritos.jsx): `src/pages/Favoritos.jsx`
- [Saved pet item](https://github.com/0xdiego-dev/huellaamiga/blob/main/src/components/FavItem.jsx): `src/components/FavItem.jsx`

## Connections

- React entry → App state and routing: renders (evidence: `src/main.jsx`)
- App state and routing → Navigation bar: renders; passes state (evidence: `src/App.jsx`)
- App state and routing → Home page: selects; passes favorites (evidence: `src/App.jsx`)
- App state and routing → Favorites page: selects; passes favorites (evidence: `src/App.jsx`)
- App state and routing → Shared footer: renders (evidence: `src/App.jsx`)
- Home page → Welcome hero: renders (evidence: `src/pages/Inicio.jsx`)
- Home page → Pet catalog data: reads (evidence: `src/pages/Inicio.jsx`)
- Home page → Pet card: renders per pet (evidence: `src/pages/Inicio.jsx`)
- Favorites page → Saved pet item: renders per favorite (evidence: `src/pages/Favoritos.jsx`)
