# Icons, Images & Photo Credits

## Icons, Images & Photo Credits

**Folder:** `src/assets/images/` · **Skill level:** Beginner

### Icons
Wherever a content file has an `icon:` field (values, why-us points, buttons and so on), you can write any icon name from [Lucide](https://lucide.dev/icons/), a free set of more than 1,500 icons:

```yaml
icon: "MapPinned"
icon: "Handshake"
```

1. Find an icon on [lucide.dev/icons](https://lucide.dev/icons/).
2. Copy its name. `map-pinned` as written on the Lucide site works, and so does `"MapPinned"`, the form the theme files use.
3. Paste it as the `icon` value.

Icons are drawn as inline SVG when the site builds (`src/lib/lucideIcons.ts`), so they load with the page and take the text color. Check a new icon on the page after you add it. Copy the name exactly as lucide.dev writes it, because a misspelled name may not draw the icon you expect.

An `icon` value that contains a `/` or a `.` is read as an image path instead, for example `icon: "/images/icons/my-badge.svg"` for a file in `src/assets/images/icons/`. Use it for your own SVG marks.

The header menu has no icons, by design. Direction icons such as arrows and chevrons flip on right-to-left pages on their own.

<Aside type="tip" title="For developers">
  In components, use `<DynamicIcon name="MapPinned" class="size-5" />`
  (`src/layouts/helpers/DynamicIcon.astro`), which takes a Lucide name or an
  image path, or `<Icons icon="MapPinned" />` (`src/layouts/helpers/Icons.astro`)
  for Lucide only. Adding a name to `src/lib/iconNames.ts` gives you editor
  autocomplete, and it's optional.
</Aside>

### Where Images Live
| Folder | What goes there | How to write the path |
| --- | --- | --- |
| `src/assets/images/lotline/` | Every photo in the content: heroes, listings, developments, agents, neighborhoods, services, blog | `"/images/lotline/agents/agent-1.jpg"` for `src/assets/images/lotline/agents/agent-1.jpg` |
| `src/assets/images/` | The logo files (`logo.svg`, `logo-on-dark.svg`, `favicon.svg`) and `icons/` (social and Ask AI icons) | `"/images/icons/facebook.svg"` for `src/assets/images/icons/facebook.svg` |
| `public/images/` | Files served as they are: the favicons and the fallback social image `og-image.jpg` | `/images/og-image.jpg` |
| `public/videos/` | Self-hosted videos, if you add any | `/videos/my-video.mp4` |

Images in `src/assets/images/` are optimized when the site builds: resized for each screen, converted to modern formats, and lazy-loaded below the first screen. Put your photos there unless a setting says `public/`.

`src/assets/images/README.md` lists what each sample folder is for:

| Folder | Used for | Shape |
| --- | --- | --- |
| `lotline/heroes/` | Home heroes and the photo band at the top of inner pages | wide, at least 2000 px across |
| `lotline/properties/<listing>/` | Each listing's `cover.jpg`, gallery photos and optional floor plan | 3:2 cover |
| `lotline/developments/` | Development covers | wide, darker photos keep the white title readable |
| `lotline/agents/` | Agent portraits | 4:5 |
| `lotline/avatars/` | Review portraits | square |
| `lotline/areas/` | Neighborhood photos | 16:9, street or houses, no people |
| `lotline/services/` | Service cards and pages | 4:3 |
| `lotline/blog/` | Blog post covers | landscape |
| `lotline/about/`, `lotline/offices/`, `lotline/steps/`, `lotline/video/` | About, contact, How it works and the video poster | as the comment next to each field says |
| `lotline/clients/` | The logo band | single-color SVG |

The comment next to an image field often names the shape it needs, for example `# 4:5 portrait`.

### Add Photos To A Listing
Each listing keeps its photos in its own folder, named after the listing's file:

```text
src/assets/images/lotline/properties/elm-hill-modern-villa/
  cover.jpg       ← the card and the page band
  gallery-1.jpg
  gallery-2.jpg
  gallery-3.jpg
```

```yaml
image: "/images/lotline/properties/elm-hill-modern-villa/cover.jpg" # 3:2 cover
imageAlt: "A modern villa with a pool at dusk"
gallery:
  - image: "/images/lotline/properties/elm-hill-modern-villa/gallery-1.jpg"
    alt: "Open-plan living room with tall windows"
# floorPlan: "/images/lotline/properties/elm-hill-modern-villa/floor-plan.png" # optional
```

On the property page the gallery opens a lightbox with the large photo, its caption and previous and next buttons. A photo path that points at a missing file shows nothing, so open the page after you add one. More in [Properties](/lotline/customization/properties/).

### Replace A Sample Photo
<Steps>

1. Put your photo in the matching folder of `src/assets/images/lotline/`, for example `src/assets/images/lotline/agents/my-portrait.jpg`. A large JPG (about 2000 px wide) is fine, because the build makes the smaller sizes.

2. In the content file that uses the old photo, change the path and describe the new photo:

   ```yaml
   image: "/images/lotline/agents/my-portrait.jpg"
   ```

3. Make the same change in the French and Arabic files, with the alt text in that language.

</Steps>

Or keep the file name and replace the file itself: every page that uses it changes at once.

To find which file uses a photo, search the project for its file name, for example `agent-1.jpg`.

### Alt Text
Most photo fields have a matching alt field: `imageAlt` on pages, listings, developments and posts, `alt` on gallery photos, `avatarAlt` on reviews. Screen readers read it, and search engines use it.

- Describe what the photo shows, in one short sentence: "A brick townhouse with a black front door".
- Don't start with "Image of", and don't repeat the caption.
- Leave it empty (`""`) only for a photo that is purely decorative.

### Photo Rules For An Agency Site
- **Your own listings.** Use the real photos of each home, taken for the listing. Buyers notice when a photo doesn't match the viewing.
- **Your own agents.** Use real portraits, 4:5, with each person's consent.
- **No placeholder faces.** A review shows no portrait when `avatar` is empty. Leave it empty rather than using a stock face.

### Photo Credits And Licenses
The demo photos are free photos from [Unsplash](https://unsplash.com), used under the [Unsplash License](https://unsplash.com/license) as placeholder demo content. They are not part of the theme. Replace them with your own before you launch, and don't resell or pass them on as photos. The homes, names and addresses in the demo are made up, and the client logos are made-up names drawn for the theme. The README's **Credits** section lists the fonts, icons and libraries too.

<Aside type="note">
  Logos and favicons are covered in [Site Identity & Logo](/lotline/customization/site-identity-logo/).
  The social preview image is in [SEO & AI Visibility](/lotline/customization/seo-ai-visibility/).
</Aside>

### Do It With AI
```text
I added photos of a new listing to src/assets/images/lotline/properties/[FILE NAME]/:
[LIST FILES AND WHAT EACH SHOWS]. Point the listing's image, gallery and floorPlan fields at them
in src/content/properties/english/[FILE NAME].md and in the French and Arabic files with the same
name, and write a short, specific alt text for each photo in each language.
```