Improve coming soon page

This commit is contained in:
MOH
2026-05-12 09:16:00 +02:00
parent 8add8b018a
commit 4e8056cd04
4 changed files with 40 additions and 31 deletions
+19 -7
View File
@@ -1,13 +1,15 @@
import type { Metadata } from "next";
import { unstable_noStore as noStore } from "next/cache";
import { Sparkles } from "lucide-react";
import Link from "next/link";
import { ArrowLeft, ArrowRight, Mail, Sparkles } from "lucide-react";
import { getLocale, getTranslations } from "next-intl/server";
import { FloatingPreferences } from "@/components/layout/floating-preferences";
import { HeroContentMotion, HeroMotionItem, HeroShell, HeroTitle } from "@/components/layout/site-hero";
import { Button } from "@/components/ui/button";
import { getSiteSettings } from "@/lib/app-config";
import { buildLocalizedMetadata } from "@/lib/metadata";
import { resolveLocale } from "@/lib/locale";
import { getLocalizedPath, resolveLocale } from "@/lib/locale";
type ComingSoonPageProps = {
params: Promise<{
@@ -43,6 +45,7 @@ export default async function ComingSoonPage({
const localeKey = resolveLocale(await getLocale().catch(() => siteSettings.defaultLocale), siteSettings.defaultLocale);
const t = await getTranslations({ locale: localeKey, namespace: "comingSoon" });
const isArabic = localeKey === "ar";
const DirectionIcon = isArabic ? ArrowLeft : ArrowRight;
const lines = [
{
text: t("titleLineOne"),
@@ -75,7 +78,7 @@ export default async function ComingSoonPage({
</p>
</HeroMotionItem>
<HeroTitle locale={localeKey} lines={lines} className="mx-auto mt-8" />
<HeroTitle locale={localeKey} lines={lines} className="mx-auto mt-8 tracking-normal" />
<HeroMotionItem>
<p className="mx-auto mt-8 max-w-[34rem] text-sm leading-7 text-foreground/68 sm:text-base">
@@ -83,10 +86,19 @@ export default async function ComingSoonPage({
</p>
</HeroMotionItem>
<HeroMotionItem>
<p className="mx-auto mt-4 max-w-[32rem] text-sm leading-6 text-foreground/54 sm:text-base">
{t("note")}
</p>
<HeroMotionItem className="mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row">
<Button asChild size="lg" className="w-full sm:w-auto">
<Link href={getLocalizedPath(localeKey, "/contact", siteSettings.defaultLocale)}>
<Mail className="h-4 w-4" />
{t("primaryCta")}
</Link>
</Button>
<Button asChild variant="outline" size="lg" className="w-full sm:w-auto">
<Link href={getLocalizedPath(localeKey, "/", siteSettings.defaultLocale)}>
{t("secondaryCta")}
<DirectionIcon className="h-4 w-4" />
</Link>
</Button>
</HeroMotionItem>
</div>
</HeroContentMotion>
+7 -8
View File
@@ -29,14 +29,13 @@
}
},
"comingSoon": {
"badge": "قريباً",
"kicker": "شيء جديد عم يتشكّل",
"titleLineOne": "نسخة",
"titleLineTwo": "أقوى",
"titleLineThree": "بالطريق.",
"description": "عم بشتغل على نسخة جديدة — هوية أقوى، شغل أوضح، وتجربة مبنية من الأساس.",
"note": "",
"primaryCta": "تواصل معي",
"badge": "تحديث مهني",
"kicker": "الموقع قيد إعادة البناء",
"titleLineOne": "الموقع",
"titleLineTwo": "قيد التطوير",
"titleLineThree": "وسيعود قريباً",
"description": "أعيد بناء الموقع ليعرض الخدمات، الأعمال المختارة، وطريقة التعاون بشكل مباشر ومنظم.",
"primaryCta": "ابدأ مشروعاً",
"secondaryCta": "العودة للرئيسية"
},
"homepage": {
+7 -8
View File
@@ -29,14 +29,13 @@
}
},
"comingSoon": {
"badge": "Demnächst",
"kicker": "Etwas Neues nimmt Form an",
"titleLineOne": "Eine stärkere",
"titleLineTwo": "Version",
"titleLineThree": "kommt.",
"description": "Die nächste Iteration dieser Seite entsteht mit Bedacht — schärfere Arbeiten, eine klarere Identität und ein Auftritt, der wirklich zeigt, was ich tue.",
"note": "",
"primaryCta": "Schreib mir",
"badge": "Professionelles Update",
"kicker": "Die Website wird neu aufgebaut",
"titleLineOne": "Website",
"titleLineTwo": "in Bearbeitung",
"titleLineThree": "bald wieder online",
"description": "Ich baue die Website neu auf, damit Leistungen, ausgewählte Arbeiten und Zusammenarbeit klarer, direkter und ohne Wiederholungen sichtbar werden.",
"primaryCta": "Projekt starten",
"secondaryCta": "Zur Startseite"
},
"homepage": {
+7 -8
View File
@@ -29,14 +29,13 @@
}
},
"comingSoon": {
"badge": "Coming Soon",
"kicker": "Something new is taking shape",
"titleLineOne": "A stronger",
"titleLineTwo": "version",
"titleLineThree": "is coming.",
"description": "The next iteration of this site is being built with intention — sharper work, a clearer identity, and an experience that actually reflects what I do.",
"note": "",
"primaryCta": "Get in touch",
"badge": "Professional update",
"kicker": "The site is being rebuilt",
"titleLineOne": "Website",
"titleLineTwo": "under development",
"titleLineThree": "returning soon",
"description": "I am rebuilding the site to present services, selected work, and collaboration details with sharper structure and less noise.",
"primaryCta": "Start a project",
"secondaryCta": "Back to homepage"
},
"homepage": {