Motion & effects / Animated backgrounds

Red Ribbon Glow Backdrop

Rotated, low-opacity 3D red/crimson diagonal ribbon artwork with blurred glow blobs and a masked fade into the near-black canvas, used behind community and footer sections.

Rebuilt from raycast.com/pricing in the Obsidian Launcher style.

npx shadcn@latest add https://justyoink.it/r/obsidian-launcher/blocks/red-ribbon-backdrop.json

Looks exactly like raycast.com: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Props: columns (title + links with optional external flag), newsletterTitle, newsletterBody, disclaimer, placeholder. Renders a rotated red ribbon backdrop fading into the canvas above a link footer; all props have defaults.

components/red-ribbon-backdrop.tsx
"use client";

import { useEffect, useRef, type CSSProperties, type ReactNode } from "react";
import { useState } from "react";

type Col = { title: string; links: { label: string; external?: boolean }[] };

const defaultColumns: Col[] = [
  { title: "Platform", links: [{ label: "Overview" }, { label: "Plans" }, { label: "Releases" }, { label: "Desktop App" }, { label: "Mobile App" }, { label: "Reference", external: true }, { label: "Tutorials" }, { label: "Questions" }] },
  { title: "Capabilities", links: [{ label: "Search" }, { label: "Notebooks" }, { label: "Timers" }, { label: "History" }, { label: "Layouts" }, { label: "Shortcuts" }, { label: "Converter" }, { label: "Connectors", external: true }] },
  { title: "Library", links: [{ label: "Design Kits" }, { label: "Dev Kits" }, { label: "Planning" }, { label: "Scheduling" }, { label: "Notes" }, { label: "Automation" }, { label: "Remote Work" }] },
  { title: "Studio", links: [{ label: "Our Story" }, { label: "Clients" }, { label: "Jobs" }, { label: "Terms" }, { label: "Privacy" }, { label: "Security", external: true }, { label: "Media" }, { label: "Contact" }] },
  { title: "Network", links: [{ label: "Forum" }, { label: "Mentors" }, { label: "Chat", external: true }, { label: "Social", external: true }, { label: "Code Host", external: true }, { label: "Portfolio", external: true }] },
  { title: "Extras", links: [{ label: "Typing Pad" }, { label: "Sticker Pack", external: true }, { label: "Sample Decks", external: true }, { label: "Badge Maker", external: true }, { label: "Goods", external: true }, { label: "Backdrops" }] },
];

export default function RedRibbonGlowBackdrop({
  columns = defaultColumns,
  newsletterTitle = "Join our mailing list.",
  newsletterBody = "Receive release notes and tips each month. Zero clutter.",
  disclaimer = "By signing up you consent to receive our monthly digest. You may unsubscribe at any moment using the link inside each message.",
  placeholder = "you@example.com",
}: {
  columns?: Col[];
  newsletterTitle?: string;
  newsletterBody?: string;
  disclaimer?: string;
  placeholder?: string;
}) {
  const [email, setEmail] = useState("");
  return (
    <section className="relative isolate overflow-hidden bg-canvas text-secondary font-sans">
      <div className="relative h-[200px] border-b border-hairline" aria-hidden="true">
        <Parallax speed={0.05} className="absolute inset-0">
          <div className="absolute left-1/2 top-0 h-[200px] w-[640px] -translate-x-1/2 opacity-50">
            {[0, 1, 2, 3, 4].map((i) => (
              <div
                key={i}
                className="absolute top-[-40px] h-[320px] bg-gradient-to-br from-accent-red via-accent-red/40 to-transparent"
                style={{ left: 40 + i * 110, width: 160 - i * 25, clipPath: "polygon(0 0, 100% 0, 100% 100%)", transform: "skewX(-18deg)", opacity: 1 - i * 0.15 }}
              />
            ))}
          </div>
        </Parallax>
        <div className="absolute left-1/3 top-24 h-8 w-[138px] rounded-full bg-accent-red/50 blur-[32px]" />
        <div className="absolute inset-x-0 bottom-0 h-1/2 bg-gradient-to-b from-transparent to-canvas" />
      </div>

      <div className="pointer-events-none absolute inset-x-0 top-[200px] -z-10 h-[500px] bg-[radial-gradient(50%_60%_at_60%_0%,color-mix(in_oklab,var(--color-accent-red)_25%,transparent),transparent)]" />
      <div className="pointer-events-none absolute inset-x-0 top-[200px] -z-10 h-[500px] backdrop-blur-[20px] [mask-image:linear-gradient(to_bottom,black,transparent)]" />

      <div className="mx-auto max-w-[1064px] px-6 pt-20 pb-20">
        <div className="grid grid-cols-2 gap-x-6 gap-y-12 md:grid-cols-3 lg:grid-cols-6">
          {columns.map((col) => (
            <nav key={col.title} aria-label={col.title}>
              <h3 className="text-ui font-medium text-primary">{col.title}</h3>
              <ul className="mt-10 space-y-5">
                {col.links.map((l) => (
                  <li key={l.label}>
                    <a href="#" className="group inline-flex items-center gap-2 text-ui text-secondary transition-colors duration-link-color ease-link-color hover:text-primary focus-visible:text-primary focus-visible:outline-none">
                      {l.label}
                      {l.external && (
                        <svg width="8" height="8" viewBox="0 0 8 8" fill="none" stroke="currentColor" className="text-tertiary transition-transform duration-arrow-nudge ease-arrow-nudge group-hover:translate-x-0.5" aria-hidden="true"><path d="M1 7 7 1M2 1h5v5" /></svg>
                      )}
                    </a>
                  </li>
                ))}
              </ul>
            </nav>
          ))}
        </div>

        <div className="mt-24 grid gap-8 border-t border-hairline pt-12 md:grid-cols-2">
          <div>
            <p className="text-ui font-medium text-primary">{newsletterTitle}</p>
            <p className="mt-1 max-w-[260px] text-ui text-secondary">{newsletterBody}</p>
          </div>
          <div>
            <form onSubmit={(e) => e.preventDefault()} className="flex gap-4">
              <input
                type="email"
                value={email}
                onChange={(e) => setEmail(e.target.value)}
                placeholder={placeholder}
                aria-label="Email address"
                className="h-10 flex-1 rounded-lg border border-hairline bg-surface-elevated px-3 text-ui text-primary placeholder:text-faint focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-red"
              />
              <button type="submit" className="h-10 rounded-lg bg-button-light px-8 text-ui font-medium text-surface-elevated transition-all duration-button-lift ease-button-lift hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-red">Sign up</button>
            </form>
            <p className="mt-4 text-caption text-tertiary">{disclaimer}</p>
          </div>
        </div>
      </div>
    </section>
  );
}

// ---- Yoink motion (inlined, no dependencies): Parallax ----

function ykReducedMotion(): boolean {
  return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
}

/** Moves its content a little slower (or faster) than the page as you scroll. */
function Parallax({
  children,
  speed = 0.15,
  className,
  style,
}: {
  children?: ReactNode;
  /** 0 = scrolls normally; 0.2 = lags behind by 20%; negative values move ahead */
  speed?: number;
  className?: string;
  style?: CSSProperties;
}) {
  const ref = useRef<HTMLDivElement>(null);
  const inner = useRef<HTMLDivElement>(null);
  useEffect(() => {
    const box = ref.current, el = inner.current;
    if (!box || !el || ykReducedMotion()) return;
    let raf = 0, visible = true;
    const update = () => {
      raf = 0;
      const r = box.getBoundingClientRect();
      const offset = r.top + r.height / 2 - window.innerHeight / 2;
      el.style.transform = `translate3d(0, ${(-offset * speed).toFixed(1)}px, 0)`;
    };
    const onScroll = () => {
      if (visible && !raf) raf = requestAnimationFrame(update);
    };
    const io = typeof IntersectionObserver !== "undefined" ? new IntersectionObserver(([e]) => (visible = e.isIntersecting)) : null;
    io?.observe(box);
    // re-measure when the page's layout settles (fonts, images, late CSS)
    const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(() => (raf ||= requestAnimationFrame(update))) : null;
    ro?.observe(document.documentElement);
    update();
    window.addEventListener("scroll", onScroll, { passive: true });
    window.addEventListener("resize", onScroll);
    return () => {
      cancelAnimationFrame(raf);
      io?.disconnect();
      ro?.disconnect();
      window.removeEventListener("scroll", onScroll);
      window.removeEventListener("resize", onScroll);
    };
  }, [speed]);
  return (
    <div ref={ref} className={className} style={style}>
      <div ref={inner} style={{ willChange: "transform" }}>
        {children}
      </div>
    </div>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Obsidian Launcher

The whole style →

AI Agent Bento Showcase

Feature sections

Blog Category Filter Row

Tab bars

Frosted Pill Navbar

Headers & nav bars

Centered Glow Hero

Heroes

Light Pill Download Button

Buttons

Launcher Window Showcase

Media & mockups