# mindwideopen/bs-orange architecture

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

- Interactive diagram: https://gitdiagram.com/mindwideopen/bs-orange
- Repository: https://github.com/mindwideopen/bs-orange

## Overview

This is a Russian-language corporate website for Baltic Style, an IT infrastructure integrator. Visitors enter through Next.js routes to browse company, services, partners and project news; news pages fetch published records from Directus. A separate contact-request form validates user input and posts it to an API endpoint. The graph preserves documented route, news-fetch and form relationships; unsampled view composition and the contact endpoint’s implementation are not inferred.

Main entry points: [`src/features/contact-request/ui/contact-request.tsx`](https://github.com/mindwideopen/bs-orange/blob/main/src/features/contact-request/ui/contact-request.tsx) (Contact request form), [`app/news/page.tsx`](https://github.com/mindwideopen/bs-orange/blob/main/app/news/page.tsx) (News route), [`app/news/[slug]/page.tsx`](https://github.com/mindwideopen/bs-orange/blob/main/app/news/%5Bslug%5D/page.tsx) (Article route), [`src/entities/news/api/getNews.ts`](https://github.com/mindwideopen/bs-orange/blob/main/src/entities/news/api/getNews.ts) (News retrieval)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Page routing"]
  node_home_route["Home route<br/>[page.tsx]"]
  node_about_route["About route<br/>[page.tsx]"]
  node_services_route["Services route<br/>[page.tsx]"]
  node_partners_route["Partners route<br/>[page.tsx]"]
  node_contacts_route["Contacts route<br/>[page.tsx]"]
  node_news_route["News route<br/>[page.tsx]"]
  node_article_route["Article route<br/>[page.tsx]"]
  node_layout["Root layout<br/>[layout.tsx]"]
end

subgraph group_content["Company content"]
  node_home_view["Home content<br/>[home-page.tsx]"]
  node_about_view["About content<br/>[about-page.tsx]"]
  node_services_view["Services catalog<br/>[services-page.tsx]"]
  node_partners_view["Partner directory<br/>[partners-page.tsx]"]
  node_contacts_view["Contact details<br/>[contacts-page.tsx]"]
  node_app_shell["Application shell<br/>[app-shell.tsx]"]
end

subgraph group_news["News publishing"]
  node_news_view["News listing<br/>[news-page.tsx]"]
  node_article_view["News article"]
  node_news_api["News retrieval<br/>[getNews.ts]"]
end

subgraph group_interaction["User interaction"]
  node_contact_form["Contact request form"]
  node_form_validation["Field validation"]
  node_privacy_modal["Privacy policy modal"]
end

node_visitor(("Website visitor"))
node_directus[("Directus CMS")]
node_contact_api["Contact API endpoint"]

node_visitor -->|"opens"| node_home_route
node_visitor -->|"opens"| node_about_route
node_visitor -->|"opens"| node_services_route
node_visitor -->|"opens"| node_partners_route
node_visitor -->|"opens"| node_contacts_route
node_visitor -->|"opens"| node_news_route
node_visitor -->|"opens"| node_article_route
node_home_route -->|"renders"| node_home_view
node_about_route -->|"renders"| node_about_view
node_services_route -->|"renders"| node_services_view
node_partners_route -->|"renders"| node_partners_view
node_contacts_route -->|"renders"| node_contacts_view
node_news_route -->|"fetches news"| node_news_api
node_news_route -->|"renders"| node_news_view
node_article_route -->|"loads article"| node_news_api
node_article_route -->|"renders"| node_article_view
node_news_api -->|"requests records"| node_directus
node_contact_form -->|"validates fields"| node_form_validation
node_contact_form -->|"renders consent link"| node_privacy_modal
node_contact_form -->|"posts form"| node_contact_api
node_layout -->|"renders shell"| node_app_shell

click node_home_route "https://github.com/mindwideopen/bs-orange/blob/main/app/page.tsx"
click node_about_route "https://github.com/mindwideopen/bs-orange/blob/main/app/about/page.tsx"
click node_services_route "https://github.com/mindwideopen/bs-orange/blob/main/app/services/page.tsx"
click node_partners_route "https://github.com/mindwideopen/bs-orange/blob/main/app/partners/page.tsx"
click node_contacts_route "https://github.com/mindwideopen/bs-orange/blob/main/app/contacts/page.tsx"
click node_news_route "https://github.com/mindwideopen/bs-orange/blob/main/app/news/page.tsx"
click node_article_route "https://github.com/mindwideopen/bs-orange/blob/main/app/news/%5Bslug%5D/page.tsx"
click node_home_view "https://github.com/mindwideopen/bs-orange/blob/main/src/views/home/ui/home-page.tsx"
click node_about_view "https://github.com/mindwideopen/bs-orange/blob/main/src/views/about/ui/about-page.tsx"
click node_services_view "https://github.com/mindwideopen/bs-orange/blob/main/src/views/services/ui/services-page.tsx"
click node_partners_view "https://github.com/mindwideopen/bs-orange/blob/main/src/views/partners/ui/partners-page.tsx"
click node_contacts_view "https://github.com/mindwideopen/bs-orange/blob/main/src/views/contacts/ui/contacts-page.tsx"
click node_news_view "https://github.com/mindwideopen/bs-orange/blob/main/src/views/news/ui/news-page.tsx"
click node_article_view "https://github.com/mindwideopen/bs-orange/blob/main/src/views/news/ui/news-article-page.tsx"
click node_news_api "https://github.com/mindwideopen/bs-orange/blob/main/src/entities/news/api/getNews.ts"
click node_contact_form "https://github.com/mindwideopen/bs-orange/blob/main/src/features/contact-request/ui/contact-request.tsx"
click node_form_validation "https://github.com/mindwideopen/bs-orange/blob/main/src/features/contact-request/ui/contact-request.validation.ts"
click node_privacy_modal "https://github.com/mindwideopen/bs-orange/blob/main/src/widgets/site-footer/ui/privacy-policy-modal.tsx"
click node_app_shell "https://github.com/mindwideopen/bs-orange/blob/main/src/widgets/app-shell/ui/app-shell.tsx"
click node_layout "https://github.com/mindwideopen/bs-orange/blob/main/app/layout.tsx"

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_home_route,node_about_route,node_services_route,node_partners_route,node_contacts_route,node_news_route,node_article_route,node_layout toneBlue
class node_home_view,node_about_view,node_services_view,node_partners_view,node_contacts_view,node_app_shell,node_directus toneAmber
class node_news_view,node_article_view,node_news_api,node_contact_api toneMint
class node_contact_form,node_form_validation,node_privacy_modal toneRose
class node_visitor toneIndigo
```

## Components

### Page routing

- [Home route](https://github.com/mindwideopen/bs-orange/blob/main/app/page.tsx): `app/page.tsx`
- [About route](https://github.com/mindwideopen/bs-orange/blob/main/app/about/page.tsx): `app/about/page.tsx`
- [Services route](https://github.com/mindwideopen/bs-orange/blob/main/app/services/page.tsx): `app/services/page.tsx`
- [Partners route](https://github.com/mindwideopen/bs-orange/blob/main/app/partners/page.tsx): `app/partners/page.tsx`
- [Contacts route](https://github.com/mindwideopen/bs-orange/blob/main/app/contacts/page.tsx): `app/contacts/page.tsx`
- [News route](https://github.com/mindwideopen/bs-orange/blob/main/app/news/page.tsx): `app/news/page.tsx`
- [Article route](https://github.com/mindwideopen/bs-orange/blob/main/app/news/%5Bslug%5D/page.tsx): `app/news/[slug]/page.tsx`
- [Root layout](https://github.com/mindwideopen/bs-orange/blob/main/app/layout.tsx): `app/layout.tsx`

### Company content

- [Home content](https://github.com/mindwideopen/bs-orange/blob/main/src/views/home/ui/home-page.tsx): `src/views/home/ui/home-page.tsx`
- [About content](https://github.com/mindwideopen/bs-orange/blob/main/src/views/about/ui/about-page.tsx): `src/views/about/ui/about-page.tsx`
- [Services catalog](https://github.com/mindwideopen/bs-orange/blob/main/src/views/services/ui/services-page.tsx): `src/views/services/ui/services-page.tsx`
- [Partner directory](https://github.com/mindwideopen/bs-orange/blob/main/src/views/partners/ui/partners-page.tsx): `src/views/partners/ui/partners-page.tsx`
- [Contact details](https://github.com/mindwideopen/bs-orange/blob/main/src/views/contacts/ui/contacts-page.tsx): `src/views/contacts/ui/contacts-page.tsx`
- [Application shell](https://github.com/mindwideopen/bs-orange/blob/main/src/widgets/app-shell/ui/app-shell.tsx): `src/widgets/app-shell/ui/app-shell.tsx`

### News publishing

- [News listing](https://github.com/mindwideopen/bs-orange/blob/main/src/views/news/ui/news-page.tsx): `src/views/news/ui/news-page.tsx`
- [News article](https://github.com/mindwideopen/bs-orange/blob/main/src/views/news/ui/news-article-page.tsx): `src/views/news/ui/news-article-page.tsx`
- [News retrieval](https://github.com/mindwideopen/bs-orange/blob/main/src/entities/news/api/getNews.ts): `src/entities/news/api/getNews.ts`

### User interaction

- [Contact request form](https://github.com/mindwideopen/bs-orange/blob/main/src/features/contact-request/ui/contact-request.tsx): `src/features/contact-request/ui/contact-request.tsx`
- [Field validation](https://github.com/mindwideopen/bs-orange/blob/main/src/features/contact-request/ui/contact-request.validation.ts): `src/features/contact-request/ui/contact-request.validation.ts`
- [Privacy policy modal](https://github.com/mindwideopen/bs-orange/blob/main/src/widgets/site-footer/ui/privacy-policy-modal.tsx): `src/widgets/site-footer/ui/privacy-policy-modal.tsx`

### Other components

- **Website visitor**
- **Directus CMS**
- **Contact API endpoint**

## Connections

- Website visitor → Home route: opens
- Website visitor → About route: opens
- Website visitor → Services route: opens
- Website visitor → Partners route: opens
- Website visitor → Contacts route: opens
- Website visitor → News route: opens
- Website visitor → Article route: opens
- Home route → Home content: renders (evidence: `app/page.tsx`)
- About route → About content: renders (evidence: `app/about/page.tsx`)
- Services route → Services catalog: renders (evidence: `app/services/page.tsx`)
- Partners route → Partner directory: renders (evidence: `app/partners/page.tsx`)
- Contacts route → Contact details: renders (evidence: `app/contacts/page.tsx`)
- News route → News retrieval: fetches news (evidence: `app/news/page.tsx`)
- News route → News listing: renders (evidence: `app/news/page.tsx`)
- Article route → News retrieval: loads article (evidence: `app/news/[slug]/page.tsx`)
- Article route → News article: renders (evidence: `app/news/[slug]/page.tsx`)
- News retrieval → Directus CMS: requests records (evidence: `src/entities/news/api/getNews.ts`)
- Contact request form → Field validation: validates fields (evidence: `src/features/contact-request/ui/contact-request.tsx`)
- Contact request form → Privacy policy modal: renders consent link (evidence: `src/features/contact-request/ui/contact-request.tsx`)
- Contact request form → Contact API endpoint: posts form (evidence: `src/features/contact-request/ui/contact-request.tsx`)
- Root layout → Application shell: renders shell (evidence: `app/layout.tsx`)
