aboutme backend internationalization added
This commit is contained in:
parent
e89b8f8b44
commit
28370e30aa
@ -1,11 +1,12 @@
|
||||
import { AboutMeDataType } from "@/app/types/types";
|
||||
import { cookies } from "next/headers";
|
||||
import React from "react";
|
||||
import Skeleton from "react-loading-skeleton";
|
||||
import "react-loading-skeleton/dist/skeleton.css";
|
||||
|
||||
export default async function AboutMe() {
|
||||
const aboutMeData: AboutMeDataType = await fetch(
|
||||
`${process.env.NEXT_PUBLIC_FRONT_URL}/api/website/about-me`,
|
||||
`${process.env.NEXT_PUBLIC_API_URL}/website/about-me/1/translation/${cookies().get("selectedLocale")?.value}`,
|
||||
).then((res) => res.json());
|
||||
|
||||
return (
|
||||
@ -14,7 +15,7 @@ export default async function AboutMe() {
|
||||
id="about-me"
|
||||
>
|
||||
<div className="flex w-full flex-col items-center md:w-[50%]">
|
||||
<h2 className="text-start w-full text-[55px] font-[800] text-black">
|
||||
<h2 className="w-full text-start text-[55px] font-[800] text-black">
|
||||
{aboutMeData?.title || <Skeleton width={300} height={100} />}
|
||||
</h2>
|
||||
<p className="my-5 text-start text-[21px] font-[400] text-black">
|
||||
|
||||
@ -235,8 +235,6 @@ export type AboutMeDataType = {
|
||||
title: string;
|
||||
description: string;
|
||||
image: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
skills: SkillType[];
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user