feat: Game card

This commit is contained in:
Wanjohi
2024-09-01 00:34:50 +03:00
parent 1f9d3be2a6
commit 8b42688bd4
7 changed files with 174 additions and 33 deletions

View File

@@ -17,7 +17,7 @@ const transition = {
type Props = {
title: string
description: string | string[]
description?: string | string[]
}
export function ReactTitleSection({ title, description }: Props) {
@@ -59,7 +59,7 @@ export function ReactTitleSection({ title, description }: Props) {
{title}
</motion.span>
</ReactDisplay>
<motion.p
{description && (<motion.p
initial={{
opacity: 0,
y: 50
@@ -78,7 +78,7 @@ export function ReactTitleSection({ title, description }: Props) {
{Array.isArray(description) ? description.map((item, index) => {
return <span key={`id-${index}`}>{item} <br /> </span>
}) : description}
</motion.p>
</motion.p>)}
</div>
</header>
</section>