2022-02-08 13:13:18 +03:00
|
|
|
{{!-- template-lint-disable no-nested-interactive --}}
|
|
|
|
<a class="gh-unsplash-photo" href="#" {{on "click" this.zoom}} {{ratio-zoom zoomed=@zoomed ratio=@photo.ratio}} style={{this.style}} data-test-unsplash-photo={{@photo.id}}>
|
2019-12-13 17:20:29 +03:00
|
|
|
<div class="gh-unsplash-photo-container" style={{this.containerStyle}} data-test-unsplash-photo-container>
|
2022-02-08 13:13:18 +03:00
|
|
|
<img src={{this.imageUrl}} alt={{@photo.description}} width={{this.width}} height={{this.height}} data-test-unsplash-photo-image />
|
2017-08-02 10:05:59 +03:00
|
|
|
<div class="gh-unsplash-photo-overlay">
|
|
|
|
<div class="gh-unsplash-photo-header">
|
2022-02-08 13:13:18 +03:00
|
|
|
<a class="gh-unsplash-button-likes gh-unsplash-button" href="{{@photo.links.html}}?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit" target="_blank" rel="noopener noreferrer">{{svg-jar "unsplash-heart"}}{{@photo.likes}}</a>
|
|
|
|
<a class="gh-unsplash-button-download gh-unsplash-button" href="{{@photo.links.download}}/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit&force=true">{{svg-jar "download"}}</a>
|
2017-08-02 10:05:59 +03:00
|
|
|
</div>
|
|
|
|
<div class="gh-unsplash-photo-footer">
|
|
|
|
<div class="gh-unsplash-photo-author">
|
2022-02-08 13:13:18 +03:00
|
|
|
<a class="gh-unsplash-photo-author-img" href="{{@photo.user.links.html}}?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit" target="_blank" rel="noopener noreferrer">
|
|
|
|
<img src="{{@photo.user.profile_image.medium}}" alt={{@photo.alt_description}} />
|
2017-08-02 10:05:59 +03:00
|
|
|
</a>
|
2022-02-08 13:13:18 +03:00
|
|
|
<a class="gh-unsplash-photo-author-name" href="{{@photo.user.links.html}}?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit" target="_blank" rel="noopener noreferrer">
|
|
|
|
{{@photo.user.name}}
|
2017-08-02 10:05:59 +03:00
|
|
|
</a>
|
|
|
|
</div>
|
2022-02-08 13:13:18 +03:00
|
|
|
<a class="gh-unsplash-button" href="#" {{on "click" this.select}}>Insert image</a>
|
2017-08-02 10:05:59 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-09 16:15:47 +03:00
|
|
|
</a>
|