diff --git a/app/globals.css b/app/globals.css index db5708e..ac05927 100644 --- a/app/globals.css +++ b/app/globals.css @@ -168,6 +168,8 @@ .container { @apply px-4 xl:px-6 mx-auto max-w-screen-2xl; } + + } @layer base { diff --git a/app/home/HeroContent.tsx b/app/home/HeroContent.tsx index 8344eea..214553f 100644 --- a/app/home/HeroContent.tsx +++ b/app/home/HeroContent.tsx @@ -7,11 +7,13 @@ import { Button } from '@/components/ui/button'; import { Icons } from '@/components/icon'; import { NumberTicker } from '@/components/magicui/number-ticker'; import Link from 'next/link'; +import { useI18n } from '@/components/i18n-provider'; import { siteConfig } from '@/config/site'; import { useEffect, useState } from 'react'; import axios from 'axios'; export function HeroContent() { + const { t } = useI18n(); const [star, setStar] = useState(0); const fetchGithubData = () => { axios @@ -38,24 +40,24 @@ export function HeroContent() { -

- Instant UI Components +

+ {t('HomePage.heroTitle1')} - Just Copy, Paste & Done + {t('HomePage.heroTitle2')}

-

- 250+ Production ready components, built with Next.js, shadcn/ui and Tailwind CSS. +

+ {t('HomePage.heroDescription')}

@@ -64,7 +66,7 @@ export function HeroContent() {
diff --git a/components/footer.tsx b/components/footer.tsx index 00fe5ba..a737988 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -1,9 +1,11 @@ "use client"; import Link from "next/link"; +import { useI18n } from "./i18n-provider"; import { Icons } from "./icon"; export default function Footer() { + const { t, locale, setLocale } = useI18n(); return (