2 import PageLink from './PageLink.svelte';
3 import ReverseLink from './ReverseLink.svelte';
4 import LastUpdated from './LastUpdated.svelte';
5 import Error from './Error.svelte';
7 import { map_store, page } from '../lib/stores.js';
10 $: page_title = Nominatim_Config.Page_Title;
11 $: reverse_only = Nominatim_Config.Reverse_Only;
16 map_store.subscribe(map => {
19 map.on('move', function () {
20 map_lat = map.getCenter().lat.toFixed(5);
21 map_lon = map.getCenter().lng.toFixed(5);
27 .navbar-brand :global(a:hover) {
28 text-decoration: none;
38 display: inline-block;
52 @media (max-width: 600px) {
60 background-color: #f5f5f5;
61 border-top: 2px solid #ddd;
62 border-bottom: 2px solid #ddd;
66 <header class="container-fluid">
67 <nav class="navbar navbar-expand-sm navbar-light">
68 <div class="container-fluid">
70 <div class="navbar-brand">
71 <PageLink page={reverse_only ? 'reverse' : 'search'}>
72 <img alt="logo" id="theme-logo" src="theme/logo.png" />
76 <!-- Toggler (hamburger button) -->
77 <button class="navbar-toggler"
79 data-bs-toggle="collapse"
80 data-bs-target="#navbarSupportedContent"
81 aria-controls="navbarSupportedContent"
83 aria-label="Toggle navigation">
84 <span class="navbar-toggler-icon"></span>
86 <div class="collapse navbar-collapse" id="navbarSupportedContent">
87 <!-- Left-aligned links -->
88 <ul class="navbar-nav me-auto">
91 <PageLink page="search"
92 extra_classes="nav-link {view === 'search' ? 'active' : ''}">
98 <ReverseLink lat={map_lat}
100 extra_classes="nav-link {view === 'reverse' ? 'active' : ''}">
104 <li class="nav-item">
105 <PageLink page="details"
106 extra_classes="nav-link {view === 'details' ? 'active' : ''}">
112 <!-- Right aligned links -->
113 <ul class="navbar-nav">
114 <li class="nav-item">
115 <PageLink page="about"
116 extra_classes="nav-link {view === 'about' ? 'active' : ''}">
124 <section class="page-title-section">
127 <section class="search-section">