Skip to content

Commit

Permalink
Merge pull request #966 from nature-of-code/fix/links-with-no-text
Browse files Browse the repository at this point in the history
[Fix] links with no text on examples page
  • Loading branch information
jasongao97 authored May 27, 2024
2 parents 907af83 + fd07e55 commit 3d63a4d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/pages/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,20 @@ export default function ExamplesPage({ data }) {
<div className="text-sm">{exampleName}</div>

<div className="flex items-center gap-2">
<Link to={`/${chapter.slug}/#${example.slug}`}>
<FaBookOpen className="text-noc-200 h-8 w-5 py-2" />
<Link
to={`/${chapter.slug}/#${example.slug}`}
aria-label="link to chapter"
>
<FaBookOpen className="h-8 w-5 py-2 text-noc-200" />
</Link>

<a href={example.webEditorURL}>
<a
href={example.webEditorURL}
aria-label="link to p5 editor"
>
<img
src={p5jsLogo}
alt="p5.js icon"
alt=""
className="inline-block w-8 py-2"
></img>
</a>
Expand Down

0 comments on commit 3d63a4d

Please sign in to comment.