# endrew2000/projeto_josivan architecture

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

- Interactive diagram: https://gitdiagram.com/endrew2000/projeto_josivan
- Repository: https://github.com/endrew2000/projeto_josivan

## Overview

This is a student-facing academic materials repository UI built with React. Students view a sample materials list, choose a format tab to filter it, and can open a sharing modal; the shown modal has no implemented upload or review backend. The app also links to the student portal. The sampled source shows component rendering and callback/state flow, but no persistence or material-opening behavior.

Main entry points: [`src/App.tsx`](https://github.com/endrew2000/projeto_josivan/blob/main/src/App.tsx) (App state and list), [`src/main.tsx`](https://github.com/endrew2000/projeto_josivan/blob/main/src/main.tsx) (React entry), [`src/components/Navbar.tsx`](https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Navbar.tsx) (Portal navigation), [`src/components/Filtros.tsx`](https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Filtros.tsx) (Search and sharing prompt)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App state and list<br/>[App.tsx]"]
  node_navbar["Portal navigation<br/>[Navbar.tsx]"]
  node_footer["Attribution footer<br/>[Rodape.tsx]"]
end

subgraph group_browse["Material browsing"]
  node_filters["Search and sharing prompt<br/>[Filtros.tsx]"]
  node_tabs["Format tabs<br/>[Tabs.tsx]"]
  node_rows["Material rows<br/>[LinhaMaterial.tsx]"]
end

subgraph group_share["Sharing interface"]
  node_modal["Share modal<br/>[Modal.tsx]"]
end

node_student(("Student"))
node_portal["Student portal"]

node_student -->|"uses app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_filters
node_app -->|"renders"| node_tabs
node_app -->|"renders filtered items"| node_rows
node_app -->|"renders"| node_footer
node_app -->|"renders when open"| node_modal
node_tabs -->|"sets active tab"| node_app
node_filters -->|"opens via callback"| node_app
node_modal -->|"closes via callback"| node_app
node_navbar -->|"links to"| node_portal

click node_entry "https://github.com/endrew2000/projeto_josivan/blob/main/src/main.tsx"
click node_app "https://github.com/endrew2000/projeto_josivan/blob/main/src/App.tsx"
click node_navbar "https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Navbar.tsx"
click node_footer "https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Rodape.tsx"
click node_filters "https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Filtros.tsx"
click node_tabs "https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Tabs.tsx"
click node_rows "https://github.com/endrew2000/projeto_josivan/blob/main/src/components/LinhaMaterial.tsx"
click node_modal "https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Modal.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_navbar,node_footer toneBlue
class node_filters,node_tabs,node_rows toneAmber
class node_modal toneMint
class node_student,node_portal toneIndigo
```

## Components

### Application shell

- [React entry](https://github.com/endrew2000/projeto_josivan/blob/main/src/main.tsx): `src/main.tsx`
- [App state and list](https://github.com/endrew2000/projeto_josivan/blob/main/src/App.tsx): `src/App.tsx`
- [Portal navigation](https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Attribution footer](https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Rodape.tsx): `src/components/Rodape.tsx`

### Material browsing

- [Search and sharing prompt](https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Filtros.tsx): `src/components/Filtros.tsx`
- [Format tabs](https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Tabs.tsx): `src/components/Tabs.tsx`
- [Material rows](https://github.com/endrew2000/projeto_josivan/blob/main/src/components/LinhaMaterial.tsx): `src/components/LinhaMaterial.tsx`

### Sharing interface

- [Share modal](https://github.com/endrew2000/projeto_josivan/blob/main/src/components/Modal.tsx): `src/components/Modal.tsx`

### Other components

- **Student**
- **Student portal**

## Connections

- Student → React entry: uses app
- React entry → App state and list: renders (evidence: `src/main.tsx`)
- App state and list → Portal navigation: renders (evidence: `src/App.tsx`)
- App state and list → Search and sharing prompt: renders (evidence: `src/App.tsx`)
- App state and list → Format tabs: renders (evidence: `src/App.tsx`)
- App state and list → Material rows: renders filtered items (evidence: `src/App.tsx`)
- App state and list → Attribution footer: renders (evidence: `src/App.tsx`)
- App state and list → Share modal: renders when open (evidence: `src/App.tsx`)
- Format tabs → App state and list: sets active tab (evidence: `src/components/Tabs.tsx`)
- Search and sharing prompt → App state and list: opens via callback (evidence: `src/components/Filtros.tsx`)
- Share modal → App state and list: closes via callback (evidence: `src/components/Modal.tsx`)
- Portal navigation → Student portal: links to (evidence: `src/components/Navbar.tsx`)
