# marykay-techicoder/smart-homes architecture

> Architecture diagram of the GitHub repository marykay-techicoder/smart-homes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/marykay-techicoder/smart-homes
- Repository: https://github.com/marykay-techicoder/smart-homes

## Overview

Tech Nyla is a React single-page marketing site for smart-home installation and automation. Visitors enter through routed pages, browse service and company information, and can submit a consultation inquiry through the contact form. The graph preserves the home-page feature sections and major UI capabilities named in the source index; several section implementations were not sampled, so their internal behavior is not inferred.

Main entry points: [`src/App.tsx`](https://github.com/marykay-techicoder/smart-homes/blob/main/src/App.tsx) (Route shell), [`src/pages/Home.tsx`](https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/Home.tsx) (Home page), [`src/pages/Contact.tsx`](https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/Contact.tsx) (Contact page), [`src/components/ui/button.tsx`](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/button.tsx) (Button)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App and Layout"]
  node_app["Route shell<br/>[App.tsx]"]
  node_layout["Shared layout<br/>[Layout.tsx]"]
  node_navbar["Navigation bar<br/>[Navbar.tsx]"]
  node_footer["Footer links<br/>[Footer.tsx]"]
  node_scrolltop["Scroll reset<br/>[ScrollToTop.tsx]"]
  node_theme["Theme state<br/>[useTheme.ts]"]
  node_scrollstate["Scroll state"]
end

subgraph group_content["Site Content"]
  node_home["Home page<br/>[Home.tsx]"]
  node_hero["Hero section<br/>[HeroSection.tsx]"]
  node_aboutsection["Home about<br/>[AboutSection.tsx]"]
  node_features["Feature section"]
  node_devices["Device section<br/>[DevicesSection.tsx]"]
  node_integrations["Integrations section"]
  node_testimonials["Testimonials section"]
  node_homecta["Home call-to-action<br/>[CTASection.tsx]"]
  node_services["Services page<br/>[Services.tsx]"]
  node_about["About page<br/>[About.tsx]"]
  node_contact["Contact page<br/>[Contact.tsx]"]
  node_notfound["Not-found page<br/>[NotFound.tsx]"]
  node_sectionheader["Section heading<br/>[SectionHeader.tsx]"]
end

subgraph group_interaction["Forms and Feedback"]
  node_toaststate["Toast state<br/>[use-toast.ts]"]
  node_toastview["Toast display<br/>[toaster.tsx]"]
end

subgraph group_ui["UI Components"]
  node_button["Button<br/>[button.tsx]"]
  node_carousel["Carousel<br/>[carousel.tsx]"]
  node_input["Text input<br/>[input.tsx]"]
  node_select["Select control<br/>[select.tsx]"]
  node_toastui["Toast primitive<br/>[toast.tsx]"]
end

node_visitor(("Site visitor"))
node_formspree{{"Formspree service"}}

node_visitor -->|"opens site"| node_app
node_app -->|"wraps routes"| node_layout
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_services
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_contact
node_app -->|"routes to"| node_notfound
node_app -->|"mounts"| node_toastview
node_app -->|"configures"| node_toaststate
node_layout -->|"renders"| node_navbar
node_layout -->|"renders"| node_footer
node_layout -->|"renders"| node_scrolltop
node_navbar -->|"uses"| node_theme
node_navbar -->|"reads"| node_scrollstate
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_aboutsection
node_home -->|"renders"| node_features
node_home -->|"renders"| node_devices
node_home -->|"renders"| node_integrations
node_home -->|"renders"| node_testimonials
node_home -->|"renders"| node_homecta
node_features -->|"uses"| node_sectionheader
node_devices -->|"uses"| node_sectionheader
node_services -->|"uses"| node_sectionheader
node_about -->|"uses"| node_sectionheader
node_services -->|"renders"| node_carousel
node_services -->|"uses"| node_button
node_contact -->|"renders"| node_input
node_contact -->|"renders"| node_select
node_contact -->|"dispatches"| node_toaststate
node_contact -->|"submits to"| node_formspree
node_toastview -->|"reads"| node_toaststate
node_toastview -->|"renders"| node_toastui
node_footer -->|"uses"| node_input
node_footer -->|"uses"| node_button
node_hero -->|"uses"| node_button
node_devices -->|"uses"| node_button
node_about -->|"uses"| node_button

click node_app "https://github.com/marykay-techicoder/smart-homes/blob/main/src/App.tsx"
click node_layout "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/layout/Layout.tsx"
click node_navbar "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/layout/Navbar.tsx"
click node_footer "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/layout/Footer.tsx"
click node_home "https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/Home.tsx"
click node_hero "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/HeroSection.tsx"
click node_aboutsection "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/AboutSection.tsx"
click node_features "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/FeaturesSection.tsx"
click node_devices "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/DevicesSection.tsx"
click node_integrations "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/IntegrationsSection.tsx"
click node_testimonials "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/TestimonialsSection.tsx"
click node_homecta "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/CTASection.tsx"
click node_services "https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/Services.tsx"
click node_about "https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/About.tsx"
click node_contact "https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/Contact.tsx"
click node_notfound "https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/NotFound.tsx"
click node_sectionheader "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/common/SectionHeader.tsx"
click node_scrolltop "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/common/ScrollToTop.tsx"
click node_theme "https://github.com/marykay-techicoder/smart-homes/blob/main/src/hooks/useTheme.ts"
click node_scrollstate "https://github.com/marykay-techicoder/smart-homes/blob/main/src/hooks/useScrollPosition.ts"
click node_button "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/button.tsx"
click node_carousel "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/carousel.tsx"
click node_input "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/input.tsx"
click node_select "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/select.tsx"
click node_toaststate "https://github.com/marykay-techicoder/smart-homes/blob/main/src/hooks/use-toast.ts"
click node_toastview "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/toaster.tsx"
click node_toastui "https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/toast.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_app,node_layout,node_navbar,node_footer,node_scrolltop,node_theme,node_scrollstate toneBlue
class node_home,node_hero,node_aboutsection,node_features,node_devices,node_integrations,node_testimonials,node_homecta,node_services,node_about,node_contact,node_notfound,node_sectionheader toneAmber
class node_toaststate,node_toastview toneMint
class node_button,node_carousel,node_input,node_select,node_toastui toneRose
class node_visitor,node_formspree toneIndigo
```

## Components

### App and Layout

- [Route shell](https://github.com/marykay-techicoder/smart-homes/blob/main/src/App.tsx): `src/App.tsx`
- [Shared layout](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/layout/Layout.tsx): `src/components/layout/Layout.tsx`
- [Navigation bar](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/layout/Navbar.tsx): `src/components/layout/Navbar.tsx`
- [Footer links](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/layout/Footer.tsx): `src/components/layout/Footer.tsx`
- [Scroll reset](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/common/ScrollToTop.tsx): `src/components/common/ScrollToTop.tsx`
- [Theme state](https://github.com/marykay-techicoder/smart-homes/blob/main/src/hooks/useTheme.ts): `src/hooks/useTheme.ts`
- [Scroll state](https://github.com/marykay-techicoder/smart-homes/blob/main/src/hooks/useScrollPosition.ts): `src/hooks/useScrollPosition.ts`

### Site Content

- [Home page](https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Hero section](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/HeroSection.tsx): `src/components/home/HeroSection.tsx`
- [Home about](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/AboutSection.tsx): `src/components/home/AboutSection.tsx`
- [Feature section](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/FeaturesSection.tsx): `src/components/home/FeaturesSection.tsx`
- [Device section](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/DevicesSection.tsx): `src/components/home/DevicesSection.tsx`
- [Integrations section](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/IntegrationsSection.tsx): `src/components/home/IntegrationsSection.tsx`
- [Testimonials section](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/TestimonialsSection.tsx): `src/components/home/TestimonialsSection.tsx`
- [Home call-to-action](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/home/CTASection.tsx): `src/components/home/CTASection.tsx`
- [Services page](https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/Services.tsx): `src/pages/Services.tsx`
- [About page](https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/About.tsx): `src/pages/About.tsx`
- [Contact page](https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/Contact.tsx): `src/pages/Contact.tsx`
- [Not-found page](https://github.com/marykay-techicoder/smart-homes/blob/main/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`
- [Section heading](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/common/SectionHeader.tsx): `src/components/common/SectionHeader.tsx`

### Forms and Feedback

- [Toast state](https://github.com/marykay-techicoder/smart-homes/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Toast display](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/toaster.tsx): `src/components/ui/toaster.tsx`

### UI Components

- [Button](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Carousel](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/carousel.tsx): `src/components/ui/carousel.tsx`
- [Text input](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/input.tsx): `src/components/ui/input.tsx`
- [Select control](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/select.tsx): `src/components/ui/select.tsx`
- [Toast primitive](https://github.com/marykay-techicoder/smart-homes/blob/main/src/components/ui/toast.tsx): `src/components/ui/toast.tsx`

### Other components

- **Site visitor**
- **Formspree service**

## Connections

- Site visitor → Route shell: opens site (evidence: `src/App.tsx`)
- Route shell → Shared layout: wraps routes (evidence: `src/App.tsx`)
- Route shell → Home page: routes to (evidence: `src/App.tsx`)
- Route shell → Services page: routes to (evidence: `src/App.tsx`)
- Route shell → About page: routes to (evidence: `src/App.tsx`)
- Route shell → Contact page: routes to (evidence: `src/App.tsx`)
- Route shell → Not-found page: routes to (evidence: `src/App.tsx`)
- Route shell → Toast display: mounts (evidence: `src/App.tsx`)
- Route shell → Toast state: configures (evidence: `src/App.tsx`)
- Shared layout → Navigation bar: renders (evidence: `src/components/layout/Layout.tsx`)
- Shared layout → Footer links: renders (evidence: `src/components/layout/Layout.tsx`)
- Shared layout → Scroll reset: renders (evidence: `src/components/layout/Layout.tsx`)
- Navigation bar → Theme state: uses (evidence: `src/components/layout/Navbar.tsx`)
- Navigation bar → Scroll state: reads (evidence: `src/components/layout/Navbar.tsx`)
- Home page → Hero section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Home about: renders (evidence: `src/pages/Home.tsx`)
- Home page → Feature section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Device section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Integrations section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Testimonials section: renders (evidence: `src/pages/Home.tsx`)
- Home page → Home call-to-action: renders (evidence: `src/pages/Home.tsx`)
- Feature section → Section heading: uses (evidence: `src/components/home/FeaturesSection.tsx`)
- Device section → Section heading: uses (evidence: `src/components/home/DevicesSection.tsx`)
- Services page → Section heading: uses (evidence: `src/pages/Services.tsx`)
- About page → Section heading: uses (evidence: `src/pages/About.tsx`)
- Services page → Carousel: renders (evidence: `src/pages/Services.tsx`)
- Services page → Button: uses (evidence: `src/pages/Services.tsx`)
- Contact page → Text input: renders (evidence: `src/pages/Contact.tsx`)
- Contact page → Select control: renders (evidence: `src/pages/Contact.tsx`)
- Contact page → Toast state: dispatches (evidence: `src/pages/Contact.tsx`)
- Contact page → Formspree service: submits to (evidence: `src/pages/Contact.tsx`)
- Toast display → Toast state: reads (evidence: `src/components/ui/toaster.tsx`)
- Toast display → Toast primitive: renders (evidence: `src/components/ui/toaster.tsx`)
- Footer links → Text input: uses (evidence: `src/components/layout/Footer.tsx`)
- Footer links → Button: uses (evidence: `src/components/layout/Footer.tsx`)
- Hero section → Button: uses (evidence: `src/components/home/HeroSection.tsx`)
- Device section → Button: uses (evidence: `src/components/home/DevicesSection.tsx`)
- About page → Button: uses (evidence: `src/pages/About.tsx`)
