# bhaskar-majjari/signup-wizard-assignment architecture

> Architecture diagram of the GitHub repository bhaskar-majjari/signup-wizard-assignment, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bhaskar-majjari/signup-wizard-assignment
- Repository: https://github.com/bhaskar-majjari/signup-wizard-assignment

## Overview

Nubpack is a client-side React signup flow: users start at a landing page, accept terms, complete email and demo-OTP verification, enter personal and education details, then see a completion screen. App owns page transitions and toast state; Signup owns the four-step form state and renders each step. Verification and profile creation are simulated with timers and hard-coded demo data; no backend or persistent storage is shown. The README describes only a React/Vite template, so product behavior is inferred from the sampled source rather than product documentation.

Main entry points: [`src/App.jsx`](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/App.jsx) (Page state and toasts), [`src/Components/Signup/Signup.jsx`](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/Signup.jsx) (Signup coordinator), [`src/Components/LandingPage.jsx`](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/LandingPage.jsx) (Welcome page), [`src/main.jsx`](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/main.jsx) (React entry point)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_app["Page state and toasts<br/>[App.jsx]"]
  node_toast["Toast notice<br/>[Toast.jsx]"]
  node_bootstrap["React entry point<br/>[main.jsx]"]
end

subgraph group_entry["Entry and consent"]
  node_landing["Welcome page<br/>[LandingPage.jsx]"]
  node_terms["Terms acceptance<br/>[Terms.jsx]"]
end

subgraph group_registration["Signup workflow"]
  node_signup["Signup coordinator<br/>[Signup.jsx]"]
  node_email["Email entry<br/>[EmailStep.jsx]"]
  node_otp["OTP verification<br/>[OtpStep.jsx]"]
  node_personal["Personal details<br/>[PersonalStep.jsx]"]
  node_education["Education details<br/>[EducationStep.jsx]"]
end

subgraph group_completion["Completion"]
  node_success["Success screen<br/>[Success.jsx]"]
end

node_user(("User"))

node_bootstrap -->|"renders"| node_app
node_app -->|"renders"| node_landing
node_app -->|"renders"| node_terms
node_app -->|"renders"| node_signup
node_app -->|"renders"| node_toast
node_app -->|"renders"| node_success
node_user -->|"starts signup"| node_landing
node_signup -->|"renders step"| node_email
node_signup -->|"renders step"| node_otp
node_signup -->|"renders step"| node_personal
node_signup -->|"renders step"| node_education
node_signup -->|"completes signup"| node_app

click node_app "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/App.jsx"
click node_landing "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/LandingPage.jsx"
click node_terms "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Terms.jsx"
click node_signup "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/Signup.jsx"
click node_email "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/EmailStep.jsx"
click node_otp "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/OtpStep.jsx"
click node_personal "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/PersonalStep.jsx"
click node_education "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/EducationStep.jsx"
click node_toast "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Toast.jsx"
click node_success "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Success.jsx"
click node_bootstrap "https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/main.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_app,node_toast,node_bootstrap,node_user toneBlue
class node_landing,node_terms toneAmber
class node_signup,node_email,node_otp,node_personal,node_education toneMint
class node_success toneRose
```

## Components

### Application shell

- [Page state and toasts](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Toast notice](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Toast.jsx): `src/Components/Toast.jsx`
- [React entry point](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/main.jsx): `src/main.jsx`

### Entry and consent

- [Welcome page](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/LandingPage.jsx): `src/Components/LandingPage.jsx`
- [Terms acceptance](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Terms.jsx): `src/Components/Terms.jsx`

### Signup workflow

- [Signup coordinator](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/Signup.jsx): `src/Components/Signup/Signup.jsx`
- [Email entry](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/EmailStep.jsx): `src/Components/Signup/EmailStep.jsx`
- [OTP verification](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/OtpStep.jsx): `src/Components/Signup/OtpStep.jsx`
- [Personal details](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/PersonalStep.jsx): `src/Components/Signup/PersonalStep.jsx`
- [Education details](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Components/Signup/EducationStep.jsx): `src/Components/Signup/EducationStep.jsx`

### Completion

- [Success screen](https://github.com/bhaskar-majjari/signup-wizard-assignment/blob/main/src/Success.jsx): `src/Success.jsx`

### Other components

- **User**

## Connections

- React entry point → Page state and toasts: renders (evidence: `src/main.jsx`)
- Page state and toasts → Welcome page: renders (evidence: `src/App.jsx`)
- Page state and toasts → Terms acceptance: renders (evidence: `src/App.jsx`)
- Page state and toasts → Signup coordinator: renders (evidence: `src/App.jsx`)
- Page state and toasts → Toast notice: renders (evidence: `src/App.jsx`)
- Page state and toasts → Success screen: renders (evidence: `src/App.jsx`)
- User → Welcome page: starts signup (evidence: `src/Components/LandingPage.jsx`)
- Signup coordinator → Email entry: renders step (evidence: `src/Components/Signup/Signup.jsx`)
- Signup coordinator → OTP verification: renders step (evidence: `src/Components/Signup/Signup.jsx`)
- Signup coordinator → Personal details: renders step (evidence: `src/Components/Signup/Signup.jsx`)
- Signup coordinator → Education details: renders step (evidence: `src/Components/Signup/Signup.jsx`)
- Signup coordinator → Page state and toasts: completes signup (evidence: `src/Components/Signup/Signup.jsx`)
