# gusyoldi/ochentanoventa architecture

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

- Interactive diagram: https://gitdiagram.com/gusyoldi/ochentanoventa
- Repository: https://github.com/gusyoldi/ochentanoventa

## Overview

#### Purpose and Runtime
Ochenta Noventa is the official promotional site for a Buenos Aires rock-cover band. It is a Next.js 15 App Router application using React 19, TypeScript, and Tailwind CSS 4. It presents band content, upcoming events, discography/volumes, and a booking contact flow. Primary runtime entry points are `src/app/layout.tsx` and `src/app/page.tsx`.

#### Application Shell and Page Composition
The root layout establishes global page structure, fonts, styling, and likely shared SEO/UI providers. The single main route composes the landing-page sections and site-wide navigation/footer.
- `src/app/layout.tsx`
- `src/app/page.tsx`
- `src/app/_styles/globals.css`

The page is organized as independently rendered feature sections rather than separate route pages: Hero, Events, Versions, and Contact.
- `src/components/sections/Hero/HeroSection.tsx`
- `src/components/sections/Events/EventsSection.tsx`
- `src/components/sections/Versions/VersionsSection.tsx`

#### Content Model: Static Configuration plus Strapi
Static brand/content defaults live under app-local constants and configuration, while dynamic promotional media/content is fetched from headless Strapi. The Strapi service layer isolates endpoint access, schema parsing/types, normalization utilities, and fallback defaults from UI components.
- `src/services/strapi/getBanner.ts`
- `src/services/strapi/getCarousel.ts`
- `src/services/strapi/getLastVolume.ts`

Strapi-fed outputs appear to drive banner/carousel and latest-release experiences; static event, hero, media, and version data are represented separately.
- `src/app/_lib/constants/events.ts`
- `src/app/_lib/constants/hero.ts`
- `src/app/_lib/constants/versions.ts`

#### Presentation Components and Media
Feature sections consume reusable presentation units for promotional imagery, volume listings, carousel content, and latest-volume cards. Static image assets are served from Next’s public directory, while CMS assets cross the Strapi integration boundary.
- `src/components/ui/Carousel/CarouselWrapper.tsx`
- `src/components/ui/LatestVolume/LatestVolume.tsx`
- `src/components/sections/Versions/Volumes/VolumesList.tsx`

- `public/images/carousel1`
- `public/images/volumes`
- `public/images/header`

#### Navigation, Footer, and Interaction Accessibility
Shared layout components provide site navigation, contact affordance, branding, footer/social links, and external Spotify linkage. Local primitives and hooks support modal-like behavior, click-outside detection, focus trapping, and accessible interactions.
- `src/components/layout/Navbar/Navbar.tsx`
- `src/components/layout/Footer/Footer.tsx`
- `src/app/_lib/hooks/useFocusTrap.ts`

#### Contact Submission Boundary
The contact section renders a validated form UI. Submission flows through a client-side contact sender and/or Next API boundary; `src/app/api/contact/route.ts` is the server route available for handling form requests. EmailJS is the external email delivery service, configured through environment variables rather than repository content.
- `src/components/sections/Contact/ContactSection.tsx`
- `src/components/ui/Form/Form.tsx`
- `src/app/api/contact/route.ts`

#### SEO, Error Handling, and Discovery
SEO is handled at the App Router layer through metadata and JSON-LD, with crawl endpoints for robots and sitemap generation. Route-level error handling provides a failure boundary for rendering/runtime errors.
- `src/app/_lib/seo/metadata.ts`
- `src/app/_lib/seo/JsonLd.tsx`
- `src/app/robots.ts`
- `src/app/sitemap.ts`
- `src/app/error.tsx`

Main entry points: [`src/app/layout.tsx`](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/layout.tsx) (Root layout), [`src/app/page.tsx`](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/page.tsx) (Landing page), [`src/components/sections/Versions/VersionsSection.tsx`](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Versions/VersionsSection.tsx) (Versions section), [`src/app/_lib/constants/hero.ts`](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/_lib/constants/hero.ts) (Static band content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App runtime"]
  node_layout["Root layout<br/>Next.js entry<br/>[layout.tsx]"]
  node_page["Landing page<br/>App Router page<br/>[page.tsx]"]
  node_styles["Global styles<br/>Tailwind CSS<br/>[globals.css]"]
  node_navbar["Navigation<br/>layout component<br/>[Navbar.tsx]"]
  node_footer["Footer &amp; social links<br/>layout component<br/>[Footer.tsx]"]
  node_error["Error boundary<br/>route error UI<br/>[error.tsx]"]
end

subgraph group_content["Content &amp; presentation"]
  node_hero["Hero section<br/>feature section<br/>[HeroSection.tsx]"]
  node_events["Events section<br/>feature section<br/>[EventsSection.tsx]"]
  node_versions["Versions section<br/>feature section"]
  node_static_content["Static band content<br/>constants<br/>[hero.ts]"]
  node_strapi{{"Strapi integration<br/>CMS service layer<br/>[getBanner.ts]"}}
  node_carousel["Promotional carousel<br/>UI component"]
  node_latest_volume["Latest volume<br/>UI component<br/>[LatestVolume.tsx]"]
  node_volume_list["Volume list<br/>UI component<br/>[VolumesList.tsx]"]
end

subgraph group_contact["Contact delivery"]
  node_contact_section["Contact section<br/>feature section<br/>[ContactSection.tsx]"]
  node_contact_form["Validated booking form<br/>form UI<br/>[Form.tsx]"]
  node_contact_api{{"Contact API<br/>Next route handler<br/>[route.ts]"}}
  node_emailjs(("EmailJS<br/>external email service"))
end

subgraph group_discovery["SEO &amp; discovery"]
  node_metadata["Metadata &amp; JSON-LD<br/>SEO utilities<br/>[metadata.ts]"]
  node_robots["Robots endpoint<br/>crawl route<br/>[robots.ts]"]
  node_sitemap["Sitemap endpoint<br/>crawl route<br/>[sitemap.ts]"]
end

node_layout -->|"hosts"| node_page
node_layout -->|"loads"| node_styles
node_layout -->|"renders"| node_navbar
node_layout -->|"renders"| node_footer
node_layout -->|"uses"| node_metadata
node_page -->|"composes"| node_hero
node_page -->|"composes"| node_events
node_page -->|"composes"| node_versions
node_page -->|"composes"| node_contact_section
node_hero -->|"reads defaults"| node_static_content
node_events -->|"reads events"| node_static_content
node_versions -->|"reads volumes"| node_static_content
node_versions -->|"renders"| node_volume_list
node_versions -->|"renders"| node_latest_volume
node_carousel -->|"loads content"| node_strapi
node_latest_volume -->|"loads release"| node_strapi
node_contact_section -->|"renders"| node_contact_form
node_contact_form -->|"submits to"| node_contact_api
node_contact_api -->|"sends email"| node_emailjs
node_robots -->|"advertises"| node_sitemap

click node_layout "https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/layout.tsx"
click node_page "https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/page.tsx"
click node_styles "https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/_styles/globals.css"
click node_navbar "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/layout/Navbar/Navbar.tsx"
click node_footer "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/layout/Footer/Footer.tsx"
click node_error "https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/error.tsx"
click node_hero "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Hero/HeroSection.tsx"
click node_events "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Events/EventsSection.tsx"
click node_versions "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Versions/VersionsSection.tsx"
click node_static_content "https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/_lib/constants/hero.ts"
click node_strapi "https://github.com/gusyoldi/ochentanoventa/blob/main/src/services/strapi/getBanner.ts"
click node_carousel "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/ui/Carousel/CarouselWrapper.tsx"
click node_latest_volume "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/ui/LatestVolume/LatestVolume.tsx"
click node_volume_list "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Versions/Volumes/VolumesList.tsx"
click node_contact_section "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Contact/ContactSection.tsx"
click node_contact_form "https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/ui/Form/Form.tsx"
click node_contact_api "https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/api/contact/route.ts"
click node_metadata "https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/_lib/seo/metadata.ts"
click node_robots "https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/robots.ts"
click node_sitemap "https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/sitemap.ts"

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_layout,node_page,node_styles,node_navbar,node_footer,node_error toneBlue
class node_hero,node_events,node_versions,node_static_content,node_strapi,node_carousel,node_latest_volume,node_volume_list toneAmber
class node_contact_section,node_contact_form,node_contact_api,node_emailjs toneMint
class node_metadata,node_robots,node_sitemap toneRose
```

## Components

### App runtime

- [Root layout](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/layout.tsx): Next.js entry · Sets global shell, fonts, and shared styling. · `src/app/layout.tsx`
- [Landing page](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/page.tsx): App Router page · Composes the single-page promotional experience. · `src/app/page.tsx`
- [Global styles](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/_styles/globals.css): Tailwind CSS · `src/app/_styles/globals.css`
- [Navigation](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/layout/Navbar/Navbar.tsx): layout component · `src/components/layout/Navbar/Navbar.tsx`
- [Footer & social links](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/layout/Footer/Footer.tsx): layout component · `src/components/layout/Footer/Footer.tsx`
- [Error boundary](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/error.tsx): route error UI · `src/app/error.tsx`

### Content & presentation

- [Hero section](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Hero/HeroSection.tsx): feature section · `src/components/sections/Hero/HeroSection.tsx`
- [Events section](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Events/EventsSection.tsx): feature section · `src/components/sections/Events/EventsSection.tsx`
- [Versions section](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Versions/VersionsSection.tsx): feature section · `src/components/sections/Versions/VersionsSection.tsx`
- [Static band content](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/_lib/constants/hero.ts): constants · Provides hero, event, and versions defaults. · `src/app/_lib/constants/hero.ts`
- [Strapi integration](https://github.com/gusyoldi/ochentanoventa/blob/main/src/services/strapi/getBanner.ts): CMS service layer · Fetches and normalizes promotional CMS data. · `src/services/strapi/getBanner.ts`
- [Promotional carousel](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/ui/Carousel/CarouselWrapper.tsx): UI component · `src/components/ui/Carousel/CarouselWrapper.tsx`
- [Latest volume](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/ui/LatestVolume/LatestVolume.tsx): UI component · `src/components/ui/LatestVolume/LatestVolume.tsx`
- [Volume list](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Versions/Volumes/VolumesList.tsx): UI component · `src/components/sections/Versions/Volumes/VolumesList.tsx`

### Contact delivery

- [Contact section](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/sections/Contact/ContactSection.tsx): feature section · `src/components/sections/Contact/ContactSection.tsx`
- [Validated booking form](https://github.com/gusyoldi/ochentanoventa/blob/main/src/components/ui/Form/Form.tsx): form UI · `src/components/ui/Form/Form.tsx`
- [Contact API](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/api/contact/route.ts): Next route handler · Server boundary for booking submissions. · `src/app/api/contact/route.ts`
- **EmailJS**: external email service · Delivers contact messages using environment configuration.

### SEO & discovery

- [Metadata & JSON-LD](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/_lib/seo/metadata.ts): SEO utilities · `src/app/_lib/seo/metadata.ts`
- [Robots endpoint](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/robots.ts): crawl route · `src/app/robots.ts`
- [Sitemap endpoint](https://github.com/gusyoldi/ochentanoventa/blob/main/src/app/sitemap.ts): crawl route · `src/app/sitemap.ts`

## Connections

- Root layout → Landing page: hosts
- Root layout → Global styles: loads
- Root layout → Navigation: renders
- Root layout → Footer & social links: renders
- Root layout → Metadata & JSON-LD: uses
- Landing page → Hero section: composes
- Landing page → Events section: composes
- Landing page → Versions section: composes
- Landing page → Contact section: composes
- Hero section → Static band content: reads defaults
- Events section → Static band content: reads events
- Versions section → Static band content: reads volumes
- Versions section → Volume list: renders
- Versions section → Latest volume: renders
- Promotional carousel → Strapi integration: loads content
- Latest volume → Strapi integration: loads release
- Contact section → Validated booking form: renders
- Validated booking form → Contact API: submits to
- Contact API → EmailJS: sends email
- Robots endpoint → Sitemap endpoint: advertises
