-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Features/144 Profile dropdown ga link (#197)
* ➕ component element for nav bar items * ➕ provide unified login and logout methods * 🔨 fix missing import * ➕ add profile dropdown * ➕ add ga link to schedule creation area * 🔨 fix vue warning for extraneous non-props attributes * 💚 add active nav item color gradients * 🔨 fix share my link buttons to copy link into clipboard
- Loading branch information
1 parent
b44c369
commit 3fe4dfa
Showing
13 changed files
with
236 additions
and
128 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
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 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 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<div class="relative" v-on-click-outside="close"> | ||
<div class="cursor-pointer select-none" @click="toggle"> | ||
<slot name="trigger"></slot> | ||
</div> | ||
<transition> | ||
<div v-show="open" class="absolute right-0" @click="close"> | ||
<slot></slot> | ||
</div> | ||
</transition> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from "vue"; | ||
import { vOnClickOutside } from '@vueuse/components'; | ||
const open = ref(false); | ||
const toggle = () => { open.value = !open.value; }; | ||
const close = () => { open.value = false; }; | ||
</script> |
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,26 @@ | ||
<template> | ||
<div | ||
class="relative group flex font-medium text-base" | ||
:class="{ 'text-gray-600 dark:text-gray-300': !active }" | ||
> | ||
<router-link class="flex justify-center min-w-[120px] items-center" :to="{ name: linkName }"> | ||
{{ label }} | ||
</router-link> | ||
<div | ||
class="absolute rounded bottom-0 h-1 w-full bg-transparent transition-colors ease-in-out" | ||
:class="{ | ||
'bg-gradient-to-r from-teal-500 to-sky-500': active, | ||
'group-hover:bg-gray-200 group-hover:dark:bg-gray-400': !active, | ||
}" | ||
></div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
// component properties | ||
defineProps({ | ||
active: Boolean, // indicator for currently active item | ||
label: String, // item text label | ||
linkName: String, // name of the route link target | ||
}); | ||
</script> |
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 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.