# Flight route breadcrumb

> Each level is an airport joined by flight arcs; click one and the plane flies the route there, painting the stretch already flown.

- Category: [Navigation](https://library.aimran.es/components/navigation)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-nav-flight-crumbs
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

A breadcrumb drawn as a flight map: every level is an airport on a light grid, joined by dashed arcs like the routes in an airline magazine. Clicking a level makes the plane fly along the curves to it, turning with each arc, while the flown part of the route turns solid. Levels after the current one stay grey. It suits travel sites, shops and deep catalogues.

The main color sets the route and the current label, the secondary color the plane. Change the names in the data and keep them short, between four and six levels, so the arcs stay readable.

## Code

### HTML

```html
<nav class="uvq12-fp" aria-label="Breadcrumb"><svg viewBox="0 0 320 130" aria-hidden="true"><path class="b" d="M26 98 Q61 28 96 72 Q131 28 166 94 Q201 16 236 60 Q267 16 298 84"/><path class="f" d="M26 98 Q61 28 96 72 Q131 28 166 94 Q201 16 236 60 Q267 16 298 84" style="stroke-dasharray:381.6 9999"/><g class="pl" transform="translate(298 84) rotate(110)"><circle r="16" class="sh"/><path transform="scale(1.15) translate(-12 -12)" d="M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z"/></g></svg><ol><li style="left:8.13%;top:75.38%"><a href="#" data-l="0"><i aria-hidden="true"></i><span>Home</span></a></li><li style="left:30.00%;top:55.38%"><a href="#" data-l="96.6"><i aria-hidden="true"></i><span>Destinations</span></a></li><li style="left:51.88%;top:72.31%"><a href="#" data-l="191.1"><i aria-hidden="true"></i><span>Europe</span></a></li><li style="left:73.75%;top:46.15%"><a href="#" data-l="292.1"><i aria-hidden="true"></i><span>Portugal</span></a></li><li style="left:93.13%;top:64.62%"><a href="#" data-l="381.6" aria-current="page"><i aria-hidden="true"></i><span>Lisbon</span></a></li></ol></nav>
```

### CSS

```css
.uvq12-fp {
  --c1: #0284c7;
  --c2: #f97316;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq12-fp {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 22em;
  padding: .4em .2em 1.6em;
  border-radius: 1.2em;
  background: repeating-linear-gradient(0deg,color-mix(in srgb,var(--fg) 5%,transparent) 0 1px,transparent 1px 1.6em),repeating-linear-gradient(90deg,color-mix(in srgb,var(--fg) 5%,transparent) 0 1px,transparent 1px 1.6em),color-mix(in srgb,var(--fg) 2%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent),0 1.4em 2.8em -1.4em rgba(0,0,0,.4);
}

.uvq12-fp svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.uvq12-fp path.b {
  fill: none;
  stroke: color-mix(in srgb,var(--fg) 28%,transparent);
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.uvq12-fp path.f {
  fill: none;
  stroke: var(--c1);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.uvq12-fp .pl {
  fill: var(--c2);
}

.uvq12-fp .pl .sh {
  fill: color-mix(in srgb,var(--c2) 16%,transparent);
}

.uvq12-fp ol {
  position: absolute;
  inset: .4em .2em 1.6em;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.uvq12-fp li {
  position: absolute;
  width: 0;
  height: 0;
}

.uvq12-fp a {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35em;
  transform: translate(-50%,-.45em);
  color: var(--fg);
  text-decoration: none;
  pointer-events: auto;
  border-radius: .4em;
  outline: 0;
}

.uvq12-fp a i {
  width: .9em;
  height: .9em;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 .2em var(--c1);
  transition: transform calc(0.25s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq12-fp .fu a i {
  box-shadow: 0 0 0 .2em color-mix(in srgb,var(--fg) 30%,transparent);
}

.uvq12-fp a span {
  padding: .1em .4em;
  border-radius: .4em;
  white-space: nowrap;
  font-size: .74em;
  font-weight: 650;
  background: color-mix(in srgb,var(--bg) 85%,transparent);
}

.uvq12-fp .fu a span {
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  font-weight: 500;
}

.uvq12-fp a[aria-current] span {
  color: #fff;
  background: var(--c1);
}

.uvq12-fp a[aria-current] i {
  background: transparent;
  box-shadow: none;
}

.uvq12-fp a:hover i {
  transform: scale(1.25);
}

.uvq12-fp a:active i {
  transform: scale(.85);
}

.uvq12-fp a:focus-visible span {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
  .uvq12-fp,.uvq12-fp *,.uvq12-fp *::before,.uvq12-fp *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq12-fp").forEach(el => {
  const f=el.querySelector("path.f"),pl=el.querySelector(".pl"),ls=[...el.querySelectorAll("a")];let s=+ls[ls.length-1].dataset.l,raf=0;
const K=()=>parseFloat(getComputedStyle(el).getPropertyValue("--k"))||1;const rm=matchMedia("(prefers-reduced-motion: reduce)").matches;
const put=(d,back)=>{const L=f.getTotalLength(),a=f.getPointAtLength(Math.max(0,Math.min(L,d))),b=f.getPointAtLength(Math.max(0,Math.min(L,d+(back?-1.5:1.5))));let g=Math.atan2(b.y-a.y,b.x-a.x)*180/Math.PI+90;if(d<=0&&!back)g=Math.atan2(f.getPointAtLength(1.5).y-a.y,f.getPointAtLength(1.5).x-a.x)*180/Math.PI+90;pl.setAttribute("transform","translate("+a.x.toFixed(1)+" "+a.y.toFixed(1)+") rotate("+g.toFixed(1)+")");f.style.strokeDasharray=d.toFixed(1)+" 9999"};
const fly=to=>{cancelAnimationFrame(raf);const s0=s,back=to<s0,D=(700+Math.abs(to-s0)*4)/K(),t0=performance.now();if(rm){s=to;put(s,back);return}const st=t=>{const k=Math.min(1,(t-t0)/D),e=k<.5?2*k*k:1-Math.pow(-2*k+2,2)/2;s=s0+(to-s0)*e;put(s,back);if(k<1)raf=requestAnimationFrame(st)};raf=requestAnimationFrame(st)};
const set=k=>{ls.forEach((a,j)=>{if(j===k)a.setAttribute("aria-current","page");else a.removeAttribute("aria-current");a.parentElement.classList.toggle("fu",j>k)});fly(+ls[k].dataset.l)};
ls.forEach((a,j)=>{a.addEventListener("click",e=>{e.preventDefault();set(j)});a.addEventListener("keydown",e=>{const n=e.key==="ArrowRight"?j+1:e.key==="ArrowLeft"?j-1:-1;if(n>=0&&n<ls.length){e.preventDefault();ls[n].focus()}})});
put(s,false);return()=>cancelAnimationFrame(raf)
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq12-fp {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 22em;
  padding: .4em .2em 1.6em;
  border-radius: 1.2em;
  background: repeating-linear-gradient(0deg,color-mix(in srgb,var(--fg) 5%,transparent) 0 1px,transparent 1px 1.6em),repeating-linear-gradient(90deg,color-mix(in srgb,var(--fg) 5%,transparent) 0 1px,transparent 1px 1.6em),color-mix(in srgb,var(--fg) 2%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent),0 1.4em 2.8em -1.4em rgba(0,0,0,.4);
}

.uvq12-fp svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.uvq12-fp path.b {
  fill: none;
  stroke: color-mix(in srgb,var(--fg) 28%,transparent);
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.uvq12-fp path.f {
  fill: none;
  stroke: var(--c1);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.uvq12-fp .pl {
  fill: var(--c2);
}

.uvq12-fp .pl .sh {
  fill: color-mix(in srgb,var(--c2) 16%,transparent);
}

.uvq12-fp ol {
  position: absolute;
  inset: .4em .2em 1.6em;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.uvq12-fp li {
  position: absolute;
  width: 0;
  height: 0;
}

.uvq12-fp a {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35em;
  transform: translate(-50%,-.45em);
  color: var(--fg);
  text-decoration: none;
  pointer-events: auto;
  border-radius: .4em;
  outline: 0;
}

.uvq12-fp a i {
  width: .9em;
  height: .9em;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 .2em var(--c1);
  transition: transform calc(0.25s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq12-fp .fu a i {
  box-shadow: 0 0 0 .2em color-mix(in srgb,var(--fg) 30%,transparent);
}

.uvq12-fp a span {
  padding: .1em .4em;
  border-radius: .4em;
  white-space: nowrap;
  font-size: .74em;
  font-weight: 650;
  background: color-mix(in srgb,var(--bg) 85%,transparent);
}

.uvq12-fp .fu a span {
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  font-weight: 500;
}

.uvq12-fp a[aria-current] span {
  color: #fff;
  background: var(--c1);
}

.uvq12-fp a[aria-current] i {
  background: transparent;
  box-shadow: none;
}

.uvq12-fp a:hover i {
  transform: scale(1.25);
}

.uvq12-fp a:active i {
  transform: scale(.85);
}

.uvq12-fp a:focus-visible span {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
  .uvq12-fp,.uvq12-fp *,.uvq12-fp *::before,.uvq12-fp *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const f=el.querySelector("path.f"),pl=el.querySelector(".pl"),ls=[...el.querySelectorAll("a")];let s=+ls[ls.length-1].dataset.l,raf=0;
const K=()=>parseFloat(getComputedStyle(el).getPropertyValue("--k"))||1;const rm=matchMedia("(prefers-reduced-motion: reduce)").matches;
const put=(d,back)=>{const L=f.getTotalLength(),a=f.getPointAtLength(Math.max(0,Math.min(L,d))),b=f.getPointAtLength(Math.max(0,Math.min(L,d+(back?-1.5:1.5))));let g=Math.atan2(b.y-a.y,b.x-a.x)*180/Math.PI+90;if(d<=0&&!back)g=Math.atan2(f.getPointAtLength(1.5).y-a.y,f.getPointAtLength(1.5).x-a.x)*180/Math.PI+90;pl.setAttribute("transform","translate("+a.x.toFixed(1)+" "+a.y.toFixed(1)+") rotate("+g.toFixed(1)+")");f.style.strokeDasharray=d.toFixed(1)+" 9999"};
const fly=to=>{cancelAnimationFrame(raf);const s0=s,back=to<s0,D=(700+Math.abs(to-s0)*4)/K(),t0=performance.now();if(rm){s=to;put(s,back);return}const st=t=>{const k=Math.min(1,(t-t0)/D),e=k<.5?2*k*k:1-Math.pow(-2*k+2,2)/2;s=s0+(to-s0)*e;put(s,back);if(k<1)raf=requestAnimationFrame(st)};raf=requestAnimationFrame(st)};
const set=k=>{ls.forEach((a,j)=>{if(j===k)a.setAttribute("aria-current","page");else a.removeAttribute("aria-current");a.parentElement.classList.toggle("fu",j>k)});fly(+ls[k].dataset.l)};
ls.forEach((a,j)=>{a.addEventListener("click",e=>{e.preventDefault();set(j)});a.addEventListener("keydown",e=>{const n=e.key==="ArrowRight"?j+1:e.key==="ArrowLeft"?j-1:-1;if(n>=0&&n<ls.length){e.preventDefault();ls[n].focus()}})});
put(s,false);return()=>cancelAnimationFrame(raf)
}

export default function NavFlightCrumbs() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#0284c7",
          "--c2": "#f97316",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <nav className="uvq12-fp" aria-label="Breadcrumb"><svg viewBox="0 0 320 130" aria-hidden="true"><path className="b" d="M26 98 Q61 28 96 72 Q131 28 166 94 Q201 16 236 60 Q267 16 298 84" /><path className="f" d="M26 98 Q61 28 96 72 Q131 28 166 94 Q201 16 236 60 Q267 16 298 84" style={{ strokeDasharray: "381.6 9999" }} /><g className="pl" transform="translate(298 84) rotate(110)"><circle r="16" className="sh" /><path transform="scale(1.15) translate(-12 -12)" d="M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z" /></g></svg><ol><li style={{ left: "8.13%", top: "75.38%" }}><a href="#" data-l="0"><i aria-hidden="true"></i><span>Home</span></a></li><li style={{ left: "30.00%", top: "55.38%" }}><a href="#" data-l="96.6"><i aria-hidden="true"></i><span>Destinations</span></a></li><li style={{ left: "51.88%", top: "72.31%" }}><a href="#" data-l="191.1"><i aria-hidden="true"></i><span>Europe</span></a></li><li style={{ left: "73.75%", top: "46.15%" }}><a href="#" data-l="292.1"><i aria-hidden="true"></i><span>Portugal</span></a></li><li style={{ left: "93.13%", top: "64.62%" }}><a href="#" data-l="381.6" aria-current="page"><i aria-hidden="true"></i><span>Lisbon</span></a></li></ol></nav>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Flight route breadcrumb” block (Navigation) from AIMRAN Library to my project.

## What it is
Each level is an airport joined by flight arcs; click one and the plane flies the route there, painting the stretch already flown.

## Chosen settings
- Main color: #0284c7
- Secondary color: #f97316
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Migas de pan"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq12-fp {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 22em;
  padding: .4em .2em 1.6em;
  border-radius: 1.2em;
  background: repeating-linear-gradient(0deg,color-mix(in srgb,var(--fg) 5%,transparent) 0 1px,transparent 1px 1.6em),repeating-linear-gradient(90deg,color-mix(in srgb,var(--fg) 5%,transparent) 0 1px,transparent 1px 1.6em),color-mix(in srgb,var(--fg) 2%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent),0 1.4em 2.8em -1.4em rgba(0,0,0,.4);
}

.uvq12-fp svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.uvq12-fp path.b {
  fill: none;
  stroke: color-mix(in srgb,var(--fg) 28%,transparent);
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.uvq12-fp path.f {
  fill: none;
  stroke: var(--c1);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.uvq12-fp .pl {
  fill: var(--c2);
}

.uvq12-fp .pl .sh {
  fill: color-mix(in srgb,var(--c2) 16%,transparent);
}

.uvq12-fp ol {
  position: absolute;
  inset: .4em .2em 1.6em;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.uvq12-fp li {
  position: absolute;
  width: 0;
  height: 0;
}

.uvq12-fp a {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35em;
  transform: translate(-50%,-.45em);
  color: var(--fg);
  text-decoration: none;
  pointer-events: auto;
  border-radius: .4em;
  outline: 0;
}

.uvq12-fp a i {
  width: .9em;
  height: .9em;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 .2em var(--c1);
  transition: transform calc(0.25s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq12-fp .fu a i {
  box-shadow: 0 0 0 .2em color-mix(in srgb,var(--fg) 30%,transparent);
}

.uvq12-fp a span {
  padding: .1em .4em;
  border-radius: .4em;
  white-space: nowrap;
  font-size: .74em;
  font-weight: 650;
  background: color-mix(in srgb,var(--bg) 85%,transparent);
}

.uvq12-fp .fu a span {
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  font-weight: 500;
}

.uvq12-fp a[aria-current] span {
  color: #fff;
  background: var(--c1);
}

.uvq12-fp a[aria-current] i {
  background: transparent;
  box-shadow: none;
}

.uvq12-fp a:hover i {
  transform: scale(1.25);
}

.uvq12-fp a:active i {
  transform: scale(.85);
}

.uvq12-fp a:focus-visible span {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
  .uvq12-fp,.uvq12-fp *,.uvq12-fp *::before,.uvq12-fp *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const f=el.querySelector("path.f"),pl=el.querySelector(".pl"),ls=[...el.querySelectorAll("a")];let s=+ls[ls.length-1].dataset.l,raf=0;
const K=()=>parseFloat(getComputedStyle(el).getPropertyValue("--k"))||1;const rm=matchMedia("(prefers-reduced-motion: reduce)").matches;
const put=(d,back)=>{const L=f.getTotalLength(),a=f.getPointAtLength(Math.max(0,Math.min(L,d))),b=f.getPointAtLength(Math.max(0,Math.min(L,d+(back?-1.5:1.5))));let g=Math.atan2(b.y-a.y,b.x-a.x)*180/Math.PI+90;if(d<=0&&!back)g=Math.atan2(f.getPointAtLength(1.5).y-a.y,f.getPointAtLength(1.5).x-a.x)*180/Math.PI+90;pl.setAttribute("transform","translate("+a.x.toFixed(1)+" "+a.y.toFixed(1)+") rotate("+g.toFixed(1)+")");f.style.strokeDasharray=d.toFixed(1)+" 9999"};
const fly=to=>{cancelAnimationFrame(raf);const s0=s,back=to<s0,D=(700+Math.abs(to-s0)*4)/K(),t0=performance.now();if(rm){s=to;put(s,back);return}const st=t=>{const k=Math.min(1,(t-t0)/D),e=k<.5?2*k*k:1-Math.pow(-2*k+2,2)/2;s=s0+(to-s0)*e;put(s,back);if(k<1)raf=requestAnimationFrame(st)};raf=requestAnimationFrame(st)};
const set=k=>{ls.forEach((a,j)=>{if(j===k)a.setAttribute("aria-current","page");else a.removeAttribute("aria-current");a.parentElement.classList.toggle("fu",j>k)});fly(+ls[k].dataset.l)};
ls.forEach((a,j)=>{a.addEventListener("click",e=>{e.preventDefault();set(j)});a.addEventListener("keydown",e=>{const n=e.key==="ArrowRight"?j+1:e.key==="ArrowLeft"?j-1:-1;if(n>=0&&n<ls.length){e.preventDefault();ls[n].focus()}})});
put(s,false);return()=>cancelAnimationFrame(raf)
}

export default function NavFlightCrumbs() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#0284c7",
          "--c2": "#f97316",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <nav className="uvq12-fp" aria-label="Breadcrumb"><svg viewBox="0 0 320 130" aria-hidden="true"><path className="b" d="M26 98 Q61 28 96 72 Q131 28 166 94 Q201 16 236 60 Q267 16 298 84" /><path className="f" d="M26 98 Q61 28 96 72 Q131 28 166 94 Q201 16 236 60 Q267 16 298 84" style={{ strokeDasharray: "381.6 9999" }} /><g className="pl" transform="translate(298 84) rotate(110)"><circle r="16" className="sh" /><path transform="scale(1.15) translate(-12 -12)" d="M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z" /></g></svg><ol><li style={{ left: "8.13%", top: "75.38%" }}><a href="#" data-l="0"><i aria-hidden="true"></i><span>Home</span></a></li><li style={{ left: "30.00%", top: "55.38%" }}><a href="#" data-l="96.6"><i aria-hidden="true"></i><span>Destinations</span></a></li><li style={{ left: "51.88%", top: "72.31%" }}><a href="#" data-l="191.1"><i aria-hidden="true"></i><span>Europe</span></a></li><li style={{ left: "73.75%", top: "46.15%" }}><a href="#" data-l="292.1"><i aria-hidden="true"></i><span>Portugal</span></a></li><li style={{ left: "93.13%", top: "64.62%" }}><a href="#" data-l="381.6" aria-current="page"><i aria-hidden="true"></i><span>Lisbon</span></a></li></ol></nav>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
