mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-03-01 04:31:16 +00:00
init
This commit is contained in:
29
app/components/Footer.vue
Normal file
29
app/components/Footer.vue
Normal file
@@ -0,0 +1,29 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
const route = useRoute()
|
||||
const pathname = computed(() => route.path)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<footer class="row-start-3 flex gap-6 flex-wrap items-center justify-center">
|
||||
<NuxtLink class="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
||||
:to="pathname === '/' ? '/user' : '/'">
|
||||
<img aria-hidden src="/file.svg" alt="File icon" width="16" height="16" />
|
||||
{{ pathname === '/' ? 'User' : 'Home' }}
|
||||
</NuxtLink>
|
||||
|
||||
<!-- a tag is required to hit the middleware in place -->
|
||||
<a class="flex items-center gap-2 hover:underline hover:underline-offset-4" href="/admin">
|
||||
<img aria-hidden src="/window.svg" alt="Window icon" width="16" height="16" />
|
||||
Admin
|
||||
</a>
|
||||
|
||||
<a class="flex items-center gap-2 hover:underline hover:underline-offset-4" href="https://bknd.io" target="_blank"
|
||||
rel="noopener noreferrer">
|
||||
<img aria-hidden src="/globe.svg" alt="Globe icon" width="16" height="16" />
|
||||
Go to bknd.io →
|
||||
</a>
|
||||
</footer>
|
||||
</template>
|
||||
Reference in New Issue
Block a user