For hotels and holiday rentals

Business websites

Boutique hotel website example written as code

A small hotel sells a feeling first and a room second, and its website needs more freedom than fixed page blocks give. This example for an invented Port Fairy guesthouse was written as code as a React site: a full bleed hero, editorial rooms, a breakfast and garden spread and a check availability form.

Create a website with OneCraft3 pages, written as code

The home page at three widths

The same page on a desktop, a tablet and a phone, exactly as it renders. Scroll inside each frame to read it all; nothing here can be clicked or submitted.

Desktop, 1280 pixels wide
Tablet, 768 pixels wide
Phone, 375 pixels wide

The rooms page

/rooms

Page by page

Home /
Full bleed photo hero with two actions, House story with three facts, Rooms preview, three photo cards, Breakfast panel beside two photos, Port Fairy on foot over a photo, Stay a while call to action
Rooms /rooms
Page heading, Three room details, photos alternating sides, Included with every stay, Stay a while call to action
Stay /stay
Contact details, Availability request form (room, dates, message)

How it was built

The AI writes a React Router project on Tailwind and shadcn/ui, one git repository per site, then builds it and checks every page at 375, 768 and 1280 pixels before it can finish. This site has three routes, a content folder for the rooms and photos, and one component per section. The availability form was built with an earlier version of the builder, which stored requests in a shared inbox; today a form stores each request in the site's own database, read in an admin area inside the site.

When a written site suits

A site written as code suits design led businesses: hospitality, venues, studios. The trade off is that changes go through the AI chat, which edits the code and rebuilds, and the files are read only in the builder. Content you change weekly, such as rates or specials, belongs in the site's database with an admin area, so it changes without an AI turn.

What makes this website work

A layout fixed blocks do not have

The Port Fairy band lays a list of walking times over a full width photograph, and the breakfast spread pairs a tall photo with a colour panel and a second image. The AI wrote these as components, which is why the site does not look like a template.

Rates beside every room

Each room card and detail shows the nightly price with breakfast and how many it sleeps. A guesthouse loses bookings when people have to ask, so the price is part of the room, not a separate page.

A request, not a booking engine

Three rooms do not need a channel manager. The stay page asks for dates and a room through the site kit's lead form and promises a reply within hours, which is how small guesthouses actually take bookings.

Questions people ask

What does written as code mean?

Every OneCraft site is written as code. The AI writes a React Router, Tailwind and shadcn/ui project, builds it and shows a live preview, with version history, a zip download and a database of its own when a feature needs one. It is available on paid plans and charges credits for the AI's work and each build.

Can I edit the site's code myself?

You change it by asking the AI chat, which edits the files, rebuilds and shows the result; a failed build is rolled back. The files are read only in the builder, and you cannot upload your own code into the project. You can download the whole project as a zip at any time.

How do availability requests arrive?

The stay page asks for the room, dates and a message. Today the AI stores each request in a responses table in the site's own database, listed in an admin area inside the site.

Can the site take bookings with payment?

Yes, when you ask for it: the AI can build room rentals with nightly rates and a deposit now with the balance later, paid through Stripe Checkout on the owner's connected account, on a paid plan. There is no room calendar or channel manager, so a hotel with many rooms should link to its booking engine.

Is the site fast on phones?

Every page is prerendered to static HTML and served from a CDN, with images sized and loaded lazily below the first screen. The build fails if any page scrolls sideways or throws errors at 375, 768 or 1280 pixels, which is the layout check every build runs.

Can I start from a description instead?

Yes. Describe the property, rooms and rates in the generator, and optionally give a design reference page. The AI writes the project, builds it and opens the code builder when the first build is green.

Build your own in about a minute

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

Make one like this

Not ready to start? See the AI website builder page first.

Other website examples

For everything this generator can do, see the website maker.

Sources

Written and checked by the OneCraft team. Last checked .