sudovanilla-ark/forgejo/gitea/templates/base/head_navbar.tmpl

156 lines
11 KiB
Cheetah
Raw Normal View History

2024-05-13 23:34:01 -05:00
<header data-astro-cid-eiyd7voq="">
<div class="header-content">
<div class="header-row-top">
<div>
<a href="/">
<div class="sudovanilla-logo">
<img width="30px" alt="SudoVanilla Logo" src="https://md.sudovanilla.org/images/sv-logo-4.png" />
2024-05-13 23:34:01 -05:00
</div>
</a>
</div>
<div>
<a class="header-link-item" href="https://sudovanilla.org/blog/">Blog</a>
<a class="header-link-item" href="https://sudovanilla.org/docs/">Docs</a>
<a class="header-link-item" href="https://sudovanilla.org/init/">Init Privacy</a>
<a class="header-link-item" href="https://status.sudovanilla.org">Status</a>
{{if and .IsSigned}}
<a class="header-link-item" href data-url="{{AppSubUrl}}/user/logout">Log Out</a>
{{end}}
2024-05-13 23:34:01 -05:00
</div>
</div>
<div class="header-row-bottom" data-astro-cid-eiyd7voq="">
<div>
{{if not .IsSigned}}
<p>Ark</p>
{{end}}
{{if and .IsSigned}}
<a href="/{{.SignedUser.Name}}/" class="header-sub-service">{{.SignedUser.Name}}</a>
{{end}}
2024-05-13 23:34:01 -05:00
<a href="/explore/repos/"><svg width="1.5em" height="1.5em" viewBox="0 0 24 24" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor"><path d="M17 17L21 21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg> Search</a>
<a href="/repo/create/"><svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#676767" style="--darkreader-inline-color: #a79f94;" data-darkreader-inline-color=""><path d="M8 12H12M16 12H12M12 12V8M12 12V16" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="--darkreader-inline-stroke: #676767;" data-darkreader-inline-stroke=""></path><path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="--darkreader-inline-stroke: #676767;" data-darkreader-inline-stroke=""></path></svg> Create</a>
<a href="/repo/migrate/"><svg width="24px" height="24px" viewBox="0 0 24 24" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg" color="#676767"><path d="M17 7C18.1046 7 19 6.10457 19 5C19 3.89543 18.1046 3 17 3C15.8954 3 15 3.89543 15 5C15 6.10457 15.8954 7 17 7Z" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7C8.10457 7 9 6.10457 9 5C9 3.89543 8.10457 3 7 3C5.89543 3 5 3.89543 5 5C5 6.10457 5.89543 7 7 7Z" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 21C8.10457 21 9 20.1046 9 19C9 17.8954 8.10457 17 7 17C5.89543 17 5 17.8954 5 19C5 20.1046 5.89543 21 7 21Z" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7V17" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 7V8C17 10.5 15 11 15 11L9 13C9 13 7 13.5 7 16V17" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> Migrate</a>
{{if .IsAdmin}}
<a href="/admin"><svg width="24px" height="24px" viewBox="0 0 24 24" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg" color="#676767"><path d="M10.0503 10.6066L2.97923 17.6777C2.19818 18.4587 2.19818 19.725 2.97923 20.5061V20.5061C3.76027 21.2871 5.0266 21.2871 5.80765 20.5061L12.8787 13.435" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10.0502 10.6066C9.20638 8.45358 9.37134 5.6286 11.1109 3.88909C12.8504 2.14957 16.0606 1.76777 17.8284 2.82843L14.7877 5.8691L14.5051 8.98014L17.6161 8.69753L20.6568 5.65685C21.7175 7.42462 21.3357 10.6349 19.5961 12.3744C17.8566 14.1139 15.0316 14.2789 12.8786 13.435" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> Admin</a>
{{end}}
2024-05-13 23:34:01 -05:00
</div>
<div>
<a href="/explore/repos/">Explore</a>
{{if not .IsSigned}}
<a href="/user/login?redirect_to=%2f">Login</a>
{{end}}
{{if and .IsSigned}}
<a href="/issues/">Issues</a>
<a href="/pulls/">Pull Requests</a>
<a href="/notifications/">Notifications</a>
<a title="Your Account" href="/{{.SignedUser.Name}}/"><svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#606060"><path d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2Z" stroke="#606060" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.271 18.3457C4.271 18.3457 6.50002 15.5 12 15.5C17.5 15.5 19.7291 18.3457 19.7291 18.3457" stroke="#606060" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 12C13.6569 12 15 10.6569 15 9C15 7.34315 13.6569 6 12 6C10.3431 6 9 7.34315 9 9C9 10.6569 10.3431 12 12 12Z" stroke="#606060" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
<a title="Settings" href="/user/settings"><svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#606060"><path d="M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z" stroke="#606060" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M19.6224 10.3954L18.5247 7.7448L20 6L18 4L16.2647 5.48295L13.5578 4.36974L12.9353 2H10.981L10.3491 4.40113L7.70441 5.51596L6 4L4 6L5.45337 7.78885L4.3725 10.4463L2 11V13L4.40111 13.6555L5.51575 16.2997L4 18L6 20L7.79116 18.5403L10.397 19.6123L11 22H13L13.6045 19.6132L16.2551 18.5155C16.6969 18.8313 18 20 18 20L20 18L18.5159 16.2494L19.6139 13.598L21.9999 12.9772L22 11L19.6224 10.3954Z" stroke="#606060" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
{{end}}
</div>
</div>
<script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (C) 2024 SudoVanilla
The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
window.addEventListener(
"scroll",
function () {
if (window.scrollY > 50) {
document.querySelector(".header-row-bottom").style.position = "fixed";
} else {
document.querySelector(".header-row-bottom").style.position = "inherit";
}
},
false
);
</script>
<script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (C) 2024 SudoVanilla
The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
function ToggleMobileMenu() {
var MobileMenu = document.querySelector(".mobile-popup-menu");
if (MobileMenu.style.display === "flex") {
MobileMenu.style.display = "none";
} else {
MobileMenu.style.display = "flex";
}
}
</script>
</div>
</header>
<mobilebar data-astro-cid-eiyd7voq="">
<div class="mobile-popup-menu" data-astro-cid-eiyd7voq="" style="display: none;">
<a class="header-link-item" href="/blog/" data-astro-cid-eiyd7voq="">Blog</a>
<a class="header-link-item" href="#" data-astro-cid-eiyd7voq="">Ark</a>
<a class="header-link-item" href="/docs/" data-astro-cid-eiyd7voq="">Docs</a>
<a class="header-link-item" href="/init/" data-astro-cid-eiyd7voq="">Init Privacy</a>
<hr/>
<a href="/explore/repos/">Explore</a>
{{if not .IsSigned}}
<a href="/user/login?redirect_to=%2f">Login</a>
{{end}}
{{if and .IsSigned}}
<a href="/issues/">Issues</a>
<a href="/pulls/">Pull Requests</a>
<a href="/notifications/">Notifications</a>
<a title="Your Account" href="/{{.SignedUser.Name}}/">Your Account</a>
<a title="Settings" href="/user/settings">Settings</a>
{{end}}
</div>
<a href="/" data-astro-cid-eiyd7voq="">
<div class="sudovanilla-logo" data-astro-cid-4zunyjcd=""><img alt="SudoVanilla Logo" src="https://md.sudovanilla.org/images/SudoVanilla-Full-Logo.svg" data-astro-cid-4zunyjcd="" /></div>
</a>
<p data-astro-cid-eiyd7voq="">Ark</p>
<button onclick="ToggleMobileMenu()" data-astro-cid-eiyd7voq="">
<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" data-astro-cid-eiyd7voq="true">
<path d="M3 5H11" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M3 12H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M3 19H21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</button>
</mobilebar>