1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 05:05:17 +02:00

feat: enhance attachment handling with new localization strings and GPX upload tips

This commit is contained in:
Sean Morley 2025-01-21 19:33:48 -05:00
parent 1b3cf6ab39
commit 6e28e5234e
13 changed files with 142 additions and 19 deletions

View file

@ -11,6 +11,8 @@
// @ts-ignore
import toGeoJSON from '@mapbox/togeojson';
import LightbulbOn from '~icons/mdi/lightbulb-on';
let geojson: any;
const renderMarkdown = (markdown: string) => {
@ -447,7 +449,15 @@
{#if adventure.attachments && adventure.attachments.length > 0}
<div>
<!-- attachments -->
<h2 class="text-2xl font-bold mt-4">{$t('adventures.attachments')}</h2>
<h2 class="text-2xl font-bold mt-4">
{$t('adventures.attachments')}
<div class="tooltip z-10" data-tip={$t('adventures.gpx_tip')}>
<button class="btn btn-sm btn-circle btn-neutral">
<LightbulbOn class="w-6 h-6" />
</button>
</div>
</h2>
<div class="grid gap-4 mt-4">
{#if adventure.attachments && adventure.attachments.length > 0}
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">

View file

@ -42,7 +42,7 @@
<h2 class="text-3xl font-bold text-center m-4">Adventures</h2>
<div class="flex flex-wrap gap-4 mr-4 ml-4 justify-center content-center">
{#each adventures as adventure}
<AdventureCard {adventure} user={data.user} />
<AdventureCard {adventure} user={null} />
{/each}
</div>
{/if}
@ -97,3 +97,8 @@
{$t('adventures.no_results')}
</p>
{/if}
<svelte:head>
<title>Search: {query}</title>
<meta name="description" content="AdventureLog global search results for {query}" />
</svelte:head>