Skip to content

Commit

Permalink
fix: User title and alt
Browse files Browse the repository at this point in the history
  • Loading branch information
tw0517tw committed Jul 15, 2021
1 parent 915540f commit bf2c90e
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 bf2c90e

Please sign in to comment.