Skip to content

Commit 5cba40a

Browse files
committed
Blog: CardGrid cols=3 so cards fill full width
1 parent 91dd6ec commit 5cba40a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/blog/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import BlogpostCard from "./BlogpostCard";
44
import { blogpostsDetails } from "./blogpostsDetails";
55
import AtomOrange from "/img/icons/RSSOrange.svg";
66
import Section from "../layout/Section";
7+
import CardGrid from "../layout/CardGrid";
78

89
export default function BlogsComponent() {
910
const numberOfBlogs = blogpostsDetails.length;
@@ -43,7 +44,7 @@ export default function BlogsComponent() {
4344
/>
4445
</div>
4546

46-
<ul className="cards-row">
47+
<CardGrid cols={3}>
4748
{filteredBlogPosts.map((blogpost, index) => (
4849
<li key={index}>
4950
<BlogpostCard
@@ -52,7 +53,7 @@ export default function BlogsComponent() {
5253
/>
5354
</li>
5455
))}
55-
</ul>
56+
</CardGrid>
5657
</Section>
5758
);
5859
}

src/components/blog/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.blogpost_card {
66
height: 556px;
7-
width: 369px;
7+
width: 100%;
88
border-radius: 8px;
99
box-shadow: 4px 4px 18px -1px rgba(160, 140, 40, 0.15);
1010
padding: var(--ifm-spacing-xl);

0 commit comments

Comments
 (0)