|
| 1 | + <nav class="navbar navbar-expand-lg navbar-secondary bg-body-secondary"> |
| 2 | + <div class="container" id="back-to-top"> |
| 3 | + |
| 4 | + <div class="col smallhero"> |
| 5 | + <a class="logo me-0 navbar-brand" href="/" aria-label="Back to Home"> |
| 6 | + {% include logo.html %}<span class="herospan">OFTC</span> |
| 7 | + </a> |
| 8 | + </div> |
| 9 | + |
| 10 | + <a class="p-1" id="skip-to-content" href="#jump-to-content" aria-label="Skip to content"><i role="presentation" class="bi bi-arrow-down-circle p-1"></i>Skip to content</a> |
| 11 | + |
| 12 | + <button class="navbar-toggler" type="button" role="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button> |
| 13 | + <div class="collapse navbar-collapse" id="navbarSupportedContent"> |
| 14 | + <ul class="justify-content-lg-left col navbar-nav"> |
| 15 | + {% if page.url == "/" %} |
| 16 | + <li class="nav-item"><a class="nav-link active" aria-current="page" href="#" aria-label="Back to Home">Home</a></li> |
| 17 | + {% else %} |
| 18 | + <li class="nav-item" ><a class="nav-link" href="/" aria-label="Back to Home">Home</a></li> |
| 19 | + {% endif %} |
| 20 | + {% if page.url == "/archive/" %} |
| 21 | + <li class="nav-item"><a class="nav-link active" aria-current="page" href="/archives/" aria-label="News archives">News</a></li> |
| 22 | + {% else %} |
| 23 | + <li class="nav-item"><a class="nav-link" href="/archives/" aria-label="News archives">News</a></li> |
| 24 | + {% endif %} |
| 25 | + {% if page.url == "/staff/" %} |
| 26 | + <li class="nav-item"><a class="nav-link active" aria-current="page" href="/staff/" aria-label="OFTC staff">Staff</a></li> |
| 27 | + {% else %} |
| 28 | + <li class="nav-item" ><a class="nav-link" href="/staff/" aria-label="OFTC staff">Staff</a></li> |
| 29 | + {% endif %} |
| 30 | + {% if page.url == "/documentation/" %} |
| 31 | + <li class="nav-item"><a class="nav-link active" aria-current="page" href="/documentation/" aria-label="Documentation">Documentation</a></li> |
| 32 | + {% else %} |
| 33 | + <li class="nav-item"><a class="nav-link" href="/documentation/" aria-label="Documentation">Documentation</a></li> |
| 34 | + {% endif %} |
| 35 | + {% if page.url == "/FAQ/" %} |
| 36 | + <li class="nav-item"><a class="nav-link active" aria-current="page" href="/FAQ/" aria-label="FAQ and help contacts">Help</a></li> |
| 37 | + {% else %} |
| 38 | + <li class="nav-item"><a class="nav-link" href="/FAQ/" aria-label="FAQ and help contacts">Help</a></li> |
| 39 | + {% endif %} |
| 40 | + </ul> |
| 41 | + <div class="dark-mode-toggler navbar-form form-check form-switch d-lg-flex col justify-content-lg-center"> |
| 42 | + <i role="presentation" class='bi bi-sun light-mode-bi' title="Light mode"></i> |
| 43 | + <input class="form-check-input" type="checkbox" id="darkModeSwitch" checked aria-label="Toggle dark mode" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Toggle dark mode" > |
| 44 | + <i role="presentation" class='bi bi-moon dark-mode-bi' title="Dark mode"></i> |
| 45 | + </div> |
| 46 | + <div class="col align-self-end"> |
| 47 | + <form class="d-lg-flex justify-content-lg-end navbar-form" role="form" id="webchat" aria-label="Our webchat" action="//webchat.oftc.net" method="get" target="_blank"> |
| 48 | + <input class="form-control me-2" name="channels" type="text" placeholder="Nickname" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Enter your IRC nickname" aria-label="Enter your IRC nickname"> |
| 49 | + <input class="form-control me-2" name="nick" type="text" placeholder="#oftc, #moocows" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Enter comma seperated list of channels to join" aria-label="Enter comma seperated list of channels to join"> |
| 50 | + <input type="hidden" name="uio" value="d4"> |
| 51 | + <button class="btn btn-primary" type="submit" role="button" aria-label="Go to web the client (in a new tab)">Chat!</button> |
| 52 | + </form> |
| 53 | + </div> |
| 54 | + </div> |
| 55 | + </div> |
| 56 | + </nav> |
0 commit comments