Photo: Fix number positioning and parallax effect
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
const imgAlt = `${photo.name}, ${location.region}, ${location.country.name}`
|
||||
const photoHref = `/viewer/${location.country.slug}/${location.slug}/${photo.slug}`
|
||||
|
||||
// Photo index
|
||||
const photoIndex = (index < 10 ? '0': '') + index
|
||||
|
||||
|
||||
/*
|
||||
** Run code when mounted
|
||||
@@ -69,9 +72,9 @@
|
||||
<time class="photo__date" datetime={formatDate(photo.date, 'DATETIME')}>
|
||||
{formatDate(photo.date, 'FULL')}
|
||||
</time>
|
||||
<span class="photo__number">
|
||||
{(index < 10 ? '0': '') + index}
|
||||
</span>
|
||||
<div class="photo__number">
|
||||
<span id="photo_number">{photoIndex}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user