diff --git a/src/pages/portfolio/index.tsx b/src/pages/portfolio/index.tsx index 77d8c93..dc66eb4 100644 --- a/src/pages/portfolio/index.tsx +++ b/src/pages/portfolio/index.tsx @@ -12,7 +12,11 @@ import Internal from "@/components/common/Internal"; import { useCallback, useEffect, useRef, useState } from "react"; import Image from "next/image"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faArrowLeft, faArrowRight } from "@fortawesome/free-solid-svg-icons"; +import { + faArrowLeft, + faArrowRight, + faSpinner, +} from "@fortawesome/free-solid-svg-icons"; export const getStaticProps = wrapper.getStaticProps( (store) => async (context) => { @@ -78,30 +82,46 @@ export default function Portfolio({ projects }: any): JSX.Element { ))}
-

- {project?.acm_fields?.title} -
+ {!isLoading ? ( + <> +

+ + {project?.acm_fields?.title} + +
+ + +
+

+
+ {!isLoading && project.acm_fields + ? parser(project?.acm_fields?.portfolioContent, { + trim: true, + }) + : null} +
+ + ) : ( +
-
-

-
- {!isLoading && project.acm_fields - ? parser(project?.acm_fields?.portfolioContent, { trim: true }) - : null} -
+ )}