Skip to content

Commit

Permalink
fix: dinamic social medias icons, when the social media have url
Browse files Browse the repository at this point in the history
  • Loading branch information
NatanBrito committed Jul 17, 2024
1 parent 488d848 commit 50eb06b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 9 deletions.
17 changes: 17 additions & 0 deletions src/assets/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 15 additions & 9 deletions src/components/teachers/teachers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,21 @@ const Teachers = () => {
{teacher.subtitle}
</p>
<div className='flex items-center justify-center'>
<a href={teacher.linkedin_url} target='_blank'>
<img className='h-12 w-12' src={`${linkedin}`}></img>
</a>
<a href={teacher.instagram_url} target='_blank'>
<img className='h-12 w-12' src={`${instagram}`}></img>
</a>
<a href={teacher.youtube_url} target='_blank'>
<img className='h-12 w-12' src={`${youtube}`}></img>
</a>
{teacher.linkedin_url && (
<a href={teacher.linkedin_url} target='_blank'>
<img className='h-12 w-12' src={`${linkedin}`}></img>
</a>
)}
{teacher.instagram_url && (
<a href={teacher.instagram_url} target='_blank'>
<img className='h-12 w-12' src={`${instagram}`}></img>
</a>
)}
{teacher.youtube_url && (
<a href={teacher.youtube_url} target='_blank'>
<img className='h-12 w-12' src={`${youtube}`}></img>
</a>
)}
</div>
<p className='mb-12 text-15 text-description'>
{teacher.description}
Expand Down

0 comments on commit 50eb06b

Please sign in to comment.