From a18370d003348cacdcc91e0c76dd340a7cdb1368 Mon Sep 17 00:00:00 2001 From: MOH Date: Sat, 7 Mar 2026 22:28:52 +0100 Subject: [PATCH] Refine root UI around shadcn primitives --- app/[locale]/(site)/about/page.tsx | 2 +- app/[locale]/(site)/page.tsx | 4 +- app/[locale]/(site)/portfolio/[slug]/page.tsx | 8 +- app/[locale]/(site)/portfolio/page.tsx | 12 +- app/[locale]/(site)/products/[slug]/page.tsx | 2 +- app/[locale]/coming-soon/page.tsx | 4 +- app/globals.css | 123 +++---- app/root/media/page.tsx | 67 ++-- app/root/page.tsx | 26 +- app/root/portfolio/categories/page.tsx | 124 ++++--- app/root/portfolio/page.tsx | 205 +----------- app/root/portfolio/projects/page.tsx | 83 ++++- components/layout/app-sidebar.tsx | 2 +- components/layout/floating-preferences.tsx | 2 +- components/layout/site-footer.tsx | 2 +- components/layout/site-header.tsx | 4 +- components/root/flash-message.tsx | 2 +- components/root/media-field-picker.tsx | 69 ++-- components/root/portfolio-project-form.tsx | 253 +++++++++----- .../root/portfolio-projects-overview.tsx | 316 ++++++++++++++++++ components/root/portfolio-subnav.tsx | 12 +- .../root/sidebar-maintenance-control.tsx | 10 +- components/root/site-settings-form.tsx | 171 +++++----- components/ui/app-card.tsx | 12 +- components/ui/badge.tsx | 2 +- components/ui/button.tsx | 10 +- components/ui/card.tsx | 2 +- components/ui/checkbox.tsx | 50 +++ components/ui/input.tsx | 2 +- components/ui/select.tsx | 195 +++++++++++ components/ui/tabs.tsx | 6 +- components/ui/textarea.tsx | 2 +- components/ui/ui-kit-showcase.tsx | 12 +- lib/root-navigation.ts | 6 +- package-lock.json | 137 ++++++++ package.json | 2 + 36 files changed, 1344 insertions(+), 597 deletions(-) create mode 100644 components/root/portfolio-projects-overview.tsx create mode 100644 components/ui/checkbox.tsx create mode 100644 components/ui/select.tsx diff --git a/app/[locale]/(site)/about/page.tsx b/app/[locale]/(site)/about/page.tsx index 53b0f21..d666de8 100644 --- a/app/[locale]/(site)/about/page.tsx +++ b/app/[locale]/(site)/about/page.tsx @@ -101,7 +101,7 @@ export default async function AboutPage({ params: { locale } }: AboutPageProps) {[t("processOne"), t("processTwo"), t("processThree")].map((step, index) => ( - + {index + 1}

{step}

diff --git a/app/[locale]/(site)/page.tsx b/app/[locale]/(site)/page.tsx index 467bcab..fea36d9 100644 --- a/app/[locale]/(site)/page.tsx +++ b/app/[locale]/(site)/page.tsx @@ -189,11 +189,11 @@ export default async function HomePage({ params: { locale } }: HomePageProps) {
-

+

{t("ctaTitle")}

-

+

{t("ctaText")}

diff --git a/app/[locale]/(site)/portfolio/[slug]/page.tsx b/app/[locale]/(site)/portfolio/[slug]/page.tsx index 70ee9cd..c5cd967 100644 --- a/app/[locale]/(site)/portfolio/[slug]/page.tsx +++ b/app/[locale]/(site)/portfolio/[slug]/page.tsx @@ -106,7 +106,7 @@ export default async function PortfolioItemPage({

{item.coverImagePath ? ( -
+
) : null} {section.linkUrl ? ( @@ -204,7 +204,7 @@ export default async function PortfolioItemPage({

{t("gallery")}

{item.assets.map((asset) => ( -
+
{asset.kind === "IMAGE" ? ( ) : ( -
+

{getLocalizedValue(asset.alt, localeKey)}