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 { page } from '../lib/stores.js';
10 $: page_title = Nominatim_Config.Page_Title;
14 .navbar-brand :global(a:hover) {
15 text-decoration: none;
25 display: inline-block;
39 @media (max-width: 600px) {
47 background-color: #f5f5f5;
48 border-top: 2px solid #ddd;
49 border-bottom: 2px solid #ddd;
53 <header class="container-fluid">
54 <nav class="navbar navbar-expand-sm navbar-light">
56 <div class="navbar-brand">
57 <PageLink page="search">
58 <img alt="logo" id="theme-logo" src="theme/logo.png" />
62 <!-- Toggler (hamburger button) -->
63 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
64 <span class="navbar-toggler-icon"></span>
66 <div class="collapse navbar-collapse" id="navbarSupportedContent">
67 <!-- Left-aligned links -->
68 <ul class="navbar-nav mr-auto">
69 <li class="nav-item {view === 'search' ? 'active' : ''}">
70 <PageLink page="search" extra_classes="nav-link">Search</PageLink>
72 <li class="nav-item {view === 'reverse' ? 'active' : ''}">
73 <ReverseLink extra_classes="nav-link ">Reverse</ReverseLink>
75 <li class="nav-item {view === 'details' ? 'active' : ''}">
76 <PageLink page="details" extra_classes="nav-link">Search By ID</PageLink>
80 <!-- Right aligned links -->
81 <ul class="navbar-nav">
82 <li class="nav-item {view === 'about' ? 'active' : ''}">
83 <PageLink page="about" extra_classes="nav-link">About & Help</PageLink>
88 <section class="page-title-section">
91 <section class="search-section">