chore: add game name in mod card and featured slider on landing page
All checks were successful
Release to Staging / build_and_release (push) Successful in 52s

This commit is contained in:
daniyal 2024-09-05 12:46:14 +05:00
parent 2dd2992810
commit 98f4666f96
3 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,7 @@ import { handleModImageError } from '../utils'
type ModCardProps = {
title: string
gameName: string
summary: string
imageUrl: string
link: string
@ -11,6 +12,7 @@ type ModCardProps = {
export const ModCard = ({
title,
gameName,
summary,
imageUrl,
link,
@ -37,7 +39,7 @@ export const ModCard = ({
<h3 className='cMMBodyTitle'>{title}</h3>
<p className='cMMBodyText'>{summary}</p>
<div className='cMMBodyGame'>
<p>Game name</p>
<p>{gameName}</p>
</div>
</div>
<div className='cMMFoot'>

View File

@ -179,7 +179,7 @@ const SlideContent = ({ naddr }: SlideContentProps) => {
<br />
</p>
<p className='IBMSMSCWSInfoText IBMSMSCWSInfoText2'>
Game name
{mod.game}
<br />
</p>
<div className='IBMSMSliderContainerWrapperSliderAction'>
@ -239,6 +239,7 @@ const DisplayMod = ({ naddr }: DisplayModProps) => {
return (
<ModCard
title={mod.title}
gameName={mod.game}
summary={mod.summary}
imageUrl={mod.featuredImageUrl}
link={`#${route}`}
@ -287,6 +288,7 @@ const DisplayLatestMods = () => {
<ModCard
key={mod.id}
title={mod.title}
gameName={mod.game}
summary={mod.summary}
imageUrl={mod.featuredImageUrl}
link={`#${route}`}

View File

@ -220,6 +220,7 @@ export const ModsPage = () => {
<ModCard
key={mod.id}
title={mod.title}
gameName={mod.game}
summary={mod.summary}
imageUrl={mod.featuredImageUrl}
link={`#${route}`}