# Customization

import { Callout } from "fumadocs-ui/components/callout";
import { Accordion, Accordions } from "fumadocs-ui/components/accordion";
import { Step, Steps } from "fumadocs-ui/components/steps";
import { Tabs, Tab } from "fumadocs-ui/components/tabs";
import { Badge } from "@pycolors/ui";
import { FolderTree, Palette, Rocket, Search, Sparkles } from "lucide-react";

import { PreferAvoid } from "@/components/docs/prefer-avoid";
import { DocsFeatureGrid } from "@/components/docs/docs-feature-grid";
import { DocsLinks } from "@/components/docs/docs-links";
import { DocsUpgradeCTA } from "@/components/docs/docs-upgrade-cta";

<div className="flex flex-wrap items-center gap-2">
  <Badge variant="outline">
    NA-AI Landing
  </Badge>

  <Badge>
    Customization
  </Badge>
</div>

## Customize without rewriting every component

NA-AI Landing is data-driven by design.

Most product copy and section content lives in:

```txt
src/@data
```

This makes the template easier to adapt because you can:

* update the product story first
* validate positioning quickly
* change pricing and messaging centrally
* avoid rewriting every component early

<DocsUpgradeCTA title="Change the story before changing the UI." description="NA-AI Landing is structured so branding, pricing, testimonials, and SEO can evolve through centralized data files instead of scattered component rewrites." productSlug="na-ai-landing" buyLabel="Get NA-AI Landing — €49" secondaryHref="/docs/templates/na-ai-landing/project-structure" secondaryLabel="Project structure" />

<Callout title="Core idea">
  Start by changing the data, not the components. Rewrite the product story
  before you rewrite the UI.
</Callout>

## Recommended customization order

<Steps>
  <Step>
    ### Update site settings

    Edit:

    ```txt title="path"
    src/config/site.ts
    ```

    Update:

    * product name
    * tagline
    * site URL
    * SEO title
    * social preview configuration
  </Step>

  <Step>
    ### Update core content

    Edit the files under:

    ```txt title="path"
    src/@data
    ```

    Start with:

    * hero
    * features
    * pricing
    * testimonials
    * FAQ
    * CTA
    * contact
  </Step>

  <Step>
    ### Replace assets

    Update:

    * logo
    * icons
    * Open Graph images
    * Twitter preview images
    * manifest assets
  </Step>

  <Step>
    ### Adjust branding

    Update:

    * fonts
    * token usage
    * theme settings
    * product visuals

    Do this only after the content direction becomes clear.
  </Step>

  <Step>
    ### Test and deploy

    Run the production build, inspect both themes, and validate responsive layouts before deployment.
  </Step>
</Steps>

## Customization foundations

<DocsFeatureGrid
  columns={2}
  tone="platform"
  items={[
  {
    title: "Centralized content",
    icon: FolderTree,
    description:
      "Most sections are controlled through dedicated data files instead of deeply nested components.",
  },
  {
    title: "SEO-ready structure",
    icon: Search,
    description:
      "Metadata, Open Graph assets, Twitter previews, sitemap, and robots configuration are easy to customize.",
  },
  {
    title: "PyColors design foundation",
    icon: Palette,
    description:
      "Shared tokens and UI primitives provide a stable visual baseline across light and dark mode.",
  },
  {
    title: "Fast launch workflow",
    icon: Sparkles,
    description:
      "The structure prioritizes fast iteration on positioning, pricing, branding, and product messaging.",
  },
]}
/>

### Data files

| Section       | File                         |
| ------------- | ---------------------------- |
| Hero          | `src/@data/hero.ts`          |
| Features      | `src/@data/features.ts`      |
| Integrations  | `src/@data/integrations.ts`  |
| Pricing       | `src/@data/pricing.ts`       |
| Pricing Table | `src/@data/pricing-table.ts` |
| Testimonials  | `src/@data/customers.ts`     |
| FAQ           | `src/@data/faq.ts`           |
| CTA           | `src/@data/cta.ts`           |
| Contact       | `src/@data/contact.ts`       |
| Footer        | `src/@data/footer.ts`        |
| Navbar        | `src/@data/navbar.ts`        |

### Site configuration

Edit:

```txt title="path"
src/config/site.ts
```

Use it to update:

* product name
* tagline
* site URL
* SEO title
* SEO description
* Open Graph image
* Twitter image

<Callout type="info" title="SEO rule">
  Update the site URL and social preview assets before deploying publicly.
</Callout>

### Branding and tokens

NA-AI Landing uses:

```txt title="packages"
@pycolors/ui
@pycolors/tokens
```

The shared tokens provide a stable visual foundation for:

* colors
* surfaces
* borders
* radius
* shadows
* focus states
* dark and light mode

<Callout title="Design rule">
  Prefer semantic tokens over raw color values. This keeps the page visually
  consistent across themes.
</Callout>

## Content strategy

<PreferAvoid
  prefer={[
  "clear product promise",
  "specific AI or SaaS use case",
  "short feature labels",
  "proof-oriented sections",
  "pricing aligned with your offer",
]}
  avoid={[
  "generic AI buzzwords",
  "changing every component first",
  "too many competing CTAs",
  "removing trust sections",
  "publishing with default SEO assets",
]}
/>

### Preview identity and destinations

`src/config/template.ts` centralizes the preview notice and the links to the
PyColors product page, documentation and support. Replace these links and adapt
the banner in `components/layout/navbar.tsx` when launching your own product.
Navigation and footer sections remain configured in `src/@data`.

<Callout title="Replace sample content">
  NA-AI Analytics is fictional. Metrics, testimonials, integrations, SaaS plans
  and capability descriptions illustrate the layout. Replace them with accurate
  content for your product before publishing. The sample plans are separate from
  the purchase price of NA-AI Landing.
</Callout>

### Appearance and motion

The app-scoped light and dark palette, radii and layout helpers are defined in
`src/app/globals.css`. Use the existing semantic tokens in your sections so both
appearances stay consistent.

Entrance animations run once and respect the visitor's reduced-motion preference.
`components/motion/reveal.tsx` keeps content visible in server-rendered HTML and
adds motion after the section enters the viewport. The FAQ uses native disclosures
so answers can be opened with a keyboard, including without JavaScript.

### Connect the contact form

The form in `components/sections/contact.tsx` is a local demonstration: it validates
required fields, then confirms that no message was sent. Entries are neither sent
nor saved. Submission is disabled without JavaScript.

<Steps>
  <Step>
    ### Add your own submission handler

    Connect your backend, validate the input on the server, and handle errors
    before showing a delivery confirmation. No email service is included.
  </Step>

  <Step>
    ### Adapt the copy

    Update `src/@data/contact.ts`, the demo notice and confirmation message to
    describe what your handler actually does. Legacy sales contact settings are
    not used by the local demo.
  </Step>

  <Step>
    ### Check the complete interaction

    Test invalid input, keyboard focus, success and failure states on mobile
    and desktop. Verify the receiving service before claiming that a message
    has been delivered.
  </Step>
</Steps>

### Customize pricing

Pricing content is split across:

```txt title="pricing-files"
src/@data/pricing.ts
src/@data/pricing-table.ts
```

Use it to update:

* plan names
* monthly and yearly pricing
* comparison rows
* feature availability
* CTA labels
* positioning copy

<Callout title="Pricing rule">
  Pricing should clarify the buying decision, not only list features.
</Callout>

### Customize SEO and assets

Update social preview images:

```txt title="seo-assets"
public/seo/og-main.jpg
public/seo/twitter-main.jpg
```

Update icons:

```txt title="icons"
public/icons
```

Update the web manifest:

```txt title="manifest"
public/manifest.webmanifest
```

### Recommended workflow

A high-leverage customization path usually looks like this:

1. define positioning
2. update hero and pricing
3. replace branding assets
4. adjust proof and testimonials
5. validate SEO metadata
6. refine layout and visuals
7. deploy publicly

This keeps the launch process focused on clarity and conversion before visual overengineering.

<Callout title="Positioning principle">
  A landing page becomes valuable when the offer is clear, believable, and easy
  to understand quickly.
</Callout>

## Common questions

<Accordions type="single">
  <Accordion title="Can I use this for a non-AI SaaS?">
    Yes. NA-AI Landing is optimized for AI and analytics positioning, but the structure works well for many B2B SaaS products.
  </Accordion>

  <Accordion title="Can I add a backend later?">
    Yes. Keep API logic outside the presentational section components and connect
    forms or analytics through dedicated modules.
  </Accordion>

  <Accordion title="Should I replace PyColors UI?">
    Usually no. Keep PyColors UI and tokens unless you have a strong reason to
    rebuild the UI foundation.
  </Accordion>

  <Accordion title="Can I remove sections?">
    Yes. Remove sections only after checking that the page still explains the offer, proof, pricing, objections, and next action clearly.
  </Accordion>
</Accordions>

## Next steps

<DocsLinks
  variant="grid"
  items={[
  {
    title: "Project structure",
    href: "/docs/templates/na-ai-landing/project-structure",
    description:
      "Understand where content, sections, layout, configuration, and assets live.",
    icon: FolderTree,
  },
  {
    title: "Deployment",
    href: "/docs/templates/na-ai-landing/deployment",
    description:
      "Deploy your customized landing page to a production environment.",
    icon: Rocket,
  },
]}
/>