i18n hidden photo

pull/627/head
saeziae 2022-08-22 01:33:46 +08:00
parent 12c898009d
commit 5f62d0abdd
6 changed files with 22 additions and 9 deletions

View File

@ -180,14 +180,12 @@ div.hidden-photo {
background-color: rgba($color: #000000, $alpha: 0.5);
transition: opacity 0.3s;
opacity: 1;
&::before {
content: '点击查看';
color: white;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
color: white;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5em;
}
&.show {
img {

View File

@ -21,3 +21,6 @@ other = "min read"
[single-writtenBy]
other = "WRITTEN BY"
[click-to-show]
other = "Click to Show"

View File

@ -3,3 +3,6 @@ other = "このページで"
[contactUs]
other = "お問い合わせ"
[click-to-show]
other = "クリックすると表示されます"

View File

@ -24,3 +24,7 @@ other = "撰写者"
[edit-this-page]
other = "编辑此页面"
[click-to-show]
other = "点击查看"

View File

@ -3,3 +3,6 @@ other = "此頁面上的內容"
[contactUs]
other = "聯繫我們"
[click-to-show]
other = "點擊檢視"

View File

@ -1,4 +1,6 @@
<div class="hidden-photo" onclick="showHiddenPhoto(this)">
<img src="{{ .Get 0 }}" alt="{{ .Get 1 }}">
<div class="mask"></div>
<div class="mask">
{{ i18n "click-to-show" }}
</div>
</div>