Procházet zdrojové kódy

fix: update footer services links to point to services section

unknown před 2 měsíci
rodič
revize
76dda4fddf
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      src/components/Footer.vue

+ 4 - 3
src/components/Footer.vue

@@ -21,7 +21,8 @@
           <h4 class="font-display text-xs font-bold uppercase tracking-widest text-foreground/40 mb-3">{{ t("footer.services") }}</h4>
           <ul class="space-y-1.5">
             <li v-for="link in footerLinks.services" :key="link.label">
-              <a :href="link.href" class="text-xs font-bold text-foreground/60 hover:text-primary transition-colors">{{ link.label }}</a>
+              <router-link v-if="link.to" :to="link.to" class="text-xs font-bold text-foreground/60 hover:text-primary transition-colors">{{ link.label }}</router-link>
+              <a v-else-if="link.href" :href="link.href" class="text-xs font-bold text-foreground/60 hover:text-primary transition-colors">{{ link.label }}</a>
             </li>
           </ul>
         </div>
@@ -68,8 +69,8 @@ interface FooterLink {
 
 const footerLinks = computed(() => ({
   services: [
-    { label: t("services.fdm.title"), href: "#" },
-    { label: t("services.sla.title"), href: "#" },
+    { label: t("services.fdm.title"), to: `/${currentLanguage()}/#services` },
+    { label: t("services.sla.title"), to: `/${currentLanguage()}/#services` },
   ] as FooterLink[],
   company: [
     { label: t("footer.about"),   to: `/${currentLanguage()}/about` },