From 16f07bf63bc82b5e1691f2853dca5014efec11ca Mon Sep 17 00:00:00 2001 From: juancmandev Date: Tue, 30 Jul 2024 22:37:03 -0600 Subject: [PATCH] start to add spanish content again --- src/components/footer.tsx | 6 +- src/components/header.astro | 40 +++++- src/components/link-button.tsx | 2 + src/components/mdx/astro-image.astro | 2 +- src/components/mdx/copy-button.tsx | 42 ------- .../{ navigation.tsx => navigation.tsx} | 10 +- src/components/post-item.tsx | 2 +- src/layouts/Layout.astro | 14 +-- src/pages/404.astro | 16 +-- src/pages/[...slug].astro | 20 +-- src/pages/blog/[...slug].astro | 38 +++--- src/pages/blog/index.astro | 2 +- src/pages/es/index.astro | 20 +++ src/pages/{ => es}/videos/[...slug].astro | 0 src/pages/{ => es}/videos/index.astro | 2 +- src/pages/index.astro | 119 +++++++++--------- src/pages/microblog.astro | 37 +++--- src/pages/portfolio/[...slug].astro | 42 ++++--- src/pages/portfolio/index.astro | 2 +- 19 files changed, 217 insertions(+), 199 deletions(-) delete mode 100644 src/components/mdx/copy-button.tsx rename src/components/{ navigation.tsx => navigation.tsx} (91%) create mode 100644 src/pages/es/index.astro rename src/pages/{ => es}/videos/[...slug].astro (100%) rename src/pages/{ => es}/videos/index.astro (96%) diff --git a/src/components/footer.tsx b/src/components/footer.tsx index dd84324..5e82f0e 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -2,7 +2,11 @@ import { Code, RssIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import formatDate from "@/utils/format-date"; -export default function Footer() { +type Props = { + lang: "en" | "es"; +}; + +export default function Footer(props: Props) { return (