import type { LocalizedText } from '@/types';

export interface LocalizedCard {
  title: LocalizedText;
  description: LocalizedText;
}

export interface TimelineItem {
  period: LocalizedText;
  title: LocalizedText;
  summary: LocalizedText;
  highlights?: LocalizedText[];
}

export interface QAItem {
  question: LocalizedText;
  answer: LocalizedText;
}

export interface FactItem {
  label: LocalizedText;
  value: LocalizedText;
}

export interface SkillGroup {
  name: LocalizedText;
  items: string[];
}

export const identityFacts: FactItem[] = [
  {
    label: { en: 'Name', zh: '姓名' },
    value: { en: 'Joey Z.', zh: 'Joey Z.' },
  },
  {
    label: { en: 'Experience', zh: '工作经验' },
    value: { en: '8 years in Web development', zh: '8 年 Web 开发经验' },
  },
];

export const heroPrinciples: LocalizedText[] = [
  {
    en: 'Open to remote opportunities now. If your team is hiring, I would love to connect.',
    zh: '目前寻求远程工作机会，如你正在招聘，欢迎联系我。',
  },
  {
    en: 'Started as a frontend dev, now building full-stack skills while embracing AI as a productivity tool.',
    zh: '我正在从前端走向全栈，持续进化为 AI 时代的产品工程师，不给自己设限。',
  },
];

export const heroSkillGroups: SkillGroup[] = [
  {
    name: { en: 'Frontend Core', zh: '前端核心' },
    items: [
      'React',
      'Vue3',
      'Next.js',
      'Nuxt.js',
      'TypeScript',
      'SSR',
      'Mini Program',
      'uni-app',
      'Cross-platform Development',
      'Vite',
      'Webpack',
    ],
  },
  {
    name: { en: 'Visualization', zh: '可视化能力' },
    items: ['ECharts', 'AntV', 'G6', 'Realtime Monitoring'],
  },
  {
    name: { en: 'Full-stack', zh: '全栈协作' },
    items: ['Node.js (Express/NestJS)', 'PostgreSQL', 'Redis'],
  },
  {
    name: { en: 'Engineering', zh: '工程实践' },
    items: ['Component Library', 'Code Review', 'Tech Specs', 'Delivery Process'],
  },
  {
    name: { en: 'DevOps', zh: '运维能力' },
    items: ['Linux', 'Docker', 'CI/CD', 'Jenkins'],
  },
];

export const brandProofPoints: LocalizedText[] = [
  {
    en: '8 years across enterprise, fintech, and blockchain products',
    zh: '8 年企业级、金融科技、区块链系统经验',
  },
  {
    en: 'Led architecture and core modules for multiple products',
    zh: '可主导架构、核心模块和工程化流程落地',
  },
  {
    en: 'Good at complex interactions, visual systems, and data-heavy workflows',
    zh: '擅长复杂交互、可视化系统和大数据量业务流程',
  },
  {
    en: 'Using AI tools to speed up development and understand codebases faster',
    zh: '将 AI 工具用于研发提效、项目理解与文档沉淀',
  },
];

export const brandMethodCards: LocalizedCard[] = [
  {
    title: {
      en: 'Problem Framing First',
      zh: '先定义问题',
    },
    description: {
      en: 'I make sure we understand the problem before writing code — business context, technical limits, and timeline all need to be clear.',
      zh: '编码之前先对齐业务上下文、技术边界和交付约束。',
    },
  },
  {
    title: {
      en: 'Architecture for Iteration',
      zh: '为迭代设计架构',
    },
    description: {
      en: 'I design module boundaries and component patterns so the system can grow without becoming a mess.',
      zh: '通过模块边界与组件规范，确保系统能稳定演进。',
    },
  },
  {
    title: {
      en: 'Execution with Transparency',
      zh: '透明化执行',
    },
    description: {
      en: 'I share progress regularly — milestones, docs, and decisions are all visible to everyone involved.',
      zh: '通过里程碑、文档和决策记录，让推进过程可视、可追踪。',
    },
  },
];

export const brandTimeline: TimelineItem[] = [
  {
    period: {
      en: '2026.02 — Now',
      zh: '2026.02 — 至今',
    },
    title: {
      en: 'AI Full-stack Transition · Independent Product Building',
      zh: 'AI 全栈转型 · 独立工具产品实践',
    },
    summary: {
      en: 'Using full-stack skills to build practical tool products, while advancing AI agent development capabilities.',
      zh: '以全栈能力持续开发实用型工具产品，同时系统学习并实践 AI Agent 开发能力。',
    },
    highlights: [
      {
        en: 'From frontend specialization toward AI full-stack product engineering',
        zh: '从前端专项能力向 AI 全栈产品工程能力升级',
      },
      {
        en: 'Combining product thinking with engineering execution in AI-era workflows',
        zh: '在 AI 时代工作流中融合产品思维与工程落地能力',
      },
    ],
  },
  {
    period: {
      en: '2025.07 — 2026.01',
      zh: '2025.07 — 2026.01',
    },
    title: {
      en: 'Frontend Tech Lead · Company A',
      zh: '前端技术负责人 · 某技术公司 A',
    },
    summary: {
      en: 'Led complex frontend refactor, visualization modules, and AI-assisted project analysis under weak documentation.',
      zh: '在文档薄弱场景下主导复杂前端重构、可视化模块建设和 AI 辅助代码分析。',
    },
    highlights: [
      {
        en: 'Optimized engineering structure and build workflow for better stability',
        zh: '优化前端工程结构与构建流程，提升系统稳定性',
      },
      {
        en: 'Generated technical docs via AI-assisted analysis to reduce onboarding cost',
        zh: '通过 AI 工具梳理技术说明，降低团队理解和上手成本',
      },
    ],
  },
  {
    period: {
      en: '2021.03 — 2025.06',
      zh: '2021.03 — 2025.06',
    },
    title: {
      en: 'Frontend Engineer · Company B',
      zh: '前端开发 · 某科技公司 B',
    },
    summary: {
      en: 'Led architecture for 3 core systems and delivered from zero to one with Vue3 + TypeScript.',
      zh: '主导 3 个核心项目架构设计，使用 Vue3 + TypeScript 推进从 0 到 1 建设。',
    },
    highlights: [
      {
        en: 'Built 30+ reusable business components and internal component library',
        zh: '沉淀 30+ 通用业务组件并构建内部组件库',
      },
      {
        en: 'Drove technical standards and team engineering sharing',
        zh: '制定技术规范并持续推动团队工程实践分享',
      },
    ],
  },
  {
    period: {
      en: '2020.10 — 2021.03',
      zh: '2020.10 — 2021.03',
    },
    title: {
      en: 'Frontend Engineer · Company C',
      zh: '前端开发 · 某科技公司 C',
    },
    summary: {
      en: 'Owned architecture selection for 2 blockchain systems and built key reusable components.',
      zh: '主导 2 个区块链项目架构选型并封装核心业务组件。',
    },
    highlights: [
      {
        en: 'Wrote onboarding manual and trained 5 new engineers',
        zh: '编写前端新人手册并完成 5 名新员工培训',
      },
    ],
  },
  {
    period: {
      en: '2019.04 — 2020.09',
      zh: '2019.04 — 2020.09',
    },
    title: {
      en: 'Frontend Team Lead · Company D',
      zh: '前端组长 · 某科技公司 D',
    },
    summary: {
      en: 'Set up a unified multi-end frontend framework for app, admin, mini-program, and public account.',
      zh: '搭建多端统一前端开发框架，覆盖 App、管理后台、小程序与公众号。',
    },
    highlights: [
      {
        en: 'Pushed coding/Git conventions and delivered 8 projects on schedule',
        zh: '推动代码与 Git 规范落地，支撑 8 个项目按时上线',
      },
    ],
  },
  {
    period: {
      en: '2018.03 — 2019.03',
      zh: '2018.03 — 2019.03',
    },
    title: {
      en: 'Frontend Engineer · Company E',
      zh: '前端开发 · 某科技公司 E',
    },
    summary: {
      en: 'Maintained 3 core products across Web and mobile while ensuring stable iterative delivery.',
      zh: '参与 Web 与移动端项目开发，维护 3 个核心产品并保障系统稳定迭代。',
    },
  },
];

export const aboutNarrative: LocalizedText[] = [
  {
    en: '8 years of frontend experience, mostly working on complex business systems — fintech, enterprise tools, and products with heavy interactions. I care about code that survives the first release.',
    zh: '做了 8 年前端，大部分时间在跟复杂业务系统打交道——金融、企业后台、交互密集型产品。代码要能经得起后续迭代，这是我关心的。',
  },
  {
    en: 'Spent a lot of time building from scratch and extracting reusable patterns. Led frontend architecture for 3+ core products, set up internal component libraries, and pushed engineering standards across teams.',
    zh: '从 0 到 1 搭过不少项目，也从业务里抽过不少通用组件。带过 3+ 核心产品的前端架构，做过内部组件库，推过团队工程规范。',
  },
  {
    en: 'Recently started bringing AI into my workflow — not to chase trends, but because it genuinely helps me read code, analyze logic, and write docs faster.',
    zh: '这两年在把 AI 融入日常开发流程，不是赶潮流，是真的拿它来帮忙读代码、分析逻辑、写文档。确实省时间。',
  },
];

export const aboutCapabilities: LocalizedText[] = [
  {
    en: 'Frontend architecture & module design for complex products',
    zh: '复杂产品的模块设计与前端架构',
  },
  {
    en: 'Component libraries & engineering standardization (Vite / Webpack)',
    zh: '组件封装与工程化体系建设',
  },
  {
    en: 'Complex interactions, data visualization, and real-time systems',
    zh: '复杂交互、可视化与实时数据处理',
  },
  {
    en: 'AI-enhanced development workflow & cross-team collaboration',
    zh: 'AI 提效开发与跨角色协作',
  },
];

export const aboutPrinciples: LocalizedText[] = [
  {
    en: 'Prefer clear architecture over temporary speed gains.',
    zh: '短期速度可以妥协，但架构清晰度不能妥协。',
  },
  {
    en: 'Treat delivery quality as a system, not a one-time output.',
    zh: '交付质量是系统能力，不是一次性产出。',
  },
  {
    en: 'Document decisions to reduce team communication cost.',
    zh: '关键决策文档化，降低团队协作成本。',
  },
];

export const collaborationModels: LocalizedCard[] = [
  {
    title: {
      en: 'Role Collaboration',
      zh: '岗位型协作',
    },
    description: {
      en: 'Join as a senior frontend/full-stack contributor for medium to long-term product building.',
      zh: '以资深前端/全栈角色加入团队，参与中长期产品建设。',
    },
  },
  {
    title: {
      en: 'Case-based Delivery',
      zh: '专项课题交付',
    },
    description: {
      en: 'Deliver a scoped module, architecture upgrade, or performance optimization initiative.',
      zh: '围绕明确范围的模块建设、架构升级或性能优化进行阶段性交付。',
    },
  },
  {
    title: {
      en: 'Advisory Session',
      zh: '顾问与评审',
    },
    description: {
      en: 'Provide technical diagnosis and implementation guidance for difficult engineering problems.',
      zh: '面向复杂工程问题提供技术诊断与实施建议。',
    },
  },
];

export const collaborationFitSignals: LocalizedText[] = [
  {
    en: 'You value long-term maintainability, not just quick patching.',
    zh: '你重视长期可维护性，而不仅是短期修补。',
  },
  {
    en: 'Your team needs a reliable engineer to own ambiguous, complex modules.',
    zh: '你的团队需要有人能接住复杂且边界不清的核心模块。',
  },
  {
    en: 'You prefer transparent communication and documented decisions.',
    zh: '你希望协作过程透明，关键决策可追溯。',
  },
];

export const collaborationProcess: LocalizedText[] = [
  {
    en: 'Align context and expected outcomes',
    zh: '对齐上下文与预期结果',
  },
  {
    en: 'Define scope, constraints, and ownership boundaries',
    zh: '明确范围、约束与责任边界',
  },
  {
    en: 'Execute in visible milestones with regular updates',
    zh: '以可见里程碑推进并定期同步',
  },
  {
    en: 'Review outcomes and capture reusable learnings',
    zh: '复盘结果并沉淀可复用经验',
  },
];

export const collaborationFaq: QAItem[] = [
  {
    question: {
      en: 'Payment terms?',
      zh: '付款方式？',
    },
    answer: {
      en: '40% upfront, 40% at mid-point review, 20% upon completion.',
      zh: '40% 预付款，40% 中期验收，20% 尾款。',
    },
  },
  {
    question: {
      en: 'Do you only do project-based work?',
      zh: '你只做项目制合作吗？',
    },
    answer: {
      en: 'No. Role collaboration and long-term engineering participation are both welcome.',
      zh: '不是。岗位型长期协作和阶段性项目合作都可以。',
    },
  },
  {
    question: {
      en: 'What should I send before the first discussion?',
      zh: '第一次沟通前需要准备什么？',
    },
    answer: {
      en: 'A short context summary, desired outcome, timeline, and current blockers are enough to start.',
      zh: '提供背景、目标、时间窗口和当前卡点即可开始沟通。',
    },
  },
  {
    question: {
      en: 'Can we start with a small scope first?',
      zh: '可以先从小范围开始吗？',
    },
    answer: {
      en: 'Yes. A small pilot is often the fastest way to validate collaboration fit.',
      zh: '可以。先做小范围试点通常是验证匹配度最快的方式。',
    },
  },
];
