# alejandromario-creator/on_landing_page architecture

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

- Interactive diagram: https://gitdiagram.com/alejandromario-creator/on_landing_page
- Repository: https://github.com/alejandromario-creator/on_landing_page

## Overview

#### Purpose and Runtime
ON Empresas is a static corporate marketing landing page for presenting business technology services, plans, promotions, and contact calls to action. It is a client-only React application built and served through Vite; no backend, database, API integration, or server-side form processing is indicated.

Entry flow: `index.html` loads `src/main.jsx`, which mounts the React root and renders `src/App.jsx`. Global visual defaults reside in `src/index.css` and page-level composition styling in `src/App.css`.

#### Page Composition
`src/App.jsx` is the top-level orchestrator for the single-page experience. It composes independently styled sections into an ordered landing-page flow rather than routing between pages. Navigation and CTAs are expected to target in-page sections or external contact destinations.

The page is structured around reusable section components under `src/Components/`, with each component owning adjacent CSS. This is a presentation-oriented component architecture with limited shared application state.

#### Navigation and Hero Entry
The header provides the main navigation and likely anchors users into the page’s content sections:
- `src/Components/Header/Header.jsx`
- `src/Components/Header/Header.css`

The opening conversion surface is the hero, combining marketing copy/CTA presentation with a custom visual element:
- `src/Components/Hero/Hero.jsx`
- `src/Components/Hero/EnergySphere.jsx`
- `src/Components/Hero/Hero.css`

#### Content and Offer Stages
Service/value messaging is split into reusable card/block patterns and plan offerings:
- `src/Components/Features/Features.jsx`
- `src/Components/Features/FeatureBlock.jsx`
- `src/Components/Plans/Plans.jsx`
- `src/Components/Plans/PlanCard.jsx`

`Features` renders benefit or capability blocks; `Plans` renders individual offer cards. These components form the core informational and commercial decision path after the hero.

#### Media, Visual Effects, and Motion
The landing page includes a video showcase backed by static MP4 files in the public asset directory:
- `src/Components/VideoShowcase/VideoShowcase.jsx`
- `src/Components/VideoShowcase/VideoShowcase.css`
- `public/Video1.mp4`

Ambient visuals are isolated from content sections:
- `src/Components/BackgroundEffects/BackgroundEffects.jsx`
- `src/Components/BackgroundEffects/BackgroundEffects.css`

Scroll-triggered reveal behavior is encapsulated as a reusable wrapper/boundary:
- `src/Components/ScrollReveal/ScrollReveal.jsx`
- `src/Components/ScrollReveal/ScrollReveal.css`

This separation allows animation and decorative changes without restructuring commercial content.

#### Conversion and Contact Boundary
The conversion path culminates in dedicated CTA and contact components:
- `src/Components/CTASection/CTASection.jsx`
- `src/Components/ContactForm/ContactForm.jsx`
- `src/Components/ContactForm/ContactForm.css`

The form is presently frontend-only; the README explicitly identifies backend submission as future work. A persistent WhatsApp contact affordance provides an external messaging boundary:
- `src/Components/WhatsAppButton/WhatsAppButton.jsx`
- `src/Components/WhatsAppButton/WhatsAppButton.css`

#### Site Closure and Infrastructure
The footer closes the page with corporate/supporting information:
- `src/Components/Footer/Footer.jsx`
- `src/Components/Footer/Footer.css`

Build and development infrastructure is Vite with React, defined by `vite.config.js` and package metadata in `package.json`. Static media is served directly from `public/`; styling is plain component-scoped CSS files rather than a UI framework or design-system dependency.

Main entry points: [`src/App.jsx`](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/App.jsx) (Single-page composition), [`src/main.jsx`](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/main.jsx) (React entry), [`src/Components/Features/Features.jsx`](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Features/Features.jsx) (Features), [`src/Components/Plans/Plans.jsx`](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Plans/Plans.jsx) (Plans)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Vite Runtime"]
  node_html["HTML shell<br/>document<br/>[index.html]"]
  node_main["React entry<br/>React bootstrap<br/>[main.jsx]"]
  node_app["Single-page composition<br/>React root<br/>[App.jsx]"]
  node_styles["Global and page styles<br/>CSS<br/>[index.css]"]
  node_vite["Vite configuration<br/>Build tooling<br/>[vite.config.js]"]
  node_package["Package manifest<br/>Dependencies<br/>[package.json]"]
end

subgraph group_content["Landing Content"]
  node_header["Header navigation<br/>React section<br/>[Header.jsx]"]
  node_hero["Hero<br/>React section<br/>[Hero.jsx]"]
  node_energy["Energy Sphere<br/>Hero visual<br/>[EnergySphere.jsx]"]
  node_features["Features<br/>React section<br/>[Features.jsx]"]
  node_featureblock["Feature blocks<br/>Reusable content<br/>[FeatureBlock.jsx]"]
  node_plans["Plans<br/>React section<br/>[Plans.jsx]"]
  node_plancard["Plan cards<br/>Reusable offer<br/>[PlanCard.jsx]"]
  node_video["Video showcase<br/>React section<br/>[VideoShowcase.jsx]"]
  node_media["Promotional video<br/>Static media<br/>[Video1.mp4]"]
  node_effects["Background effects<br/>Decorative layer"]
  node_reveal["Scroll reveal<br/>Animation wrapper<br/>[ScrollReveal.jsx]"]
end

subgraph group_conversion["Conversion"]
  node_cta["CTA section<br/>React section<br/>[CTASection.jsx]"]
  node_contact["Contact form<br/>Frontend-only form<br/>[ContactForm.jsx]"]
  node_whatsapp["WhatsApp button<br/>External contact CTA<br/>[WhatsAppButton.jsx]"]
  node_footer["Footer<br/>React section<br/>[Footer.jsx]"]
end

node_html -->|"loads"| node_main
node_main -->|"mounts"| node_app
node_main -->|"imports"| node_styles
node_app -->|"composes"| node_header
node_app -->|"composes"| node_hero
node_app -->|"composes"| node_features
node_app -->|"composes"| node_plans
node_app -->|"composes"| node_video
node_app -->|"composes"| node_effects
node_app -->|"composes"| node_cta
node_app -->|"composes"| node_contact
node_app -->|"composes"| node_whatsapp
node_app -->|"composes"| node_footer
node_hero -->|"renders"| node_energy
node_features -->|"renders"| node_featureblock
node_plans -->|"renders"| node_plancard
node_video -->|"plays"| node_media
node_reveal -.->|"reveals"| node_features
node_reveal -.->|"reveals"| node_plans
node_cta -->|"drives to"| node_contact
node_package -->|"defines tooling"| node_vite

click node_html "https://github.com/alejandromario-creator/on_landing_page/blob/main/index.html"
click node_main "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/main.jsx"
click node_app "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/App.jsx"
click node_styles "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/index.css"
click node_header "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Header/Header.jsx"
click node_hero "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Hero/Hero.jsx"
click node_energy "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Hero/EnergySphere.jsx"
click node_features "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Features/Features.jsx"
click node_featureblock "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Features/FeatureBlock.jsx"
click node_plans "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Plans/Plans.jsx"
click node_plancard "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Plans/PlanCard.jsx"
click node_video "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/VideoShowcase/VideoShowcase.jsx"
click node_media "https://github.com/alejandromario-creator/on_landing_page/blob/main/public/Video1.mp4"
click node_effects "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/BackgroundEffects/BackgroundEffects.jsx"
click node_reveal "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/ScrollReveal/ScrollReveal.jsx"
click node_cta "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/CTASection/CTASection.jsx"
click node_contact "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/ContactForm/ContactForm.jsx"
click node_whatsapp "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/WhatsAppButton/WhatsAppButton.jsx"
click node_footer "https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Footer/Footer.jsx"
click node_vite "https://github.com/alejandromario-creator/on_landing_page/blob/main/vite.config.js"
click node_package "https://github.com/alejandromario-creator/on_landing_page/blob/main/package.json"

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_html,node_main,node_app,node_styles,node_vite,node_package toneBlue
class node_header,node_hero,node_energy,node_features,node_featureblock,node_plans,node_plancard,node_video,node_media,node_effects,node_reveal toneAmber
class node_cta,node_contact,node_whatsapp,node_footer toneMint
```

## Components

### Vite Runtime

- [HTML shell](https://github.com/alejandromario-creator/on_landing_page/blob/main/index.html): document · `index.html`
- [React entry](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/main.jsx): React bootstrap · `src/main.jsx`
- [Single-page composition](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/App.jsx): React root · Composes the ordered landing-page sections. · `src/App.jsx`
- [Global and page styles](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/index.css): CSS · `src/index.css`
- [Vite configuration](https://github.com/alejandromario-creator/on_landing_page/blob/main/vite.config.js): Build tooling · `vite.config.js`
- [Package manifest](https://github.com/alejandromario-creator/on_landing_page/blob/main/package.json): Dependencies · `package.json`

### Landing Content

- [Header navigation](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Header/Header.jsx): React section · Provides in-page navigation. · `src/Components/Header/Header.jsx`
- [Hero](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Hero/Hero.jsx): React section · Opening marketing and CTA surface. · `src/Components/Hero/Hero.jsx`
- [Energy Sphere](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Hero/EnergySphere.jsx): Hero visual · `src/Components/Hero/EnergySphere.jsx`
- [Features](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Features/Features.jsx): React section · `src/Components/Features/Features.jsx`
- [Feature blocks](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Features/FeatureBlock.jsx): Reusable content · `src/Components/Features/FeatureBlock.jsx`
- [Plans](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Plans/Plans.jsx): React section · `src/Components/Plans/Plans.jsx`
- [Plan cards](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Plans/PlanCard.jsx): Reusable offer · `src/Components/Plans/PlanCard.jsx`
- [Video showcase](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/VideoShowcase/VideoShowcase.jsx): React section · `src/Components/VideoShowcase/VideoShowcase.jsx`
- [Promotional video](https://github.com/alejandromario-creator/on_landing_page/blob/main/public/Video1.mp4): Static media · Served directly as a public asset. · `public/Video1.mp4`
- [Background effects](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/BackgroundEffects/BackgroundEffects.jsx): Decorative layer · `src/Components/BackgroundEffects/BackgroundEffects.jsx`
- [Scroll reveal](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/ScrollReveal/ScrollReveal.jsx): Animation wrapper · Encapsulates scroll-triggered content reveals. · `src/Components/ScrollReveal/ScrollReveal.jsx`

### Conversion

- [CTA section](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/CTASection/CTASection.jsx): React section · `src/Components/CTASection/CTASection.jsx`
- [Contact form](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/ContactForm/ContactForm.jsx): Frontend-only form · No submission backend is implemented. · `src/Components/ContactForm/ContactForm.jsx`
- [WhatsApp button](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/WhatsAppButton/WhatsAppButton.jsx): External contact CTA · Persistent external messaging boundary. · `src/Components/WhatsAppButton/WhatsAppButton.jsx`
- [Footer](https://github.com/alejandromario-creator/on_landing_page/blob/main/src/Components/Footer/Footer.jsx): React section · `src/Components/Footer/Footer.jsx`

## Connections

- HTML shell → React entry: loads
- React entry → Single-page composition: mounts
- React entry → Global and page styles: imports
- Single-page composition → Header navigation: composes
- Single-page composition → Hero: composes
- Single-page composition → Features: composes
- Single-page composition → Plans: composes
- Single-page composition → Video showcase: composes
- Single-page composition → Background effects: composes
- Single-page composition → CTA section: composes
- Single-page composition → Contact form: composes
- Single-page composition → WhatsApp button: composes
- Single-page composition → Footer: composes
- Hero → Energy Sphere: renders
- Features → Feature blocks: renders
- Plans → Plan cards: renders
- Video showcase → Promotional video: plays
- Scroll reveal → Features: reveals
- Scroll reveal → Plans: reveals
- CTA section → Contact form: drives to
- Package manifest → Vite configuration: defines tooling
