# jayk-dev/project-sailor-moon architecture

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

- Interactive diagram: https://gitdiagram.com/jayk-dev/project-sailor-moon
- Repository: https://github.com/jayk-dev/project-sailor-moon

## Overview

This is a small interactive character-selection page. A user clicks a button; the JavaScript handler changes the selected button and the corresponding character by index. The source excerpt shows the DOM selectors and class updates, but not the HTML markup or CSS rules, so their exact structure and styling are not inferred.

Main entry points: [`src/js/index.js`](https://github.com/jayk-dev/project-sailor-moon/blob/main/src/js/index.js) (Selection handler), [`index.html`](https://github.com/jayk-dev/project-sailor-moon/blob/main/index.html) (Page markup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Character Selection"]
  node_page["Page markup<br/>[index.html]"]
  node_controller["Selection handler<br/>[index.js]"]
  node_styles["Page styles<br/>[estilo.css]"]
  node_reset["CSS reset<br/>[reset.css]"]
end

node_user(("User"))

node_user -->|"clicks button"| node_controller
node_controller -->|"updates selection"| node_page

click node_page "https://github.com/jayk-dev/project-sailor-moon/blob/main/index.html"
click node_controller "https://github.com/jayk-dev/project-sailor-moon/blob/main/src/js/index.js"
click node_styles "https://github.com/jayk-dev/project-sailor-moon/blob/main/src/css/estilo.css"
click node_reset "https://github.com/jayk-dev/project-sailor-moon/blob/main/src/css/reset.css"

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_page,node_controller,node_styles,node_reset,node_user toneBlue
```

## Components

### Character Selection

- [Page markup](https://github.com/jayk-dev/project-sailor-moon/blob/main/index.html): `index.html`
- [Selection handler](https://github.com/jayk-dev/project-sailor-moon/blob/main/src/js/index.js): `src/js/index.js`
- [Page styles](https://github.com/jayk-dev/project-sailor-moon/blob/main/src/css/estilo.css): `src/css/estilo.css`
- [CSS reset](https://github.com/jayk-dev/project-sailor-moon/blob/main/src/css/reset.css): `src/css/reset.css`

### Other components

- **User**

## Connections

- User → Selection handler: clicks button (evidence: `src/js/index.js`)
- Selection handler → Page markup: updates selection (evidence: `src/js/index.js`)
