How marykay-techicoder/smart-homes works
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: App.tsx Route shell · Home.tsx Home page · Contact.tsx Contact page · button.tsx Button
Components 29
App and Layout
- Route shell
src/App.tsx - Shared layout
src/components/layout/Layout.tsx - Navigation bar
src/components/layout/Navbar.tsx - Footer links
src/components/layout/Footer.tsx - Scroll reset
src/components/common/ScrollToTop.tsx - Theme state
src/hooks/useTheme.ts - Scroll state
src/hooks/useScrollPosition.ts
Site Content
- Home page
src/pages/Home.tsx - Hero section
src/components/home/HeroSection.tsx - Home about
src/components/home/AboutSection.tsx - Feature section
src/components/home/FeaturesSection.tsx - Device section
src/components/home/DevicesSection.tsx - Integrations section
src/components/home/IntegrationsSection.tsx - Testimonials section
src/components/home/TestimonialsSection.tsx - Home call-to-action
src/components/home/CTASection.tsx - Services page
src/pages/Services.tsx - About page
src/pages/About.tsx - Contact page
src/pages/Contact.tsx - Not-found page
src/pages/NotFound.tsx - Section heading
src/components/common/SectionHeader.tsx
Forms and Feedback
- Toast state
src/hooks/use-toast.ts - Toast display
src/components/ui/toaster.tsx
UI Components
- Button
src/components/ui/button.tsx - Carousel
src/components/ui/carousel.tsx - Text input
src/components/ui/input.tsx - Select control
src/components/ui/select.tsx - Toast primitive
src/components/ui/toast.tsx
Other components
- Site visitor
- Formspree service
Connections 38
- Site visitor → Route shell: opens site
src/App.tsx - Route shell → Shared layout: wraps routes
src/App.tsx - Route shell → Home page: routes to
src/App.tsx - Route shell → Services page: routes to
src/App.tsx - Route shell → About page: routes to
src/App.tsx - Route shell → Contact page: routes to
src/App.tsx - Route shell → Not-found page: routes to
src/App.tsx - Route shell → Toast display: mounts
src/App.tsx - Route shell → Toast state: configures
src/App.tsx - Shared layout → Navigation bar: renders
src/components/layout/Layout.tsx - Shared layout → Footer links: renders
src/components/layout/Layout.tsx - Shared layout → Scroll reset: renders
src/components/layout/Layout.tsx - Navigation bar → Theme state: uses
src/components/layout/Navbar.tsx - Navigation bar → Scroll state: reads
src/components/layout/Navbar.tsx - Home page → Hero section: renders
src/pages/Home.tsx - Home page → Home about: renders
src/pages/Home.tsx - Home page → Feature section: renders
src/pages/Home.tsx - Home page → Device section: renders
src/pages/Home.tsx - Home page → Integrations section: renders
src/pages/Home.tsx - Home page → Testimonials section: renders
src/pages/Home.tsx - Home page → Home call-to-action: renders
src/pages/Home.tsx - Feature section → Section heading: uses
src/components/home/FeaturesSection.tsx - Device section → Section heading: uses
src/components/home/DevicesSection.tsx - Services page → Section heading: uses
src/pages/Services.tsx - About page → Section heading: uses
src/pages/About.tsx - Services page → Carousel: renders
src/pages/Services.tsx - Services page → Button: uses
src/pages/Services.tsx - Contact page → Text input: renders
src/pages/Contact.tsx - Contact page → Select control: renders
src/pages/Contact.tsx - Contact page → Toast state: dispatches
src/pages/Contact.tsx - Contact page → Formspree service: submits to
src/pages/Contact.tsx - Toast display → Toast state: reads
src/components/ui/toaster.tsx - Toast display → Toast primitive: renders
src/components/ui/toaster.tsx - Footer links → Text input: uses
src/components/layout/Footer.tsx - Footer links → Button: uses
src/components/layout/Footer.tsx - Hero section → Button: uses
src/components/home/HeroSection.tsx - Device section → Button: uses
src/components/home/DevicesSection.tsx - About page → Button: uses
src/pages/About.tsx