Skip to content

Commit

Permalink
Merge pull request #74 from sbondCo/episode-ratings
Browse files Browse the repository at this point in the history
Episode ratings
  • Loading branch information
IRHM committed Aug 13, 2023
2 parents 09d1218 + 8b27d6d commit a09e271
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/lib/Activity.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
h3 {
position: sticky;
top: 0;
bottom: 100px;
font-size: 16px;
font-family: sans-serif, system-ui, -apple-system, BlinkMacSystemFont;
padding-bottom: 1px;
Expand Down
36 changes: 31 additions & 5 deletions src/lib/SeasonsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,14 @@
<b>{ep.episode_number}</b>
{ep.name}
</span>
</li>
{/each}
<span
class="rating"
title={`TMDB Rating: ${ep.vote_average} out of 10 (based on ${ep.vote_count} votes)`}
>
<span>*</span>
{ep.vote_average}
</span>
</li>{/each}
</ul>
{/if}
{:catch err}
Expand All @@ -92,13 +98,13 @@
display: flex;
flex-flow: column;
list-style: none;
gap: 8px;
gap: 20px;
}
li {
display: flex;
flex-flow: row;
gap: 12px;
gap: 8px;
img,
.no-still {
Expand All @@ -121,19 +127,39 @@
}
span {
padding: 8px 5px;
padding: 3px 5px;
@media screen and (max-width: 590px) {
text-align: center;
}
}
.rating {
display: flex;
align-items: start;
justify-content: center;
color: green;
font-size: 15px;
color: gold;
font-weight: bolder;
overflow: hidden;
span {
font-family: "Rampart One";
-webkit-text-stroke: 1px gold;
font-size: 25px;
line-height: 0.7;
margin-top: 1.5px;
}
}
}
@media screen and (max-width: 590px) {
li {
align-items: center;
flex-flow: column;
width: 100%;
height: 100%;
}
}
}
Expand Down

0 comments on commit a09e271

Please sign in to comment.