Skip to content

Commit 2dda099

Browse files
committed
fix: add product pages and their backlinks
1 parent b380b5d commit 2dda099

File tree

7 files changed

+56
-7
lines changed

7 files changed

+56
-7
lines changed

frontend/layers/base/app/components/TheFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const resourceLinks: Link[] = [
3131
href: 'https://shop.beaconcha.in/#!/', icon: 'shirt', text: $t('base.footer.resources.links.swag_shop'),
3232
},
3333
{
34-
href: '/p/api/pricing', icon: 'code', text: $t('base.footer.resources.links.api_pricing'),
34+
href: '/products/pricing', icon: 'code', text: $t('base.footer.resources.links.api_pricing'),
3535
},
3636
{
3737
href: '/contact', icon: 'mail-up', text: $t('base.footer.resources.links.contact_sales'),

frontend/layers/products/app/components/ProductLandingpageSectionStakinghub.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<script setup lang="ts">
2-
const { url } = useV1Login()
3-
42
const videoRef = useTemplateRef('videoRef')
53
64
const playVideo = async () => {
@@ -54,7 +52,7 @@ onUnmounted(() => {
5452
trailing-icon="arrow-up-right"
5553
variant="branded"
5654
size="xl"
57-
:to="url"
55+
to="/products/stakinghub"
5856
>
5957
{{ $t('products.landing_page.staking_hub.action.go_to_stakinghub') }}
6058
</BaseButton>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<script setup lang="ts">
2+
definePageMeta({
3+
layout: 'base',
4+
middleware: () => {
5+
return navigateTo('https://bitflyexplorergmbh.mintlify.app/api-reference/', { external: true })
6+
},
7+
})
8+
</script>
9+
10+
<template>
11+
<div>
12+
Page: API Docs
13+
</div>
14+
</template>
15+
16+
<style scoped></style>

frontend/layers/products/app/pages/p/index.vue renamed to frontend/layers/products/app/pages/products/index.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<script setup lang="ts">
22
import type { BaseNavigationItem } from '#layers/base/app/components/BaseNavigationItem.vue'
33
4+
useHead({
5+
bodyAttrs: {
6+
// enforcing dark mode as light mode is not ready yet
7+
'data-theme': 'dark',
8+
},
9+
})
10+
411
const isOpen = ref(false)
512
const { t: $t } = useTranslation()
613
const id = {
@@ -26,7 +33,6 @@ const items: BaseNavigationItem[] = [
2633
},
2734
]
2835
const navigationLeft = useTemplateRef<HTMLDialogElement>('navigationLeft')
29-
const { navigateToV1Login } = useV1Login()
3036
</script>
3137

3238
<template>
@@ -67,7 +73,6 @@ const { navigateToV1Login } = useV1Login()
6773
is="h2"
6874
:id="id.explorer"
6975
size="lg"
70-
class=""
7176
>
7277
{{ $t('products.landing_page.explorer.title') }}
7378
</BaseHeading>
@@ -77,7 +82,7 @@ const { navigateToV1Login } = useV1Login()
7782
trailing-icon="arrow-up-right"
7883
variant="branded"
7984
size="xl"
80-
@click="navigateToV1Login"
85+
to="/"
8186
>
8287
{{ $t('products.landing_page.explorer.action.go_to_explorer') }}
8388
</BaseButton>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script setup lang="ts">
2+
definePageMeta({
3+
layout: 'base',
4+
})
5+
</script>
6+
7+
<template>
8+
<div>
9+
Page: pricing
10+
</div>
11+
</template>
12+
13+
<style scoped></style>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<script setup lang="ts">
2+
definePageMeta({
3+
layout: 'base',
4+
middleware: () => {
5+
return navigateTo('/dashboard')
6+
},
7+
})
8+
</script>
9+
10+
<template>
11+
<div>
12+
Page: stakinghub
13+
</div>
14+
</template>
15+
16+
<style scoped></style>

frontend/middleware/redirect.global.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default function ({
4040
return redirectToV1('/mobile')
4141
case 'p':
4242
case 'product':
43+
case 'products':
4344
if (!has('feature-product-landing')) {
4445
return abortNavigation()
4546
}

0 commit comments

Comments
 (0)