Cards & content / Media & mockups

Frosted Browser Mockup Card

Rounded 32px image card with a soft painterly background photo, cropped on the right. A frosted-glass app window (blur 20px, sky-blue tint) sits inside showing a sidebar with colored folder groups and mac window dots, bleeding off the edge with a bottom fade mask. A floating glass tile holds a dial control.

Rebuilt from arc.net in the Obsidian Farewell Editorial style.

npx shadcn@latest add https://justyoink.it/r/obsidian-farewell-editorial/blocks/frosted-browser-mockup-card.json

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

ImagesSwap it for a library image or one of your own.All images in this style →

Choose an image

Image

Loading…

Usage

Props: imageSrc, imageAlt, address (URL text in the mockup toolbar), showDial (toggle the floating dial tile). The sidebar slides in on mount and the dial springs on scroll into view.

components/frosted-browser-mockup-card.tsx
import { useEffect, useRef, useState } from "react";

type Props = {
  imageSrc?: string;
  imageAlt?: string;
  address?: string;
  showDial?: boolean;
};

const groups = [
  { name: "Weekend Trip", emoji: "🏕️", tint: "bg-[#c9c8f5]/60 text-[#4b46c8]", items: ["Field Notes #12", "Cabin Rental, Tahoe", "Lakeside Cottage"] },
  { name: "Reading List", emoji: "📖", tint: "text-ink", items: ["Slow Mornings", "Essays on Quiet"] },
  { name: "Playlists", emoji: "🎧", tint: "bg-[#c8efe0]/70 text-[#1f8f68]", items: ["Evening Rotation"] },
];

export default function FrostedBrowserMockupCard({
  imageSrc = "https://yoink-app.fly.dev/stock/abstract-5.jpg",
  imageAlt = "Soft painterly blue backdrop",
  address = "example.com/stays/lakeside",
  showDial = true,
}: Props) {
  const [on, setOn] = useState(false);
  const [dial, setDial] = useState(false);
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const t = requestAnimationFrame(() => setOn(true));
    const el = ref.current;
    if (!el) return () => cancelAnimationFrame(t);
    const io = new IntersectionObserver(([e]) => {
      if (e.isIntersecting) {
        setDial(true);
        io.disconnect();
      }
    }, { threshold: 0.4 });
    io.observe(el);
    return () => {
      cancelAnimationFrame(t);
      io.disconnect();
    };
  }, []);

  return (
    <div ref={ref} className="relative isolate aspect-[671/551] w-full max-w-[671px] overflow-hidden rounded-[32px] bg-surface-tint">
      <img src={imageSrc} alt={imageAlt} width={1280} height={1280} loading="lazy" className="absolute inset-0 -z-10 h-full w-full object-cover object-right" />
      <div className="absolute inset-0 -z-10 bg-gradient-to-b from-[#a5c9e4]/25 to-[#438ec7]/25" />

      <div className="absolute left-[7%] top-[12%] bottom-0 right-[-30%] overflow-hidden rounded-tl-xl border border-hairline bg-bar-glow/0 bg-bar-glass shadow-float backdrop-blur-[20px] [mask-image:linear-gradient(#000_calc(100%-56px),transparent)]">
        <div className="flex h-full">
          <aside className="w-[34%] shrink-0 overflow-hidden border-r border-hairline p-3">
            <div className="flex gap-1.5" aria-hidden>
              <span className="h-3 w-3 rounded-full bg-mac-close" />
              <span className="h-3 w-3 rounded-full bg-mac-min" />
              <span className="h-3 w-3 rounded-full bg-mac-max" />
            </div>
            <div className={`mt-4 transition-transform duration-[360ms] ease-[cubic-bezier(0.16,1,0.3,1)] ${on ? "translate-x-0" : "translate-x-[40px]"}`}>
              <div className="mb-3 flex gap-2">
                {["M", "C", "N"].map((l) => (
                  <span key={l} className="flex h-6 flex-1 items-center justify-center rounded-md bg-white/60 text-caption text-ink shadow-hairline-inset">{l}</span>
                ))}
              </div>
              {groups.map((g) => (
                <div key={g.name} className="mb-3">
                  <div className={`rounded-md px-2 py-1.5 text-caption ${g.tint}`}>{g.emoji} {g.name}</div>
                  <ul className="mt-1 space-y-1.5 pl-3">
                    {g.items.map((i) => (
                      <li key={i} className="flex items-center gap-2 truncate text-caption text-ink">
                        <span className="h-3 w-3 shrink-0 rounded-sm bg-ink/70" />
                        {i}
                      </li>
                    ))}
                  </ul>
                </div>
              ))}
            </div>
          </aside>
          <div className="flex-1">
            <div className="flex items-center gap-3 border-b border-hairline px-3 py-2 text-caption text-muted">
              <span aria-hidden>‹</span>
              <span aria-hidden>›</span>
              <span className="truncate rounded-md bg-white/50 px-2 py-1">{address}</span>
            </div>
          </div>
        </div>
      </div>

      {showDial && (
        <div className="absolute right-[6%] top-[8%] flex h-[24%] w-[24%] items-center justify-center rounded-xl border border-white/40 bg-bar-glass shadow-float backdrop-blur-[20px]">
          <svg viewBox="0 0 100 100" className="h-[75%] w-[75%]" aria-label="Dial" role="img">
            <circle cx="50" cy="50" r="42" fill="none" stroke="#438ec7" strokeWidth="3" strokeDasharray="2 9" strokeLinecap="round" />
            <g style={{ transformOrigin: "50px 50px", transform: `rotate(${dial ? -22.5 : 22.5}deg)`, transition: "transform 320ms cubic-bezier(0.3,1.45,0.5,1)" }}>
              <circle cx="50" cy="50" r="28" fill="#fff" />
              <circle cx="50" cy="30" r="3.5" fill="#438ec7" />
            </g>
          </svg>
        </div>
      )}
    </div>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Obsidian Farewell Editorial

The whole style →

Hairline FAQ Accordion

Accordions

Signature Scatter Hero

Heroes

Sticky Glass Promo Banner

Toasts & snackbars

Fading Vertical Timeline

Lists

Centered Serif Section Header

Other

Pill Tab Switcher

Tab bars