# Deploy terminal toast

> A terminal window prints the release log line by line and ends with a summary, the commit hash and a button to open it.

- Category: [Toasts](https://library.aimran.es/components/toasts)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-toast-deploy-terminal
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Developer tools speak terminal, so a deploy notice reads well as one. A dark window with traffic light dots prints the push, build and upload steps one line at a time with staggered CSS delays, then a blinking cursor waits after the final check and a footer slides up with the result. It fits CI dashboards, hosting panels and internal release tools.

The main color is the success green and the second the prompt and commit badge. Edit the log lines to match your pipeline, keep them short enough for one row, and link the Open button to the live URL.

## Code

### HTML

```html
<div class="uvq09-dpl"><button type="button" class="fire">Deploy again</button><div class="tt" role="status"><div class="bar" aria-hidden="true"><i></i><i></i><i></i><span>deploy · zsh</span></div><ol class="lg" aria-hidden="true"><li style="--i:0"><em>$</em> git push origin main</li><li style="--i:1">Building 48 pages</li><li style="--i:2">Uploading to 12 regions</li><li class="ok" style="--i:3">Done in 8.4 s</li></ol><div class="ft"><span class="ck" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><b>Live in production</b><code>a3f9c2e</code><button type="button" class="op">Open</button></div></div></div>
```

### CSS

```css
.uvq09-dpl {
  --c1: #22c55e;
  --c2: #c4b5fd;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq09-dpl {
  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: 21em;
  height: 15em;
  height: 17em;
}

.uvq09-dpl .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dpl .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-dpl .fire:active {
  scale: .96;
}

.uvq09-dpl .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-dpl .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  overflow: hidden;
  border-radius: .8em;
  color: #d4d4d8;
  background: #0d1117;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09),0 1.2em 2.4em -1em rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(1.2em) scale(.95);
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq09-dpl .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-dpl .bar {
  display: flex;
  align-items: center;
  gap: .35em;
  padding: .55em .7em;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.uvq09-dpl .bar i {
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: #ff5f57;
}

.uvq09-dpl .bar i:nth-child(2) {
  background: #febc2e;
}

.uvq09-dpl .bar i:nth-child(3) {
  background: #28c840;
}

.uvq09-dpl .bar span {
  flex: 1;
  margin-right: 2.2em;
  text-align: center;
  font: 600 .66em/1 system-ui,sans-serif;
  color: #8b949e;
}

.uvq09-dpl .lg {
  margin: 0;
  padding: .6em .85em .25em;
  list-style: none;
  font: 500 .74em/1.65 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

.uvq09-dpl .lg li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
}

.uvq09-dpl .lg li::before {
  content: "› ";
  color: #6e7681;
}

.uvq09-dpl .lg li:first-child::before {
  content: none;
}

.uvq09-dpl .lg em {
  font-style: normal;
  color: var(--c2);
}

.uvq09-dpl .tt.in .lg li {
  animation: uvq09-dpl-l calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1) calc((.35s + var(--i) * .5s) / var(--k)) both;
}

.uvq09-dpl .lg .ok {
  color: var(--c1);
}

.uvq09-dpl .lg .ok::before {
  content: "✓ ";
  color: var(--c1);
}

.uvq09-dpl .lg .ok::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: .35em;
  vertical-align: -.2em;
  background: #d4d4d8;
  animation: uvq09-dpl-c calc(1s / var(--k)) steps(1) infinite;
}

.uvq09-dpl .ft {
  display: flex;
  align-items: center;
  gap: .5em;
  margin: .35em .6em .6em;
  padding: .5em .55em;
  border-radius: .55em;
  background: rgba(255,255,255,.05);
  opacity: 0;
  transform: translateY(.4em);
  transition: opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.4s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq09-dpl .tt.in .ft {
  opacity: 1;
  transform: none;
  transition-delay: calc(2.1s / var(--k));
}

.uvq09-dpl .ck {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  color: #04130a;
  background: var(--c1);
}

.uvq09-dpl .ck svg {
  width: .85em;
  height: .85em;
}

.uvq09-dpl .ft b {
  flex: 1;
  min-width: 0;
  font-size: .78em;
  line-height: 1.2;
  color: #f4f4f5;
}

.uvq09-dpl code {
  padding: .3em .45em;
  border-radius: .35em;
  font: 600 .66em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color: var(--c2);
  background: color-mix(in srgb,var(--c2) 14%,transparent);
}

.uvq09-dpl .op {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .42em .75em;
  border-radius: .45em;
  font-size: .72em;
  font-weight: 750;
  color: #0d1117;
  background: #f4f4f5;
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dpl .op:hover {
  background: #fff;
}

.uvq09-dpl .op:active {
  scale: .94;
}

.uvq09-dpl .op:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

@keyframes uvq09-dpl-l {
  from {
    opacity: 0;
    transform: translateX(-.4em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes uvq09-dpl-c {
  50% {
    opacity: 0;
  }
}

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

### JavaScript

```js
document.querySelectorAll(".uvq09-dpl").forEach(el => {
  const t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".op").addEventListener("click",hide);return clr
});
```

### 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 = `
.uvq09-dpl {
  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: 21em;
  height: 15em;
  height: 17em;
}

.uvq09-dpl .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dpl .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-dpl .fire:active {
  scale: .96;
}

.uvq09-dpl .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-dpl .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  overflow: hidden;
  border-radius: .8em;
  color: #d4d4d8;
  background: #0d1117;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09),0 1.2em 2.4em -1em rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(1.2em) scale(.95);
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq09-dpl .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-dpl .bar {
  display: flex;
  align-items: center;
  gap: .35em;
  padding: .55em .7em;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.uvq09-dpl .bar i {
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: #ff5f57;
}

.uvq09-dpl .bar i:nth-child(2) {
  background: #febc2e;
}

.uvq09-dpl .bar i:nth-child(3) {
  background: #28c840;
}

.uvq09-dpl .bar span {
  flex: 1;
  margin-right: 2.2em;
  text-align: center;
  font: 600 .66em/1 system-ui,sans-serif;
  color: #8b949e;
}

.uvq09-dpl .lg {
  margin: 0;
  padding: .6em .85em .25em;
  list-style: none;
  font: 500 .74em/1.65 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

.uvq09-dpl .lg li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
}

.uvq09-dpl .lg li::before {
  content: "› ";
  color: #6e7681;
}

.uvq09-dpl .lg li:first-child::before {
  content: none;
}

.uvq09-dpl .lg em {
  font-style: normal;
  color: var(--c2);
}

.uvq09-dpl .tt.in .lg li {
  animation: uvq09-dpl-l calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1) calc((.35s + var(--i) * .5s) / var(--k)) both;
}

.uvq09-dpl .lg .ok {
  color: var(--c1);
}

.uvq09-dpl .lg .ok::before {
  content: "✓ ";
  color: var(--c1);
}

.uvq09-dpl .lg .ok::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: .35em;
  vertical-align: -.2em;
  background: #d4d4d8;
  animation: uvq09-dpl-c calc(1s / var(--k)) steps(1) infinite;
}

.uvq09-dpl .ft {
  display: flex;
  align-items: center;
  gap: .5em;
  margin: .35em .6em .6em;
  padding: .5em .55em;
  border-radius: .55em;
  background: rgba(255,255,255,.05);
  opacity: 0;
  transform: translateY(.4em);
  transition: opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.4s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq09-dpl .tt.in .ft {
  opacity: 1;
  transform: none;
  transition-delay: calc(2.1s / var(--k));
}

.uvq09-dpl .ck {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  color: #04130a;
  background: var(--c1);
}

.uvq09-dpl .ck svg {
  width: .85em;
  height: .85em;
}

.uvq09-dpl .ft b {
  flex: 1;
  min-width: 0;
  font-size: .78em;
  line-height: 1.2;
  color: #f4f4f5;
}

.uvq09-dpl code {
  padding: .3em .45em;
  border-radius: .35em;
  font: 600 .66em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color: var(--c2);
  background: color-mix(in srgb,var(--c2) 14%,transparent);
}

.uvq09-dpl .op {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .42em .75em;
  border-radius: .45em;
  font-size: .72em;
  font-weight: 750;
  color: #0d1117;
  background: #f4f4f5;
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dpl .op:hover {
  background: #fff;
}

.uvq09-dpl .op:active {
  scale: .94;
}

.uvq09-dpl .op:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

@keyframes uvq09-dpl-l {
  from {
    opacity: 0;
    transform: translateX(-.4em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes uvq09-dpl-c {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-dpl,.uvq09-dpl *,.uvq09-dpl *::before,.uvq09-dpl *::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 t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".op").addEventListener("click",hide);return clr
}

export default function ToastDeployTerminal() {
  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": "#22c55e",
          "--c2": "#c4b5fd",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-dpl"><button type="button" className="fire">Deploy again</button><div className="tt" role="status"><div className="bar" aria-hidden="true"><i></i><i></i><i></i><span>deploy · zsh</span></div><ol className="lg" aria-hidden="true"><li style={{ "--i": "0" } as CSSProperties}><em>$</em> git push origin main</li><li style={{ "--i": "1" } as CSSProperties}>Building 48 pages</li><li style={{ "--i": "2" } as CSSProperties}>Uploading to 12 regions</li><li className="ok" style={{ "--i": "3" } as CSSProperties}>Done in 8.4 s</li></ol><div className="ft"><span className="ck" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="3" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" /></svg></span><b>Live in production</b><code>a3f9c2e</code><button type="button" className="op">Open</button></div></div></div>
      </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 “Deploy terminal toast” block (Toasts) from AIMRAN Library to my project.

## What it is
A terminal window prints the release log line by line and ends with a summary, the commit hash and a button to open it.

## Chosen settings
- Main color: #22c55e
- Secondary color: #c4b5fd
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Publicado en producción"

## 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 = `
.uvq09-dpl {
  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: 21em;
  height: 15em;
  height: 17em;
}

.uvq09-dpl .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dpl .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-dpl .fire:active {
  scale: .96;
}

.uvq09-dpl .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-dpl .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  overflow: hidden;
  border-radius: .8em;
  color: #d4d4d8;
  background: #0d1117;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09),0 1.2em 2.4em -1em rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(1.2em) scale(.95);
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq09-dpl .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-dpl .bar {
  display: flex;
  align-items: center;
  gap: .35em;
  padding: .55em .7em;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.uvq09-dpl .bar i {
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: #ff5f57;
}

.uvq09-dpl .bar i:nth-child(2) {
  background: #febc2e;
}

.uvq09-dpl .bar i:nth-child(3) {
  background: #28c840;
}

.uvq09-dpl .bar span {
  flex: 1;
  margin-right: 2.2em;
  text-align: center;
  font: 600 .66em/1 system-ui,sans-serif;
  color: #8b949e;
}

.uvq09-dpl .lg {
  margin: 0;
  padding: .6em .85em .25em;
  list-style: none;
  font: 500 .74em/1.65 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

.uvq09-dpl .lg li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
}

.uvq09-dpl .lg li::before {
  content: "› ";
  color: #6e7681;
}

.uvq09-dpl .lg li:first-child::before {
  content: none;
}

.uvq09-dpl .lg em {
  font-style: normal;
  color: var(--c2);
}

.uvq09-dpl .tt.in .lg li {
  animation: uvq09-dpl-l calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1) calc((.35s + var(--i) * .5s) / var(--k)) both;
}

.uvq09-dpl .lg .ok {
  color: var(--c1);
}

.uvq09-dpl .lg .ok::before {
  content: "✓ ";
  color: var(--c1);
}

.uvq09-dpl .lg .ok::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: .35em;
  vertical-align: -.2em;
  background: #d4d4d8;
  animation: uvq09-dpl-c calc(1s / var(--k)) steps(1) infinite;
}

.uvq09-dpl .ft {
  display: flex;
  align-items: center;
  gap: .5em;
  margin: .35em .6em .6em;
  padding: .5em .55em;
  border-radius: .55em;
  background: rgba(255,255,255,.05);
  opacity: 0;
  transform: translateY(.4em);
  transition: opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.4s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq09-dpl .tt.in .ft {
  opacity: 1;
  transform: none;
  transition-delay: calc(2.1s / var(--k));
}

.uvq09-dpl .ck {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  color: #04130a;
  background: var(--c1);
}

.uvq09-dpl .ck svg {
  width: .85em;
  height: .85em;
}

.uvq09-dpl .ft b {
  flex: 1;
  min-width: 0;
  font-size: .78em;
  line-height: 1.2;
  color: #f4f4f5;
}

.uvq09-dpl code {
  padding: .3em .45em;
  border-radius: .35em;
  font: 600 .66em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color: var(--c2);
  background: color-mix(in srgb,var(--c2) 14%,transparent);
}

.uvq09-dpl .op {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .42em .75em;
  border-radius: .45em;
  font-size: .72em;
  font-weight: 750;
  color: #0d1117;
  background: #f4f4f5;
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dpl .op:hover {
  background: #fff;
}

.uvq09-dpl .op:active {
  scale: .94;
}

.uvq09-dpl .op:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

@keyframes uvq09-dpl-l {
  from {
    opacity: 0;
    transform: translateX(-.4em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes uvq09-dpl-c {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-dpl,.uvq09-dpl *,.uvq09-dpl *::before,.uvq09-dpl *::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 t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".op").addEventListener("click",hide);return clr
}

export default function ToastDeployTerminal() {
  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": "#22c55e",
          "--c2": "#c4b5fd",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-dpl"><button type="button" className="fire">Deploy again</button><div className="tt" role="status"><div className="bar" aria-hidden="true"><i></i><i></i><i></i><span>deploy · zsh</span></div><ol className="lg" aria-hidden="true"><li style={{ "--i": "0" } as CSSProperties}><em>$</em> git push origin main</li><li style={{ "--i": "1" } as CSSProperties}>Building 48 pages</li><li style={{ "--i": "2" } as CSSProperties}>Uploading to 12 regions</li><li className="ok" style={{ "--i": "3" } as CSSProperties}>Done in 8.4 s</li></ol><div className="ft"><span className="ck" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="3" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" /></svg></span><b>Live in production</b><code>a3f9c2e</code><button type="button" className="op">Open</button></div></div></div>
      </div>
    </>
  );
}
```

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