# kcprdev/frontend-practice architecture

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

- Interactive diagram: https://gitdiagram.com/kcprdev/frontend-practice
- Repository: https://github.com/kcprdev/frontend-practice

## Overview

This repository is a collection of independent browser-based demos rather than one integrated product. Their user-to-result flows include advice retrieval, age calculation, currency conversion, FAQ expansion, rating submission, signup-form validation, and four static presentation components. The sampled scripts show the interactive behavior and external API calls; static pages are represented by their HTML entry files. No shared application runtime or README documentation was provided.

Main entry points: [`currency-converter/script.js`](https://github.com/kcprdev/frontend-practice/blob/main/currency-converter/script.js) (Conversion Flow), [`advice-generator-app-main/script.js`](https://github.com/kcprdev/frontend-practice/blob/main/advice-generator-app-main/script.js) (Advice Retrieval), [`age-calculator-app-main/script.js`](https://github.com/kcprdev/frontend-practice/blob/main/age-calculator-app-main/script.js) (Age Calculation), [`currency-converter/codes.js`](https://github.com/kcprdev/frontend-practice/blob/main/currency-converter/codes.js) (Currency Codes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_advice["Advice Generator"]
  node_advice_app["Advice Retrieval<br/>[script.js]"]
end

subgraph group_age["Age Calculator"]
  node_age_app["Age Calculation<br/>[script.js]"]
end

subgraph group_currency["Currency Converter"]
  node_currency_app["Conversion Flow<br/>[script.js]"]
  node_currency_codes["Currency Codes<br/>[codes.js]"]
end

subgraph group_faq["FAQ Accordion"]
  node_faq_app["FAQ Interaction<br/>[script.js]"]
end

subgraph group_rating["Rating Component"]
  node_rating_app["Rating Submission<br/>[script.js]"]
end

subgraph group_signup["Signup Form"]
  node_signup_app["Form Validation<br/>[script.js]"]
end

subgraph group_fylo["Storage Display"]
  node_fylo_page["Storage Summary<br/>[index.html]"]
end

subgraph group_preview["Product Preview"]
  node_preview_page["Product Card<br/>[index.html]"]
end

subgraph group_social["Social Profile"]
  node_social_page["Social Links<br/>[index.html]"]
end

node_user(("Visitor"))
node_advice_api["Advice API"]
node_rate_api["Exchange Rate API"]
node_flags_api["Flag Image Service"]

node_user -->|"requests advice"| node_advice_app
node_advice_app -->|"fetches advice"| node_advice_api
node_user -->|"submits birth date"| node_age_app
node_age_app -->|"shows age"| node_user
node_user -->|"requests conversion"| node_currency_app
node_currency_app -->|"reads codes"| node_currency_codes
node_currency_app -->|"fetches rates"| node_rate_api
node_currency_app -->|"loads flags"| node_flags_api
node_user -->|"toggles answers"| node_faq_app
node_user -->|"submits rating"| node_rating_app
node_user -->|"submits details"| node_signup_app
node_user -.->|"views display"| node_fylo_page
node_user -.->|"views product"| node_preview_page
node_user -.->|"views profile"| node_social_page

click node_advice_app "https://github.com/kcprdev/frontend-practice/blob/main/advice-generator-app-main/script.js"
click node_age_app "https://github.com/kcprdev/frontend-practice/blob/main/age-calculator-app-main/script.js"
click node_currency_app "https://github.com/kcprdev/frontend-practice/blob/main/currency-converter/script.js"
click node_currency_codes "https://github.com/kcprdev/frontend-practice/blob/main/currency-converter/codes.js"
click node_faq_app "https://github.com/kcprdev/frontend-practice/blob/main/faq-accordion-main/script.js"
click node_rating_app "https://github.com/kcprdev/frontend-practice/blob/main/interactive-rating-component-main/script.js"
click node_signup_app "https://github.com/kcprdev/frontend-practice/blob/main/intro-component-with-signup-form-master/script.js"
click node_fylo_page "https://github.com/kcprdev/frontend-practice/blob/main/fylo-data-storage-component-master/index.html"
click node_preview_page "https://github.com/kcprdev/frontend-practice/blob/main/product-preview-card-component-main/index.html"
click node_social_page "https://github.com/kcprdev/frontend-practice/blob/main/social-links-profile-main/index.html"

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_advice_app,node_fylo_page toneBlue
class node_age_app,node_preview_page toneAmber
class node_currency_app,node_currency_codes,node_social_page,node_advice_api,node_rate_api toneMint
class node_faq_app toneRose
class node_rating_app,node_user,node_flags_api toneIndigo
class node_signup_app toneTeal
```

## Components

### Advice Generator

- [Advice Retrieval](https://github.com/kcprdev/frontend-practice/blob/main/advice-generator-app-main/script.js): `advice-generator-app-main/script.js`

### Age Calculator

- [Age Calculation](https://github.com/kcprdev/frontend-practice/blob/main/age-calculator-app-main/script.js): `age-calculator-app-main/script.js`

### Currency Converter

- [Conversion Flow](https://github.com/kcprdev/frontend-practice/blob/main/currency-converter/script.js): `currency-converter/script.js`
- [Currency Codes](https://github.com/kcprdev/frontend-practice/blob/main/currency-converter/codes.js): `currency-converter/codes.js`

### FAQ Accordion

- [FAQ Interaction](https://github.com/kcprdev/frontend-practice/blob/main/faq-accordion-main/script.js): `faq-accordion-main/script.js`

### Rating Component

- [Rating Submission](https://github.com/kcprdev/frontend-practice/blob/main/interactive-rating-component-main/script.js): `interactive-rating-component-main/script.js`

### Signup Form

- [Form Validation](https://github.com/kcprdev/frontend-practice/blob/main/intro-component-with-signup-form-master/script.js): `intro-component-with-signup-form-master/script.js`

### Storage Display

- [Storage Summary](https://github.com/kcprdev/frontend-practice/blob/main/fylo-data-storage-component-master/index.html): `fylo-data-storage-component-master/index.html`

### Product Preview

- [Product Card](https://github.com/kcprdev/frontend-practice/blob/main/product-preview-card-component-main/index.html): `product-preview-card-component-main/index.html`

### Social Profile

- [Social Links](https://github.com/kcprdev/frontend-practice/blob/main/social-links-profile-main/index.html): `social-links-profile-main/index.html`

### Other components

- **Visitor**
- **Advice API**
- **Exchange Rate API**
- **Flag Image Service**

## Connections

- Visitor → Advice Retrieval: requests advice (evidence: `advice-generator-app-main/script.js`)
- Advice Retrieval → Advice API: fetches advice (evidence: `advice-generator-app-main/script.js`)
- Visitor → Age Calculation: submits birth date (evidence: `age-calculator-app-main/script.js`)
- Age Calculation → Visitor: shows age (evidence: `age-calculator-app-main/script.js`)
- Visitor → Conversion Flow: requests conversion (evidence: `currency-converter/script.js`)
- Conversion Flow → Currency Codes: reads codes (evidence: `currency-converter/script.js`)
- Conversion Flow → Exchange Rate API: fetches rates (evidence: `currency-converter/script.js`)
- Conversion Flow → Flag Image Service: loads flags (evidence: `currency-converter/script.js`)
- Visitor → FAQ Interaction: toggles answers (evidence: `faq-accordion-main/script.js`)
- Visitor → Rating Submission: submits rating (evidence: `interactive-rating-component-main/script.js`)
- Visitor → Form Validation: submits details (evidence: `intro-component-with-signup-form-master/script.js`)
- Visitor → Storage Summary: views display
- Visitor → Product Card: views product
- Visitor → Social Links: views profile
