mirror of
https://github.com/liyunze-coding/coworking-website.git
synced 2026-11-06 13:13:34 +00:00
edited navBar and featured more streamers
This commit is contained in:
parent
26404212b4
commit
2127bbc980
2 changed files with 34 additions and 0 deletions
|
|
@ -206,6 +206,20 @@
|
|||
}
|
||||
});
|
||||
|
||||
// if clicked outside of the hamburger menu, close the sidebar
|
||||
window.addEventListener("click", (e) => {
|
||||
if (
|
||||
e.target !== hamburger &&
|
||||
e.target !== topBun &&
|
||||
e.target !== bottomBun &&
|
||||
e.target !== checkbox &&
|
||||
e.target !== document.querySelector(".sidebar") &&
|
||||
e.target !== document.querySelector(".sidebar nav")
|
||||
) {
|
||||
closeSideBar();
|
||||
}
|
||||
});
|
||||
|
||||
// if window is resized, check if it's less than 768px
|
||||
window.addEventListener("resize", () => {
|
||||
if (window.innerWidth < 768) {
|
||||
|
|
|
|||
|
|
@ -75,6 +75,16 @@ import Layout from "../layouts/Layout.astro";
|
|||
</div>
|
||||
<div class="mr-1">:</div> resolve merge conflicts
|
||||
</div>
|
||||
<div
|
||||
class="flex flex-row justify-start items-start bg-gray-700 px-5 py-2 rounded-md mt-1"
|
||||
>
|
||||
<div
|
||||
class="font-bold max-w-[45%] overflow-hidden overflow-ellipsis text-green-400"
|
||||
>
|
||||
j3dg
|
||||
</div>
|
||||
<div class="mr-1">:</div> spin class
|
||||
</div>
|
||||
<div
|
||||
class="flex flex-row justify-start items-start bg-gray-700 px-5 py-2 rounded-md mt-1"
|
||||
>
|
||||
|
|
@ -347,6 +357,16 @@ import Layout from "../layouts/Layout.astro";
|
|||
</div>
|
||||
<div class="mr-1">:</div> sell merch
|
||||
</div>
|
||||
<div
|
||||
class="flex flex-row justify-start items-start bg-gray-700 px-5 py-2 rounded-md mt-1"
|
||||
>
|
||||
<div
|
||||
class="font-bold max-w-[45%] overflow-hidden overflow-ellipsis text-gray-100"
|
||||
>
|
||||
xhumming
|
||||
</div>
|
||||
<div class="mr-1">:</div> feed Emmy
|
||||
</div>
|
||||
<div
|
||||
class="flex flex-row justify-start items-start bg-gray-700 px-5 py-2 rounded-md mt-1"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue