A painted sky hero section for travel websites (2027)

How our travel website hero is built: a full-bleed painted golden-hour sky, a paper plane that banks and bobs on the wind, an Instrument Serif headline and coral pill buttons.

4 min read

The real component. Click the picture to open it live and try it before you read how it was built.

Travel is sold on the feeling before the trip. This hero is a painted golden-hour sky with one moving thing in it: a paper plane riding the wind.

One focal motion

The plane bobs and banks a little, forever, as if riding the air. Nothing else on the hero moves, so the eye goes to the plane, then the headline.

src/registry/heroes/painted-sky/paper-plane.tsx

"use client";

import Image from "next/image";
import { motion } from "motion/react";

const DRIFT_S = 7;

// The paper plane gliding over the sky: it bobs and banks a little, forever, as if riding the wind.
export function PaperPlane({ src, className }: { src: string; className?: string }) {
  return (
    <motion.div
      aria-hidden
      animate={{ y: [0, -18, 0], x: [0, 14, 0], rotate: [-4, 2, -4] }}
      transition={{ duration: DRIFT_S, ease: "easeInOut", repeat: Infinity }}
      className={className}
    >
      <Image src={src} alt="" width={800} height={800} className="h-auto w-full drop-shadow-xl" />
    </motion.div>
  );
}
The paper plane

Calm, readable type

A deep navy Instrument Serif headline with one italic accent sits in the open part of the sky, with coral and frosted pill buttons and a rating underneath.

src/registry/heroes/painted-sky/hero-painted-sky.tsx

"use client";

import Image from "next/image";
import { Star } from "lucide-react";
import { motion } from "motion/react";
import type { Cta } from "@/components/ui/section-actions";
import { SectionTitle } from "@/components/ui/section-title";
import { sectionBeat } from "@/lib/section-motion";
import { cn } from "@/lib/utils";
import { BrandedNav } from "@/registry/heroes/shared/branded-nav";
import { HeroCta } from "@/registry/heroes/shared/hero-cta";
import { HeroFrame } from "@/registry/heroes/shared/hero-frame";
import type { HeroNavContent } from "@/registry/heroes/shared/hero-nav";
import { PaperPlane } from "./paper-plane";

export interface HeroPaintedSkyProps {
  title: string;
  accent?: string;
  description: string;
  primaryCta: Cta;
  secondaryCta?: Cta;
  rating?: string;
  // A wide painted sky, and the object that flies across it (transparent background).
  sky: string;
  flyer: string;
  nav?: HeroNavContent;
  className?: string;
}

// A painted golden-hour sky, full bleed, with a paper plane gliding across it. An Instrument Serif headline in deep
// navy with an italic accent sits in the open sky; coral and frosted pill buttons, a rating underneath.
export function HeroPaintedSky({
  title,
  accent,
  description,
  primaryCta,
  secondaryCta,
  rating,
  sky,
  flyer,
  nav,
  className,
}: HeroPaintedSkyProps) {
  return (
    <HeroFrame
      nav={
        nav && (
          <BrandedNav
            nav={nav}
            buttonVariant="coral"
            brandClassName="font-serif text-2xl font-normal text-slate-950"
            tileClassName="text-orange-500"
            linkClassName="font-instrument-sans font-medium text-slate-900 hover:text-orange-600"
          />
        )
      }
      backdrop={
        <div aria-hidden className="absolute inset-0 -z-10">
          <Image src={sky} alt="" fill priority sizes="100vw" className="object-cover object-bottom" />
          <PaperPlane src={flyer} className="absolute top-24 right-6 w-28 sm:right-24 sm:w-48 lg:top-32" />
        </div>
      }
      className={cn("font-instrument-sans text-slate-950", className)}
    >
      <div className="mx-auto flex max-w-4xl flex-col items-center pb-24 text-center">
        <SectionTitle
          title={title}
          accent={accent}
          accentClassName="font-serif text-orange-600 italic"
          className="font-serif text-6xl leading-none font-normal tracking-tight text-slate-950 sm:text-9xl"
        />
        <motion.p {...sectionBeat("description")} className="mt-6 max-w-lg text-lg font-medium text-slate-900">
          {description}
        </motion.p>
        <motion.div {...sectionBeat("actions")} className="mt-9 flex flex-wrap justify-center gap-3">
          <HeroCta cta={primaryCta} variant="coral" />
          {secondaryCta && (
            <HeroCta cta={secondaryCta} variant="inverse" className="rounded-full bg-white/70 backdrop-blur-md" />
          )}
        </motion.div>
        {rating && (
          <motion.p
            {...sectionBeat("visual")}
            className="mt-6 flex items-center gap-2 text-sm font-medium text-slate-900"
          >
            <span className="flex text-orange-500">
              {Array.from({ length: 5 }, (_, index) => (
                <Star key={index} className="size-4 fill-current" />
              ))}
            </span>
            {rating}
          </motion.p>
        )}
      </div>
    </HeroFrame>
  );
}
The hero

More articles