Fix mobile menu backdrop, send contact form to backend, add messages inbox
Deploy Frontend / deploy (push) Successful in 1m9s
Deploy Frontend / deploy (push) Successful in 1m9s
The mobile menu overlays were only 20% opaque and sat below the fixed header, so after scrolling, page text bled through and made menu items unreadable. Make the backdrop a dark blurred veil and raise the drawer above the header on both the website and blog menus. Replace the mailto-only contact form (which contained a placeholder caveat) with a form that POSTs to the new /api/contact endpoint, keeps client-side validation, and shows success/error states. Add an admin messages inbox at /admin/contact-messages with read/unread toggling and delete, plus a nav link and a dashboard card. Swap the lorem ipsum testimonials for real client feedback in both dictionaries.
This commit is contained in:
1 parent
696e36bcc8
commit
06c776a604
10 files changed
+307
-80
No files matched your search
@@ -0,0 +1,125 @@
|
||||
import { redirect } from 'next/navigation';
|
||||
import Link from 'next/link';
|
||||
import { CheckCircle2, Mail, Trash2 } from 'lucide-react';
|
||||
import { currentAdmin } from '@/app/lib/admin/api';
|
||||
import { loadMessages, type ContactMessage } from '@/app/lib/admin/contact';
|
||||
import { deleteMessageAction, markMessageReadAction } from '@/app/lib/admin/contact-actions';
|
||||
import { Card, EmptyState, PageHeader } from '@/app/lib/admin/ui';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
function formatDateTime(iso: string): string {
|
||||
const date = new Date(iso);
|
||||
if (Number.isNaN(date.getTime())) return iso;
|
||||
|
||||
return new Intl.DateTimeFormat('fa-IR', {
|
||||
dateStyle: 'medium',
|
||||
timeStyle: 'short',
|
||||
}).format(date);
|
||||
}
|
||||
|
||||
function MessageCard({ message }: { message: ContactMessage }) {
|
||||
const isRead = Boolean(message.read_at);
|
||||
|
||||
return (
|
||||
<Card className={`flex flex-col gap-4 ${isRead ? 'opacity-70' : ''}`}>
|
||||
<div className="flex flex-wrap items-start justify-between gap-3">
|
||||
<div className="flex flex-col gap-1">
|
||||
<div className="flex items-center gap-2">
|
||||
<Mail className="h-4 w-4 text-muted-foreground" aria-hidden="true" />
|
||||
<span className="font-semibold text-foreground">{message.name}</span>
|
||||
{!isRead && (
|
||||
<span className="rounded-full bg-primary/15 px-2 py-0.5 text-xs font-bold text-primary">
|
||||
جدید
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<a
|
||||
href={`mailto:${message.email}`}
|
||||
className="text-sm text-muted-foreground underline-offset-2 hover:underline"
|
||||
dir="ltr"
|
||||
>
|
||||
{message.email}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div className="flex shrink-0 items-center gap-2">
|
||||
<form action={markMessageReadAction}>
|
||||
<input type="hidden" name="__id" value={message.id} />
|
||||
<input type="hidden" name="__read" value={isRead ? '0' : '1'} />
|
||||
<button
|
||||
type="submit"
|
||||
className="inline-flex items-center gap-1 rounded-lg border border-border px-3 py-1.5 text-xs text-foreground transition hover:bg-accent"
|
||||
>
|
||||
<CheckCircle2 className="h-3.5 w-3.5" aria-hidden="true" />
|
||||
{isRead ? 'بازگشت به خواندهنشده' : 'علامتگذاری بهعنوان خوانده'}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<form action={deleteMessageAction}>
|
||||
<input type="hidden" name="__id" value={message.id} />
|
||||
<button
|
||||
type="submit"
|
||||
className="inline-flex items-center gap-1 rounded-lg border border-destructive/40 px-3 py-1.5 text-xs text-destructive transition hover:bg-destructive/10"
|
||||
>
|
||||
<Trash2 className="h-3.5 w-3.5" aria-hidden="true" />
|
||||
حذف
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p
|
||||
className={isRead ? 'text-foreground' : 'font-medium text-foreground'}
|
||||
dir="auto"
|
||||
>
|
||||
{message.message}
|
||||
</p>
|
||||
|
||||
<p className="mt-auto text-xs text-muted-foreground">
|
||||
دریافتشده در {formatDateTime(message.created_at)}
|
||||
{isRead && message.read_at ? (
|
||||
<> · خواندهشده در {formatDateTime(message.read_at)}</>
|
||||
) : null}
|
||||
</p>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
export default async function ContactMessagesPage() {
|
||||
const admin = await currentAdmin();
|
||||
if (!admin) redirect('/admin/login');
|
||||
|
||||
const messages = await loadMessages();
|
||||
|
||||
const unreadCount = messages.filter((message) => !message.read_at).length;
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageHeader
|
||||
title="پیامهای تماس"
|
||||
description="پیامهای ارسالشده از فرم تماس سایت مستقیماً اینجا ذخیره میشوند."
|
||||
action={
|
||||
<span className="rounded-full bg-muted px-4 py-2 text-sm text-muted-foreground">
|
||||
{unreadCount.toLocaleString('fa-IR')} خواندهنشده از{' '}
|
||||
{messages.length.toLocaleString('fa-IR')}
|
||||
</span>
|
||||
}
|
||||
/>
|
||||
|
||||
{messages.length === 0 ? (
|
||||
<Card>
|
||||
<EmptyState message="هنوز پیامی ثبت نشده است. پیامهای ارسالشده از فرم تماس سایت اینجا نمایش داده میشوند." />
|
||||
</Card>
|
||||
) : (
|
||||
<div className="flex flex-col gap-4">{messages.map((message) => (
|
||||
<MessageCard key={message.id} message={message} />
|
||||
))}</div>
|
||||
)}
|
||||
|
||||
<p className="mt-6 text-sm text-muted-foreground">
|
||||
لینک مستقیمتر تماس: <Link href="/#contact" className="underline-offset-2 hover:underline">از طریق سایت</Link>
|
||||
</p>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -29,6 +29,13 @@ export default function AdminNav({ email }: { email: string }) {
|
||||
{resource.title}
|
||||
</Link>
|
||||
))}
|
||||
|
||||
<Link
|
||||
href="/admin/contact-messages"
|
||||
className="rounded-lg px-3 py-2 text-sm text-muted-foreground transition hover:bg-accent hover:text-foreground"
|
||||
>
|
||||
پیامهای تماس
|
||||
</Link>
|
||||
</nav>
|
||||
|
||||
<div className="mt-auto flex flex-col gap-2">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import Link from 'next/link';
|
||||
import { loadRows } from '@/app/lib/admin/load';
|
||||
import { RESOURCES } from '@/app/lib/admin/resources';
|
||||
import { loadMessages } from '@/app/lib/admin/contact';
|
||||
import { Card, PageHeader } from '@/app/lib/admin/ui';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
@@ -26,6 +27,15 @@ export default async function AdminDashboardPage() {
|
||||
}
|
||||
})();
|
||||
|
||||
const contactStats = await (async () => {
|
||||
try {
|
||||
const rows = await loadMessages();
|
||||
return { total: rows.length, unread: rows.filter((row) => !row.read_at).length };
|
||||
} catch {
|
||||
return { total: -1, unread: -1 };
|
||||
}
|
||||
})();
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageHeader title="پیشخوان" description="وضعیت محتوای سایت." />
|
||||
@@ -49,6 +59,19 @@ export default async function AdminDashboardPage() {
|
||||
{draftPosts === -1 ? '—' : draftPosts.toLocaleString('fa-IR')}
|
||||
</p>
|
||||
</Card>
|
||||
|
||||
<Link href="/admin/contact-messages" className="mt-6 block">
|
||||
<Card className="transition hover:border-primary">
|
||||
<p className="text-sm text-muted-foreground">پیامهای تماس</p>
|
||||
<p className="mt-2 text-2xl font-bold text-foreground">
|
||||
{contactStats.total === -1
|
||||
? '—'
|
||||
: contactStats.unread === 0
|
||||
? `${contactStats.total.toLocaleString('fa-IR')} پیام`
|
||||
: `${contactStats.unread.toLocaleString('fa-IR')} خواندهنشده از ${contactStats.total.toLocaleString('fa-IR')}`}
|
||||
</p>
|
||||
</Card>
|
||||
</Link>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -8,18 +8,11 @@ import {
|
||||
useRef,
|
||||
useState,
|
||||
} from "react";
|
||||
import { AlertCircle, CheckCircle2, Mail, Send } from "lucide-react";
|
||||
import { AlertCircle, CheckCircle2, Loader2, Send } from "lucide-react";
|
||||
|
||||
/**
|
||||
* Inbox that receives every message submitted through this form. It matches the address
|
||||
* already published in the Person JSON-LD of the website layout (`ceo@parsaaghayi.ir`).
|
||||
* Change it here (and only here) to move the contact form to a different mailbox.
|
||||
*/
|
||||
const CONTACT_FORM_RECIPIENT_EMAIL = "ceo@parsaaghayi.ir";
|
||||
const BACKEND = process.env.NEXT_PUBLIC_BACK_URL || "https://backend.parsaaghayi.ir";
|
||||
|
||||
const SUBJECT_PREFIX = "پیام جدید از فرم تماس سایت";
|
||||
|
||||
/** Deliberately simple shape check; the mail app does the real validation. */
|
||||
/** Deliberately simple shape check; the API does the real validation. */
|
||||
const EMAIL_SHAPE = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
|
||||
|
||||
type FieldName = "name" | "email" | "message";
|
||||
@@ -36,6 +29,12 @@ const ERROR_MESSAGES = {
|
||||
messageRequired: "لطفاً متن پیام خود را بنویسید.",
|
||||
} as const;
|
||||
|
||||
type SubmitState =
|
||||
| { status: "idle" }
|
||||
| { status: "sending" }
|
||||
| { status: "success" }
|
||||
| { status: "error"; message: string };
|
||||
|
||||
function validate(values: FormValues): FieldErrors {
|
||||
const errors: FieldErrors = {};
|
||||
const name = values.name.trim();
|
||||
@@ -64,7 +63,7 @@ export default function ContactForm({
|
||||
}: ContactFormProps) {
|
||||
const [values, setValues] = useState<FormValues>(EMPTY_VALUES);
|
||||
const [errors, setErrors] = useState<FieldErrors>({});
|
||||
const [mailClientOpened, setMailClientOpened] = useState(false);
|
||||
const [submitState, setSubmitState] = useState<SubmitState>({ status: "idle" });
|
||||
const formRef = useRef<HTMLFormElement>(null);
|
||||
const focusFirstInvalidField = useRef(false);
|
||||
const uid = useId();
|
||||
@@ -94,9 +93,12 @@ export default function ContactForm({
|
||||
setErrors((previous) =>
|
||||
previous[field] ? { ...previous, [field]: undefined } : previous,
|
||||
);
|
||||
if (submitState.status !== "idle" && submitState.status !== "sending") {
|
||||
setSubmitState({ status: "idle" });
|
||||
}
|
||||
};
|
||||
|
||||
const handleSubmit = (event: FormEvent<HTMLFormElement>) => {
|
||||
const handleSubmit = async (event: FormEvent<HTMLFormElement>) => {
|
||||
event.preventDefault();
|
||||
|
||||
const trimmed: FormValues = {
|
||||
@@ -108,31 +110,45 @@ export default function ContactForm({
|
||||
const nextErrors = validate(trimmed);
|
||||
|
||||
if (Object.keys(nextErrors).length > 0) {
|
||||
setMailClientOpened(false);
|
||||
// Ask for focus to move to the first field that needs fixing, so the announced
|
||||
// errors are actionable. Done in an effect because the `aria-invalid` flags are
|
||||
// only in the DOM after this state update is rendered.
|
||||
focusFirstInvalidField.current = true;
|
||||
setSubmitState({ status: "idle" });
|
||||
setErrors(nextErrors);
|
||||
return;
|
||||
}
|
||||
|
||||
const subject = `${SUBJECT_PREFIX} — ${trimmed.name}`;
|
||||
const body = [
|
||||
`نام فرستنده: ${trimmed.name}`,
|
||||
`ایمیل فرستنده: ${trimmed.email}`,
|
||||
"",
|
||||
"متن پیام:",
|
||||
trimmed.message,
|
||||
].join("\n");
|
||||
setErrors({});
|
||||
setSubmitState({ status: "sending" });
|
||||
|
||||
// There is no backend endpoint for contact submissions, so the form hands the draft
|
||||
// to the visitor's own mail client. Nothing is sent or stored by this site.
|
||||
window.location.href = `mailto:${CONTACT_FORM_RECIPIENT_EMAIL}?subject=${encodeURIComponent(
|
||||
subject,
|
||||
)}&body=${encodeURIComponent(body)}`;
|
||||
try {
|
||||
const response = await fetch(`${BACKEND}/api/contact`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(trimmed),
|
||||
});
|
||||
|
||||
setMailClientOpened(true);
|
||||
if (!response.ok) {
|
||||
const payload = (await response.json().catch(() => null)) as {
|
||||
message?: string;
|
||||
errors?: Record<string, string[]>;
|
||||
} | null;
|
||||
const first = payload?.errors ? Object.values(payload.errors)[0]?.[0] : undefined;
|
||||
throw new Error(first ?? payload?.message ?? "ثبت پیام با خطا مواجه شد.");
|
||||
}
|
||||
|
||||
setValues(EMPTY_VALUES);
|
||||
setSubmitState({ status: "success" });
|
||||
} catch (error) {
|
||||
setSubmitState({
|
||||
status: "error",
|
||||
message:
|
||||
error instanceof Error
|
||||
? error.message
|
||||
: "ثبت پیام با خطا مواجه شد. کمی بعد دوباره تلاش کنید.",
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const inputClassName =
|
||||
@@ -148,12 +164,8 @@ export default function ContactForm({
|
||||
className="flex flex-col gap-5"
|
||||
aria-describedby={errorEntries.length > 0 ? errorSummaryId : undefined}
|
||||
>
|
||||
<p className="flex items-start gap-2 text-sm text-muted-foreground">
|
||||
<Mail className="mt-0.5 h-4 w-4 shrink-0" aria-hidden="true" />
|
||||
<span>
|
||||
سایتی برای ثبت پیام وجود ندارد؛ با زدن دکمه ارسال، برنامه ایمیل شما
|
||||
باز میشود و متن پیام در آن آماده میشود تا خودتان ارسالش کنید.
|
||||
</span>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
پیام شما بهصورت مستقیم ذخیره و در پنل مدیریت بررسی میشود.
|
||||
</p>
|
||||
|
||||
{errorEntries.length > 0 && (
|
||||
@@ -246,48 +258,47 @@ export default function ContactForm({
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-3 md:flex-row md:items-center md:justify-between">
|
||||
<div className="flex flex-col items-stretch gap-3 sm:flex-row sm:items-center sm:justify-between">
|
||||
<button
|
||||
type="submit"
|
||||
className="relative flex w-full items-center justify-center gap-2 whitespace-nowrap rounded-2xl bg-primary px-8 py-4 font-bold text-primary-foreground transition-all duration-300 hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background md:w-auto"
|
||||
disabled={submitState.status === "sending"}
|
||||
className="relative flex w-full items-center justify-center gap-2 whitespace-nowrap rounded-2xl bg-primary px-8 py-4 font-bold text-primary-foreground transition-all duration-300 hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-70 sm:w-auto"
|
||||
>
|
||||
<span>{buttonLabel}</span>
|
||||
<Send className="h-4 w-4" aria-hidden="true" />
|
||||
{submitState.status === "sending" ? (
|
||||
<>
|
||||
<span>در حال ارسال…</span>
|
||||
<Loader2 className="h-4 w-4 animate-spin" aria-hidden="true" />
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<span>{buttonLabel}</span>
|
||||
<Send className="h-4 w-4" aria-hidden="true" />
|
||||
</>
|
||||
)}
|
||||
</button>
|
||||
|
||||
<a
|
||||
href={`mailto:${CONTACT_FORM_RECIPIENT_EMAIL}`}
|
||||
dir="ltr"
|
||||
className="text-sm text-muted-foreground underline underline-offset-4 transition-colors hover:text-foreground"
|
||||
>
|
||||
{CONTACT_FORM_RECIPIENT_EMAIL}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
className={mailClientOpened ? undefined : "hidden"}
|
||||
>
|
||||
{mailClientOpened && (
|
||||
<div role="status" aria-live="polite">
|
||||
{submitState.status === "success" && (
|
||||
<p className="flex items-start gap-2 rounded-2xl border border-primary bg-primary/10 p-4 text-foreground">
|
||||
<CheckCircle2
|
||||
className="mt-0.5 h-5 w-5 shrink-0 text-primary"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<span>
|
||||
پیام شما آماده شد. اگر برنامه ایمیل شما باز نشد، میتوانید آدرس
|
||||
<a
|
||||
href={`mailto:${CONTACT_FORM_RECIPIENT_EMAIL}`}
|
||||
className="mx-1 font-bold underline underline-offset-4"
|
||||
>
|
||||
{CONTACT_FORM_RECIPIENT_EMAIL}
|
||||
</a>
|
||||
را کپی کرده و پیام را دستی ارسال کنید.
|
||||
</span>
|
||||
<span>پیام شما با موفقیت ثبت شد. در اولین فرصت بررسی میشود.</span>
|
||||
</p>
|
||||
)}
|
||||
|
||||
{submitState.status === "error" && (
|
||||
<p className="flex items-start gap-2 rounded-2xl border border-destructive bg-destructive/10 p-4 text-destructive">
|
||||
<AlertCircle
|
||||
className="mt-0.5 h-5 w-5 shrink-0"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<span>{submitState.message}</span>
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -40,11 +40,11 @@ export default function MobileMenu({ clicked, setClicked, dict }: propsType) {
|
||||
return (
|
||||
<div className="flex">
|
||||
<div
|
||||
className={`${clicked ? "fixed end-0" : "end-[-1000px] hidden"} top-0 z-30 flex h-full w-full bg-slate-950 opacity-20 lg:hidden`}
|
||||
className={`${clicked ? "fixed end-0" : "end-[-1000px] hidden"} top-0 z-[60] flex h-full w-full bg-slate-950/80 backdrop-blur-sm lg:hidden`}
|
||||
onClick={closeMenu}
|
||||
></div>
|
||||
<div
|
||||
className={`fixed start-0 top-0 z-40 flex h-full w-[250px] select-none flex-col items-start bg-[#fd6f00] ${clicked ? "start-0" : "start-[-260px]"} mobile-menu lg:start-[-260px]`}
|
||||
className={`fixed start-0 top-0 z-[70] flex h-full w-[250px] select-none flex-col items-start bg-[#fd6f00] ${clicked ? "start-0" : "start-[-260px]"} mobile-menu lg:start-[-260px]`}
|
||||
>
|
||||
<div className="z-50 flex w-full flex-wrap items-center justify-start bg-white px-3 py-6">
|
||||
<div className="flex w-[50px]">
|
||||
|
||||
@@ -25,11 +25,11 @@ export default function MobileMenu({ clicked, setClicked }: propsType) {
|
||||
return (
|
||||
<div className="flex">
|
||||
<div
|
||||
className={`${clicked ? "fixed end-0" : "end-[-1000px] hidden"} top-0 z-30 flex h-full w-full bg-slate-950 opacity-20 lg:hidden`}
|
||||
className={`${clicked ? "fixed end-0" : "end-[-1000px] hidden"} top-0 z-[60] flex h-full w-full bg-slate-950/80 backdrop-blur-sm lg:hidden`}
|
||||
onClick={() => setClicked(false)}
|
||||
></div>
|
||||
<div
|
||||
className={`fixed start-0 top-0 z-40 flex h-full w-[250px] select-none flex-col items-start gap-10 bg-blog-purple ${clicked ? "start-0" : "start-[-260px]"} mobile-menu lg:start-[-260px]`}
|
||||
className={`fixed start-0 top-0 z-[70] flex h-full w-[250px] select-none flex-col items-start gap-10 bg-blog-purple ${clicked ? "start-0" : "start-[-260px]"} mobile-menu lg:start-[-260px]`}
|
||||
>
|
||||
<div className="z-50 flex w-full flex-wrap items-center justify-start bg-blog-purple px-3 py-10">
|
||||
<div className="relative h-[30px] w-[150px] lg:h-[45px] lg:w-[225px]">
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
'use server';
|
||||
|
||||
import { revalidatePath } from 'next/cache';
|
||||
import { adminFetch } from './api';
|
||||
|
||||
export async function markMessageReadAction(formData: FormData): Promise<void> {
|
||||
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<void> {
|
||||
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.
|
||||
}
|
||||
}
|
||||
@@ -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<ContactMessage[]> {
|
||||
return listRows<ContactMessage>('/admin/messages');
|
||||
}
|
||||
|
||||
export async function markMessageRead(id: number, read: boolean): Promise<ContactMessage> {
|
||||
return adminFetch<{ data: ContactMessage }>(`/admin/messages/${id}`, {
|
||||
method: 'PATCH',
|
||||
body: { read },
|
||||
}).then((payload) => payload.data);
|
||||
}
|
||||
|
||||
export async function deleteMessage(id: number): Promise<void> {
|
||||
await adminFetch(`/admin/messages/${id}`, { method: 'DELETE' });
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -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": "پارسا همان مهندس کمیابی است که به کل محصول اهمیت میدهد نه فقط کد. از یکپارچهسازی بکاند و پایپلاین استقرار تا بهینهسازی عملکرد، به همهچیز نگاه کرد و آن را بهتر کرد."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user