2024-07-08 11:44:39 -04:00
|
|
|
<script lang="ts">
|
|
|
|
import { createEventDispatcher } from 'svelte';
|
|
|
|
const dispatch = createEventDispatcher();
|
|
|
|
import { onMount } from 'svelte';
|
|
|
|
let modal: HTMLDialogElement;
|
2024-10-26 23:03:35 -04:00
|
|
|
import { t } from 'svelte-i18n';
|
2024-07-08 11:44:39 -04:00
|
|
|
import { appVersion, copyrightYear, versionChangelog } from '$lib/config';
|
|
|
|
|
|
|
|
onMount(() => {
|
|
|
|
modal = document.getElementById('my_modal_1') as HTMLDialogElement;
|
|
|
|
if (modal) {
|
|
|
|
modal.showModal();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
function close() {
|
|
|
|
dispatch('close');
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleKeydown(event: KeyboardEvent) {
|
|
|
|
if (event.key === 'Escape') {
|
|
|
|
dispatch('close');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<dialog id="my_modal_1" class="modal">
|
|
|
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
|
|
|
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
|
|
|
|
<div class="modal-box" role="dialog" on:keydown={handleKeydown} tabindex="0">
|
2024-09-06 19:06:24 -04:00
|
|
|
<h3 class="font-bold text-lg">
|
2024-10-26 23:03:35 -04:00
|
|
|
{$t('about.about')} AdventureLog<span class=" inline-block"
|
2024-09-06 19:06:24 -04:00
|
|
|
><img src="/favicon.png" alt="Map Logo" class="w-10 -mb-3 ml-2" /></span
|
|
|
|
>
|
|
|
|
</h3>
|
2024-07-08 11:44:39 -04:00
|
|
|
<p class="py-1">
|
|
|
|
AdventureLog <a
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="text-primary-500 underline"
|
|
|
|
href={versionChangelog}>{appVersion}</a
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
<p class="py-1">
|
|
|
|
© {copyrightYear}
|
|
|
|
<a
|
2024-11-04 19:25:07 -05:00
|
|
|
href="https://seanmorley.com"
|
2024-07-08 11:44:39 -04:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="text-primary-500 underline">Sean Morley</a
|
|
|
|
>
|
|
|
|
</p>
|
2024-10-26 23:03:35 -04:00
|
|
|
<p class="py-1">{$t('about.license')}</p>
|
2024-07-08 11:44:39 -04:00
|
|
|
<p class="py-1">
|
|
|
|
<a
|
|
|
|
href="https://github.com/seanmorley15/AdventureLog"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2024-10-26 23:03:35 -04:00
|
|
|
class="text-primary-500 underline">{$t('about.source_code')}</a
|
2024-07-08 11:44:39 -04:00
|
|
|
>
|
|
|
|
</p>
|
2024-10-26 23:03:35 -04:00
|
|
|
<p class="py-1">{$t('about.message')}</p>
|
2024-07-22 11:06:48 -04:00
|
|
|
<div class="divider"></div>
|
2024-10-26 23:03:35 -04:00
|
|
|
<h3 class="font-bold text-md">{$t('about.oss_attributions')}</h3>
|
2024-07-22 11:06:48 -04:00
|
|
|
<p class="py-1 mb-4">
|
2024-10-26 23:03:35 -04:00
|
|
|
{$t('about.nominatim_1')}
|
|
|
|
<a
|
2024-07-22 11:06:48 -04:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="text-primary-500 underline"
|
|
|
|
href="https://operations.osmfoundation.org/policies/nominatim/">OpenStreepMap</a
|
2024-10-26 23:03:35 -04:00
|
|
|
>. {$t('about.nominatim_2')}
|
|
|
|
<br />
|
|
|
|
{$t('about.other_attributions')}
|
2024-07-22 11:06:48 -04:00
|
|
|
</p>
|
|
|
|
|
2024-10-26 23:03:35 -04:00
|
|
|
<button class="btn btn-primary" on:click={close}>{$t('about.close')}</button>
|
2024-07-08 11:44:39 -04:00
|
|
|
</div>
|
|
|
|
</dialog>
|