Skip to content

Commit

Permalink
webapp: Fix navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
dev committed Dec 15, 2023
1 parent a431ac2 commit 868e549
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions phoenix-webapp/src/app/navigation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default [
{ name: 'Buy the Book', url: 'https://kerkour.com/cloudflare-for-speed-and-security' },
{ name: 'About the Author', url: 'https://kerkour.com' },
{ name: 'Blog', url: 'https://kerkour.com/blog' },
{ name: 'Demo (Phoenix)', url: 'https://blog.cloudflarebook.com' },
{ name: 'GitHub', url: 'https://github.com/skerkour/cloudflare-for-speed-and-security' },
];
8 changes: 1 addition & 7 deletions phoenix-webapp/src/components/navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import CfLink from './cf_link.vue';
import { useStore } from '@/app/store';
import { Bars3Icon, XMarkIcon } from '@heroicons/vue/24/outline';
import { Dialog, DialogPanel } from '@headlessui/vue';
import navigation from '@/app/navigation';
const $store = useStore();
Expand All @@ -105,13 +106,6 @@ const showLogoutButton = computed(() => {
})
const navigation = [
{ name: 'Buy the Book', url: 'https://kerkour.com/cloudflare-for-speed-and-security' },
{ name: 'About the Author', url: 'https://kerkour.com' },
{ name: 'Blog', url: 'https://kerkour.com/blog' },
{ name: 'Demo (Phoenix)', url: 'https://blog.cloudflarebook.com' },
{ name: 'GitHub', url: 'https://github.com/skerkour/cloudflare-for-speed-and-security' },
];
const isMobileMenuOpen = ref(false);
</script>

0 comments on commit 868e549

Please sign in to comment.