From 6566e112e4232f653bcf255f209b81390bc43ce8 Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Tue, 8 Sep 2026 19:20:40 +0330 Subject: [PATCH 1/6] chore: add Next.js workspace guidance --- AGENTS.md | 9 +++++++++ CLAUDE.md | 1 + 2 files changed, 10 insertions(+) create mode 100644 AGENTS.md create mode 100644 CLAUDE.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..643577d --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,9 @@ + + +# This is NOT the Next.js you know + +This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices. + +This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean. + + diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..43c994c --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +@AGENTS.md From 3bb6b4396c9ca88e4adc6642a875f1986fb3b66d Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Tue, 8 Sep 2026 19:20:58 +0330 Subject: [PATCH 2/6] feat: add typed Persian portfolio content --- src/data/education.ts | 33 +++- src/data/experience.ts | 285 +++++++++++++++++++++++++---------- src/data/milestones.ts | 126 ++++++++++++---- src/data/projects.ts | 144 ++++++++++++++---- src/i18n/content.ts | 332 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 781 insertions(+), 139 deletions(-) create mode 100644 src/i18n/content.ts diff --git a/src/data/education.ts b/src/data/education.ts index 820d068..3ad7fd6 100644 --- a/src/data/education.ts +++ b/src/data/education.ts @@ -1,3 +1,5 @@ +import type { Locale, Localized } from '@/i18n/content'; + export interface EducationItem { degree: string; institution: string; @@ -6,11 +8,28 @@ export interface EducationItem { logo: string; } -export const education: EducationItem = { - degree: "Bachelor's Degree in Computer Engineering", - institution: 'University of Guilan', - date: 'JAN 2022 - JUN 2026', - logo: '/images/logo-guilan-crest.png', - description: - "My bachelor's years at the University of Guilan were where I grew from a curious student into someone who could build, teach, lead, and take responsibility for real outcomes. Alongside studying Computer Engineering, I worked on software projects, served as Head of the Computer Engineering Scientific Association, coordinated teaching assistants across several courses, organized technical events, and supported other students in learning and problem-solving. More than any single subject, this period taught me how to think systematically, collaborate with people, communicate ideas clearly, and turn knowledge into something useful for others.", +type EducationCopy = Omit; + +const educationContent: Localized = { + en: { + degree: "Bachelor's Degree in Computer Engineering", + institution: 'University of Guilan', + date: 'JAN 2022 - JUN 2026', + description: + "My bachelor's years at the University of Guilan were where I grew from a curious student into someone who could build, teach, lead, and take responsibility for real outcomes. Alongside studying Computer Engineering, I worked on software projects, served as Head of the Computer Engineering Scientific Association, coordinated teaching assistants across several courses, organized technical events, and supported other students in learning and problem-solving. More than any single subject, this period taught me how to think systematically, collaborate with people, communicate ideas clearly, and turn knowledge into something useful for others.", + }, + fa: { + degree: 'کارشناسی مهندسی کامپیوتر', + institution: 'دانشگاه گیلان', + date: 'دی ۱۴۰۰ تا خرداد ۱۴۰۵', + description: + 'دوره کارشناسی در دانشگاه گیلان برای من فقط درس‌خواندن نبود. در این سال‌ها از یک دانشجوی کنجکاو به کسی تبدیل شدم که می‌توانست بسازد، آموزش بدهد، تیم را هدایت کند و مسئولیت نتیجه واقعی را بپذیرد. هم‌زمان با تحصیل مهندسی کامپیوتر، روی پروژه‌های نرم‌افزاری کار کردم، دبیر انجمن علمی مهندسی کامپیوتر بودم، تدریس‌یارهای چند درس را هماهنگ کردم، رویدادهای فنی برگزار کردم و در یادگیری و حل مسئله به دانشجویان دیگر کمک کردم. مهم‌تر از هر درس، یاد گرفتم منظم فکر کنم، با دیگران همکاری کنم، ایده‌ها را روشن توضیح بدهم و دانش را به چیزی مفید برای دیگران تبدیل کنم.', + }, }; + +export const getEducation = (locale: Locale): EducationItem => ({ + ...educationContent[locale], + logo: '/images/logo-guilan-crest.png', +}); + +export const education = getEducation('en'); diff --git a/src/data/experience.ts b/src/data/experience.ts index 0a2fb5c..67f832e 100644 --- a/src/data/experience.ts +++ b/src/data/experience.ts @@ -1,3 +1,5 @@ +import type { Locale, Localized } from '@/i18n/content'; + export interface ExperienceItem { id: string; role: string; @@ -10,111 +12,240 @@ export interface ExperienceItem { bullets: string[]; } -export const experiences: ExperienceItem[] = [ +type ExperienceCopy = Pick< + ExperienceItem, + 'role' | 'company' | 'date' | 'location' | 'summary' | 'bullets' +>; + +interface ExperienceDefinition extends Omit { + content: Localized; +} + +const experienceDefinitions: ExperienceDefinition[] = [ { id: 'quera', - role: 'Software Engineer', - company: 'Quera', - date: 'NOV 2024 - PRESENT', - location: 'Tehran (Remote)', logo: '/images/logo-quera.png', isCurrent: true, - summary: - 'Contribute to internal engineering tools and educational products while also supporting developers and learners through mentoring and course development. My role combines software engineering, technical education, and problem design across backend development, databases, and algorithms.', - bullets: [ - 'Designed and implemented internal tools and services for staff', - 'Mentored learners and developers in programming and problem-solving', - 'Improved and designed educational programming courses in backend development, NoSQL, and SQL', - 'Designed algorithmic and implementation problems for the Python and Django contest at Technology Olympics 2025', - ], + content: { + en: { + role: 'Software Engineer', + company: 'Quera', + date: 'NOV 2024 - PRESENT', + location: 'Tehran (Remote)', + summary: + 'Contribute to internal engineering tools and educational products while also supporting developers and learners through mentoring and course development. My role combines software engineering, technical education, and problem design across backend development, databases, and algorithms.', + bullets: [ + 'Designed and implemented internal tools and services for staff', + 'Mentored learners and developers in programming and problem-solving', + 'Improved and designed educational programming courses in backend development, NoSQL, and SQL', + 'Designed algorithmic and implementation problems for the Python and Django contest at Technology Olympics 2025', + ], + }, + fa: { + role: 'مهندس نرم‌افزار', + company: 'کوئرا', + date: 'آبان ۱۴۰۳ تا امروز', + location: 'تهران (دورکاری)', + summary: + 'در توسعه ابزارهای داخلی مهندسی و محصولات آموزشی مشارکت دارم و با منتورینگ و طراحی دوره از برنامه‌نویسان و یادگیرندگان حمایت می‌کنم. این نقش مهندسی نرم‌افزار، آموزش فنی و طراحی مسئله را در حوزه Backend، پایگاه داده و الگوریتم‌ها کنار هم قرار می‌دهد.', + bullets: [ + 'ابزارها و سرویس‌های داخلی موردنیاز کارکنان را طراحی و پیاده‌سازی کردم', + 'در برنامه‌نویسی و حل مسئله به یادگیرندگان و توسعه‌دهندگان منتورینگ دادم', + 'دوره‌های برنامه‌نویسی Backend، NoSQL و SQL را طراحی و بهبود دادم', + 'برای رقابت Python و Django در المپیاد فناوری ۲۰۲۵، مسئله‌های الگوریتمی و پیاده‌سازی طراحی کردم', + ], + }, + }, }, { id: 'fiotrix', - role: 'Software Engineer', - company: 'Fiotrix', - date: 'NOV 2025 - MAR 2026', - location: 'Karaj, Alborz', logo: '/images/logo-fiotrix.png', isCurrent: false, - summary: - 'Worked across the backend, frontend, and infrastructure of production systems, with a strong focus on performance, maintainability, and reliable deployment. I contributed to both feature development and architectural improvements, including database migration, backend refactoring, and API optimization.', - bullets: [ - 'Developed backend services using Python, Django, and DRF', - 'Built frontend features with React and TypeScript', - 'Managed services with Docker, Nginx, PgBouncer, and MinIO', - 'Collaborated using Git and GitLab for version control and CI', - 'Refactored backend code and proposed a cleaner base architecture', - 'Designed a data migration pipeline from SQL Server to PostgreSQL', - 'Reduced API response times by approximately 80% through indexing and resolving N+1 queries', - ], + content: { + en: { + role: 'Software Engineer', + company: 'Fiotrix', + date: 'NOV 2025 - MAR 2026', + location: 'Karaj, Alborz', + summary: + 'Worked across the backend, frontend, and infrastructure of production systems, with a strong focus on performance, maintainability, and reliable deployment. I contributed to both feature development and architectural improvements, including database migration, backend refactoring, and API optimization.', + bullets: [ + 'Developed backend services using Python, Django, and DRF', + 'Built frontend features with React and TypeScript', + 'Managed services with Docker, Nginx, PgBouncer, and MinIO', + 'Collaborated using Git and GitLab for version control and CI', + 'Refactored backend code and proposed a cleaner base architecture', + 'Designed a data migration pipeline from SQL Server to PostgreSQL', + 'Reduced API response times by approximately 80% through indexing and resolving N+1 queries', + ], + }, + fa: { + role: 'مهندس نرم‌افزار', + company: 'فیوتریکس', + date: 'آبان ۱۴۰۴ تا اسفند ۱۴۰۴', + location: 'کرج، البرز', + summary: + 'روی Backend،‏ Frontend و زیرساخت سامانه‌های عملیاتی کار کردم و تمرکز اصلی‌ام کارایی، نگهداشت‌پذیری و استقرار قابل‌اعتماد بود. علاوه بر توسعه قابلیت‌ها، در بهبود معماری نیز نقش داشتم؛ از مهاجرت پایگاه داده و بازآرایی Backend تا بهینه‌سازی رابط‌های برنامه‌نویسی.', + bullets: [ + 'سرویس‌های Backend را با Python، Django و DRF توسعه دادم', + 'قابلیت‌های Frontend را با React و TypeScript ساختم', + 'سرویس‌ها را با Docker، Nginx، PgBouncer و MinIO مدیریت کردم', + 'برای همکاری تیمی، کنترل نسخه و یکپارچه‌سازی پیوسته از Git و GitLab استفاده کردم', + 'کد Backend را بازآرایی و معماری پایه تمیزتری پیشنهاد کردم', + 'یک خط لوله برای مهاجرت داده از SQL Server به PostgreSQL طراحی کردم', + 'با ایندکس‌گذاری و رفع کوئری‌های N+1، زمان پاسخ رابط‌های برنامه‌نویسی را حدود ۸۰٪ کاهش دادم', + ], + }, + }, }, { id: 'baduno', - role: 'Backend Developer', - company: 'Baduno', - date: 'OCT 2025 - NOV 2025', - location: 'Tehran, Tehran', logo: '/images/logo-baduno.png', isCurrent: false, - summary: - 'Built and deployed web scraping services with an emphasis on reusable architecture, reliability, and production readiness. My work included reverse engineering external platforms, handling anti-blocking challenges, and publishing API-based scraping services for external users.', - bullets: [ - 'Built Python and FastAPI web scraping services published on RapidAPI', - 'Developed and reverse-engineered a Google Maps scraper', - 'Designed reusable scraper workflows using the Template Method pattern', - 'Managed deployment and routing of FastAPI services using Caddy', - 'Wrote unit tests with pytest and load tests with Locust', - 'Implemented proxy rotation to reduce IP-blocking issues', - ], + content: { + en: { + role: 'Backend Developer', + company: 'Baduno', + date: 'OCT 2025 - NOV 2025', + location: 'Tehran, Tehran', + summary: + 'Built and deployed web scraping services with an emphasis on reusable architecture, reliability, and production readiness. My work included reverse engineering external platforms, handling anti-blocking challenges, and publishing API-based scraping services for external users.', + bullets: [ + 'Built Python and FastAPI web scraping services published on RapidAPI', + 'Developed and reverse-engineered a Google Maps scraper', + 'Designed reusable scraper workflows using the Template Method pattern', + 'Managed deployment and routing of FastAPI services using Caddy', + 'Wrote unit tests with pytest and load tests with Locust', + 'Implemented proxy rotation to reduce IP-blocking issues', + ], + }, + fa: { + role: 'توسعه‌دهنده بک‌اند', + company: 'بادونو', + date: 'مهر ۱۴۰۴ تا آبان ۱۴۰۴', + location: 'تهران، تهران', + summary: + 'سرویس‌های Web Scraping را با تمرکز بر معماری قابل‌استفاده مجدد، پایداری و آمادگی برای محیط واقعی ساختم و مستقر کردم. کارم شامل مهندسی معکوس پلتفرم‌های بیرونی، مدیریت چالش‌های مسدودسازی و انتشار سرویس‌های جمع‌آوری داده مبتنی بر رابط برنامه‌نویسی برای کاربران بیرونی بود.', + bullets: [ + 'سرویس‌های Web Scraping را با Python و FastAPI ساختم و در RapidAPI منتشر کردم', + 'ابزار جمع‌آوری داده از Google Maps را توسعه دادم و مهندسی معکوس کردم', + 'با الگوی روش قالب، گردش‌کارهای قابل‌استفاده مجدد برای جمع‌آوری داده طراحی کردم', + 'استقرار و مسیریابی سرویس‌های FastAPI را با Caddy مدیریت کردم', + 'با pytest تست واحد و با Locust تست بار نوشتم', + 'برای کاهش مشکل مسدودشدن نشانی‌های اینترنتی، چرخش پراکسی را پیاده‌سازی کردم', + ], + }, + }, }, { id: 'sharif-ta', - role: 'Teaching Assistant', - company: 'Sharif University of Technology', - date: 'OCT 2025 - JAN 2026', - location: 'Tehran, Tehran', logo: '/images/logo-sharif.png', isCurrent: false, - summary: - 'Supported introductory programming courses by helping students build strong foundations in programming concepts, problem-solving, and practical implementation while working alongside course instructors.', - bullets: [ - 'Fundamentals of Programming, Dr. Mohammad Nazari (1404-1)', - 'Fundamentals of Programming, Dr. Zahra Mafi (1404-1)', - ], + content: { + en: { + role: 'Teaching Assistant', + company: 'Sharif University of Technology', + date: 'OCT 2025 - JAN 2026', + location: 'Tehran, Tehran', + summary: + 'Supported introductory programming courses by helping students build strong foundations in programming concepts, problem-solving, and practical implementation while working alongside course instructors.', + bullets: [ + 'Fundamentals of Programming, Dr. Mohammad Nazari (1404-1)', + 'Fundamentals of Programming, Dr. Zahra Mafi (1404-1)', + ], + }, + fa: { + role: 'تدریس‌یار', + company: 'دانشگاه صنعتی شریف', + date: 'مهر ۱۴۰۴ تا دی ۱۴۰۴', + location: 'تهران، تهران', + summary: + 'در درس‌های مقدماتی برنامه‌نویسی کنار استادان درس، به دانشجویان کمک کردم پایه محکمی در مفاهیم برنامه‌نویسی، حل مسئله و پیاده‌سازی عملی بسازند.', + bullets: [ + 'مبانی برنامه‌نویسی، دکتر محمد نظری (۱۴۰۴-۱)', + 'مبانی برنامه‌نویسی، دکتر زهرا مافی (۱۴۰۴-۱)', + ], + }, + }, }, { id: 'guilan-assoc', - role: 'Head of Scientific Association of Computer Engineering', - company: 'University of Guilan', - date: 'SEP 2024 - JUN 2026', - location: 'Rasht, Guilan', logo: '/images/logo-guilan-assoc.png', isCurrent: false, - summary: - 'Led the Computer Engineering Scientific Association and helped organize its academic and community activities. The role involved coordinating teams, planning events, and managing ongoing tasks across both online and in-person initiatives.', - bullets: [ - 'Managed online and on-site events', - 'Coordinated tasks and team workflows using Notion', - ], + content: { + en: { + role: 'Head of Scientific Association of Computer Engineering', + company: 'University of Guilan', + date: 'SEP 2024 - JUN 2026', + location: 'Rasht, Guilan', + summary: + 'Led the Computer Engineering Scientific Association and helped organize its academic and community activities. The role involved coordinating teams, planning events, and managing ongoing tasks across both online and in-person initiatives.', + bullets: [ + 'Managed online and on-site events', + 'Coordinated tasks and team workflows using Notion', + ], + }, + fa: { + role: 'دبیر انجمن علمی مهندسی کامپیوتر', + company: 'دانشگاه گیلان', + date: 'شهریور ۱۴۰۳ تا خرداد ۱۴۰۵', + location: 'رشت، گیلان', + summary: + 'هدایت انجمن علمی مهندسی کامپیوتر و برنامه‌ریزی فعالیت‌های علمی و اجتماعی آن را بر عهده داشتم. در این نقش، تیم‌ها را هماهنگ می‌کردم، رویدادها را برنامه‌ریزی می‌کردم و کارهای جاری برنامه‌های آنلاین و حضوری را پیش می‌بردم.', + bullets: [ + 'رویدادهای آنلاین و حضوری را مدیریت کردم', + 'کارها و گردش‌کار تیم را با Notion هماهنگ کردم', + ], + }, + }, }, { id: 'guilan-ta-head', - role: 'Head of Teaching Assistants', - company: 'University of Guilan', - date: 'SEP 2024 - JAN 2026', - location: 'Rasht, Guilan', logo: '/images/logo-guilan-ta.png', isCurrent: false, - summary: - 'Coordinated teaching assistant activities across multiple Computer Engineering courses, combining academic support with team organization and course-level responsibilities across programming, databases, systems, and software engineering.', - bullets: [ - 'Fundamentals of Programming (1403-1)', - 'Computer Workshop (1403-1)', - 'Database Design (1403-1 & 1403-2)', - 'System Analysis and Design (1403-2)', - 'OS Fundamentals & Lab (1403-1)', - 'Software Engineering (1404-1)', - 'Data Structures & Algorithms (1404-1)', - ], + content: { + en: { + role: 'Head of Teaching Assistants', + company: 'University of Guilan', + date: 'SEP 2024 - JAN 2026', + location: 'Rasht, Guilan', + summary: + 'Coordinated teaching assistant activities across multiple Computer Engineering courses, combining academic support with team organization and course-level responsibilities across programming, databases, systems, and software engineering.', + bullets: [ + 'Fundamentals of Programming (1403-1)', + 'Computer Workshop (1403-1)', + 'Database Design (1403-1 & 1403-2)', + 'System Analysis and Design (1403-2)', + 'OS Fundamentals & Lab (1403-1)', + 'Software Engineering (1404-1)', + 'Data Structures & Algorithms (1404-1)', + ], + }, + fa: { + role: 'سرپرست تدریس‌یارها', + company: 'دانشگاه گیلان', + date: 'شهریور ۱۴۰۳ تا دی ۱۴۰۴', + location: 'رشت، گیلان', + summary: + 'فعالیت تدریس‌یارهای چند درس مهندسی کامپیوتر را هماهنگ کردم. این مسئولیت، پشتیبانی آموزشی و مدیریت تیم را در درس‌های برنامه‌نویسی، پایگاه داده، سیستم‌ها و مهندسی نرم‌افزار کنار هم قرار می‌داد.', + bullets: [ + 'مبانی برنامه‌نویسی (۱۴۰۳-۱)', + 'کارگاه کامپیوتر (۱۴۰۳-۱)', + 'طراحی پایگاه داده (۱۴۰۳-۱ و ۱۴۰۳-۲)', + 'تحلیل و طراحی سیستم (۱۴۰۳-۲)', + 'مبانی سیستم‌عامل و آزمایشگاه (۱۴۰۳-۱)', + 'مهندسی نرم‌افزار (۱۴۰۴-۱)', + 'ساختمان داده و الگوریتم‌ها (۱۴۰۴-۱)', + ], + }, + }, }, ]; + +export const getExperiences = (locale: Locale): ExperienceItem[] => + experienceDefinitions.map(({ content, ...experience }) => ({ + ...experience, + ...content[locale], + })); + +export const experiences = getExperiences('en'); diff --git a/src/data/milestones.ts b/src/data/milestones.ts index b00aa06..6ecf667 100644 --- a/src/data/milestones.ts +++ b/src/data/milestones.ts @@ -1,3 +1,5 @@ +import type { Locale, Localized } from '@/i18n/content'; + export interface MilestoneItem { id: string; title: string; @@ -8,54 +10,126 @@ export interface MilestoneItem { link?: string; } -export const milestones: MilestoneItem[] = [ +type MilestoneCopy = Pick< + MilestoneItem, + 'title' | 'issuer' | 'date' | 'description' +>; + +interface MilestoneDefinition extends Omit { + content: Localized; +} + +const milestoneDefinitions: MilestoneDefinition[] = [ { id: 'hackathon', - title: 'Agentic AI Development Hackathon', - issuer: 'Startcoach.ir', - date: 'AUGUST 2026', - description: - 'This hackathon gave me the opportunity to explore the rapidly evolving field of agentic AI through hands-on problem-solving and experimentation. Working within a limited timeframe encouraged rapid learning, technical decision-making, and creative thinking while deepening my understanding of how AI-driven systems can be designed to solve practical problems.', image: '/images/cert-hackathon.png', link: 'https://starcoach.ir/certificate/STC20263139', + content: { + en: { + title: 'Agentic AI Development Hackathon', + issuer: 'Startcoach.ir', + date: 'AUGUST 2026', + description: + 'This hackathon gave me the opportunity to explore the rapidly evolving field of agentic AI through hands-on problem-solving and experimentation. Working within a limited timeframe encouraged rapid learning, technical decision-making, and creative thinking while deepening my understanding of how AI-driven systems can be designed to solve practical problems.', + }, + fa: { + title: 'هکاتون توسعه هوش مصنوعی عامل‌محور', + issuer: 'استارکوچ', + date: 'مرداد ۱۴۰۵', + description: + 'این هکاتون فرصتی بود تا حوزه رو به رشد هوش مصنوعی عامل‌محور را با حل مسئله و آزمون عملی بهتر بشناسم. محدودیت زمان باعث شد سریع‌تر یاد بگیرم، تصمیم‌های فنی را به‌موقع بگیرم و راه‌حل‌های خلاقانه را امتحان کنم. در این مسیر، درکم از طراحی سامانه‌های هوشمند برای حل مسئله‌های واقعی عمیق‌تر شد.', + }, + }, }, { id: 'icpc-2025', - title: 'ICPC 2025 Regional Finalist', - issuer: 'International Collegiate Programming Contest (ICPC)', - date: 'AUGUST 2025', - description: - 'Competing as an ICPC Regional Finalist challenged me to solve complex algorithmic problems under strict time constraints while working closely with my teammates. The experience strengthened my problem-solving, algorithmic thinking, communication, and ability to stay focused when approaching unfamiliar technical challenges.', image: '/images/cert-icpc-2025.png', link: 'https://www.linkedin.com/in/amiirkhl/overlay/Certifications/1331555202/treasury/?profileId=ACoAAEJsAwMBCv3L9dYcEXWam-l3pLOJ3UspX7w', + content: { + en: { + title: 'ICPC 2025 Regional Finalist', + issuer: 'International Collegiate Programming Contest (ICPC)', + date: 'AUGUST 2025', + description: + 'Competing as an ICPC Regional Finalist challenged me to solve complex algorithmic problems under strict time constraints while working closely with my teammates. The experience strengthened my problem-solving, algorithmic thinking, communication, and ability to stay focused when approaching unfamiliar technical challenges.', + }, + fa: { + title: 'فینالیست منطقه‌ای مسابقات جهانی برنامه‌نویسی دانشجویی ۲۰۲۵', + issuer: 'مسابقات جهانی برنامه‌نویسی دانشجویی', + date: 'مرداد ۱۴۰۴', + description: + 'حضور در مرحله نهایی منطقه‌ای مسابقات جهانی برنامه‌نویسی دانشجویی من را وادار کرد زیر فشار زمانی سخت و در همکاری نزدیک با هم‌تیمی‌هایم، مسئله‌های الگوریتمی پیچیده را حل کنم. این تجربه مهارت حل مسئله، تفکر الگوریتمی، ارتباط تیمی و تمرکزم هنگام روبه‌روشدن با چالش‌های فنی ناآشنا را تقویت کرد.', + }, + }, }, { id: 'pm-bootcamp', - title: 'Product Management Bootcamp', - issuer: 'Prodemy.ir', - date: 'JANUARY 2026', - description: - 'This bootcamp expanded my perspective beyond engineering and helped me better understand how successful products are shaped around real user needs and business goals. I explored product thinking, discovery, prioritization, planning, and cross-functional collaboration, strengthening my ability to connect technical decisions with the bigger picture of a product.', image: '/images/cert-bootcamp.png', link: 'https://www.linkedin.com/in/amiirkhl/overlay/Certifications/812043696/treasury/?profileId=ACoAAEJsAwMBCv3L9dYcEXWam-l3pLOJ3UspX7w', + content: { + en: { + title: 'Product Management Bootcamp', + issuer: 'Prodemy.ir', + date: 'JANUARY 2026', + description: + 'This bootcamp expanded my perspective beyond engineering and helped me better understand how successful products are shaped around real user needs and business goals. I explored product thinking, discovery, prioritization, planning, and cross-functional collaboration, strengthening my ability to connect technical decisions with the bigger picture of a product.', + }, + fa: { + title: 'بوت‌کمپ مدیریت محصول', + issuer: 'پرودمی', + date: 'دی ۱۴۰۴', + description: + 'این بوت‌کمپ نگاهم را از مهندسی فراتر برد و کمک کرد بفهمم محصول موفق چطور بر اساس نیاز واقعی کاربر و هدف کسب‌وکار شکل می‌گیرد. در این دوره با تفکر محصول، کشف مسئله، اولویت‌بندی، برنامه‌ریزی و همکاری میان‌تیمی کار کردم و یاد گرفتم تصمیم‌های فنی را به تصویر کلی محصول وصل کنم.', + }, + }, }, { id: 'icpc-2024', - title: 'ICPC 2024 - Online Participant', - issuer: 'International Collegiate Programming Contest (ICPC)', - date: 'SEPTEMBER 2024', - description: - 'Participating in ICPC gave me valuable exposure to competitive programming and pushed me to approach problems with greater structure, speed, and precision. It helped strengthen my foundations in algorithms and data structures while motivating me to continue developing the skills needed for higher-level programming competitions.', image: '/images/cert-icpc-2024.png', + content: { + en: { + title: 'ICPC 2024 - Online Participant', + issuer: 'International Collegiate Programming Contest (ICPC)', + date: 'SEPTEMBER 2024', + description: + 'Participating in ICPC gave me valuable exposure to competitive programming and pushed me to approach problems with greater structure, speed, and precision. It helped strengthen my foundations in algorithms and data structures while motivating me to continue developing the skills needed for higher-level programming competitions.', + }, + fa: { + title: 'شرکت‌کننده آنلاین مسابقات جهانی برنامه‌نویسی دانشجویی ۲۰۲۴', + issuer: 'مسابقات جهانی برنامه‌نویسی دانشجویی', + date: 'شهریور ۱۴۰۳', + description: + 'شرکت در این مسابقات من را با برنامه‌نویسی رقابتی آشناتر کرد و واداشت مسئله‌ها را منظم‌تر، سریع‌تر و دقیق‌تر حل کنم. این تجربه پایه‌ام را در الگوریتم و ساختمان داده تقویت کرد و انگیزه‌ام را برای آماده‌شدن جهت رقابت‌های سطح بالاتر بیشتر کرد.', + }, + }, }, { id: 'django-bootcamp', - title: 'Backend development with Django Bootcamp', - issuer: 'Quera.org', - date: 'NOVEMBER 2024', - description: - 'This bootcamp strengthened my foundations in backend development and helped turn my knowledge of Python into practical web engineering skills. Through Django, I developed a deeper understanding of backend architecture, databases, APIs, authentication, and building maintainable server-side applications. These skills later became a major part of my software engineering work.', image: '/images/cert-django.png', link: 'https://quera.org/certificate/F1mYkTZR/', + content: { + en: { + title: 'Backend development with Django Bootcamp', + issuer: 'Quera.org', + date: 'NOVEMBER 2024', + description: + 'This bootcamp strengthened my foundations in backend development and helped turn my knowledge of Python into practical web engineering skills. Through Django, I developed a deeper understanding of backend architecture, databases, APIs, authentication, and building maintainable server-side applications. These skills later became a major part of my software engineering work.', + }, + fa: { + title: 'بوت‌کمپ توسعه Backend با Django', + issuer: 'کوئرا', + date: 'آبان ۱۴۰۳', + description: + 'این بوت‌کمپ پایه‌ام را در توسعه Backend تقویت کرد و دانسته‌هایم در Python را به مهارت‌های عملی مهندسی وب نزدیک‌تر کرد. با Django درک عمیق‌تری از معماری Backend، پایگاه داده، رابط برنامه‌نویسی، احراز هویت و ساخت برنامه‌های سمت سرور با نگهداشت‌پذیری بالا پیدا کردم. بعدها همین مهارت‌ها بخش مهمی از کارم در مهندسی نرم‌افزار شدند.', + }, + }, }, ]; + +export const getMilestones = (locale: Locale): MilestoneItem[] => + milestoneDefinitions.map(({ content, ...milestone }) => ({ + ...milestone, + ...content[locale], + })); + +export const milestones = getMilestones('en'); diff --git a/src/data/projects.ts b/src/data/projects.ts index b6b8e40..c8a130d 100644 --- a/src/data/projects.ts +++ b/src/data/projects.ts @@ -1,3 +1,5 @@ +import type { Locale, Localized } from '@/i18n/content'; + export interface Project { id: string; title: string; @@ -8,73 +10,157 @@ export interface Project { image: string; } -export const projects: Project[] = [ +type ProjectCopy = Pick; + +interface ProjectDefinition extends Omit { + content: Localized; +} + +const projectDefinitions: ProjectDefinition[] = [ { id: 'qlockify', - title: 'Qlockify', link: 'https://qlockfiy.ir', - date: 'FEB 2026 - PRESENT', - description: - 'Built a production-ready time tracking platform for teams and freelancers to manage workspaces, projects, billable hours, and reports in one place. Users can track their work time, organize it by project, manage access inside each workspace, generate reports for admins and clients, and export insights.', tags: ['Django', 'React', 'Docker', 'UI/UX Design'], image: '/images/project-qlockify.png', + content: { + en: { + title: 'Qlockify', + date: 'FEB 2026 - PRESENT', + description: + 'Built a production-ready time tracking platform for teams and freelancers to manage workspaces, projects, billable hours, and reports in one place. Users can track their work time, organize it by project, manage access inside each workspace, generate reports for admins and clients, and export insights.', + }, + fa: { + title: 'Qlockify', + date: 'بهمن ۱۴۰۴ تا امروز', + description: + 'یک پلتفرم آماده استفاده در محیط واقعی برای ثبت زمان تیم‌ها و فریلنسرها ساختم تا فضاهای کاری، پروژه‌ها، ساعت‌های قابل‌صورتحساب و گزارش‌ها را یک‌جا مدیریت کنند. کاربران می‌توانند زمان کارشان را ثبت و بر اساس پروژه دسته‌بندی کنند، دسترسی‌های هر فضای کاری را مدیریت کنند، برای مدیران و مشتریان گزارش بسازند و خروجی بگیرند.', + }, + }, }, { id: 'guilan-ace', - title: 'Guilan ACE', link: 'https://east-guilan-ce.ir/', - date: 'JUL 2025 - PRESENT', - description: - 'Developed the Scientific Association of Computer Engineering website for event management and article publishing, helping members organize activities and users register for events, read blog posts, and share ideas through comments.', tags: ['Django Ninja', 'Next.js', 'Docker'], image: '/images/project-guilan-ace.png', + content: { + en: { + title: 'Guilan ACE', + date: 'JUL 2025 - PRESENT', + description: + 'Developed the Scientific Association of Computer Engineering website for event management and article publishing, helping members organize activities and users register for events, read blog posts, and share ideas through comments.', + }, + fa: { + title: 'انجمن علمی مهندسی کامپیوتر گیلان', + date: 'تیر ۱۴۰۴ تا امروز', + description: + 'وب‌سایت انجمن علمی مهندسی کامپیوتر را برای مدیریت رویدادها و انتشار مقاله توسعه دادم. اعضا می‌توانند فعالیت‌ها را سامان دهند و کاربران هم برای رویدادها ثبت‌نام کنند، نوشته‌های وبلاگ را بخوانند و نظرشان را در بخش دیدگاه‌ها به اشتراک بگذارند.', + }, + }, }, { id: 'zarinpal', - title: 'Zarinpal Analytic Dashboard', link: 'https://zarinpal.amiirkhl.ir/', - date: 'AUG 2026', - description: - "AI-based dashboard for analytics insight on merchant's transactions in their different terminals and suggesting profitable campaigns to hold in special occasions based on their historical transactions and upcoming events in Persian calendar and international events that affect Iranian markets.", tags: ['Go', 'SvelteKit', 'Docker'], image: '/images/project-zarinpal.png', + content: { + en: { + title: 'Zarinpal Analytic Dashboard', + date: 'AUG 2026', + description: + "AI-based dashboard for analytics insight on merchant's transactions in their different terminals and suggesting profitable campaigns to hold in special occasions based on their historical transactions and upcoming events in Persian calendar and international events that affect Iranian markets.", + }, + fa: { + title: 'داشبورد تحلیلی زرین‌پال', + date: 'مرداد ۱۴۰۵', + description: + 'داشبوردی مبتنی بر هوش مصنوعی برای تحلیل تراکنش‌های پذیرنده در پایانه‌های مختلف و پیشنهاد کمپین‌های سودآور برای مناسبت‌ها ساختم. پیشنهادها بر اساس سابقه تراکنش‌ها، رویدادهای پیش رو در تقویم فارسی و رویدادهای بین‌المللی اثرگذار بر بازار ایران تهیه می‌شوند.', + }, + }, }, { id: 'iran-implant', - title: 'Iran Implant', link: 'http://impinternal.com/', - date: 'NOV 2025 - MAR 2026', - description: - 'Developed the backend of Iran Implant, an internal management system for a specialized dental clinic, enabling staff to manage appointments, treatment rooms, payments, prescriptions, and laboratory orders through a centralized platform.', tags: ['Django', 'Nginx', 'Docker', 'Label'], image: '/images/project-iran-implant.png', + content: { + en: { + title: 'Iran Implant', + date: 'NOV 2025 - MAR 2026', + description: + 'Developed the backend of Iran Implant, an internal management system for a specialized dental clinic, enabling staff to manage appointments, treatment rooms, payments, prescriptions, and laboratory orders through a centralized platform.', + }, + fa: { + title: 'ایران ایمپلنت', + date: 'آبان ۱۴۰۴ تا اسفند ۱۴۰۴', + description: + 'بخش سمت سرور سامانه مدیریت داخلی ایران ایمپلنت را برای یک کلینیک تخصصی دندان‌پزشکی توسعه دادم. کارکنان از طریق یک سامانه متمرکز، نوبت‌ها، اتاق‌های درمان، پرداخت‌ها، نسخه‌ها و سفارش‌های آزمایشگاه را مدیریت می‌کنند.', + }, + }, }, { id: 'interanet-solutions', - title: 'Interanet Solutions', - date: 'MAR - JUN 2026', - description: - 'Developed a collection of self-hosted infrastructure and deployment solutions for environments with restricted international Internet access, including automated server bootstrap scripts and deployments for tools such as GitLab/Gitea (GitHub), Penpot (Figma), and Jitsi (Google Meet).', tags: ['Bash', 'Caddy', 'Docker', 'DevOps'], image: '/images/project-interanet-solutions.png', + content: { + en: { + title: 'Interanet Solutions', + date: 'MAR - JUN 2026', + description: + 'Developed a collection of self-hosted infrastructure and deployment solutions for environments with restricted international Internet access, including automated server bootstrap scripts and deployments for tools such as GitLab/Gitea (GitHub), Penpot (Figma), and Jitsi (Google Meet).', + }, + fa: { + title: 'راهکارهای اینترانت', + date: 'اسفند ۱۴۰۴ تا خرداد ۱۴۰۵', + description: + 'مجموعه‌ای از راهکارهای زیرساخت و استقرار خودمیزبان برای محیط‌هایی با دسترسی محدود به اینترنت بین‌المللی توسعه دادم. این مجموعه شامل اسکریپت‌های خودکار راه‌اندازی اولیه سرور و استقرار ابزارهایی مانند GitLab و Gitea به‌جای GitHub،‏ Penpot به‌جای Figma و Jitsi به‌جای Google Meet است.', + }, + }, }, { id: 'postgresql-job-queue', - title: 'PostgreSQL Job Queue', - date: 'JUN 2026', - description: - 'Built a lightweight background job system for running slow or unreliable tasks outside the main request flow. The project focuses on making job execution safe and predictable: multiple workers can pick up work at the same time without blocking each other, failed jobs are retried safely, and work remains recoverable.', tags: ['Go', 'SvelteKit', 'Docker'], image: '/images/project-postgresql-job-queue.png', + content: { + en: { + title: 'PostgreSQL Job Queue', + date: 'JUN 2026', + description: + 'Built a lightweight background job system for running slow or unreliable tasks outside the main request flow. The project focuses on making job execution safe and predictable: multiple workers can pick up work at the same time without blocking each other, failed jobs are retried safely, and work remains recoverable.', + }, + fa: { + title: 'صف کار PostgreSQL', + date: 'خرداد ۱۴۰۵', + description: + 'یک سیستم سبک برای اجرای کارهای پس‌زمینه ساختم تا کارهای کند یا ناپایدار بیرون از مسیر اصلی درخواست اجرا شوند. چند پردازش‌گر می‌توانند هم‌زمان و بدون مسدودکردن یکدیگر کار بردارند، کارهای ناموفق با سازوکاری امن دوباره اجرا می‌شوند و در صورت وقفه قابل‌بازیابی می‌مانند.', + }, + }, }, { id: 'subsource', - title: 'Subsource', link: 'http://subsource.net/', - date: 'MAY 2024', - description: - 'Designed the end-to-end UI/UX for SubSource, a subtitle discovery and download platform serving movie and TV audiences across multiple languages. Focused on simplifying content discovery, organizing information-heavy interfaces, and creating intuitive user flows across the product.', tags: ['Product Design', 'Figma', 'Prototyping'], image: '/images/project-subsource.png', + content: { + en: { + title: 'Subsource', + date: 'MAY 2024', + description: + 'Designed the end-to-end UI/UX for SubSource, a subtitle discovery and download platform serving movie and TV audiences across multiple languages. Focused on simplifying content discovery, organizing information-heavy interfaces, and creating intuitive user flows across the product.', + }, + fa: { + title: 'ساب‌سورس', + date: 'اردیبهشت ۱۴۰۳', + description: + 'طراحی کامل رابط و تجربه کاربری پلتفرم ساب‌سورس را انجام دادم؛ سرویسی برای پیدا کردن و دانلود زیرنویس فیلم و سریال به زبان‌های مختلف. تمرکزم بر ساده‌کردن جست‌وجوی محتوا، مرتب‌کردن رابط‌های پرجزئیات و طراحی مسیرهای کاربری روشن در سراسر محصول بود.', + }, + }, }, ]; + +export const getProjects = (locale: Locale): Project[] => + projectDefinitions.map(({ content, ...project }) => ({ + ...project, + ...content[locale], + })); + +export const projects = getProjects('en'); diff --git a/src/i18n/content.ts b/src/i18n/content.ts new file mode 100644 index 0000000..d862c9c --- /dev/null +++ b/src/i18n/content.ts @@ -0,0 +1,332 @@ +export const locales = ['en', 'fa'] as const; + +export type Locale = (typeof locales)[number]; +export type Localized = Record; + +export interface SiteMessages { + metadata: { + title: string; + description: string; + keywords: string[]; + }; + loader: { + signature: string; + message: string; + ariaLabel: (progress: number) => string; + progressLabel: (progress: number) => string; + }; + hero: { + sectionLabel: string; + themeLightLabel: string; + themeDarkLabel: string; + languageButtonLabel: string; + languageMenuLabel: string; + englishLabel: string; + persianLabel: string; + avatarAlt: string; + titleLabel: string; + greeting: string; + name: string; + subtitle: string; + blog: string; + blogLabel: string; + courses: string; + coursesLabel: string; + comingSoon: string; + contact: string; + contactLabel: string; + }; + about: { + eyebrow: string; + title: string; + description: string; + journeyLabel: string; + steps: Array<{ title: string; description: string }>; + }; + projects: { + eyebrow: string; + title: string; + previousLabel: string; + nextLabel: string; + carouselLabel: string; + carouselRoleDescription: string; + scrollbarLabel: string; + viewCaseStudy: string; + }; + experience: { + title: string; + logoAlt: (company: string) => string; + }; + skills: { + eyebrow: string; + title: string; + skillsLabel: string; + toolsLabel: string; + filterLabel: string; + filterLabels: Record< + 'software-engineering' | 'product-management' | 'design-ux', + string + >; + }; + education: { + title: string; + }; + milestones: { + eyebrow: string; + title: string; + viewCertificate: string; + viewCertificateLabel: (title: string) => string; + }; + footer: { + title: string; + subtitle: string; + emailLabel: string; + contactsLabel: string; + sceneLabel: string; + phone: string; + linkedin: string; + github: string; + telegram: string; + }; +} + +const formatPersianNumber = (value: number) => + new Intl.NumberFormat('fa-IR', { useGrouping: false }).format(value); + +export const messagesByLocale = { + en: { + metadata: { + title: 'Amirhossein Khalili | Dedicated Product Engineer', + description: + 'Personal portfolio of Amirhossein Khalili, Product Engineer & Software Developer based in Iran.', + keywords: [ + 'Amirhossein Khalili', + 'Product Engineer', + 'Software Engineer', + 'Full Stack Developer', + 'Portfolio', + ], + }, + loader: { + signature: 'Amirhossein Khalili', + message: 'Assembling the experience', + ariaLabel: (progress) => `Loading portfolio: ${progress}%`, + progressLabel: (progress) => `${progress}%`, + }, + hero: { + sectionLabel: 'Introduction', + themeLightLabel: 'Switch to light mode', + themeDarkLabel: 'Switch to dark mode', + languageButtonLabel: 'Choose language', + languageMenuLabel: 'Languages', + englishLabel: 'English', + persianLabel: 'Persian', + avatarAlt: 'Amirhossein Khalili', + titleLabel: "Hi, I'm Amirhossein Khalili", + greeting: "Hi, I'm", + name: 'Amirhossein Khalili', + subtitle: 'Product engineer building useful, resilient software.', + blog: 'Blog', + blogLabel: 'Blog, coming soon', + courses: 'Courses', + coursesLabel: 'Courses, coming soon', + comingSoon: 'Coming soon', + contact: 'Get in touch', + contactLabel: 'Get in touch on LinkedIn', + }, + about: { + eyebrow: 'ABOUT ME', + title: 'From Pixel to Product', + description: + 'I began as a digital artist, designing visual stories. Curiosity turned into code, and code into systems that solve real problems. Today, I build products end-to-end using agentic workflows that blend creativity, engineering, and product thinking.', + journeyLabel: 'Career journey', + steps: [ + { + title: 'Digital Artist', + description: 'Explored visual design, illustration and storytelling.', + }, + { + title: 'UI/UX Designer', + description: 'Designed intuitive interfaces and user-centered experiences.', + }, + { + title: 'Computer Science', + description: 'Built strong foundations in algorithms and systems thinking.', + }, + { + title: 'Software Engineer', + description: 'Engineered scalable applications and delivered real-world solutions.', + }, + { + title: 'Product Engineer', + description: + 'Merging product strategy with engineering to ship impactful products.', + }, + ], + }, + projects: { + eyebrow: 'PROJECTS', + title: "Products I've Brought to Life", + previousLabel: 'Previous projects', + nextLabel: 'Next projects', + carouselLabel: 'Scrollable project cards', + carouselRoleDescription: 'carousel', + scrollbarLabel: 'Project carousel position', + viewCaseStudy: 'View case study', + }, + experience: { + title: "Where I've Made an Impact", + logoAlt: (company) => `${company} logo`, + }, + skills: { + eyebrow: 'SKILLS & TOOLS', + title: 'The Stack Behind the Work...', + skillsLabel: 'SKILLS', + toolsLabel: 'TOOLS', + filterLabel: 'Choose skill discipline', + filterLabels: { + 'software-engineering': 'Software Engineering', + 'product-management': 'Product Management', + 'design-ux': 'Design & UX', + }, + }, + education: { + title: 'Where I Built the Foundation', + }, + milestones: { + eyebrow: 'AWARDS & ACHIEVEMENTS', + title: 'Milestones Along the Way', + viewCertificate: 'View certificate', + viewCertificateLabel: (title) => `View ${title} certificate`, + }, + footer: { + title: "Let's build something meaningful.", + subtitle: 'Open to opportunities and interesting projects.', + emailLabel: 'Send email to amirhosseinkhalili901@gmail.com', + contactsLabel: 'Social and contact links', + sceneLabel: 'Interactive 3D isometric footer scene', + phone: 'Phone', + linkedin: 'LinkedIn', + github: 'GitHub', + telegram: 'Telegram', + }, + }, + fa: { + metadata: { + title: 'امیرحسین خلیلی | مهندس محصول و توسعه‌دهنده نرم‌افزار', + description: + 'نمونه‌کارهای شخصی امیرحسین خلیلی، مهندس محصول و توسعه‌دهنده نرم‌افزار ساکن ایران.', + keywords: [ + 'امیرحسین خلیلی', + 'مهندس محصول', + 'مهندس نرم‌افزار', + 'توسعه‌دهنده فول‌استک', + 'نمونه‌کار', + ], + }, + loader: { + signature: 'امیرحسین خلیلی', + message: 'در حال آماده‌سازی صفحه', + ariaLabel: (progress) => + `در حال بارگذاری نمونه‌کارها: ${formatPersianNumber(progress)}٪`, + progressLabel: (progress) => `${formatPersianNumber(progress)}٪`, + }, + hero: { + sectionLabel: 'معرفی', + themeLightLabel: 'رفتن به حالت روشن', + themeDarkLabel: 'رفتن به حالت تاریک', + languageButtonLabel: 'انتخاب زبان', + languageMenuLabel: 'زبان‌ها', + englishLabel: 'انگلیسی', + persianLabel: 'فارسی', + avatarAlt: 'امیرحسین خلیلی', + titleLabel: 'سلام، من امیرحسین خلیلی هستم', + greeting: 'سلام، من', + name: 'امیرحسین خلیلی هستم', + subtitle: 'مهندس محصولم و نرم‌افزارهایی می‌سازم که کاربردی‌اند و دوام می‌آورند.', + blog: 'وبلاگ', + blogLabel: 'وبلاگ، به‌زودی', + courses: 'دوره‌ها', + coursesLabel: 'دوره‌ها، به‌زودی', + comingSoon: 'به‌زودی', + contact: 'ارتباط با من', + contactLabel: 'ارسال پیام در لینکدین', + }, + about: { + eyebrow: 'درباره من', + title: 'از پیکسل تا محصول', + description: + 'کارم را با هنر دیجیتال و روایت تصویری شروع کردم. کنجکاوی من را به سمت کدنویسی برد و کد کم‌کم به سیستم‌هایی تبدیل شد که مسئله‌های واقعی را حل می‌کنند. امروز با کمک گردش‌کارهای عامل‌محور، محصول را از ایده تا اجرا می‌سازم و طراحی، مهندسی و نگاه محصولی را کنار هم می‌گذارم.', + journeyLabel: 'مسیر حرفه‌ای', + steps: [ + { + title: 'طراح دیجیتال', + description: 'طراحی بصری، تصویرسازی و روایت‌گری را تجربه کردم.', + }, + { + title: 'طراح UI/UX', + description: 'رابط‌های ساده و تجربه‌های کاربرمحور طراحی کردم.', + }, + { + title: 'مهندسی کامپیوتر', + description: 'پایه‌ام را در الگوریتم‌ها و تفکر سیستمی محکم کردم.', + }, + { + title: 'مهندسی نرم‌افزار', + description: 'نرم‌افزارهای مقیاس‌پذیر ساختم و برای مسئله‌های واقعی راه‌حل ارائه دادم.', + }, + { + title: 'مهندسی محصول', + description: + 'استراتژی محصول و مهندسی را کنار هم می‌گذارم تا محصولاتی بسازم که اثر مشخصی دارند.', + }, + ], + }, + projects: { + eyebrow: 'پروژه‌ها', + title: 'محصولاتی که از ایده به واقعیت رسانده‌ام', + previousLabel: 'پروژه‌های قبلی', + nextLabel: 'پروژه‌های بعدی', + carouselLabel: 'فهرست افقی پروژه‌ها', + carouselRoleDescription: 'گردونه', + scrollbarLabel: 'موقعیت در فهرست پروژه‌ها', + viewCaseStudy: 'دیدن مطالعه موردی', + }, + experience: { + title: 'جاهایی که اثر گذاشته‌ام', + logoAlt: (company) => `نشان ${company}`, + }, + skills: { + eyebrow: 'مهارت‌ها و ابزارها', + title: 'پشت این کارها چه مهارت‌ها و ابزارهایی است؟', + skillsLabel: 'مهارت‌ها', + toolsLabel: 'ابزارها', + filterLabel: 'انتخاب حوزه مهارت', + filterLabels: { + 'software-engineering': 'مهندسی نرم‌افزار', + 'product-management': 'مدیریت محصول', + 'design-ux': 'طراحی و تجربه کاربری', + }, + }, + education: { + title: 'پایه‌های مسیرم کجا شکل گرفت', + }, + milestones: { + eyebrow: 'جایزه‌ها و دستاوردها', + title: 'چند نقطه مهم در مسیرم', + viewCertificate: 'دیدن گواهی', + viewCertificateLabel: (title) => `دیدن گواهی ${title}`, + }, + footer: { + title: 'بیایید چیزی بسازیم که ارزشش را داشته باشد.', + subtitle: 'برای فرصت‌های کاری و پروژه‌های جالب آماده گفت‌وگو هستم.', + emailLabel: 'ارسال ایمیل به amirhosseinkhalili901@gmail.com', + contactsLabel: 'راه‌های ارتباطی و شبکه‌های اجتماعی', + sceneLabel: 'نمای تعاملی سه‌بعدی راه‌های ارتباطی', + phone: 'تلفن', + linkedin: 'لینکدین', + github: 'گیت‌هاب', + telegram: 'تلگرام', + }, + }, +} satisfies Record; From 3af34dbd9276e8b5cb2221e54c06199e3da498c3 Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Tue, 8 Sep 2026 19:21:26 +0330 Subject: [PATCH 3/6] feat: render locale-aware portfolio routes --- public/images/flags/LICENSE | 393 ++++++++++++++++++ public/images/flags/english.svg | 1 + public/images/flags/persian.svg | 1 + src/app/(en)/layout.tsx | 12 + src/app/(en)/page.tsx | 5 + src/app/(fa)/fa/layout.tsx | 12 + src/app/(fa)/fa/page.tsx | 5 + src/app/{page.tsx => PortfolioPage.tsx} | 35 +- src/app/{layout.tsx => SiteRoot.tsx} | 29 +- src/components/EducationSection.tsx | 11 +- src/components/ExperienceSection.tsx | 13 +- src/components/FooterSection.tsx | 6 +- src/components/HeroSection.tsx | 141 ++++++- src/components/IsometricFooter/IsoTypes.ts | 3 +- .../IsometricFooter/IsometricFooter.tsx | 29 +- .../IsometricFooter/IsometricScene.tsx | 4 +- src/components/MilestonesSection.tsx | 25 +- src/components/ProjectsSection.tsx | 163 +++++--- src/components/RiverJourney.tsx | 38 +- src/components/ScenicHeroJourney.tsx | 12 +- src/components/SiteLoader.tsx | 12 +- src/components/SkillsSection.tsx | 33 +- 22 files changed, 797 insertions(+), 186 deletions(-) create mode 100644 public/images/flags/LICENSE create mode 100644 public/images/flags/english.svg create mode 100644 public/images/flags/persian.svg create mode 100644 src/app/(en)/layout.tsx create mode 100644 src/app/(en)/page.tsx create mode 100644 src/app/(fa)/fa/layout.tsx create mode 100644 src/app/(fa)/fa/page.tsx rename src/app/{page.tsx => PortfolioPage.tsx} (50%) rename src/app/{layout.tsx => SiteRoot.tsx} (54%) diff --git a/public/images/flags/LICENSE b/public/images/flags/LICENSE new file mode 100644 index 0000000..dc8853a --- /dev/null +++ b/public/images/flags/LICENSE @@ -0,0 +1,393 @@ +Attribution 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution 4.0 International Public License ("Public License"). To the +extent this Public License may be interpreted as a contract, You are +granted the Licensed Rights in consideration of Your acceptance of +these terms and conditions, and the Licensor grants You such rights in +consideration of benefits the Licensor receives from making the +Licensed Material available under these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + d. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + g. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + i. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's + License You apply must not prevent recipients of the Adapted + Material from complying with this Public License. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public licenses. +Notwithstanding, Creative Commons may elect to apply one of its public +licenses to material it publishes and in those instances will be +considered the "Licensor." Except for the limited purpose of indicating +that material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the public +licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/public/images/flags/english.svg b/public/images/flags/english.svg new file mode 100644 index 0000000..21b97e9 --- /dev/null +++ b/public/images/flags/english.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/flags/persian.svg b/public/images/flags/persian.svg new file mode 100644 index 0000000..e8ae7b1 --- /dev/null +++ b/public/images/flags/persian.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/(en)/layout.tsx b/src/app/(en)/layout.tsx new file mode 100644 index 0000000..09570b0 --- /dev/null +++ b/src/app/(en)/layout.tsx @@ -0,0 +1,12 @@ +import type { Metadata } from 'next'; +import { SiteRoot } from '@/app/SiteRoot'; +import { messagesByLocale } from '@/i18n/content'; +import '@/styles/globals.css'; + +export const metadata: Metadata = messagesByLocale.en.metadata; + +export default function EnglishLayout({ + children, +}: Readonly<{ children: React.ReactNode }>) { + return {children}; +} diff --git a/src/app/(en)/page.tsx b/src/app/(en)/page.tsx new file mode 100644 index 0000000..be40f39 --- /dev/null +++ b/src/app/(en)/page.tsx @@ -0,0 +1,5 @@ +import { PortfolioPage } from '@/app/PortfolioPage'; + +export default function Home() { + return ; +} diff --git a/src/app/(fa)/fa/layout.tsx b/src/app/(fa)/fa/layout.tsx new file mode 100644 index 0000000..982213f --- /dev/null +++ b/src/app/(fa)/fa/layout.tsx @@ -0,0 +1,12 @@ +import type { Metadata } from 'next'; +import { SiteRoot } from '@/app/SiteRoot'; +import { messagesByLocale } from '@/i18n/content'; +import '@/styles/globals.css'; + +export const metadata: Metadata = messagesByLocale.fa.metadata; + +export default function PersianLayout({ + children, +}: Readonly<{ children: React.ReactNode }>) { + return {children}; +} diff --git a/src/app/(fa)/fa/page.tsx b/src/app/(fa)/fa/page.tsx new file mode 100644 index 0000000..3f1d6d0 --- /dev/null +++ b/src/app/(fa)/fa/page.tsx @@ -0,0 +1,5 @@ +import { PortfolioPage } from '@/app/PortfolioPage'; + +export default function PersianHome() { + return ; +} diff --git a/src/app/page.tsx b/src/app/PortfolioPage.tsx similarity index 50% rename from src/app/page.tsx rename to src/app/PortfolioPage.tsx index f4d3f02..9a0cbe5 100644 --- a/src/app/page.tsx +++ b/src/app/PortfolioPage.tsx @@ -8,33 +8,20 @@ import { MilestonesSection } from '@/components/MilestonesSection'; import { FooterSection } from '@/components/FooterSection'; import { MotionController } from '@/components/MotionController'; import { SiteLoader } from '@/components/SiteLoader'; +import type { Locale } from '@/i18n/content'; -export default function Home() { +export function PortfolioPage({ locale }: { locale: Locale }) { return ( -
- +
+ - - {/* 1. Hero & About Me River Journey (Seamless Scenic Background) */} - - - {/* 2. Projects Carousel Section */} - - - {/* 3. Work Experience Timeline Section */} - - - {/* 4. Skills & Tools Matrix Section */} - - - {/* 5. Education Foundation Section */} - - - {/* 6. Milestones & Awards Section */} - - - {/* 7. Footer CTA & Social Section */} - + + + + + + +
); } diff --git a/src/app/layout.tsx b/src/app/SiteRoot.tsx similarity index 54% rename from src/app/layout.tsx rename to src/app/SiteRoot.tsx index 5bb5a79..2f66e9e 100644 --- a/src/app/layout.tsx +++ b/src/app/SiteRoot.tsx @@ -1,19 +1,6 @@ -import type { Metadata } from 'next'; +import type { ReactNode } from 'react'; import { ThemeProvider } from '@/context/ThemeContext'; -import '@/styles/globals.css'; - -export const metadata: Metadata = { - title: "Amirhossein Khalili | Dedicated Product Engineer", - description: - "Personal portfolio of Amirhossein Khalili, Product Engineer & Software Developer based in Iran.", - keywords: [ - 'Amirhossein Khalili', - 'Product Engineer', - 'Software Engineer', - 'Full Stack Developer', - 'Portfolio', - ], -}; +import type { Locale } from '@/i18n/content'; const themeScript = ` document.documentElement.dataset.siteLoading = 'true'; @@ -23,13 +10,19 @@ const themeScript = ` } catch {} `; -export default function RootLayout({ +export function SiteRoot({ children, + locale, }: { - children: React.ReactNode; + children: ReactNode; + locale: Locale; }) { return ( - +