# nakul-jm/-ui-challenge-profile-card architecture

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

- Interactive diagram: https://gitdiagram.com/nakul-jm/-ui-challenge-profile-card
- Repository: https://github.com/nakul-jm/-ui-challenge-profile-card

## Overview

This is a minimal React/TypeScript UI template, not a connected profile product: the entry point mounts an App that renders “Hello.” A separate reusable ProfileCard component accepts profile data and action callbacks and composes Avatar, Stat, and Button, but the sampled App does not use it. The graph reflects these shown relationships; no broader user workflow or unsampled behavior is assumed.

Main entry points: [`src/components/ProfileCard.tsx`](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/ProfileCard.tsx) (Profile card), [`src/main.tsx`](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/main.tsx) (React entry), [`src/App.tsx`](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/App.tsx) (Hello app), [`src/components/Avatar.tsx`](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/Avatar.tsx) (Avatar)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_main["React entry<br/>[main.tsx]"]
node_app["Hello app<br/>[App.tsx]"]
node_profile["Profile card<br/>[ProfileCard.tsx]"]
node_avatar["Avatar<br/>[Avatar.tsx]"]
node_stat["Stat display<br/>[Stat.tsx]"]
node_button["Action button<br/>[Button.tsx]"]
node_globalcss["Global styles<br/>[index.css]"]

node_main -->|"renders"| node_app
node_main -->|"imports styles"| node_globalcss
node_profile -->|"renders"| node_avatar
node_profile -->|"renders"| node_stat
node_profile -->|"renders"| node_button

click node_main "https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/main.tsx"
click node_app "https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/App.tsx"
click node_profile "https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/ProfileCard.tsx"
click node_avatar "https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/Avatar.tsx"
click node_stat "https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/Stat.tsx"
click node_button "https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/Button.tsx"
click node_globalcss "https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/index.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_main,node_app,node_profile,node_avatar,node_stat,node_button,node_globalcss toneTeal
```

## Components

### Other components

- [React entry](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/main.tsx): `src/main.tsx`
- [Hello app](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/App.tsx): `src/App.tsx`
- [Profile card](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/ProfileCard.tsx): `src/components/ProfileCard.tsx`
- [Avatar](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/Avatar.tsx): `src/components/Avatar.tsx`
- [Stat display](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/Stat.tsx): `src/components/Stat.tsx`
- [Action button](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/components/Button.tsx): `src/components/Button.tsx`
- [Global styles](https://github.com/nakul-jm/-ui-challenge-profile-card/blob/main/src/index.css): `src/index.css`

## Connections

- React entry → Hello app: renders (evidence: `src/main.tsx`)
- React entry → Global styles: imports styles (evidence: `src/main.tsx`)
- Profile card → Avatar: renders (evidence: `src/components/ProfileCard.tsx`)
- Profile card → Stat display: renders (evidence: `src/components/ProfileCard.tsx`)
- Profile card → Action button: renders (evidence: `src/components/ProfileCard.tsx`)
