-
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.
- Loading branch information
José Luis Pereira
committed
Aug 23, 2022
1 parent
0018aad
commit e76539a
Showing
5 changed files
with
183 additions
and
124 deletions.
There are no files selected for viewing
This file contains hidden or 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,19 @@ | ||
| <template> | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| class="h-6 w-6" | ||
| fill="none" | ||
| viewBox="0 0 24 24" | ||
| stroke="currentColor" | ||
| stroke-width="2" | ||
| > | ||
| <path | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| d="M4 6h16M4 12h16M4 18h16" | ||
| /> | ||
| </svg> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| </script> |
This file contains hidden or 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 hidden or 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,69 @@ | ||
| <template> | ||
| <button | ||
| type="button" | ||
| class=" | ||
| inline-flex | ||
| items-center | ||
| p-2 z-50 | ||
| ml-3 | ||
| text-sm | ||
| text-primary-content | ||
| rounded-lg | ||
| md:hidden | ||
| print:hidden" | ||
| aria-controls="mobile-menu" | ||
| aria-expanded="false" | ||
| @click="toggleMenu" | ||
| > | ||
| <span class="sr-only">Open main menu</span> | ||
| <IconClose v-if="isMenuVisible" /> | ||
| <IconHamburger v-else /> | ||
| </button> | ||
|
|
||
| <AnimationOpacity> | ||
| <div | ||
| v-if="isMenuVisible" | ||
| class=" | ||
| absolute | ||
| top-full | ||
| left-0 | ||
| w-full | ||
| z-50 | ||
| bg-base-foreground | ||
| block | ||
| md:hidden | ||
| print:hidden" | ||
| > | ||
| <nav class="font-normal"> | ||
| <ul class="flex flex-col m-0 p-0"> | ||
| <li | ||
| v-for="(item, index) in header_links" | ||
| :key="index" | ||
| class="border-b" | ||
| > | ||
| <router-link | ||
| :to="item.link" | ||
| class="text-base-content w-full p-4 block box-border" | ||
| > | ||
| {{ item.label }} | ||
| </router-link> | ||
| </li> | ||
| <li> | ||
| <SwitchTheme class="text-primary-content" /> | ||
| </li> | ||
| </ul> | ||
| </nav> | ||
| </div> | ||
| </AnimationOpacity> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| import { ref } from 'vue' | ||
| import SwitchTheme from '../SwitchTheme.vue' | ||
| const { header_links } = __APP_ENV__ | ||
| const isMenuVisible = ref(false) | ||
| const toggleMenu = () => { isMenuVisible.value = !isMenuVisible.value } | ||
| </script> |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| p-3 | ||
| px-4 | ||
| last:border-b-0 | ||
| cursor-pointer | ||
| dark:border-b-slate-700" | ||
| > | ||
| <div | ||
|
|
||