mirror of
https://gitlab.com/nekoya/web.git
synced 2024-12-23 06:50:30 +01:00
Merge navbar 1 & 2 into 1 file
This commit is contained in:
parent
5ed5cbffa3
commit
7b15d51f89
2 changed files with 17 additions and 64 deletions
|
@ -1,35 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"
|
||||
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
|
||||
<style>
|
||||
.bg-color {
|
||||
background-color: #1b1c1e;
|
||||
}
|
||||
|
||||
.comp-color {
|
||||
background-color: #212226;
|
||||
}
|
||||
|
||||
.nav-radius {
|
||||
border-bottom-left-radius: 20px;
|
||||
border-bottom-right-radius: 20px;
|
||||
}
|
||||
|
||||
:focus {
|
||||
outline: 0 !important;
|
||||
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<% if(types == "v1") { %>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark comp-color ml-5 mr-5 nav-radius">
|
||||
<a href="/"><img alt="Banner" class="navbar-brand lazyload" height="80" src="/img/logo_transparent.webp"
|
||||
<a href="/"><img alt="Banner" class="navbar-brand lazyload" height="80" src="img/logo_transparent.webp"
|
||||
style="margin-top: 0%;" width="80"></a>
|
||||
<button aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation"
|
||||
class="navbar-toggler" data-target="#navbarTogglerDemo01" data-toggle="collapse" type="button">
|
||||
|
@ -38,16 +9,16 @@
|
|||
<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
|
||||
<ul class="navbar-nav mx-auto">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/">Home</a>
|
||||
<a <% if(state == "home") { %> aria-disabled="true" <% } %> class="nav-link" href="/">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a aria-disabled="true" class="nav-link" href="/product-list.html">Products</a>
|
||||
<a <% if(state == "product-list") { %> aria-disabled="true" <% } %> class="nav-link" href="product-list.html">Products</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="about-us.html">About Us</a>
|
||||
<a <% if(state == "about-us") { %> aria-disabled="true" <% } %> class="nav-link" href="about-us.html">About Us</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="faq.html">FAQ</a>
|
||||
<a <% if(state == "faq") { %> aria-disabled="true" <% } %> class="nav-link" href="faq.html">FAQ</a>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="navbar-nav my-2 my-lg-0 text-white">
|
||||
|
@ -60,12 +31,14 @@
|
|||
</span>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<script crossorigin="anonymous" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||
src="https://code.jquery.com/jquery-3.5.1.slim.min.js">
|
||||
</script>
|
||||
<script crossorigin="anonymous" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
|
||||
src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js">
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<% } else if (types == "v2") { %>
|
||||
<nav class="navbar navbar-dark nav-color ml-5 mr-5 nav-radius">
|
||||
<a href="/"><img alt="Banner" class="navbar-brand lazyload" src="img/logo_transparent.webp" style="margin-top: 0%;"></a>
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a style="color: white; font-size: 16pt;">Payment</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="collapse navbar-collapse" id="navbarTogglerDemo01"></div>
|
||||
</nav>
|
||||
<% } %>
|
|
@ -1,20 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-dark nav-color ml-5 mr-5 nav-radius">
|
||||
<a href="/"><img alt="Banner" class="navbar-brand lazyload" src="assets/logo_transparent.webp" style="margin-top: 0%;"></a>
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a style="color: white; font-size: 16pt;">Payment</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="collapse navbar-collapse" id="navbarTogglerDemo01"></div>
|
||||
</nav>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue