-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: shadcn bug, refactor: header components
- Loading branch information
Showing
9 changed files
with
63 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './ui' |
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,14 +1,57 @@ | ||
<script setup lang="ts"> | ||
import { ShimmerButton } from '@/shared/ui' | ||
import { | ||
ShimmerButton, | ||
UiButton, | ||
UiDialog, | ||
UiDialogClose, | ||
UiDialogContent, | ||
UiDialogDescription, | ||
UiDialogFooter, | ||
UiDialogHeader, | ||
UiDialogTitle, | ||
UiDialogTrigger, | ||
UiInput, | ||
} from '@/shared/ui' | ||
</script> | ||
|
||
<template> | ||
<ShimmerButton shimmer-size="2px"> | ||
<div i-hugeicons-user-multiple-02 class="text-neutral-900 dark:text-neutral-100 text-sm" /> | ||
<span | ||
class="whitespace-pre-wrap text-center text-neutral-800 dark:text-neutral-100 text-sm fw500" | ||
> | ||
{{ $t('header.share') }} | ||
</span> | ||
</ShimmerButton> | ||
<UiDialog> | ||
<UiDialogTrigger as-child> | ||
<ShimmerButton shimmer-size="2px"> | ||
<div i-hugeicons-link-04 class="text-neutral-900 dark:text-neutral-100 text-base" /> | ||
<span | ||
class="whitespace-pre-wrap text-center text-neutral-800 dark:text-neutral-100 text-sm fw500" | ||
> | ||
{{ $t('header.share') }} | ||
</span> | ||
</ShimmerButton> | ||
</UiDialogTrigger> | ||
<UiDialogContent class="sm:max-w-md"> | ||
<UiDialogHeader> | ||
<UiDialogTitle>Share link</UiDialogTitle> | ||
<UiDialogDescription> | ||
Anyone who has this link will be able to view this. | ||
</UiDialogDescription> | ||
</UiDialogHeader> | ||
<div class="flex items-center space-x-2"> | ||
<div class="grid flex-1 gap-2"> | ||
<UiInput | ||
default-value="https://shadcn-vue.com/docs/installation" | ||
readonly | ||
class="select-none pointer-events-none focus:ring-0" | ||
/> | ||
</div> | ||
<UiButton type="submit" size="sm" class="px-3"> | ||
<div i-hugeicons-copy-02 class="w-4 h-4 dark:text-neutral-900" /> | ||
</UiButton> | ||
</div> | ||
<UiDialogFooter class="sm:justify-start"> | ||
<UiDialogClose as-child> | ||
<UiButton type="button" variant="secondary"> | ||
Cancel | ||
</UiButton> | ||
</UiDialogClose> | ||
</UiDialogFooter> | ||
</UiDialogContent> | ||
</UiDialog> | ||
</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 @@ | ||
export { default as ShareLink } from './ShareLink.vue' |
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