Skip to content

Commit

Permalink
Merge pull request #4 from igorm84/fix/image_alt
Browse files Browse the repository at this point in the history
fix: added alt to img
  • Loading branch information
igorm84 authored Sep 9, 2023
2 parents 6192170 + 48afd98 commit 56c264c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/MusicsTable.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import InlineArtists from "./InlineArtists.astro";
<div class="h-10 w-10">
<img
src={song.image}
alt={song.title}
class="rounded object-cover h-full w-full shadow-[5px_0_30px_0px_rgba(0,0,0,0.3)]"
/>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/components/PageHeader.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Icon from "astro-icon";
>
<a
href="/"
aria-label="go back to home page"
class="bg-zinc-900 rounded-full inline-flex justify-center items-center h-8 w-8"
>
<Icon name="bi:chevron-left" class="h-4 w-4 -ml-0.5" />
Expand All @@ -26,6 +27,7 @@ import Icon from "astro-icon";
</a>
<a
target="_blank"
aria-label={"github repository"}
href="https://github.com/igorm84/spotify-astro-transitions"
class="text-gray-200 hover:text-white"
>
Expand Down
1 change: 1 addition & 0 deletions src/components/PlaylistCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const { playlist } = Astro.props;
<div class="relative group mx-auto h-40 w-full flex-none shadow-lg">
<img
src={playlist.cover}
alt={playlist.title}
class="object-cover h-full w-full rounded-md shadow-[5px_0_30px_0px_rgba(0,0,0,0.3)]"
transition:name=`playlist ${playlist.id} image`
/>
Expand Down
1 change: 1 addition & 0 deletions src/components/PlaylistItemCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const { playlist } = Astro.props;
<div class="h-20 w-20">
<img
src={playlist.cover}
alt={playlist.title}
class="object-cover h-full w-full shadow-[5px_0_30px_0px_rgba(0,0,0,0.3)]"
transition:name=`playlist ${playlist.id} image`
/>
Expand Down
1 change: 1 addition & 0 deletions src/components/Side/SideItemCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const { playlist } = Astro.props;
<div class="h-12 w-12 flex-none">
<img
src={playlist.cover}
alt={playlist.title}
class="object-cover rounded h-full w-full shadow-[5px_0_30px_0px_rgba(0,0,0,0.3)]"
/>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/playlist/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const playlist = allPlaylists.find((playlist) => playlist.id === id);
<div class="h-52 w-52 flex-none">
<img
src={playlist?.cover}
alt={playlist?.title}
class="object-cover h-full w-full shadow-[5px_0_30px_0px_rgba(0,0,0,0.3)]"
transition:name=`playlist ${playlist?.id} image`
/>
Expand Down Expand Up @@ -74,6 +75,7 @@ const playlist = allPlaylists.find((playlist) => playlist.id === id);
>
<img
src={playlist?.cover}
alt={playlist?.title}
class="el-to-fade transition-all duration-500 z-[-1] absolute inset-0 mix-blend-overlay opacity-20 scale-90 w-full h-full object-cover blur-md"
/>
<div
Expand Down

0 comments on commit 56c264c

Please sign in to comment.