# oscardelgado-web/frontendii architecture

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

- Interactive diagram: https://gitdiagram.com/oscardelgado-web/frontendii
- Repository: https://github.com/oscardelgado-web/frontendii

## Overview

This is a small React learning/demo site, not a product with a documented data-processing backend. The runtime starts in the browser, mounts a hash-routed app, and displays navigation plus week-one layout examples and week-two form/button examples. Route ownership is visible in App.tsx; Botones composes the reusable Boton component. The README describes only a generic Vite template, so it adds no product capabilities. The sampled files do not show form submission handling or persistent state.

Main entry points: [`src/App.tsx`](https://github.com/oscardelgado-web/frontendii/blob/main/src/App.tsx) (Hash routes), [`src/main.tsx`](https://github.com/oscardelgado-web/frontendii/blob/main/src/main.tsx) (React mount), [`src/components/semana2/Botones.tsx`](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana2/Botones.tsx) (Button examples), [`src/components/NavBar.tsx`](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/NavBar.tsx) (Navigation menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["App runtime"]
  node_entry["React mount<br/>[main.tsx]"]
  node_app["Hash routes<br/>[App.tsx]"]
  node_nav["Navigation menu<br/>[NavBar.tsx]"]
end

subgraph group_week1["Semana 1 demos"]
  node_home["Home page<br/>[Home.tsx]"]
  node_flex["Flex demo<br/>[Flex.tsx]"]
  node_grid["Grid demo<br/>[Grid.tsx]"]
  node_tailwind["Tailwind demo<br/>[Apps.tsx]"]
end

subgraph group_week2["Semana 2 demos"]
  node_form["Product form<br/>[Form.tsx]"]
  node_buttons["Button examples<br/>[Botones.tsx]"]
  node_button["Styled button<br/>[Boton.tsx]"]
end

node_browser(("Browser visitor"))

node_browser -->|"opens app"| node_entry
node_entry -->|"mounts"| node_app
node_app -->|"renders"| node_nav
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_flex
node_app -->|"routes to"| node_grid
node_app -->|"routes to"| node_tailwind
node_app -->|"routes to"| node_form
node_app -->|"routes to"| node_buttons
node_buttons -->|"renders"| node_button

click node_entry "https://github.com/oscardelgado-web/frontendii/blob/main/src/main.tsx"
click node_app "https://github.com/oscardelgado-web/frontendii/blob/main/src/App.tsx"
click node_nav "https://github.com/oscardelgado-web/frontendii/blob/main/src/components/NavBar.tsx"
click node_home "https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana1/Home.tsx"
click node_flex "https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana1/Flex.tsx"
click node_grid "https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana1/Grid.tsx"
click node_tailwind "https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana1/Apps.tsx"
click node_form "https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana2/Form.tsx"
click node_buttons "https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana2/Botones.tsx"
click node_button "https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana2/Boton.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_entry,node_app,node_nav,node_browser toneBlue
class node_home,node_flex,node_grid,node_tailwind toneAmber
class node_form,node_buttons,node_button toneMint
```

## Components

### App runtime

- [React mount](https://github.com/oscardelgado-web/frontendii/blob/main/src/main.tsx): `src/main.tsx`
- [Hash routes](https://github.com/oscardelgado-web/frontendii/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation menu](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/NavBar.tsx): `src/components/NavBar.tsx`

### Semana 1 demos

- [Home page](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana1/Home.tsx): `src/components/semana1/Home.tsx`
- [Flex demo](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana1/Flex.tsx): `src/components/semana1/Flex.tsx`
- [Grid demo](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana1/Grid.tsx): `src/components/semana1/Grid.tsx`
- [Tailwind demo](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana1/Apps.tsx): `src/components/semana1/Apps.tsx`

### Semana 2 demos

- [Product form](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana2/Form.tsx): `src/components/semana2/Form.tsx`
- [Button examples](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana2/Botones.tsx): `src/components/semana2/Botones.tsx`
- [Styled button](https://github.com/oscardelgado-web/frontendii/blob/main/src/components/semana2/Boton.tsx): `src/components/semana2/Boton.tsx`

### Other components

- **Browser visitor**

## Connections

- Browser visitor → React mount: opens app
- React mount → Hash routes: mounts (evidence: `src/main.tsx`)
- Hash routes → Navigation menu: renders (evidence: `src/App.tsx`)
- Hash routes → Home page: routes to (evidence: `src/App.tsx`)
- Hash routes → Flex demo: routes to (evidence: `src/App.tsx`)
- Hash routes → Grid demo: routes to (evidence: `src/App.tsx`)
- Hash routes → Tailwind demo: routes to (evidence: `src/App.tsx`)
- Hash routes → Product form: routes to (evidence: `src/App.tsx`)
- Hash routes → Button examples: routes to (evidence: `src/App.tsx`)
- Button examples → Styled button: renders (evidence: `src/components/semana2/Botones.tsx`)
