{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"asymmetric-editorial-bento-grid-one-column-on-phones","type":"registry:block","title":"Asymmetric Editorial Bento Grid","description":"","dependencies":[],"files":[{"path":"components/we-inc/asymmetric-editorial-bento-grid-one-column-on-phones.tsx","type":"registry:component","content":"// An editorial bento: uneven columns and a tall lead story, set with grid-template-areas.\n// Below 768px it becomes one column in reading order.\nconst stories = [\n  { area: \"lead\", kicker: \"Cover story\", title: \"The plot that feeds a street\", body: \"Twelve neighbours, one abandoned tennis court and a rota that has kept forty households in greens since spring.\", by: \"Words by Ines Maret\", tone: \"bg-[#2f4a3a] text-[#f4efe4]\" },\n  { area: \"seeds\", kicker: \"Field notes\", title: \"Saving seed from this year's beans\", body: \"Leave the best pods on the plant until they rattle.\", by: \"Tom Achebe\", tone: \"bg-[#e7d9bf] text-stone-900\" },\n  { area: \"frost\", kicker: \"Calendar\", title: \"First frost: 14 November\", body: \"Fleece the chard and bring in the last squash.\", by: \"Almanac\", tone: \"bg-white text-stone-900\" },\n  { area: \"tool\", kicker: \"Workshop\", title: \"Mending a hoe with an ash handle\", body: \"A bench, a spokeshave and an afternoon is all it takes to give a cracked tool another twenty years.\", by: \"Petra Lind\", tone: \"bg-[#c4552f] text-white\" },\n  { area: \"letters\", kicker: \"Letters\", title: \"Slugs, again\", body: \"Readers write in with what finally worked.\", by: \"Your post\", tone: \"bg-white text-stone-900\" },\n];\n\nexport default function AsymmetricEditorialBentoGridOneColumnOnPhones() {\n  return (\n    <section className=\"bed bg-[#f4efe4] px-5 py-16 sm:py-24\">\n      <style>{`\n        .bed-grid { display: grid; gap: 14px; grid-template-columns: 1fr; grid-template-areas: \"lead\" \"seeds\" \"frost\" \"tool\" \"letters\"; }\n        @media (min-width: 768px) {\n          .bed-grid { grid-template-columns: 5fr 3fr 4fr; grid-template-rows: auto auto auto; grid-template-areas: \"lead seeds frost\" \"lead tool tool\" \"lead letters letters\"; }\n        }\n      `}</style>\n      <div className=\"mx-auto max-w-6xl\">\n        <div className=\"flex items-end justify-between border-b border-stone-900 pb-4\">\n          <h2 className=\"font-serif text-3xl tracking-tight text-stone-900 sm:text-5xl\">The Allotment Quarterly</h2>\n          <p className=\"hidden font-serif text-sm italic text-stone-700 sm:block\">Issue 19, Autumn</p>\n        </div>\n        <div className=\"bed-grid mt-8\">\n          {stories.map((s) => (\n            <article key={s.area} style={{ gridArea: s.area }} className={`flex flex-col rounded-sm p-6 ${s.tone} ${s.area === \"lead\" ? \"md:min-h-[520px] md:p-8\" : \"\"}`}>\n              <p className=\"text-xs font-semibold uppercase tracking-[0.18em] opacity-80\">{s.kicker}</p>\n              <h3 className={`mt-3 font-serif leading-tight ${s.area === \"lead\" ? \"text-4xl md:mt-auto md:text-5xl\" : \"text-2xl\"}`}>\n                <a href=\"#\" className=\"rounded-sm hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current focus-visible:ring-offset-2 focus-visible:ring-offset-transparent\">{s.title}</a>\n              </h3>\n              <p className={`mt-3 leading-relaxed opacity-90 ${s.area === \"lead\" ? \"text-lg\" : \"text-[15px]\"}`}>{s.body}</p>\n              <p className=\"mt-4 font-serif text-sm italic opacity-80\">{s.by}</p>\n            </article>\n          ))}\n        </div>\n      </div>\n    </section>\n  );\n}\n"}]}
