Skip to content

Commit

Permalink
feat: replace faq page with documentation link
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jan 4, 2023
1 parent e9a0cff commit 7af5790
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 61 deletions.
61 changes: 48 additions & 13 deletions components/layout/navigation/sidenav/SideNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,27 @@
<!-- Navbar Links -->
<ul class="flex-auto space-y-2 text-center sm:text-left">
<li v-for="link in sideNavLinks" :key="link.title">
<NuxtLink
:to="link.url"
class="link relative block transform transition-transform duration-300 hover:translate-x-1"
>
<span class="absolute inset-0 opacity-0" />
<span class="relative"> {{ link.title }}</span>
</NuxtLink>
<template v-if="link.isInternal">
<NuxtLink
:to="link.url"
class="link relative block transform transition-transform duration-300 hover:translate-x-1"
>
<span class="absolute inset-0 opacity-0" />
<span class="relative"> {{ link.title }}</span>
</NuxtLink>
</template>

<template v-else>
<a
:href="link.url"
target="_blank"
rel="noopener nofollow"
class="link relative block transform transition-transform duration-300 hover:translate-x-1"
>
<span class="absolute inset-0 opacity-0" />
<span class="relative"> {{ link.title }}</span>
</a>
</template>
</li>

<!-- Premium -->
Expand Down Expand Up @@ -137,13 +151,34 @@ export default {
sideNavLinks: [
{
title: 'Posts',
url: RouterHelper.generatePostsRouteWithDefaults(this.$nuxt.$store)
url: RouterHelper.generatePostsRouteWithDefaults(this.$nuxt.$store),
isInternal: true
},
{ title: 'Faq', url: '/faq' },
{ title: 'Partners', url: '/partners' },
{ title: 'Usage', url: '/usage' },
{ title: 'About', url: '/about' },
{ title: 'Settings', url: '/settings' }
{
title: 'Faq',
url: 'https://docs.r34.app/frequently-asked-questions',
isInternal: false
},
{
title: 'Partners',
url: '/partners',
isInternal: true
},
{
title: 'Usage',
url: '/usage',
isInternal: true
},
{
title: 'About',
url: '/about',
isInternal: true
},
{
title: 'Settings',
url: '/settings',
isInternal: true
}
]
}
},
Expand Down
48 changes: 0 additions & 48 deletions pages/faq.vue

This file was deleted.

0 comments on commit 7af5790

Please sign in to comment.