-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NE prefix for custom component & Replace External & Internal link…
…s with NELink
- Loading branch information
Showing
8 changed files
with
28 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
<template> | ||
<a | ||
:href="to" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
class="inline-flex flex-row items-center gap-1 font-bold text-[var(--brand-blue)]" | ||
<NuxtLink | ||
:to="to" | ||
:target="external ? '_blank' : ''" | ||
:rel="external ? 'noopener noreferrer' : ''" | ||
class="inline-flex flex-row items-center gap-1 font-bold text-[var(--brand-blue)] duration-300 active:scale-95" | ||
> | ||
<LucideExternalLink v-if="showIcon" /> | ||
<slot /> | ||
</a> | ||
</NuxtLink> | ||
</template> | ||
|
||
<script setup> | ||
const props = defineProps({ | ||
to: String, | ||
external: Boolean, | ||
showIcon: Boolean, | ||
}) | ||
</script> |
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 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