Skip to content

Commit

Permalink
add image alt text
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-luna-ray committed Feb 12, 2024
1 parent 7877916 commit 4a921f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/About/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const About = ({ profile }) => {
<br />
<br />
<SectionText className='about-richtext'>
{imageUrl ? <Img src={imageUrl} alt='Ray Luna'/> : ''}
{imageUrl ? <Img src={imageUrl} alt={profile.image.altText || 'Profile Image'}/> : ''}
{profile?.bio}
</SectionText>
<br />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Projects/Projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Projects = ({ projects }) => {
const mapProjectCards = projects.map(project => {
return (
<BlogCard key={project._id} className='project-card'>
<Img src={getThumbnailUrl(project.mainImage)} />
<Img src={getThumbnailUrl(project.mainImage)} alt={project.mainImage.altText || 'Project Screenshot'} />
<br />
<br />
<TitleContent>
Expand Down

0 comments on commit 4a921f8

Please sign in to comment.