diff --git a/public/images/blog/users/رسید پرداخت عوارض و .pdf b/public/images/blog/users/رسید پرداخت عوارض و .pdf deleted file mode 100644 index e853431..0000000 Binary files a/public/images/blog/users/رسید پرداخت عوارض و .pdf and /dev/null differ diff --git a/public/images/parsa2.jpg b/public/images/parsa2.jpg new file mode 100644 index 0000000..4a839c5 Binary files /dev/null and b/public/images/parsa2.jpg differ diff --git a/public/images/profile1.png b/public/images/profile1.png new file mode 100644 index 0000000..4da53a4 Binary files /dev/null and b/public/images/profile1.png differ diff --git a/public/images/projects/project1_image1.jpg b/public/images/projects/project1_image1.jpg new file mode 100644 index 0000000..7a7b1cd Binary files /dev/null and b/public/images/projects/project1_image1.jpg differ diff --git a/public/images/projects/project1_image2.jpg b/public/images/projects/project1_image2.jpg new file mode 100644 index 0000000..0bc32df Binary files /dev/null and b/public/images/projects/project1_image2.jpg differ diff --git a/public/images/projects/project2_image1.jpg b/public/images/projects/project2_image1.jpg new file mode 100644 index 0000000..2b597c3 Binary files /dev/null and b/public/images/projects/project2_image1.jpg differ diff --git a/public/images/projects/project2_image2.jpg b/public/images/projects/project2_image2.jpg new file mode 100644 index 0000000..2b3b7e4 Binary files /dev/null and b/public/images/projects/project2_image2.jpg differ diff --git a/public/images/projects/project3_image1.jpg b/public/images/projects/project3_image1.jpg new file mode 100644 index 0000000..6e15d29 Binary files /dev/null and b/public/images/projects/project3_image1.jpg differ diff --git a/public/images/projects/project3_image2.jpg b/public/images/projects/project3_image2.jpg new file mode 100644 index 0000000..d22e3cc Binary files /dev/null and b/public/images/projects/project3_image2.jpg differ diff --git a/public/images/projects/project4_image1.jpg b/public/images/projects/project4_image1.jpg new file mode 100644 index 0000000..fbdd716 Binary files /dev/null and b/public/images/projects/project4_image1.jpg differ diff --git a/public/images/projects/project4_image2.jpg b/public/images/projects/project4_image2.jpg new file mode 100644 index 0000000..ea525fd Binary files /dev/null and b/public/images/projects/project4_image2.jpg differ diff --git a/public/images/projects/project5_image1.jpg b/public/images/projects/project5_image1.jpg new file mode 100644 index 0000000..79ab045 Binary files /dev/null and b/public/images/projects/project5_image1.jpg differ diff --git a/public/images/projects/project5_image2.jpg b/public/images/projects/project5_image2.jpg new file mode 100644 index 0000000..5c217c0 Binary files /dev/null and b/public/images/projects/project5_image2.jpg differ diff --git a/public/images/projects/project6_image1.jpg b/public/images/projects/project6_image1.jpg new file mode 100644 index 0000000..0a7bb5b Binary files /dev/null and b/public/images/projects/project6_image1.jpg differ diff --git a/public/images/projects/project6_image2.jpg b/public/images/projects/project6_image2.jpg new file mode 100644 index 0000000..b6639e7 Binary files /dev/null and b/public/images/projects/project6_image2.jpg differ diff --git a/src/app/(routes)/(website)/components/aboutMe/AboutMeContent-fixed.tsx b/src/app/(routes)/(website)/components/aboutMe/AboutMeContent-fixed.tsx new file mode 100644 index 0000000..a5bfa14 --- /dev/null +++ b/src/app/(routes)/(website)/components/aboutMe/AboutMeContent-fixed.tsx @@ -0,0 +1,115 @@ +"use client"; + +import React from "react"; +import Image from "next/image"; +import { motion } from "framer-motion"; +import { AboutMeDataType } from "@/app/types/types"; + +interface AboutMeContentProps { + data: AboutMeDataType; +} + +const CATEGORIES = { + "Core Tech": ["React", "Next.js", "TypeScript", "JavaScript"], + "Backend & Tools": ["Laravel", "PHP", "MySQL", "Node.js", "Docker", "Git"], + "Architecture & Others": ["REST API", "TDD", "UI/UX Design", "Clean Architecture"], +}; + +type CategoryKey = keyof typeof CATEGORIES | "Other"; + +export default function AboutMeContent({ data }: AboutMeContentProps) { + const categorizedSkills: Record = { + "Core Tech": [], + "Backend & Tools": [], + "Architecture & Others": [], + "Other": [], + }; + + data.skills.forEach((skill) => { + let matched = false; + for (const [cat, skills] of Object.entries(CATEGORIES)) { + if (skills.some((s) => skill.title.toLowerCase().includes(s.toLowerCase()))) { + categorizedSkills[cat as CategoryKey].push(skill.title); + matched = true; + break; + } + } + if (!matched) categorizedSkills["Other"].push(skill.title); + }); + + const isRTL = typeof document !== "undefined" && document.dir === "rtl"; + + return ( +
+ {/* Text Section */} + +

+ {data.title} +

+

+ {data.description} +

+ +
+ {Object.entries(categorizedSkills).map(([category, skills]) => ( + skills.length > 0 && ( + +

+ {category} +

+
+ {skills.map((skill, idx) => ( + + {skill} + + ))} +
+
+ ) + ))} +
+
+ + {/* Image Section */} + +
+
+
+ profile picture +
+
+
+
+ ); +} diff --git a/src/app/layout-ssh-fixed.tsx b/src/app/layout-ssh-fixed.tsx new file mode 100644 index 0000000..33a9a32 --- /dev/null +++ b/src/app/layout-ssh-fixed.tsx @@ -0,0 +1,50 @@ +import localFont from 'next/font/local'; +import './globals.css'; +import { getDefaultLocale } from './lib/functions/utils'; +import { ThemeProvider } from './lib/providers/theme-provider'; + +const mikhak = localFont({ + src: 'lib/fonts/mikhak-v32/variable/Mikhak[DSTY,KSHD,wght].woff2', + variable: '--font-mikhak', + weight: '100 900', +}); + +const inter = localFont({ + src: 'lib/fonts/inter/variable/Inter-Variable.woff2', + variable: '--font-inter', + weight: '100 900', +}); + +const jetbrainsMono = localFont({ + src: 'lib/fonts/jetbrains-mono/variable/JetBrainsMono-Variable.woff2', + variable: '--font-jetbrains-mono', + weight: '100 800', +}); + +export default async function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + const defaultLocale = await getDefaultLocale(); + + return ( + + + +
+ {children} +
+
+ + + ); +} diff --git a/src/lib/fonts/inter/variable/Inter-Variable.woff2 b/src/lib/fonts/inter/variable/Inter-Variable.woff2 new file mode 100644 index 0000000..b0d0e2e Binary files /dev/null and b/src/lib/fonts/inter/variable/Inter-Variable.woff2 differ diff --git a/src/lib/fonts/jetbrains-mono/variable/JetBrainsMono-Variable.woff2 b/src/lib/fonts/jetbrains-mono/variable/JetBrainsMono-Variable.woff2 new file mode 100644 index 0000000..cd5102a Binary files /dev/null and b/src/lib/fonts/jetbrains-mono/variable/JetBrainsMono-Variable.woff2 differ