diff --git a/src/app/(routes)/(website)/components/contact/contactForm.tsx b/src/app/(routes)/(website)/components/contact/contactForm.tsx index cbf8dc7..b6091ca 100644 --- a/src/app/(routes)/(website)/components/contact/contactForm.tsx +++ b/src/app/(routes)/(website)/components/contact/contactForm.tsx @@ -164,10 +164,6 @@ export default function ContactForm({ className="flex flex-col gap-5" aria-describedby={errorEntries.length > 0 ? errorSummaryId : undefined} > -

- پیام شما به‌صورت مستقیم ذخیره و در پنل مدیریت بررسی می‌شود. -

- {errorEntries.length > 0 && (
@@ -50,10 +44,12 @@ export default async function Footer() {
- {socialLinks.map((social, index) => ( + {SOCIAL_LINKS.map((social, index) => ( - {socialLinks.map(({ href, src, alt }, index) => ( + {SOCIAL_LINKS.map(({ href, src, alt }, index) => (
diff --git a/src/app/(routes)/blog/components/mobile-menu/mobileMenu.tsx b/src/app/(routes)/blog/components/mobile-menu/mobileMenu.tsx index 834df7a..769ec7f 100644 --- a/src/app/(routes)/blog/components/mobile-menu/mobileMenu.tsx +++ b/src/app/(routes)/blog/components/mobile-menu/mobileMenu.tsx @@ -25,11 +25,13 @@ export default function MobileMenu({ clicked, setClicked }: propsType) { return (
setClicked(false)} >
diff --git a/src/app/(routes)/blog/posts/[postSlug]/page.tsx b/src/app/(routes)/blog/posts/[postSlug]/page.tsx index d8cfbb3..4ff19f0 100644 --- a/src/app/(routes)/blog/posts/[postSlug]/page.tsx +++ b/src/app/(routes)/blog/posts/[postSlug]/page.tsx @@ -11,6 +11,7 @@ import Link from "next/link"; import { redirect } from "next/navigation"; import { renderBody } from "./body"; import { getCoverImageSrc } from "./coverImage"; +import { AUTHOR_PROFILE_URL } from "@/app/lib/social-links"; async function fetchPostData(postSlug: string): Promise { const res = await fetch( @@ -222,7 +223,9 @@ export default async function SinglePost(props: PostSlugPagepropsType) {

{dict.blog.postSinglePage.followMe} @parsaaghayi diff --git a/src/app/lib/social-links.ts b/src/app/lib/social-links.ts new file mode 100644 index 0000000..31554ba --- /dev/null +++ b/src/app/lib/social-links.ts @@ -0,0 +1,36 @@ +export type SocialLink = { + href: string; + src: string; + alt: string; +}; + +/** + * Every network belongs to the same person, so the handle is identical across + * platforms. Keep the list here so the hero and the footer can never drift out + * of sync. + */ +export const SOCIAL_LINKS: SocialLink[] = [ + { + href: "https://www.facebook.com/parsaaghayi", + src: "/images/icons/facebook.svg", + alt: "facebook", + }, + { + href: "https://x.com/parsaaghayi", + src: "/images/icons/twitter.svg", + alt: "twitter", + }, + { + href: "https://www.instagram.com/parsaaghayi", + src: "/images/icons/instagram.svg", + alt: "instagram", + }, + { + href: "https://www.linkedin.com/in/parsaaghayi", + src: "/images/icons/linkedin.svg", + alt: "linkedin", + }, +]; + +/** The single best place to follow the author from the blog. */ +export const AUTHOR_PROFILE_URL = "https://github.com/parsaaghayi"; \ No newline at end of file