forked from activist-org/activist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
activist-org#869 apply layouts to directories via files and clean up …
…route checks
- Loading branch information
1 parent
5128ef1
commit ad48d08
Showing
91 changed files
with
354 additions
and
698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
</div> | ||
</div> | ||
</div> | ||
<Footer /> | ||
<FooterWebsite /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
</h1> | ||
</div> | ||
</div> | ||
<slot /> | ||
<NuxtPage /> | ||
</div> | ||
</div> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<template> | ||
<HeaderWebsite /> | ||
<slot /> | ||
<Footer /> | ||
<NuxtPage /> | ||
<FooterWebsite /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<template> | ||
<HeaderMobile /> | ||
<MenuMobileNavigationDropdown class="md:hidden" /> | ||
<SidebarLeft | ||
@mouseover="sidebarHover = true" | ||
@focus="sidebarHover = true" | ||
@mouseleave="sidebarHover = false" | ||
@blur="sidebarHover = false" | ||
class="hidden md:block" | ||
/> | ||
<div class="flex flex-col md:h-screen md:overflow-y-scroll"> | ||
<div | ||
class="bg-light-layer-0 pt-8 transition-padding duration-500 dark:bg-dark-layer-0 md:pt-0" | ||
:class="sidebarContentDynamicClass" | ||
> | ||
<NuxtPage /> | ||
</div> | ||
<FooterWebsite | ||
class="pb-24 transition-padding duration-500 md:pb-12" | ||
:class="sidebarFooterDynamicClass" | ||
/> | ||
</div> | ||
<MenuMobileNavBar class="md:hidden" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { | ||
getSidebarContentDynamicClass, | ||
getSidebarFooterDynamicClass, | ||
} from "~/utils/sidebarUtils"; | ||
const sidebar = useSidebar(); | ||
const sidebarHover = ref(false); | ||
onMounted(() => { | ||
window.addEventListener("resize", handleWindowSizeChange); | ||
handleWindowSizeChange(); | ||
}); | ||
onUnmounted(() => { | ||
window.removeEventListener("resize", handleWindowSizeChange); | ||
}); | ||
const handleWindowSizeChange = () => { | ||
if (window.innerWidth < 1280) { | ||
sidebar.collapsed = true; | ||
sidebar.collapsedSwitch = true; | ||
} | ||
}; | ||
const sidebarContentScrollable = useState<boolean>("sidebarContentScrollable"); | ||
const sidebarFooterDynamicClass = getSidebarFooterDynamicClass( | ||
sidebarHover.value | ||
); | ||
const sidebarContentDynamicClass = getSidebarContentDynamicClass( | ||
sidebarContentScrollable.value, | ||
sidebarHover.value | ||
); | ||
</script> |
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.