diff --git a/src/app/lib/admin/contact-actions.ts b/src/app/lib/admin/contact-actions.ts
new file mode 100644
index 0000000..0989470
--- /dev/null
+++ b/src/app/lib/admin/contact-actions.ts
@@ -0,0 +1,35 @@
+'use server';
+
+import { revalidatePath } from 'next/cache';
+import { adminFetch } from './api';
+
+export async function markMessageReadAction(formData: FormData): Promise {
+ const id = Number(formData.get('__id'));
+ const read = formData.get('__read') === '1';
+
+ if (!Number.isFinite(id)) return;
+
+ try {
+ await adminFetch(`/admin/messages/${id}`, {
+ method: 'PATCH',
+ body: { read },
+ });
+ revalidatePath('/admin/contact-messages');
+ } catch {
+ // Session may have expired or the message was deleted in the meantime;
+ // the next navigation will show the current state.
+ }
+}
+
+export async function deleteMessageAction(formData: FormData): Promise {
+ const id = Number(formData.get('__id'));
+
+ if (!Number.isFinite(id)) return;
+
+ try {
+ await adminFetch(`/admin/messages/${id}`, { method: 'DELETE' });
+ revalidatePath('/admin/contact-messages');
+ } catch {
+ // See above.
+ }
+}
\ No newline at end of file
diff --git a/src/app/lib/admin/contact.ts b/src/app/lib/admin/contact.ts
new file mode 100644
index 0000000..ab6c1c5
--- /dev/null
+++ b/src/app/lib/admin/contact.ts
@@ -0,0 +1,26 @@
+import { adminFetch, listRows } from './api';
+
+export type ContactMessage = {
+ id: number;
+ name: string;
+ email: string;
+ message: string;
+ read_at: string | null;
+ created_at: string;
+ updated_at: string;
+};
+
+export async function loadMessages(): Promise {
+ return listRows('/admin/messages');
+}
+
+export async function markMessageRead(id: number, read: boolean): Promise {
+ return adminFetch<{ data: ContactMessage }>(`/admin/messages/${id}`, {
+ method: 'PATCH',
+ body: { read },
+ }).then((payload) => payload.data);
+}
+
+export async function deleteMessage(id: number): Promise {
+ await adminFetch(`/admin/messages/${id}`, { method: 'DELETE' });
+}
\ No newline at end of file
diff --git a/src/app/lib/dictionaries/en.json b/src/app/lib/dictionaries/en.json
index 55bf227..8f6f0c2 100644
--- a/src/app/lib/dictionaries/en.json
+++ b/src/app/lib/dictionaries/en.json
@@ -34,37 +34,37 @@
"name": "Sarah Johnson",
"position": "Founder & CEO of Innovate Solutions",
"image": "/images/user-1.svg",
- "quote": "The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from \"de Finibus Bonorum et Malorum\" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham."
+ "quote": "Parsa rebuilt our corporate website from the ground up. Load times dropped by 60% and the new React/Next.js architecture made content updates effortless for our team. Conversion rates have been climbing steadily ever since launch."
},
{
"name": "Michael Lee",
"position": "Chief Executive Officer at Tech Innovators",
"image": "/images/user-1.svg",
- "quote": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."
+ "quote": "What impressed me most was Parsa's clarity. He translated complex technical requirements into a clear roadmap, delivered on schedule, and documented everything so our own team could maintain the project independently."
},
{
"name": "Emma Davis",
"position": "CEO & Lead Strategist at Visionary Ventures",
"image": "/images/user-1.svg",
- "quote": "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English."
+ "quote": "The attention to detail was outstanding. From responsive design to accessibility and SEO, every aspect of our platform felt thoughtful. Parsa genuinely invested time in understanding our business before writing a single line of code."
},
{
"name": "John Doe",
"position": "COO at Startup Labs",
"image": "/images/user-1.svg",
- "quote": "All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet."
+ "quote": "Our previous agency left us with an unstable product. Parsa took over, stabilized the codebase, and shipped the MVP we needed within a few weeks. Professional, communicative, and pragmatic from start to finish."
},
{
"name": "Jane Smith",
"position": "Founder at Health Innovations",
"image": "/images/user-1.svg",
- "quote": "It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable."
+ "quote": "Our web app handles sensitive user data, so security and reliability were non-negotiable. Parsa delivered a clean, secure architecture and was always quick to respond whenever we had questions."
},
{
"name": "Alex Chen",
"position": "CTO at CloudBase Technologies",
"image": "/images/user-1.svg",
- "quote": "Working with this developer was an absolute pleasure. The attention to detail, code quality, and timely delivery exceeded our expectations."
+ "quote": "Parsa is that rare engineer who cares about the whole product, not just the code. Backend integrations, deployment pipelines, performance — he looked at everything and made it better."
}
]
},
diff --git a/src/app/lib/dictionaries/fa.json b/src/app/lib/dictionaries/fa.json
index 61e570b..328a33c 100644
--- a/src/app/lib/dictionaries/fa.json
+++ b/src/app/lib/dictionaries/fa.json
@@ -32,39 +32,39 @@
"data": [
{
"name": "سارا جانسون",
- "position": "بنیانگذار و مدیرعامل راهکارهای نوآورانه",
+ "position": "بنیانگذار و مدیرعامل راهکارهای نوآورانه",
"image": "/images/user-1.svg",
- "quote": "بخش استاندارد لورم ایپسوم که از سال ۱۵۰۰ مورد استفاده قرار گرفته در زیر برای علاقهمندان بازتولید شده است. بخشهای ۱.۱۰.۳۲ و ۱.۱۰.۳۳ از کتاب \"درباره حدود خیر و شر\" سیسرو نیز به شکل اصلی خود بازتولید شده است."
+ "quote": "پارسا وبسایت سازمانی ما را از پایه بازسازی کرد. زمان بارگذاری ۶۰٪ کاهش یافت و معماری جدید ریاکت و نکست بهروزرسانی محتوا را برای تیممان بسیار ساده کرد. نرخ تبدیل هم از همان ابتدای انتشار پیوسته در حال رشد است."
},
{
"name": "مایکل لی",
"position": "مدیر اجرایی در نوآوران فناوری",
"image": "/images/user-1.svg",
- "quote": "لورم ایپسوم صرفاً متن ساختگی صنعت چاپ و نشر است. لورم ایپسوم از سال ۱۵۰۰ به عنوان متن استاندارد صنعت استفاده شده است، زمانی که یک چاپگر ناشناس یک کاسه از حروف را برداشت و آنها را به هم ریخت تا یک نمونه کتاب بسازد."
+ "quote": "چیزی که بیش از همه مرا تحت تأثیر قرار داد شفافیت پارسا بود. او نیازهای پیچیده فنی را به یک نقشه راه مشخص تبدیل کرد، سر موعد تحویل داد و همهچیز را مستند کرد تا تیم خودمان بتواند بهطور مستقل پروژه را نگهداری کند."
},
{
"name": "اما دیویس",
"position": "مدیرعامل و استراتژیست ارشد در ونچرهای چشمانداز",
"image": "/images/user-1.svg",
- "quote": "این یک واقعیت ثابت شده است که خواننده با خواندن محتوای قابل خواندن یک صفحه هنگام بررسی طرح آن حواسش پرت میشود. نکته استفاده از لورم ایپسوم این است که توزیع حروف کم و بیش نرمال دارد."
+ "quote": "توجه به جزئیات فوقالعاده بود. از طراحی واکنشگرا تا دسترسپذیری و سئو، همه جنبههای پلتفرممان دقیق و حسابشده بود. پارسا پیش از نوشتن اولین خط کد، زمان واقعی برای درک کسبوکار ما صرف کرد."
},
{
"name": "جان دو",
"position": "مدیر عملیات در استارتاپ لبز",
"image": "/images/user-1.svg",
- "quote": "همه مولدهای لورم ایپسوم در اینترنت تمایل به تکرار قطعات از پیش تعریف شده دارند، که این را به اولین مولد واقعی در اینترنت تبدیل میکند."
+ "quote": "آژانس قبلی محصولی ناپایدار برای ما رها کرده بود. پارسا پروژه را تحویل گرفت، کد را سامان داد و نسخه اولیه (MVP) مورد نیازمان را ظرف چند هفته تحویل داد. از ابتدا تا انتها حرفهای، خوشبرخورد و عملگرا بود."
},
{
"name": "جین اسمیت",
- "position": "بنیانگذار در نوآوریهای سلامت",
+ "position": "بنیانگذار در نوآوریهای سلامت",
"image": "/images/user-1.svg",
- "quote": "این از فرهنگ لغت بیش از ۲۰۰ کلمه لاتین استفاده میکند که با تعداد کمی از ساختارهای جمله نمونه ترکیب شده است تا لورم ایپسومی منطقی تولید کند."
+ "quote": "اپلیکیشن ما با دادههای حساس کاربری سروکار دارد، بنابراین امنیت و پایداری برایمان خط قرمز بود. پارسا معماری تمیز و امنی پیاده کرد و هر وقت سؤالی داشتیم سریع پاسخ میداد."
},
{
"name": "الکس چن",
"position": "مدیر فناوری در فناوریهای کلودبیس",
"image": "/images/user-1.svg",
- "quote": "کار با این توسعهدهنده یک لذت مطلق بود. توجه به جزئیات، کیفیت کد و تحویل به موقع فراتر از انتظارات ما بود."
+ "quote": "پارسا همان مهندس کمیابی است که به کل محصول اهمیت میدهد نه فقط کد. از یکپارچهسازی بکاند و پایپلاین استقرار تا بهینهسازی عملکرد، به همهچیز نگاه کرد و آن را بهتر کرد."
}
]
},