diff --git a/.env.development b/.env.development index 4a95475..66d408b 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,4 @@ NEXT_PUBLIC_API_URL=http://localhost:8000/api NEXT_PUBLIC_BLOG_API_URL=http://localhost:8000/api/blog -NEXT_PUBLIC_FRONT_URL=http://localhost:3001 \ No newline at end of file +NEXT_PUBLIC_FRONT_URL=http://localhost:3001 +NEXT_PUBLIC_BACK_URL=http://localhost:8000 \ No newline at end of file diff --git a/.env.production b/.env.production index 52587d1..066eb71 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,4 @@ NEXT_PUBLIC_API_URL=https://backend.parsaaghayi.ir/api NEXT_PUBLIC_BLOG_API_URL=https://backend.parsaaghayi.ir/api/blog -NEXT_PUBLIC_FRONT_URL=https://parsaaghayi.ir \ No newline at end of file +NEXT_PUBLIC_FRONT_URL=https://parsaaghayi.ir +NEXT_PUBLIC_BACK_URL=https://backend.parsaaghayi.ir \ No newline at end of file diff --git a/src/app/(routes)/(website)/components/projects/projects.tsx b/src/app/(routes)/(website)/components/projects/projects.tsx index 1cc0abe..3b8e764 100644 --- a/src/app/(routes)/(website)/components/projects/projects.tsx +++ b/src/app/(routes)/(website)/components/projects/projects.tsx @@ -7,6 +7,7 @@ import { ProjectResponse, } from "@/app/types/types"; import { getCookie } from "cookies-next"; +import Link from "next/link"; import React, { useEffect, useState, useMemo } from "react"; import Skeleton from "react-loading-skeleton"; import "react-loading-skeleton/dist/skeleton.css"; @@ -92,7 +93,9 @@ export default function Projects({ dict }: MyProjectsProps) { const groupProjectsByCategory = (projects: Project[]) => { return projects.reduce>((acc, project) => { - const category = project.category || (locale === "fa" ? "بدون دسته‌بندی" : "Uncategorized"); + const category = + project.category || + (locale === "fa" ? "بدون دسته‌بندی" : "Uncategorized"); if (!acc[category]) { acc[category] = []; } @@ -165,14 +168,27 @@ export default function Projects({ dict }: MyProjectsProps) { {filteredProjects.length > 0 ? filteredProjects.map((project, index) => (
-
+
{project.images.map((image, idx) => ( - {`Image + + {`Image + ))}