mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 12:50:20 +03:00
Add alt
text
This commit is contained in:
parent
8384ff3d6d
commit
1d36bc6be1
|
@ -195,7 +195,7 @@ const SpaCyVersion = ({ version }) => {
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
const ImageGitHub = ({ url, isRounded }) => (
|
const ImageGitHub = ({ url, isRounded, title }) => (
|
||||||
// eslint-disable-next-line @next/next/no-img-element
|
// eslint-disable-next-line @next/next/no-img-element
|
||||||
<img
|
<img
|
||||||
style={{
|
style={{
|
||||||
|
@ -204,7 +204,7 @@ const ImageGitHub = ({ url, isRounded }) => (
|
||||||
verticalAlign: 'middle',
|
verticalAlign: 'middle',
|
||||||
}}
|
}}
|
||||||
src={`https://img.shields.io/github/${url}`}
|
src={`https://img.shields.io/github/${url}`}
|
||||||
alt=""
|
alt={`${title} on GitHub`}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -217,14 +217,17 @@ const Project = ({ data, components }) => (
|
||||||
{data.github && (
|
{data.github && (
|
||||||
<Link to={`https://github.com/${data.github}`} hidden>
|
<Link to={`https://github.com/${data.github}`} hidden>
|
||||||
<ImageGitHub
|
<ImageGitHub
|
||||||
|
title={data.title || data.id}
|
||||||
url={`release/${data.github}/all.svg?style=flat-square`}
|
url={`release/${data.github}/all.svg?style=flat-square`}
|
||||||
isRounded
|
isRounded
|
||||||
/>
|
/>
|
||||||
<ImageGitHub
|
<ImageGitHub
|
||||||
|
title={data.title || data.id}
|
||||||
url={`license/${data.github}.svg?style=flat-square`}
|
url={`license/${data.github}.svg?style=flat-square`}
|
||||||
isRounded
|
isRounded
|
||||||
/>
|
/>
|
||||||
<ImageGitHub
|
<ImageGitHub
|
||||||
|
title={data.title || data.id}
|
||||||
url={`stars/${data.github}.svg?style=social&label=Stars`}
|
url={`stars/${data.github}.svg?style=social&label=Stars`}
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user