From 8422c6e34f6686f695a7ecd6ee095e6de269498a Mon Sep 17 00:00:00 2001 From: Haeri Kim Date: Sun, 14 Jun 2026 10:59:59 +0900 Subject: [PATCH] changed app name, added new journal entry from map and timeline --- index.html | 2 +- src/App.svelte | 14 +++- src/lib/layout/TopBar.svelte | 16 +++- src/lib/timeline/EditForm.svelte | 112 ++++++++++++++++++++------- src/lib/timeline/TimelineView.svelte | 57 ++++++++++++-- src/lib/world-map/WorldMap.svelte | 3 + 6 files changed, 162 insertions(+), 42 deletions(-) diff --git a/index.html b/index.html index 872c7bf..a76437b 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - map-journal + Journi
diff --git a/src/App.svelte b/src/App.svelte index df020c8..0f7cc2f 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -6,18 +6,28 @@ let screen = $state('worldmap'); let inDetail = $state(false); + let pendingCountry = $state(''); + + function handleCountryClick(name) { + pendingCountry = name; + screen = 'timeline'; + } (screen = s)} hideTopBar={inDetail}> {#if screen === 'worldmap'}
- +
{:else} - (inDetail = v)} /> + (inDetail = v)} + {pendingCountry} + onNewEntryClear={() => (pendingCountry = '')} + /> {/if}
diff --git a/src/lib/layout/TopBar.svelte b/src/lib/layout/TopBar.svelte index fd0124b..f2fbbd5 100644 --- a/src/lib/layout/TopBar.svelte +++ b/src/lib/layout/TopBar.svelte @@ -3,7 +3,9 @@