Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazzzer committed Jun 3, 2020
2 parents e335309 + 542be77 commit 4a2e749
Show file tree
Hide file tree
Showing 13 changed files with 420 additions and 658 deletions.
2 changes: 1 addition & 1 deletion client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12.16.3-alpine
FROM node:12-alpine

USER node

Expand Down
2 changes: 1 addition & 1 deletion client/components/movie/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</VueLoadImage>

<span
:class="movieInfos.vote_average > 5.1 ? 'bg-green-500' : movieInfos.vote_count === 0 ? 'bg-gray-500' : 'bg-red-500'"
:class="movieInfos.vote_average >= 6.0 ? 'bg-green-500' : movieInfos.vote_average >= 4.0 ? 'bg-orange-500' : movieInfos.vote_count === 0 ? 'bg-gray-500' : 'bg-red-500'"
class="absolute flex items-center justify-center w-8 h-8 text-xs border border-gray-300 rounded-full right-1 bottom-1"
>
<span class="font-bold text-m-blue-900">{{ movieInfos.vote_count === 0 ? 'N/A' : movieInfos.vote_average }}</span>
Expand Down
2 changes: 1 addition & 1 deletion client/components/movie/DetailedCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<div>
<span
:class="movieInfos.vote_average > 5.1 ? 'bg-green-500' : movieInfos.vote_count === 0 ? 'bg-gray-500' : 'bg-red-500'"
:class="movieInfos.vote_average >= 6.0 ? 'bg-green-500' : movieInfos.vote_average >= 4.0 ? 'bg-orange-500' : movieInfos.vote_count === 0 ? 'bg-gray-500' : 'bg-red-500'"
class="inline-flex items-center justify-center w-6 h-6 -mr-1 text-xs rounded-full right-1 bottom-1"
>
<span class="font-bold text-m-blue-900">{{ movieInfos.vote_count === 0 ? 'N/A' : movieInfos.vote_average }}</span>
Expand Down
2 changes: 1 addition & 1 deletion client/components/movie/MobileMovieDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:style="movieInfos.backdrop_path !== null ? 'background:url('+ backdropPath + movieInfos.backdrop_path + ') top center / cover no-repeat,linear-gradient(#000E1B,#02182B);opacity:0.2;' : ''"
></div>
<span
:class="movieInfos.vote_average > 5.1 ? 'bg-green-500' : movieInfos.vote_count === 0 ? 'bg-gray-500' : 'bg-red-500'"
:class="movieInfos.vote_average >= 6.0 ? 'bg-green-500' : movieInfos.vote_average >= 4.0 ? 'bg-orange-500' : movieInfos.vote_count === 0 ? 'bg-gray-500' : 'bg-red-500'"
class="absolute flex items-center justify-center w-10 h-10 text-sm border border-gray-300 rounded-full right-3 bottom-3"
>
<span class="font-bold text-m-blue-900">{{ movieInfos.vote_count === 0 ? 'N/A' : movieInfos.vote_average }}</span>
Expand Down
2 changes: 1 addition & 1 deletion client/components/movie/MovieDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class="flex items-center mt-2">
<span class="mr-1 font-bold">User score:</span>
<span
:class="movieInfos.vote_average > 5.1 ? 'bg-green-500' : movieInfos.vote_count === 0 ? 'bg-gray-500' : 'bg-red-500'"
:class="movieInfos.vote_average >= 6.0 ? 'bg-green-500' : movieInfos.vote_average >= 4.0 ? 'bg-orange-500' : movieInfos.vote_count === 0 ? 'bg-gray-500' : 'bg-red-500'"
class="inline-flex items-center justify-center w-8 h-8 text-sm border border-gray-300 rounded-full"
>
<span class="font-bold text-m-blue-900">{{ movieInfos.vote_count === 0 ? 'N/A' : movieInfos.vote_average }}</span>
Expand Down
Loading

0 comments on commit 4a2e749

Please sign in to comment.