From 44bf6f90dfaf36218deea32f48fe1fbe75d024a6 Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Thu, 19 Jun 2025 08:43:45 +0900 Subject: [PATCH] Refactor navigation paths and centralize URL management by introducing a `Links` configuration; update Footer and Navbar components and rename route files for consistency. --- lawfirm-demos/demo-1/app/Links.ts | 8 ++++++++ .../demo-1/app/{privacy => datenschutz}/page.tsx | 0 lawfirm-demos/demo-1/app/{imprint => impressum}/page.tsx | 0 lawfirm-demos/demo-1/app/{about => ueber-uns}/page.tsx | 0 lawfirm-demos/demo-1/components/Footer.tsx | 7 +++++-- lawfirm-demos/demo-1/components/Navbar.tsx | 9 +++++---- 6 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 lawfirm-demos/demo-1/app/Links.ts rename lawfirm-demos/demo-1/app/{privacy => datenschutz}/page.tsx (100%) rename lawfirm-demos/demo-1/app/{imprint => impressum}/page.tsx (100%) rename lawfirm-demos/demo-1/app/{about => ueber-uns}/page.tsx (100%) diff --git a/lawfirm-demos/demo-1/app/Links.ts b/lawfirm-demos/demo-1/app/Links.ts new file mode 100644 index 0000000..9ed2e4a --- /dev/null +++ b/lawfirm-demos/demo-1/app/Links.ts @@ -0,0 +1,8 @@ +const Links = { + home: '/', + about: '/ueber-uns/', + imprint: '/impressum/', + privacy: '/datenschutz/', +}; + +export default Links; diff --git a/lawfirm-demos/demo-1/app/privacy/page.tsx b/lawfirm-demos/demo-1/app/datenschutz/page.tsx similarity index 100% rename from lawfirm-demos/demo-1/app/privacy/page.tsx rename to lawfirm-demos/demo-1/app/datenschutz/page.tsx diff --git a/lawfirm-demos/demo-1/app/imprint/page.tsx b/lawfirm-demos/demo-1/app/impressum/page.tsx similarity index 100% rename from lawfirm-demos/demo-1/app/imprint/page.tsx rename to lawfirm-demos/demo-1/app/impressum/page.tsx diff --git a/lawfirm-demos/demo-1/app/about/page.tsx b/lawfirm-demos/demo-1/app/ueber-uns/page.tsx similarity index 100% rename from lawfirm-demos/demo-1/app/about/page.tsx rename to lawfirm-demos/demo-1/app/ueber-uns/page.tsx diff --git a/lawfirm-demos/demo-1/components/Footer.tsx b/lawfirm-demos/demo-1/components/Footer.tsx index 72eb784..df2a412 100644 --- a/lawfirm-demos/demo-1/components/Footer.tsx +++ b/lawfirm-demos/demo-1/components/Footer.tsx @@ -1,4 +1,5 @@ import Link from 'next/link'; +import Links from "@/app/Links"; export default function Footer() { return ( @@ -9,8 +10,10 @@ export default function Footer() {

© {new Date().getFullYear()} Kanzlei Mustermann. Alle Rechte vorbehalten.

- Impressum - Datenschutz +
+ Impressum + Datenschutz +
diff --git a/lawfirm-demos/demo-1/components/Navbar.tsx b/lawfirm-demos/demo-1/components/Navbar.tsx index e0d59d2..62015d3 100644 --- a/lawfirm-demos/demo-1/components/Navbar.tsx +++ b/lawfirm-demos/demo-1/components/Navbar.tsx @@ -2,6 +2,7 @@ import Link from 'next/link'; import {motion} from 'framer-motion'; +import Links from "@/app/Links"; export default function Navbar() { return ( @@ -16,10 +17,10 @@ export default function Navbar() { Kanzlei Mustermann
- Start - Über uns - Impressum - Datenschutz + Start + Über uns + Impressum + Datenschutz