www/src/layouts/partials/navbar.html

83 lines
3.1 KiB
HTML
Raw Normal View History

<nav class="navbar bg-dark navbar-expand-lg navbar-dark sticky-top my-auto main-nav">
<div class="container-fluid top-nav">
<a class="navbar-brand" href="/"><img class="nav-logo" src="/Images/tea-logo-2.svg"></a>
2022-09-28 02:33:07 +03:00
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight"
aria-controls="offcanvasRight" aria-expanded="false" aria-label="Toggle navigation">
MENU
</button>
2023-01-24 00:12:11 +03:00
<div class="collapse navbar-collapse flex" id="navbarSupportedContent">
2023-01-23 20:25:42 +03:00
<ul class="navbar-nav ms-auto my-auto">
{{ range .Site.Menus.main }}
<li class="nav-item mt-lg-0 mt-md-0 mt-sm-3 mt-3">
<a class="nav-link{{ if $.IsMenuCurrent "main" . }} active" aria-current="page {{ end }}" href="{{ .URL }}">{{ .Name}}</a>
</li>
{{ end }}
2022-12-29 23:40:30 +03:00
<li class="nav-item mt-lg-0 mt-md-0 mt-sm-3 mt-3">
2023-01-23 20:40:29 +03:00
<a class="nav-link" aria-current="page" href="https://github.com/teaxyz/cli/stargazers">GIVE A STAR (&#9734;<span class="stargazers"></span>)</a>
2022-12-29 23:40:30 +03:00
</li>
2023-01-23 20:25:42 +03:00
<style>
2023-01-24 00:12:11 +03:00
.hbtn {
2023-01-23 20:25:42 +03:00
font-family: "pp-neue-machina";
2023-01-24 00:12:11 +03:00
background-color: #8000ff;
position: relative;
box-sizing: border-box;
height: 4.4vw !important;
display: inline-block;
overflow: hidden;
padding: 8px 20px;
width: 300px;
text-align: center;
border:none;
text-decoration: none;
2023-01-24 00:35:22 +03:00
color: rgb(225, 225, 225);
2023-01-24 00:12:11 +03:00
white-space: nowrap;
z-index: 0;
}
.hbtn i {
padding-right: 8px;
}
.hb-fill-right::before {
position: absolute;
content: "";
background: rgb(91, 0, 184);
2023-01-24 00:35:22 +03:00
transition-duration: 0.2s;
2023-01-24 00:12:11 +03:00
z-index: -1;
inset: 0px auto auto 0px;
width: 0px;
height: 100%;
opacity: 1;
}
.hb-fill-right:hover::before {
width: 100%;
height: 100%;
opacity: 1;
}
.hb-fill-right:hover {
color: rgb(255, 255, 255);
background: rgb(91, 0, 184);
transition: color 0.3s ease 0s, background 0s ease 0.3s;
2023-01-23 20:25:42 +03:00
}
</style>
</ul>
2023-01-24 00:35:22 +03:00
<a href="https://github.com/teaxyz/cli" class="ms-3">
2023-01-24 00:12:11 +03:00
<button class="hbtn hb-fill-right">INSTALL TEA (<span class="release" style="text-transform: lowercase;"></span>)</button>
</a>
2022-09-07 22:27:28 +03:00
<!--
<a class="btn btn-primary auth-btn mt-lg-0 mt-md-0 mt-sm-4 mt-4" id="nav-cta" href="https://github.com/login/oauth/authorize?client_id=9d1f1a72f1300b6991df&state=teaxyz" role="button"><span id="cta-text">Authenticate with tea</span><span class="badge rounded-pill bg-primary ms-3"><span id="count1">287</span></span><span id="lp-text"></span></a>-->
</div>
</div>
</nav>