2 import PageLink from './PageLink.svelte';
3 import ReverseLink from './ReverseLink.svelte';
4 import LastUpdated from './LastUpdated.svelte';
6 import { page } from '../lib/stores.js';
7 import { get_config_value } from '../lib/config_reader.js';
13 .navbar-brand :global(a:hover) {
14 text-decoration: none;
24 display: inline-block;
38 @media (max-width: 600px) {
46 background-color: #f5f5f5;
47 border-top: 2px solid #ddd;
48 border-bottom: 2px solid #ddd;
52 <header class="container-fluid">
53 <nav class="navbar navbar-expand-sm navbar-light">
55 <div class="navbar-brand">
56 <PageLink page="search">
57 <img alt="logo" id="theme-logo" src="theme/logo.png" />
58 <h1>{get_config_value('Page_Title')}</h1>
61 <!-- Toggler (hamburger button) -->
62 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
63 <span class="navbar-toggler-icon"></span>
65 <div class="collapse navbar-collapse" id="navbarSupportedContent">
66 <!-- Left-aligned links -->
67 <ul class="navbar-nav mr-auto">
68 <li class="nav-item {view === 'search' ? 'active' : ''}">
69 <PageLink page="search" extra_classes="nav-link ">Search</PageLink>
71 <li class="nav-item {view === 'reverse' ? 'active' : ''}">
72 <ReverseLink extra_classes="nav-link ">Reverse</ReverseLink>
74 <li class="nav-item {view === 'details' ? 'active' : ''}">
75 <PageLink page="details" extra_classes="nav-link ">Search By ID</PageLink>
79 <!-- Right aligned links -->
80 <ul class="navbar-nav">
81 <li class="nav-item {view === 'about' ? 'active' : ''}">
82 <PageLink page="about" extra_classes="nav-link ">About & Help</PageLink>
87 <section class="page-title-section">
90 <section class="search-section">