From 69f350009ee155bf29857649d675579e0fea346a Mon Sep 17 00:00:00 2001 From: itzamanjain Date: Mon, 23 Mar 2026 12:57:14 +0530 Subject: [PATCH] feat: add initial application setup including internationalization and a 'pro' waitlist page with mockups. --- app/globals.css | 2 ++ app/home/HeroContent.tsx | 18 +++++----- app/page.tsx | 5 ++- app/pro/page.tsx | 14 +------- components/cta.tsx | 28 ++++++++-------- components/footer.tsx | 43 +++++++++++++++++------- components/i18n-provider.tsx | 64 ++++++++++++++++++++++++++++++++++++ components/main-nav.tsx | 10 +++--- components/navbar.tsx | 6 ++-- components/providers.tsx | 23 +++++++------ messages/de.json | 40 ++++++++++++++++++++++ messages/en.json | 40 ++++++++++++++++++++++ messages/es.json | 40 ++++++++++++++++++++++ messages/fr.json | 40 ++++++++++++++++++++++ messages/hi.json | 40 ++++++++++++++++++++++ messages/pt.json | 40 ++++++++++++++++++++++ messages/tr.json | 40 ++++++++++++++++++++++ messages/zh.json | 40 ++++++++++++++++++++++ 18 files changed, 470 insertions(+), 63 deletions(-) create mode 100644 components/i18n-provider.tsx create mode 100644 messages/de.json create mode 100644 messages/en.json create mode 100644 messages/es.json create mode 100644 messages/fr.json create mode 100644 messages/hi.json create mode 100644 messages/pt.json create mode 100644 messages/tr.json create mode 100644 messages/zh.json diff --git a/app/globals.css b/app/globals.css index db5708e1..ac059277 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 8344eea3..214553f6 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 00fe5ba7..a7379881 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 (