Websites

Photo gallery website with albums, a lightbox and before and after

A photo gallery website shows work large and uncropped, grouped so a visitor finds the kind of job they care about. The details that matter are a lightbox that works with a keyboard and a thumb, photos that load fast, alt text on every image, and an easy way for the owner to add new work.

Create a website with OneCraftWhat the AI builds for galleries, how photos are added and shown, before and after sliders, and the limits
The gallery page of a ceramics studio site: a hero and a Before and after section with drag to compare sliders
Before and after sliders for glazing, with albums added in the admin.

Albums and the grid

Ask for a gallery and the AI follows its gallery guide: albums with a cover, and photos with a caption, alt text and order, in the site's own database. The gallery page has album chips and a masonry grid that keeps portrait and landscape photos uncropped, with each image's width and height set and lazy loading below the first screen.

The lightbox

Clicking a photo opens a full screen view over a dark background, with the caption, a counter such as 3 of 24, Previous and Next buttons with labels, arrow keys and swipes, and focus returning to the thumbnail on close. Each album also has its own page with a title and description for search.

Before and after

For renovations, retouching or cleaning, a before and after slider stacks two photos and lets the visitor drag a handle to compare, with a range control that works by keyboard. In a phone app the comparison is a Before and After toggle over one image.

Adding photos

Photos are added in the site's admin area: multi file upload into an album, one row per file, alt text required before saving, captions, order, Set as cover and Delete, which removes the file too. Each photo is up to 10 MB, with a note to export at 2,400 pixels wide or less.

Speed and limits

Large photos are the main cost of a gallery, so export them at sensible sizes before uploading. The app version's viewer swipes but has no pinch zoom. Videos play from YouTube or Vimeo embeds rather than being uploaded.

How it works, in three steps

  1. Step 1

    Describe the gallery

    Name the albums and whether you need before and after comparisons.

  2. Step 2

    Upload the work

    Sign in to the site's admin area and upload photos with alt text and captions.

  3. Step 3

    Publish

    On a paid plan, publish and link the gallery from the menu.

Limits worth knowing

Questions people ask

Can I upload many photos at once?

Yes. The album screen in the admin takes several files at once, one row per photo, and asks for alt text on each before it saves. Captions and order can be edited afterwards, and Set as cover picks the album's thumbnail.

Why is alt text required?

Alt text describes the photo for people using screen readers and for search engines, and a gallery without it is invisible to both. The admin refuses to save a photo without it. Describe what is in the photo in a short sentence, not a list of keywords.

Are my photos compressed?

Photos are stored as you upload them, up to 10 MB each, so size them before uploading: around 2,400 pixels on the long edge keeps detail on large screens without slow pages. The page sets image sizes and loads photos below the first screen only when needed.

Can I make a private gallery for a client?

Not in the public gallery, which anyone can see. Ask for a client portal instead: each client signs in and sees their own project's files in private storage, readable only by them and your staff. That suits proofing a shoot or sharing drafts.

Does the gallery work in a phone app?

Yes. A phone app based on the website shows the albums as a two column grid, three on tablets, and a full screen viewer you swipe through with captions. The viewer has no pinch zoom, and new photos are added from the website's admin.

Can visitors enquire about a photo?

Ask for an enquiry button on each photo or album, and the AI links it to the site's enquiry form with the album or photo named, so you know which job prompted it. Enquiries are stored in the site's own database and read in the admin.

Make your own website

The button opens the generator with this use case already described. Change the wording to match yours, generate, then edit anything you like.

Create a website with OneCraft

Related pages

More finished work of this kind is on the website examples hub.

Sources

Written and checked by the OneCraft team. Last checked .