Skip to Content

Sun Dogs Scene

Winter sky background scene: a pale sky with a low glowing sun near the horizon, flanked by two sun dogs with red edges turned toward the sun. Fills a sized parent. An atmospheric hero backdrop for landing pages.

Installation

pnpm dlx shadcn@latest add @01orbital/sun-dogs-scene

Usage

import { SunDogsScene } from "@/components/scene/sun-dogs-scene"

// The copy: change text here, not in the markup.
const COPY = {
  title: "Clear, cold mornings",
  body: "Plan the day before the light gets busy.",
} as const

export default function SunDogsSceneDemo() {
  return (
    <section className="dark relative isolate flex min-h-[28rem] w-full flex-1 flex-col justify-end overflow-hidden bg-scene text-center text-primary-foreground">
      <SunDogsScene className="absolute inset-0 h-auto" />
      <div className="relative p-4">
        <h2 className="font-display text-xl leading-6 sm:text-2xl sm:leading-8">
          {COPY.title}
        </h2>
        <p className="mt-2 text-sm leading-5 text-primary-foreground/80">
          {COPY.body}
        </p>
      </div>
    </section>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/sun-dogs-scene-demo

Examples

Rose Hazesun-dogs-scene-rose-haze

Sun Dogs Scene Rose Haze: an example of sun-dogs-scene.

pnpm dlx shadcn@latest add @01orbital/sun-dogs-scene-rose-haze

Sage Cropsun-dogs-scene-sage-crop

Sun Dogs Scene Sage Crop: an example of sun-dogs-scene.

pnpm dlx shadcn@latest add @01orbital/sun-dogs-scene-sage-crop

API reference

Sun dogs (parhelia): ice-crystal glints flanking a low sun at 22°. Red edges face the sun; dogs are taller than wide.

Prop

Type

Dependencies

npm: cn. The CLI installs it for you.

Last updated on