Skip to content

Commit

Permalink
Forgot to include update to CardGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed May 8, 2024
1 parent d5d5d14 commit 8bc4677
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/components/home/ChapterCardGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import ChapterCard from "~/components/home/ChapterCard";
import chapters from "~/data/chapterMeta.json";
import { chapterMeta } from "~/data/chapterMeta";
import type { TChapterMeta, ChapterTitle } from "~/types/chapterMetaTags";

const ChapterCardGrid = () => {
return (
<div className="bg-black ">
<div className="grid md:grid-cols-2 grid-cols-1 md:grid-rows-3 3xl:mx-48">
{Object.keys(chapters as TChapterMeta)
{Object.keys(chapterMeta as TChapterMeta)
.slice(1, 8)
.map((chapterName) => {
const chapter = chapters[chapterName as ChapterTitle];
const chapter = chapterMeta[chapterName as ChapterTitle];
return (
<ChapterCard
key={`card-${chapterName}`}
to={`/chapters/${chapterName}`}
to={`/chapterMeta/${chapterName}`}
className={`hover:bg-${chapterName} bg-center hover:text-white`}
title={chapter.title}
subtitle={chapter.subtitle}
Expand Down

0 comments on commit 8bc4677

Please sign in to comment.