diff --git a/src/components/footer/index.tsx b/src/components/footer/index.tsx new file mode 100644 index 0000000..c1ab047 --- /dev/null +++ b/src/components/footer/index.tsx @@ -0,0 +1,18 @@ +import { useTranslation } from "react-i18next" +import { useMemo } from "react" +import dayjs from "dayjs" + +export default function Footer() { + const { t } = useTranslation() + const today = useMemo(() => dayjs(), []) + + return ( + + ) +} diff --git a/src/components/header/index.tsx b/src/components/header/index.tsx new file mode 100644 index 0000000..aebf9fb --- /dev/null +++ b/src/components/header/index.tsx @@ -0,0 +1,39 @@ +import { Link } from "react-router-dom" +import { useTranslation } from "react-i18next" +import LanguageSwitcher from "@/components/language-switcher" + +export default function Header() { + const { t } = useTranslation() + + return ( +
+
+
+
+

{t("app.title")}

+
+
+ + +
+
+
+
+ ) +} diff --git a/src/layout/hero-layout/index.tsx b/src/layout/hero-layout/index.tsx index aa44f94..0b5f43e 100644 --- a/src/layout/hero-layout/index.tsx +++ b/src/layout/hero-layout/index.tsx @@ -3,6 +3,8 @@ import { useMemo } from "react" import { useTranslation } from "react-i18next" import dayjs from "dayjs" import LanguageSwitcher from "@/components/language-switcher" +import Header from "@/components/header" +import Footer from "@/components/footer" /** * Main application component that serves as the root layout. @@ -15,46 +17,7 @@ export default function HeroLayout() { return (
{/* Navigation Header */} -
-
-
-
-

- {t("app.title")} -

-
-
- - -
-
-
-
+
{/* Main Content Area */}
@@ -62,13 +25,7 @@ export default function HeroLayout() {
{/* Footer */} - +
) } diff --git a/src/layout/tools-layout/index.tsx b/src/layout/tools-layout/index.tsx index 43982c9..7516d75 100644 --- a/src/layout/tools-layout/index.tsx +++ b/src/layout/tools-layout/index.tsx @@ -3,6 +3,8 @@ import { Link, NavLink, Outlet } from "react-router-dom" import { useTranslation } from "react-i18next" import dayjs from "dayjs" import LanguageSwitcher from "@/components/language-switcher" +import Header from "@/components/header" +import Footer from "@/components/footer" export default function ToolsLayout() { const today = useMemo(() => dayjs(), []) @@ -28,40 +30,7 @@ export default function ToolsLayout() { return (
-
-
-
-
-

{t("app.title")}

-
-
- - -
-
-
-
+
@@ -120,13 +89,7 @@ export default function ToolsLayout() {
- +
) }