How alejandromario-creator/on_landing_page works
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: App.jsx Single-page composition · main.jsx React entry · Features.jsx Features · Plans.jsx Plans
Components 21
Vite Runtime
- HTML shell
index.html - React entry
src/main.jsx - Single-page composition · Composes the ordered landing-page sections.
src/App.jsx - Global and page styles
src/index.css - Vite configuration
vite.config.js - Package manifest
package.json
Landing Content
- Header navigation · Provides in-page navigation.
src/Components/Header/Header.jsx - Hero · Opening marketing and CTA surface.
src/Components/Hero/Hero.jsx - Energy Sphere
src/Components/Hero/EnergySphere.jsx - Features
src/Components/Features/Features.jsx - Feature blocks
src/Components/Features/FeatureBlock.jsx - Plans
src/Components/Plans/Plans.jsx - Plan cards
src/Components/Plans/PlanCard.jsx - Video showcase
src/Components/VideoShowcase/VideoShowcase.jsx - Promotional video · Served directly as a public asset.
public/Video1.mp4 - Background effects
src/Components/BackgroundEffects/BackgroundEffects.jsx - Scroll reveal · Encapsulates scroll-triggered content reveals.
src/Components/ScrollReveal/ScrollReveal.jsx
Conversion
- CTA section
src/Components/CTASection/CTASection.jsx - Contact form · No submission backend is implemented.
src/Components/ContactForm/ContactForm.jsx - WhatsApp button · Persistent external messaging boundary.
src/Components/WhatsAppButton/WhatsAppButton.jsx - Footer
src/Components/Footer/Footer.jsx
Connections 21
- 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