Update carousels, card hover, and IranBay branding.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-04 13:21:51 +03:30
co-authored by Cursor
commit 42aff5aee9
162 changed files with 16828 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
import type { BlogPost } from "@/data/details";
import styles from "./ArticleBody.module.css";
export default function ArticleBody({
blocks,
}: {
blocks: BlogPost["body"];
}) {
return (
<div className={styles.body}>
{blocks.map((block, index) => {
if (block.type === "quote") {
return (
<p key={index} className={styles.quote}>
{block.text}
</p>
);
}
if (block.type === "rich") {
return (
<p key={index}>
{block.text}
{block.linkHref ? (
<a href={block.linkHref} target="_blank" rel="noreferrer">
{block.linkText}
</a>
) : null}
{block.afterLink}
</p>
);
}
return <p key={index}>{block.text}</p>;
})}
</div>
);
}