Add acknowledgement part at end of page

Specifically for Australia or other location needing an acknowledgement
This commit is contained in:
2022-07-31 01:04:24 +02:00
parent 39c8f6dd14
commit 4880483933
3 changed files with 57 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
// Components
import Metas from '$components/Metas.svelte'
import PageTransition from '$components/PageTransition.svelte'
import Image from '$components/atoms/Image.svelte'
import Button from '$components/atoms/Button.svelte'
import IconEarth from '$components/atoms/IconEarth.svelte'
import House from '$components/molecules/House.svelte'
@@ -322,6 +323,19 @@
</div>
</div>
{/if}
{#if location.acknowledgement}
<div class="acknowledgement">
<Image
class="flag"
id={location.country.flag.id}
sizeKey="square-small"
width={32} height={32}
alt="Flag of {location.country.name}"
/>
<p>{location.acknowledgement}</p>
</div>
{/if}
</section>
{:else}
<div class="location-page__message">

View File

@@ -44,8 +44,10 @@ export async function GET ({ params }: RequestEvent): Promise<RequestHandlerOutp
country {
name
slug
flag { id }
}
has_poster
acknowledgement
}
photos: photo (