Skip to content

Commit 60e0840

Browse files
committed
chore: update navigation links to point to marketing site and add marketing URL configuration
1 parent ac79c19 commit 60e0840

8 files changed

Lines changed: 29 additions & 23 deletions

File tree

app/components/AppTopBar.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ onUnmounted(() => document.removeEventListener('click', onClickOutsideUser))
139139
<div class="flex h-14 items-center justify-between px-4 lg:px-6">
140140
<!-- Left: Logo + Nav -->
141141
<div class="flex items-center gap-1 lg:gap-2">
142-
<!-- Logo -->
143-
<NuxtLink
144-
:to="$localePath('/')"
142+
<!-- Logo — links to marketing site (reqcore.com), not app root -->
143+
<a
144+
:href="useRuntimeConfig().public.marketingUrl"
145145
class="flex items-center gap-2.5 px-2 py-1.5 rounded-lg no-underline hover:bg-surface-100/60 dark:hover:bg-surface-800/60 transition-colors mr-1 lg:mr-4"
146146
>
147147
<img src="/eagle-mascot-logo.png" alt="Reqcore mascot" class="size-7 shrink-0 object-contain" />
148148
<span class="text-[15px] font-bold text-surface-900 dark:text-surface-100 hidden sm:block tracking-tight">Reqcore</span>
149-
</NuxtLink>
149+
</a>
150150

151151
<!-- Desktop nav links -->
152152
<nav class="hidden md:flex items-center gap-0.5">

app/components/ConsentBanner.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ const { needsConsent, acceptAnalytics, declineAnalytics } = useAnalyticsConsent(
2020
Help us improve reqcore. No ads, no data selling, just product insights.
2121
</p>
2222
<p class="mt-1.5 text-[12px] text-white/40">
23-
<NuxtLink
24-
to="/docs/legal/privacy-policy"
23+
<a
24+
:href="`${useRuntimeConfig().public.marketingUrl}/docs/legal/privacy-policy`"
25+
target="_blank"
26+
rel="noopener noreferrer"
2527
class="underline underline-offset-2 transition hover:text-white/70"
2628
>
2729
Privacy policy
28-
</NuxtLink>
30+
</a>
2931
</p>
3032
<div class="mt-3 flex gap-2">
3133
<button

app/components/PublicNavBar.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const { data: session } = await authClient.useSession(useFetch)
1212
<template>
1313
<nav class="fixed inset-x-0 top-0 z-50 border-b border-white/[0.06] bg-[#09090b]/80 backdrop-blur-xl">
1414
<div class="mx-auto flex h-14 max-w-6xl items-center justify-between px-6">
15-
<!-- Logo -->
16-
<NuxtLink
17-
:to="localePath('/')"
15+
<!-- Logo — links to marketing site (reqcore.com) -->
16+
<a
17+
:href="useRuntimeConfig().public.marketingUrl"
1818
class="flex items-center gap-2.5 text-[15px] font-semibold tracking-tight text-white"
1919
>
2020
<img
@@ -27,7 +27,7 @@ const { data: session } = await authClient.useSession(useFetch)
2727
class="h-7 w-7 object-contain"
2828
/>
2929
Reqcore
30-
</NuxtLink>
30+
</a>
3131

3232
<!-- Center nav links (desktop) -->
3333
<div class="hidden items-center gap-1 md:flex">

app/layouts/public.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<!-- Simple header -->
44
<header class="border-b border-surface-200 dark:border-surface-800 bg-white dark:bg-surface-900">
55
<div class="mx-auto max-w-3xl px-4 sm:px-6 py-4 flex items-center justify-between">
6-
<NuxtLink :to="$localePath('/')" class="text-lg font-bold text-surface-900 dark:text-surface-100">
6+
<a :href="useRuntimeConfig().public.marketingUrl" class="text-lg font-bold text-surface-900 dark:text-surface-100">
77
Reqcore
8-
</NuxtLink>
8+
</a>
99
<LanguageSwitcher />
1010
</div>
1111
</header>
@@ -19,7 +19,7 @@
1919
<footer class="border-t border-surface-200 dark:border-surface-800 mt-12">
2020
<div class="mx-auto max-w-3xl px-4 sm:px-6 py-6">
2121
<p class="text-xs text-surface-400 text-center">
22-
Powered by <NuxtLink :to="$localePath('/')" class="underline hover:text-surface-600 dark:hover:text-surface-300">Reqcore</NuxtLink>
22+
Powered by <a :href="useRuntimeConfig().public.marketingUrl" class="underline hover:text-surface-600 dark:hover:text-surface-300">Reqcore</a>
2323
</p>
2424
</div>
2525
</footer>

app/pages/dashboard/settings/integrations.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,15 @@ async function handleDisconnect() {
158158
environment variables before users can connect.
159159
</p>
160160
<div class="flex items-center gap-4">
161-
<NuxtLink
162-
to="/docs/features/google-calendar"
161+
<a
162+
:href="`${useRuntimeConfig().public.marketingUrl}/docs/features/google-calendar`"
163+
target="_blank"
164+
rel="noopener noreferrer"
163165
class="inline-flex items-center gap-1.5 text-sm text-brand-600 dark:text-brand-400 hover:underline"
164166
>
165167
Setup guide
166168
<ExternalLink class="size-3.5" />
167-
</NuxtLink>
169+
</a>
168170
<a
169171
href="https://console.cloud.google.com/apis/credentials"
170172
target="_blank"

app/pages/jobs/[slug]/apply.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,12 @@ const typeLabels: Record<string, string> = {
250250
<p class="text-sm text-surface-500 mb-6 max-w-xs">
251251
This position may have been filled or is no longer accepting applications.
252252
</p>
253-
<NuxtLink
254-
:to="$localePath('/')"
253+
<a
254+
:href="useRuntimeConfig().public.marketingUrl"
255255
class="inline-flex items-center gap-2 rounded-lg bg-brand-600 px-5 py-2.5 text-sm font-medium text-white hover:bg-brand-700 transition-colors shadow-sm"
256256
>
257257
Back to Home
258-
</NuxtLink>
258+
</a>
259259
</div>
260260

261261
<!-- Application form -->

app/pages/jobs/[slug]/confirmation.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ useSeoMeta({
4747
>
4848
Browse more positions
4949
</NuxtLink>
50-
<NuxtLink
51-
:to="$localePath('/')"
50+
<a
51+
:href="useRuntimeConfig().public.marketingUrl"
5252
class="inline-flex items-center rounded-lg border border-surface-300 dark:border-surface-700 px-4 py-2 text-sm font-medium text-surface-700 dark:text-surface-300 hover:bg-surface-50 dark:hover:bg-surface-800 transition-colors"
5353
>
5454
Back to Home
55-
</NuxtLink>
55+
</a>
5656
</div>
5757
</div>
5858
</template>

nuxt.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export default defineNuxtConfig({
106106

107107
runtimeConfig: {
108108
public: {
109+
/** Base URL of the marketing site (reqcore-web) for cross-domain links */
110+
marketingUrl: process.env.NUXT_PUBLIC_MARKETING_URL || 'https://reqcore.com',
109111
// PostHog runtimeConfig is managed by @posthog/nuxt via posthogConfig above.
110112
// Override at runtime with NUXT_PUBLIC_POSTHOG_PUBLIC_KEY / NUXT_PUBLIC_POSTHOG_HOST.
111113
/** When set, the dashboard shows a read-only demo banner for this org slug */

0 commit comments

Comments
 (0)