Skip to content

Commit

Permalink
Merge pull request #571 from Yoctol/fiximageobject
Browse files Browse the repository at this point in the history
fix: User title and alt
  • Loading branch information
tw0517tw authored Jul 15, 2021
2 parents 915540f + bf2c90e commit 14d7c93
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import styles from './styles.module.css';

const users = [
{
title: <>Creator</>,
title: 'Creator',
imageUrl: 'img/creator.svg',
url: 'https://yoctol.ai/creator/',
description: (
Expand All @@ -63,13 +63,13 @@ const users = [
),
},
{
title: <>Seeker</>,
title: 'Seeker',
imageUrl: 'img/seeker.svg',
url: 'https://yoctol.ai/seeker/',
description: <>Grow your ads performances on Facebook by 200%.</>,
},
{
title: <>YOCTOL.AI</>,
title: 'YOCTOL.AI',
imageUrl: 'img/yoctol-ai.svg',
url: 'https://yoctol.ai/',
description: (
Expand Down Expand Up @@ -103,7 +103,12 @@ function User({ imageUrl, url, title, description }) {
<div className={classnames('col col--4', styles.feature)}>
{imgUrl && (
<div className="text--center">
<img className={styles.featureImage} src={imgUrl} alt={title} />
<img
className={styles.featureImage}
title={title}
alt={title}
src={imgUrl}
/>
</div>
)}
<h3 className={classnames('text--center', styles.featureTitle)}>
Expand Down

0 comments on commit 14d7c93

Please sign in to comment.