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.
npx shadcn@latest add https://justyoink.it/r/gallery-white-editorial/mine/arrow-corner-link.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
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> ); }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-background 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-foreground" > <p className="text-gallery-h3 font-bold leading-[1.2] tracking-[-0.01em] text-[22px] text-muted-foreground transition-colors duration-gallery-pill-hover ease-gallery-pill-hover group-hover:text-foreground group-focus-visible:text-foreground"> <span className="text-foreground">{name}</span>{" "} <span>{summary}</span> </p> <span className="mt-3 block h-4 w-4 text-foreground"> <svg viewBox="0 0 16 16" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="2.2" aria-hidden="true" className={`transition-transform duration-gallery-pill-hover ease-gallery-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- Accessible: not passedElements must meet minimum color contrast ratio thresholds (1 element)
- Responsive: not passedScrolls sideways at phone width (390px)
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.