Add favorited star to the review page
This commit is contained in:
parent
aba362a6d2
commit
858c725bac
2 changed files with 16 additions and 0 deletions
|
|
@ -4,6 +4,11 @@
|
||||||
{{ if .Params.image }}
|
{{ if .Params.image }}
|
||||||
<div class="review-poster">
|
<div class="review-poster">
|
||||||
<img src={{.Params.image}} alt="Poster">
|
<img src={{.Params.image}} alt="Poster">
|
||||||
|
{{ if .Params.favorite }}
|
||||||
|
<div class="review-favorite">
|
||||||
|
{{ partial "star.html" }}
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h1>{{- .Title -}}</h1>
|
<h1>{{- .Title -}}</h1>
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.review-poster {
|
.review-poster {
|
||||||
|
position: relative;
|
||||||
aspect-ratio: 1/1;
|
aspect-ratio: 1/1;
|
||||||
flex-basis: 200px;
|
flex-basis: 200px;
|
||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
|
|
@ -32,3 +33,13 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.review-favorite {
|
||||||
|
position: absolute;
|
||||||
|
display: flex;
|
||||||
|
right: 10px;
|
||||||
|
top: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
background: rgba(255,255,255,0.25);
|
||||||
|
border-radius: 100%;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue