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;
15 map_store.subscribe(map => {
18 map.on('move', function () {
19 map_lat = map.getCenter().lat;
20 map_lon = map.getCenter().lng;
26 .navbar-brand :global(a:hover) {
27 text-decoration: none;
37 display: inline-block;
51 @media (max-width: 600px) {
59 background-color: #f5f5f5;
60 border-top: 2px solid #ddd;
61 border-bottom: 2px solid #ddd;
65 <header class="container-fluid">
66 <nav class="navbar navbar-expand-sm navbar-light">
68 <div class="navbar-brand">
69 <PageLink page="search">
70 <img alt="logo" id="theme-logo" src="theme/logo.png" />
74 <!-- Toggler (hamburger button) -->
75 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
76 <span class="navbar-toggler-icon"></span>
78 <div class="collapse navbar-collapse" id="navbarSupportedContent">
79 <!-- Left-aligned links -->
80 <ul class="navbar-nav mr-auto">
81 <li class="nav-item {view === 'search' ? 'active' : ''}">
82 <PageLink page="search" extra_classes="nav-link">Search</PageLink>
84 <li class="nav-item {view === 'reverse' ? 'active' : ''}">
85 <ReverseLink lat={map_lat} lon={map_lon} extra_classes="nav-link">Reverse</ReverseLink>
87 <li class="nav-item {view === 'details' ? 'active' : ''}">
88 <PageLink page="details" extra_classes="nav-link">Search By ID</PageLink>
92 <!-- Right aligned links -->
93 <ul class="navbar-nav">
94 <li class="nav-item {view === 'about' ? 'active' : ''}">
95 <PageLink page="about" extra_classes="nav-link">About & Help</PageLink>
100 <section class="page-title-section">
103 <section class="search-section">