Remove basePath usage from internal links across Navbar, Footer, and HomePage.
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
import {motion} from 'framer-motion';
|
||||
import Link from 'next/link';
|
||||
import Image from 'next/image';
|
||||
import {basePath} from '@/next.config';
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
@@ -30,7 +29,7 @@ export default function HomePage() {
|
||||
<p className="text-lg max-w-2xl text-gray-100">
|
||||
Persönliche Betreuung. Klare Kommunikation. Effektive Lösungen für Ihr Anliegen.
|
||||
</p>
|
||||
<Link href={`${basePath}/kontakt/`}>
|
||||
<Link href="/kontakt/">
|
||||
<motion.button
|
||||
whileHover={{scale: 1.05}}
|
||||
whileTap={{scale: 0.95}}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import Link from 'next/link';
|
||||
import {basePath} from "@/next.config";
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
@@ -10,8 +9,8 @@ export default function Footer() {
|
||||
<p>© {new Date().getFullYear()} Kanzlei Mustermann. Alle Rechte vorbehalten.</p>
|
||||
</div>
|
||||
<div className="space-x-4">
|
||||
<Link href={`${basePath}/impressum/`} className="hover:underline">Impressum</Link>
|
||||
<Link href={`${basePath}/datenschutz/`} className="hover:underline">Datenschutz</Link>
|
||||
<Link href="/impressum/" className="hover:underline">Impressum</Link>
|
||||
<Link href="/datenschutz/" className="hover:underline">Datenschutz</Link>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
import Link from 'next/link';
|
||||
import {motion} from 'framer-motion';
|
||||
import {basePath} from "@/next.config";
|
||||
|
||||
export default function Navbar() {
|
||||
return (
|
||||
@@ -13,12 +12,12 @@ export default function Navbar() {
|
||||
className="fixed top-0 left-0 right-0 z-50 bg-white shadow-md py-4 px-6 md:px-12 lg:px-24 text-gray-900"
|
||||
>
|
||||
<div className="flex justify-between items-center">
|
||||
<Link href={`${basePath}/`}>
|
||||
<Link href={`/`}>
|
||||
<span className="text-xl font-bold text-blue-800">Kanzlei Mustermann</span>
|
||||
</Link>
|
||||
<div className="space-x-6 text-sm md:text-base">
|
||||
<Link href={`${basePath}/`}>Start</Link>
|
||||
<Link href={`${basePath}/ueber-uns/`}>Über uns</Link>
|
||||
<Link href={`/`}>Start</Link>
|
||||
<Link href={`/ueber-uns/`}>Über uns</Link>
|
||||
<Link href={`/impressum/`}>Impressum</Link>
|
||||
<Link href={`/datenschutz/`}>Datenschutz</Link>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user