Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/sorcerer/llms.txt
Use this file to discover all available pages before exploring further.
CandleDivider is a decorative SVG component that places a tall, flickering candle between the hero section and the content below it on the HomePage. The candle is built entirely from SVG primitives — paths, an ellipse, and a line — and its flame pulses gently using Tailwind’s animate-pulse utility. The component inherits its body color from the surrounding text color, making it easy to re-theme without touching the SVG markup.
SVG Anatomy
The candle is drawn on a200×300 viewBox. Five elements compose the full illustration:
| Element | SVG Markup | Role |
|---|---|---|
| Body | <path d="M100 100 Q50 300 20 300 L180 300 Q150 300 100 100 Z"> | The main tapered candle body — wide at the base, narrowing toward the top. Uses currentColor. |
| Hat / tip | <path d="M40 120 Q100 130 160 120 L100 20 Z"> | A triangular cap sitting above the wax pool, giving the candle a pointed, mystical silhouette. Uses currentColor. |
| Wax drip | <ellipse cx="100" cy="120" rx="70" ry="10"> | A flattened ellipse representing the wax pool at the top of the candle body. |
| Wick | <line x1="140" y1="80" x2="160" y2="300"> | A thin vertical stroke rising from the wax pool to the flame. |
| Flame | <circle cx="140" cy="80" r="8" fill="#2dd4bf" class="animate-pulse"> | A turquoise circle at the top of the wick that pulses to simulate a living flame. |
Flame Animation
The flame’s pulse is driven by Tailwind’s built-inanimate-pulse utility class, which applies the following CSS keyframe animation:
cubic-bezier(0.4, 0, 0.6, 1) easing curve produces a smooth, non-linear fade rather than a mechanical linear blink. The turquoise fill #2dd4bf ties the flame to the same accent color used for the cat cursor’s eyes in CursorTrail, creating a consistent mystical palette across the portfolio.
Usage
CandleDivider is placed at the bottom of the hero section on HomePage, centered horizontally and anchored to the lower edge of the hero container:
<div> uses absolute positioning so the candle overlaps the boundary between the hero and the next section, reinforcing the visual transition. left-1/2 -translate-x-1/2 centers it regardless of the parent’s width.
Customization
The component is designed to be restyled through three straightforward modifications: Change the flame color — update thefill attribute on the flame <circle> from #2dd4bf to any hex value:
fill="currentColor", so they inherit the CSS color property. The default class text-midnight-dark sets a deep navy. Change the class on the <svg> element to retheme the whole candle:
className="animate-pulse" for a Framer Motion <motion.circle> with a custom animate prop to gain finer control over timing, amplitude, and color transitions: