Buttons & actions / Links

Project Caption with Corner Arrow

Caption block: black bold project name inline with grey summary, and a small bold arrow-up-right icon beneath, linking to the case study.

Rebuilt from thisislandscape.com in the Gallery White Editorial style.

npx shadcn@latest add https://justyoink.it/r/gallery-white-editorial/blocks/arrow-corner-link.json

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

Usage

Props: name, summary, href, className. The whole caption is one link; the summary turns black and the arrow nudges diagonally on hover or focus.

components/arrow-corner-link.tsx
import { useState } from "react";

export default function ProjectCaptionWithCornerArrow({
  name = "Fernhill",
  summary = "Helping a regional cooperative double its online orders with a calmer, clearer identity and storefront.",
  href = "#",
  className = "",
}: {
  name?: string;
  summary?: string;
  href?: string;
  className?: string;
}) {
  const [active, setActive] = useState(false);
  return (
    <div className={`bg-canvas p-4 ${className}`}>
      <a
        href={href}
        onMouseEnter={() => setActive(true)}
        onMouseLeave={() => setActive(false)}
        onFocus={() => setActive(true)}
        onBlur={() => setActive(false)}
        className="group block max-w-[700px] font-sans outline-none focus-visible:ring-1 focus-visible:ring-ink"
      >
        <p className="text-h3 font-bold leading-[1.2] tracking-[-0.01em] text-[22px] text-ink-muted transition-colors duration-pill-hover ease-pill-hover group-hover:text-ink group-focus-visible:text-ink">
          <span className="text-ink">{name}</span>{" "}
          <span>{summary}</span>
        </p>
        <span className="mt-3 block h-4 w-4 text-ink">
          <svg
            viewBox="0 0 16 16"
            width="16"
            height="16"
            fill="none"
            stroke="currentColor"
            strokeWidth="2.2"
            aria-hidden="true"
            className={`transition-transform duration-pill-hover ease-pill-hover ${active ? "translate-x-[2px] -translate-y-[2px]" : ""}`}
          >
            <path d="M2 14 14 2M4 2h10v10" />
          </svg>
          <span className="sr-only">View case study</span>
        </span>
      </a>
    </div>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Gallery White Editorial

The whole style →

Hairline Pill Nav Header

Headers & nav bars

Monochrome Client Logo Row

Logo clouds

Giant Type CTA with Arrow Glyph

Calls to action

Pill Footer Link Row

Footers

Hanging-Quote Testimonial Carousel

Testimonials

Twin-Panel Project Slideshow Hero

Heroes