From 342c96abfa1092ebae205de54c842b424957c101 Mon Sep 17 00:00:00 2001 From: gbuomprisco Date: Thu, 18 Jul 2024 04:01:45 +0800 Subject: [PATCH] Update UI and improve i18n loading logic Major changes include enhancements to the UI and modifications to the i18n loading logic to more effectively handle namespaces. Several components were updated to improve readability and layout consistency. The i18n loading logic now includes additional handling for waiting until all namespaces are loaded before the i18n instance is returned, with a warning if it takes longer than expected. Furthermore, code have been refactored for fonts, buttons, and other UI elements. --- .../(marketing)/_components/site-footer.tsx | 4 +- .../site-header-account-section.tsx | 11 +- .../(marketing)/_components/site-header.tsx | 4 +- .../_components/site-navigation-item.tsx | 2 +- .../_components/site-navigation.tsx | 6 +- .../_components/site-page-header.tsx | 4 +- .../blog/_components/post-header.tsx | 2 +- apps/web/app/(marketing)/docs/layout.tsx | 2 +- apps/web/app/(marketing)/page.tsx | 147 +++++++----------- apps/web/app/layout.tsx | 18 ++- .../getting-started/getting-started.mdoc | 4 +- apps/web/lib/fonts.ts | 11 +- apps/web/styles/globals.css | 21 +++ .../gateway/src/components/pricing-table.tsx | 4 +- packages/i18n/src/i18n.server.ts | 46 +++++- packages/ui/src/shadcn/heading.tsx | 10 +- 16 files changed, 155 insertions(+), 141 deletions(-) diff --git a/apps/web/app/(marketing)/_components/site-footer.tsx b/apps/web/app/(marketing)/_components/site-footer.tsx index 708cc1692..98d0e3c3f 100644 --- a/apps/web/app/(marketing)/_components/site-footer.tsx +++ b/apps/web/app/(marketing)/_components/site-footer.tsx @@ -7,8 +7,8 @@ import appConfig from '~/config/app.config'; export function SiteFooter() { return ( -