changed app name, added new journal entry from map and timeline

This commit is contained in:
Haeri Kim
2026-06-14 10:59:59 +09:00
parent cdf3643622
commit 8422c6e34f
6 changed files with 162 additions and 42 deletions

View File

@@ -6,18 +6,28 @@
let screen = $state('worldmap');
let inDetail = $state(false);
let pendingCountry = $state('');
function handleCountryClick(name) {
pendingCountry = name;
screen = 'timeline';
}
</script>
<Layout {screen} onNavigate={(s) => (screen = s)} hideTopBar={inDetail}>
{#if screen === 'worldmap'}
<div class="worldmap-page">
<div class="map-area">
<WorldMap />
<WorldMap onCountryClick={handleCountryClick} />
</div>
<StatsPanel />
</div>
{:else}
<TimelineView onDetailChange={(v) => (inDetail = v)} />
<TimelineView
onDetailChange={(v) => (inDetail = v)}
{pendingCountry}
onNewEntryClear={() => (pendingCountry = '')}
/>
{/if}
</Layout>