# Air traffic control strip menu

> Sections are flight progress strips in a control tower rack: the chosen one slides out of the row, just as a controller does.

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

## Where to use it

A vertical menu inspired by the paper strips air traffic controllers keep in a rack. Each section is a coloured strip with a callsign, aircraft type and route printed in monospace, and the chosen one slides out of the row with a red marker, the way a controller flags the flight they are handling. Arrow keys move between strips. It suits dashboards, logistics tools and admin panels.

The main color sets the active marker and the secondary color the metal rack. Give each strip its own paper colour in the data, and keep the printed codes as decoration next to a clear section name.

## Code

### HTML

```html
<nav class="uvq12-at" aria-label="Control tower"><p class="hd" aria-hidden="true"><span>Control tower</span><span>RWY 36L</span></p><ol><li><a href="#" style="--c:#fde68a" aria-current="page"><span class="cs" aria-hidden="true"><b>IBE3141</b><small>A320</small></span><span class="nm">Overview</span><span class="rt" aria-hidden="true">MAD LIS</span></a></li><li><a href="#" style="--c:#bfdbfe"><span class="cs" aria-hidden="true"><b>VLG7012</b><small>A321</small></span><span class="nm">Flights</span><span class="rt" aria-hidden="true">BCN ORY</span></a></li><li><a href="#" style="--c:#fecaca"><span class="cs" aria-hidden="true"><b>AEA1024</b><small>B738</small></span><span class="nm">Passengers</span><span class="rt" aria-hidden="true">PMI MAD</span></a></li><li><a href="#" style="--c:#bbf7d0"><span class="cs" aria-hidden="true"><b>RYR4410</b><small>B38M</small></span><span class="nm">Baggage</span><span class="rt" aria-hidden="true">AGP STN</span></a></li><li><a href="#" style="--c:#e9d5ff"><span class="cs" aria-hidden="true"><b>TAP1013</b><small>A20N</small></span><span class="nm">Reports</span><span class="rt" aria-hidden="true">LIS OPO</span></a></li></ol></nav>
```

### CSS

```css
.uvq12-at {
  --c1: #dc2626;
  --c2: #3f3f46;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq12-at {
  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;
  width: 20em;
  padding: .8em .9em 1em;
  border-radius: 1em;
  color: #e4e4e7;
  background: linear-gradient(180deg,color-mix(in srgb,var(--c2) 85%,#fff 15%),var(--c2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 1.2em 2.4em -1.2em rgba(0,0,0,.6);
}

.uvq12-at .hd {
  display: flex;
  justify-content: space-between;
  margin: 0 .2em .6em;
  font: 700 .58em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
}

.uvq12-at ol {
  display: flex;
  flex-direction: column;
  gap: .28em;
  margin: 0;
  padding: .35em 1.3em .35em .3em;
  list-style: none;
  border-radius: .4em;
  background: repeating-linear-gradient(180deg,rgba(0,0,0,.35) 0 2.48em,rgba(255,255,255,.06) 2.48em 2.58em);
  box-shadow: inset 0 .2em .4em rgba(0,0,0,.5);
}

.uvq12-at a {
  position: relative;
  display: grid;
  grid-template-columns: 4.4em 1fr auto;
  align-items: center;
  height: 2.3em;
  padding: 0 .6em 0 .9em;
  border-radius: .2em;
  color: #1c1917;
  text-decoration: none;
  background: linear-gradient(90deg,transparent 4.2em,rgba(0,0,0,.25) 4.2em calc(4.2em + 1px),transparent calc(4.2em + 1px)),linear-gradient(180deg,rgba(255,255,255,.35),transparent 40%),var(--c);
  box-shadow: inset .35em 0 0 color-mix(in srgb,var(--c) 60%,#000),0 .15em .25em rgba(0,0,0,.35);
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
  outline: 0;
}

.uvq12-at a:hover {
  transform: translateX(.35em);
}

.uvq12-at a:active {
  transform: translateX(.15em) scale(.99);
}

.uvq12-at a[aria-current] {
  transform: translateX(1.2em);
  box-shadow: inset .35em 0 0 var(--c1),0 .5em .9em -.2em rgba(0,0,0,.55);
}

.uvq12-at a[aria-current]::after {
  content: "";
  position: absolute;
  right: -.45em;
  top: 50%;
  width: .9em;
  height: .9em;
  margin-top: -.45em;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 0 .18em #fff,0 .15em .3em rgba(0,0,0,.4);
}

.uvq12-at a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.uvq12-at .cs b {
  display: block;
  font: 800 .74em/1.1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

.uvq12-at .cs small {
  display: block;
  font: 600 .58em/1.1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  opacity: .65;
}

.uvq12-at .nm {
  padding-left: .6em;
  font-size: .95em;
  font-weight: 750;
  letter-spacing: -.01em;
}

.uvq12-at .rt {
  font: 700 .62em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  opacity: .7;
}

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

### JavaScript

```js
document.querySelectorAll(".uvq12-at").forEach(el => {
  const ls=[...el.querySelectorAll("a")];ls.forEach((a,j)=>{a.addEventListener("click",e=>{e.preventDefault();ls.forEach(o=>{if(o===a)o.setAttribute("aria-current","page");else o.removeAttribute("aria-current")})});a.addEventListener("keydown",e=>{const n=e.key==="ArrowDown"?j+1:e.key==="ArrowUp"?j-1:-1;if(n>=0&&n<ls.length){e.preventDefault();ls[n].focus()}})})
});
```

### 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-at {
  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;
  width: 20em;
  padding: .8em .9em 1em;
  border-radius: 1em;
  color: #e4e4e7;
  background: linear-gradient(180deg,color-mix(in srgb,var(--c2) 85%,#fff 15%),var(--c2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 1.2em 2.4em -1.2em rgba(0,0,0,.6);
}

.uvq12-at .hd {
  display: flex;
  justify-content: space-between;
  margin: 0 .2em .6em;
  font: 700 .58em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
}

.uvq12-at ol {
  display: flex;
  flex-direction: column;
  gap: .28em;
  margin: 0;
  padding: .35em 1.3em .35em .3em;
  list-style: none;
  border-radius: .4em;
  background: repeating-linear-gradient(180deg,rgba(0,0,0,.35) 0 2.48em,rgba(255,255,255,.06) 2.48em 2.58em);
  box-shadow: inset 0 .2em .4em rgba(0,0,0,.5);
}

.uvq12-at a {
  position: relative;
  display: grid;
  grid-template-columns: 4.4em 1fr auto;
  align-items: center;
  height: 2.3em;
  padding: 0 .6em 0 .9em;
  border-radius: .2em;
  color: #1c1917;
  text-decoration: none;
  background: linear-gradient(90deg,transparent 4.2em,rgba(0,0,0,.25) 4.2em calc(4.2em + 1px),transparent calc(4.2em + 1px)),linear-gradient(180deg,rgba(255,255,255,.35),transparent 40%),var(--c);
  box-shadow: inset .35em 0 0 color-mix(in srgb,var(--c) 60%,#000),0 .15em .25em rgba(0,0,0,.35);
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
  outline: 0;
}

.uvq12-at a:hover {
  transform: translateX(.35em);
}

.uvq12-at a:active {
  transform: translateX(.15em) scale(.99);
}

.uvq12-at a[aria-current] {
  transform: translateX(1.2em);
  box-shadow: inset .35em 0 0 var(--c1),0 .5em .9em -.2em rgba(0,0,0,.55);
}

.uvq12-at a[aria-current]::after {
  content: "";
  position: absolute;
  right: -.45em;
  top: 50%;
  width: .9em;
  height: .9em;
  margin-top: -.45em;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 0 .18em #fff,0 .15em .3em rgba(0,0,0,.4);
}

.uvq12-at a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.uvq12-at .cs b {
  display: block;
  font: 800 .74em/1.1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

.uvq12-at .cs small {
  display: block;
  font: 600 .58em/1.1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  opacity: .65;
}

.uvq12-at .nm {
  padding-left: .6em;
  font-size: .95em;
  font-weight: 750;
  letter-spacing: -.01em;
}

.uvq12-at .rt {
  font: 700 .62em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  opacity: .7;
}

@media (prefers-reduced-motion:reduce) {
  .uvq12-at,.uvq12-at *,.uvq12-at *::before,.uvq12-at *::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 ls=[...el.querySelectorAll("a")];ls.forEach((a,j)=>{a.addEventListener("click",e=>{e.preventDefault();ls.forEach(o=>{if(o===a)o.setAttribute("aria-current","page");else o.removeAttribute("aria-current")})});a.addEventListener("keydown",e=>{const n=e.key==="ArrowDown"?j+1:e.key==="ArrowUp"?j-1:-1;if(n>=0&&n<ls.length){e.preventDefault();ls[n].focus()}})})
}

export default function NavAtcStrips() {
  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": "#dc2626",
          "--c2": "#3f3f46",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <nav className="uvq12-at" aria-label="Control tower"><p className="hd" aria-hidden="true"><span>Control tower</span><span>RWY 36L</span></p><ol><li><a href="#" style={{ "--c": "#fde68a" } as CSSProperties} aria-current="page"><span className="cs" aria-hidden="true"><b>IBE3141</b><small>A320</small></span><span className="nm">Overview</span><span className="rt" aria-hidden="true">MAD LIS</span></a></li><li><a href="#" style={{ "--c": "#bfdbfe" } as CSSProperties}><span className="cs" aria-hidden="true"><b>VLG7012</b><small>A321</small></span><span className="nm">Flights</span><span className="rt" aria-hidden="true">BCN ORY</span></a></li><li><a href="#" style={{ "--c": "#fecaca" } as CSSProperties}><span className="cs" aria-hidden="true"><b>AEA1024</b><small>B738</small></span><span className="nm">Passengers</span><span className="rt" aria-hidden="true">PMI MAD</span></a></li><li><a href="#" style={{ "--c": "#bbf7d0" } as CSSProperties}><span className="cs" aria-hidden="true"><b>RYR4410</b><small>B38M</small></span><span className="nm">Baggage</span><span className="rt" aria-hidden="true">AGP STN</span></a></li><li><a href="#" style={{ "--c": "#e9d5ff" } as CSSProperties}><span className="cs" aria-hidden="true"><b>TAP1013</b><small>A20N</small></span><span className="nm">Reports</span><span className="rt" aria-hidden="true">LIS OPO</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 “Air traffic control strip menu” block (Navigation) from AIMRAN Library to my project.

## What it is
Sections are flight progress strips in a control tower rack: the chosen one slides out of the row, just as a controller does.

## Chosen settings
- Main color: #dc2626
- Secondary color: #3f3f46
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Torre de control"

## 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-at {
  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;
  width: 20em;
  padding: .8em .9em 1em;
  border-radius: 1em;
  color: #e4e4e7;
  background: linear-gradient(180deg,color-mix(in srgb,var(--c2) 85%,#fff 15%),var(--c2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 1.2em 2.4em -1.2em rgba(0,0,0,.6);
}

.uvq12-at .hd {
  display: flex;
  justify-content: space-between;
  margin: 0 .2em .6em;
  font: 700 .58em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
}

.uvq12-at ol {
  display: flex;
  flex-direction: column;
  gap: .28em;
  margin: 0;
  padding: .35em 1.3em .35em .3em;
  list-style: none;
  border-radius: .4em;
  background: repeating-linear-gradient(180deg,rgba(0,0,0,.35) 0 2.48em,rgba(255,255,255,.06) 2.48em 2.58em);
  box-shadow: inset 0 .2em .4em rgba(0,0,0,.5);
}

.uvq12-at a {
  position: relative;
  display: grid;
  grid-template-columns: 4.4em 1fr auto;
  align-items: center;
  height: 2.3em;
  padding: 0 .6em 0 .9em;
  border-radius: .2em;
  color: #1c1917;
  text-decoration: none;
  background: linear-gradient(90deg,transparent 4.2em,rgba(0,0,0,.25) 4.2em calc(4.2em + 1px),transparent calc(4.2em + 1px)),linear-gradient(180deg,rgba(255,255,255,.35),transparent 40%),var(--c);
  box-shadow: inset .35em 0 0 color-mix(in srgb,var(--c) 60%,#000),0 .15em .25em rgba(0,0,0,.35);
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
  outline: 0;
}

.uvq12-at a:hover {
  transform: translateX(.35em);
}

.uvq12-at a:active {
  transform: translateX(.15em) scale(.99);
}

.uvq12-at a[aria-current] {
  transform: translateX(1.2em);
  box-shadow: inset .35em 0 0 var(--c1),0 .5em .9em -.2em rgba(0,0,0,.55);
}

.uvq12-at a[aria-current]::after {
  content: "";
  position: absolute;
  right: -.45em;
  top: 50%;
  width: .9em;
  height: .9em;
  margin-top: -.45em;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 0 .18em #fff,0 .15em .3em rgba(0,0,0,.4);
}

.uvq12-at a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.uvq12-at .cs b {
  display: block;
  font: 800 .74em/1.1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

.uvq12-at .cs small {
  display: block;
  font: 600 .58em/1.1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  opacity: .65;
}

.uvq12-at .nm {
  padding-left: .6em;
  font-size: .95em;
  font-weight: 750;
  letter-spacing: -.01em;
}

.uvq12-at .rt {
  font: 700 .62em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  opacity: .7;
}

@media (prefers-reduced-motion:reduce) {
  .uvq12-at,.uvq12-at *,.uvq12-at *::before,.uvq12-at *::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 ls=[...el.querySelectorAll("a")];ls.forEach((a,j)=>{a.addEventListener("click",e=>{e.preventDefault();ls.forEach(o=>{if(o===a)o.setAttribute("aria-current","page");else o.removeAttribute("aria-current")})});a.addEventListener("keydown",e=>{const n=e.key==="ArrowDown"?j+1:e.key==="ArrowUp"?j-1:-1;if(n>=0&&n<ls.length){e.preventDefault();ls[n].focus()}})})
}

export default function NavAtcStrips() {
  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": "#dc2626",
          "--c2": "#3f3f46",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <nav className="uvq12-at" aria-label="Control tower"><p className="hd" aria-hidden="true"><span>Control tower</span><span>RWY 36L</span></p><ol><li><a href="#" style={{ "--c": "#fde68a" } as CSSProperties} aria-current="page"><span className="cs" aria-hidden="true"><b>IBE3141</b><small>A320</small></span><span className="nm">Overview</span><span className="rt" aria-hidden="true">MAD LIS</span></a></li><li><a href="#" style={{ "--c": "#bfdbfe" } as CSSProperties}><span className="cs" aria-hidden="true"><b>VLG7012</b><small>A321</small></span><span className="nm">Flights</span><span className="rt" aria-hidden="true">BCN ORY</span></a></li><li><a href="#" style={{ "--c": "#fecaca" } as CSSProperties}><span className="cs" aria-hidden="true"><b>AEA1024</b><small>B738</small></span><span className="nm">Passengers</span><span className="rt" aria-hidden="true">PMI MAD</span></a></li><li><a href="#" style={{ "--c": "#bbf7d0" } as CSSProperties}><span className="cs" aria-hidden="true"><b>RYR4410</b><small>B38M</small></span><span className="nm">Baggage</span><span className="rt" aria-hidden="true">AGP STN</span></a></li><li><a href="#" style={{ "--c": "#e9d5ff" } as CSSProperties}><span className="cs" aria-hidden="true"><b>TAP1013</b><small>A20N</small></span><span className="nm">Reports</span><span className="rt" aria-hidden="true">LIS OPO</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.
````
