diff --git a/src/app/(routes)/(website)/page.tsx b/src/app/(routes)/(website)/(home)/page.tsx similarity index 50% rename from src/app/(routes)/(website)/page.tsx rename to src/app/(routes)/(website)/(home)/page.tsx index c14719a..d7b290a 100644 --- a/src/app/(routes)/(website)/page.tsx +++ b/src/app/(routes)/(website)/(home)/page.tsx @@ -1,27 +1,34 @@ import Image from "next/image"; -import Testimonials from "./components/testimonials/testimonials"; -import Contact from "./components/contact/contact"; -import AboutMe from "./components/about-me/aboutMe"; -import Services from "./components/services/services"; -import MyProjects from "./components/projects/projects"; +import Testimonials from "../components/testimonials/testimonials"; +import Contact from "../components/contact/contact"; +import AboutMe from "../components/aboutMe/aboutMe"; +import Services from "../components/services/services"; +import MyProjects from "../components/projects/projects"; import { getDictionary } from "@/app/lib/functions/dictionaries"; import { getDefaultLocale } from "@/app/lib/functions/utils"; import { Metadata } from "next"; +const description = + "Hi, I am Parsa Aghayi, a Frontend & Backend Developer. Here's my personal website to know more about me and contact me if you want! ;)"; + export const metadata: Metadata = { - title: "parsa aghayi's personal website", - description: - "Hi, I am parsa aghayi. Frontend & Backend Developer and here is my personal website to know me and contact me if you want! ;)", + title: "Parsa Aghayi's Personal Website", + description, openGraph: { - title: "parsa aghayi's personal website", - description: - "Hi, I am parsa aghayi. Frontend & Backend Developer and here is my personal website to know me and contact me if you want! ;)", + title: "Parsa Aghayi's Personal Website", + description, images: [`${process.env.NEXT_PUBLIC_FRONT_URL}/images/profile.png`], }, }; export default async function Home() { const dict = await getDictionary(getDefaultLocale()); + const socialLinks = [ + { href: "#", src: "/images/icons/facebook.svg", alt: "facebook" }, + { href: "#", src: "/images/icons/twitter.svg", alt: "twitter" }, + { href: "#", src: "/images/icons/instagram.svg", alt: "instagram" }, + { href: "#", src: "/images/icons/linkedin.svg", alt: "linkedin" }, + ]; return (
{/* Home */} @@ -32,58 +39,35 @@ export default async function Home() { {/* start */}
- profile picture
{/* socials */}
- - facebook - - - twitter - - - instagram - - - linkedin - + {socialLinks.map(({ href, src, alt }) => ( + + {alt} + + ))}
{/* end */}

- {dict.homePage.top.greating} + {dict.homePage.top.greeting}

{dict.homePage.top.name} @@ -97,9 +81,9 @@ export default async function Home() {

{dict.homePage.top.descriptionAboutMe}

- + */}
diff --git a/src/app/(routes)/(website)/components/about-me/aboutMe.tsx b/src/app/(routes)/(website)/components/aboutMe/aboutMe.tsx similarity index 100% rename from src/app/(routes)/(website)/components/about-me/aboutMe.tsx rename to src/app/(routes)/(website)/components/aboutMe/aboutMe.tsx diff --git a/src/app/(routes)/(website)/components/mobile-menu/mobileMenu.tsx b/src/app/(routes)/(website)/components/mobile-menu/mobileMenu.tsx index 07e9453..a137aed 100644 --- a/src/app/(routes)/(website)/components/mobile-menu/mobileMenu.tsx +++ b/src/app/(routes)/(website)/components/mobile-menu/mobileMenu.tsx @@ -50,7 +50,51 @@ export default function MobileMenu({ clicked, setClicked, dict }: propsType) { > {dict.header.Home} - {/* سایر لینک‌ها به همین شکل */} + { + setClicked(false); + }} + > + {dict.header.AboutMe} + + { + setClicked(false); + }} + > + {dict.header.Services} + + { + setClicked(false); + }} + > + {dict.header.Projects} + + { + setClicked(false); + }} + > + {dict.header.Testimonials} + + { + setClicked(false); + }} + > + {dict.header.Contact} +