4466ba436b
## Description This PR ensures that the default prettier config is used for examples and templates. This config is compatible with `prettier@3` as well (upgrading prettier is bigger change that can be a future PR). ## Changes - Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will be needed upgrading to prettier@3) - Added `examples/.prettierrc.json` with default config (this will change every example) - Added `packages/create-next-app/templates/.prettierrc.json` with default config (this will change every template) ## Related - Fixes #54402 - Closes #54409
24 lines
704 B
TypeScript
24 lines
704 B
TypeScript
import PostPreview from "@components/post-preview";
|
|
|
|
export default function MoreStories({ posts }) {
|
|
return (
|
|
<section>
|
|
<h2 className="mb-8 text-6xl font-bold leading-tight tracking-tighter md:text-7xl">
|
|
More Stories
|
|
</h2>
|
|
<div className="grid grid-cols-1 gap-20 mb-32 md:grid-cols-2 md:gap-y-16 lg:gap-y-32 md:gap-x-32">
|
|
{posts.map((post) => (
|
|
<PostPreview
|
|
key={post.urlTitle}
|
|
title={post.title}
|
|
coverImage={post.image}
|
|
date={post.postingDate}
|
|
author={post.author}
|
|
slug={post.urlTitle}
|
|
excerpt={post.teaser}
|
|
/>
|
|
))}
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|