diff --git a/apps/landing-page/app/_components/header-enhancer.astro b/apps/landing-page/app/_components/header-enhancer.astro index 38378d1b74..3c507402f2 100644 --- a/apps/landing-page/app/_components/header-enhancer.astro +++ b/apps/landing-page/app/_components/header-enhancer.astro @@ -195,7 +195,7 @@ const directAssets = { } // Hamburger menu toggle. Active only at narrow viewports (CSS hides - // the toggle button at ≥1100px). Click toggles `.is-open` on the + // the toggle button at ≥1367px). Click toggles `.is-open` on the // header; outside-click, Escape, and clicking any link inside the // menu close it again. Keeps `aria-expanded` in sync. const toggle = document.querySelector('[data-nav-toggle]'); diff --git a/apps/landing-page/app/_components/header.tsx b/apps/landing-page/app/_components/header.tsx index 0a2a48ba28..885a147f60 100644 --- a/apps/landing-page/app/_components/header.tsx +++ b/apps/landing-page/app/_components/header.tsx @@ -22,15 +22,168 @@ import type { SolutionPageKey } from '../solution-pages-i18n/types'; const REPO = 'https://github.com/nexu-io/open-design'; const REPO_DISCUSSIONS = `${REPO}/discussions`; const DISCORD = 'https://discord.gg/mHAjSMV6gz'; +const FEISHU = 'https://od.kokiai.net/community/website'; const X_PROFILE = 'https://x.com/OpenDesignHQ'; +type CommunityEntryCopy = { + cta: string; + benefits: readonly [string, string, string]; +}; + +const COMMUNITY_ENTRY_COPY = { + en: { + cta: 'Join Discord', + benefits: [ + 'Model × design scenario arenas', + 'Weekly Hackathon: credits + promotion', + 'Super Thursday: weekly prize draws', + ], + }, + zh: { + cta: '加入飞书社群', + benefits: [ + '模型 × 设计场景竞技场', + 'Weekly Hackathon:Credits + 流量扶持', + 'Super Thursday:每周抽奖', + ], + }, + 'zh-tw': { + cta: '加入飛書社群', + benefits: [ + '模型 × 設計場景競技場', + 'Weekly Hackathon:Credits + 流量扶持', + 'Super Thursday:每週抽獎', + ], + }, + ja: { + cta: 'Discordに参加', + benefits: [ + 'モデル × デザインシーンのアリーナ', + 'Weekly Hackathon:クレジット+露出支援', + 'Super Thursday:毎週抽選', + ], + }, + ko: { + cta: 'Discord 참여', + benefits: [ + '모델 × 디자인 시나리오 아레나', + 'Weekly Hackathon: 크레딧 + 홍보 지원', + 'Super Thursday: 매주 추첨', + ], + }, + de: { + cta: 'Discord beitreten', + benefits: [ + 'Arenen für Modelle × Designszenarien', + 'Weekly Hackathon: Credits + Reichweite', + 'Super Thursday: wöchentliche Verlosung', + ], + }, + fr: { + cta: 'Rejoindre Discord', + benefits: [ + 'Arènes modèles × scénarios de design', + 'Weekly Hackathon : crédits + mise en avant', + 'Super Thursday : tirage hebdomadaire', + ], + }, + ru: { + cta: 'Вступить в Discord', + benefits: [ + 'Арены: модели × дизайн-сценарии', + 'Weekly Hackathon: кредиты + продвижение', + 'Super Thursday: еженедельный розыгрыш', + ], + }, + es: { + cta: 'Unirse a Discord', + benefits: [ + 'Arenas de modelos × escenarios de diseño', + 'Weekly Hackathon: créditos + promoción', + 'Super Thursday: sorteo semanal', + ], + }, + 'pt-br': { + cta: 'Entrar no Discord', + benefits: [ + 'Arenas de modelos × cenários de design', + 'Weekly Hackathon: créditos + divulgação', + 'Super Thursday: sorteio semanal', + ], + }, + it: { + cta: 'Unisciti a Discord', + benefits: [ + 'Arene modelli × scenari di design', + 'Weekly Hackathon: crediti + promozione', + 'Super Thursday: estrazione settimanale', + ], + }, + vi: { + cta: 'Tham gia Discord', + benefits: [ + 'Đấu trường mô hình × bối cảnh thiết kế', + 'Weekly Hackathon: credit + hỗ trợ quảng bá', + 'Super Thursday: quay thưởng hằng tuần', + ], + }, + pl: { + cta: 'Dołącz do Discorda', + benefits: [ + 'Areny modeli × scenariuszy projektowych', + 'Weekly Hackathon: kredyty + promocja', + 'Super Thursday: cotygodniowe losowanie', + ], + }, + id: { + cta: 'Gabung Discord', + benefits: [ + 'Arena model × skenario desain', + 'Weekly Hackathon: kredit + dukungan promosi', + 'Super Thursday: undian mingguan', + ], + }, + nl: { + cta: 'Word lid van Discord', + benefits: [ + 'Arena’s voor modellen × ontwerpscenario’s', + 'Weekly Hackathon: credits + promotie', + 'Super Thursday: wekelijkse loting', + ], + }, + ar: { + cta: 'انضم إلى Discord', + benefits: [ + 'ساحات النماذج × سيناريوهات التصميم', + 'Weekly Hackathon: أرصدة + دعم الترويج', + 'Super Thursday: سحب أسبوعي', + ], + }, + tr: { + cta: "Discord'a katıl", + benefits: [ + 'Model × tasarım senaryosu arenaları', + 'Weekly Hackathon: kredi + tanıtım desteği', + 'Super Thursday: haftalık çekiliş', + ], + }, + uk: { + cta: 'Приєднатися до Discord', + benefits: [ + 'Арени: моделі × дизайн-сценарії', + 'Weekly Hackathon: кредити + промопідтримка', + 'Super Thursday: щотижневий розіграш', + ], + }, +} as const satisfies Record; + // OpenDesign Cloud endpoints for the header account module. // Production defaults; overridable at build time via PUBLIC_* env so a // preview/staging build can point at a non-prod cloud. These are surfaced to // the runtime via `data-*` on `.nav-account` because the auth logic lives in // `header-enhancer.astro`'s `