Add link to see map on House location
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
export let ratio: number
|
export let ratio: number
|
||||||
export let date: string = undefined
|
export let date: string = undefined
|
||||||
export let city: string = undefined
|
export let city: string = undefined
|
||||||
|
export let location: string
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="house grid">
|
<div class="house grid">
|
||||||
@@ -25,7 +26,10 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<p class="info text-info">
|
<p class="info text-info">
|
||||||
{#if city}
|
{#if city}
|
||||||
<Icon class="icon" icon="map-pin" label="Map pin" /> {city} <span class="sep">·</span>
|
<a href="https://www.openstreetmap.org/search?query={title}, {city} {location}" target="_blank" rel="noopener noreferrer">
|
||||||
|
<Icon class="icon" icon="map-pin" label="Map pin" /> {city}
|
||||||
|
</a>
|
||||||
|
<span class="sep">·</span>
|
||||||
{/if}
|
{/if}
|
||||||
{#if date}
|
{#if date}
|
||||||
<time datetime={dayjs(date).format('YYYY-MM-DD')}>
|
<time datetime={dayjs(date).format('YYYY-MM-DD')}>
|
||||||
|
|||||||
@@ -275,6 +275,7 @@
|
|||||||
photoAlt={alt}
|
photoAlt={alt}
|
||||||
url="/{params.country}/{params.location}/{slug}"
|
url="/{params.country}/{params.location}/{slug}"
|
||||||
{city}
|
{city}
|
||||||
|
location={location.name}
|
||||||
ratio={width / height}
|
ratio={width / height}
|
||||||
date={date_taken}
|
date={date_taken}
|
||||||
index={(totalPhotos - index < 10) ? '0' : ''}{totalPhotos - index}
|
index={(totalPhotos - index < 10) ? '0' : ''}{totalPhotos - index}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
grid-column-start: 3;
|
grid-column-start: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
& > a {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -57,6 +57,15 @@
|
|||||||
& > * {
|
& > * {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: currentColor;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $color-secondary;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
:global(svg) {
|
:global(svg) {
|
||||||
width: 1em;
|
width: 1em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
|
|||||||
Reference in New Issue
Block a user