BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/gymnopedies/hero

Hero

gymnopedies/hero
FreeComponent

Hero — gymnopédies blog reading primitive.

Install it

npx shadcn@latest add https://gymnopedies.shoota.work/r/hero.json

Source

src/components/blog/hero.tsxgymnopedies.shoota.work/r/hero.json
1import * as React from "react"
2
3import { cn } from "@/lib/utils"
4
5export type HeroSize = "sm" | "md" | "lg"
6
7type HeroSizeConfig = {
8 container: string
9 title: string
10}
11
12const sizeConfig: Record<HeroSize, HeroSizeConfig> = {
13 sm: {
14 container: "w-[60vw] max-w-[800px]",
15 title: "text-[clamp(4px,4vw,4.5rem)]",
16 },
17 md: {
18 container: "w-[75vw] max-w-[1000px]",
19 title: "text-[clamp(4px,5vw,4.5rem)]",
20 },
21 lg: {
22 container: "w-[90vw] max-w-[1200px]",
23 title: "text-[clamp(4px,6vw,4.5rem)]",
24 },
25}
26
27export type HeroProps = {
28 cover: string
29 coverTop?: number
30 size?: HeroSize
31 imgProps: React.ImgHTMLAttributes<HTMLImageElement>
32 className?: string
33}
34
35export function Hero({
36 cover,
37 coverTop = 50,
38 size = "md",
39 imgProps,
40 className,
41}: HeroProps) {
42 const { container, title } = sizeConfig[size]
43 const { className: imgClassName, ...restImgProps } = imgProps
44
45 return (
46 <div className={cn("flex w-full items-center justify-center", className)}>
47 <div
48 className={cn(
49 "relative flex items-center justify-center",
50 container
51 )}
52 >
53 <div className="w-full">
54 <img
55 {...restImgProps}
56 className={cn(
57 "block w-full object-cover object-center opacity-60 grayscale animate-lighting",
58 imgClassName
59 )}
60 />
61 </div>
62 <h1
63 className={cn(
64 "absolute left-1/2 inline-block w-full -translate-x-1/2 -translate-y-1/2 text-center bg-[rgba(4,37,43,0.45)]",
65 title
66 )}
67 style={{ top: `${coverTop}%` }}
68 >
69 {cover}
70 </h1>
71 </div>
72 </div>
73 )
74}

What it pulls in

Other registry items

  • https://gymnopedies.shoota.work/r/utils.json
  • https://gymnopedies.shoota.work/r/theme.json

Files it writes

  • src/components/blog/hero.tsx

Facts

Registry
gymnopedies
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-09
Last confirmed
today

Go to the source

gymnopedies.shoota.work shoota/gymnopedies on GitHub Raw registry item This item as JSON

More from gymnopedies

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordiongymnopediesComponentsFree2 deps
AlertalertgymnopediesComponentsFree1 dep
Alert Dialogalert-dialoggymnopediesComponentsFree1 dep
ArticlearticlegymnopediesComponentsFreeno deps
Aspect Ratioaspect-ratiogymnopediesComponentsFreeno deps
AvataravatargymnopediesComponentsFree1 dep
BadgebadgegymnopediesComponentsFree2 deps
BreadcrumbbreadcrumbgymnopediesComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex