aboutme fetch updated

This commit is contained in:
parsa aghaei 2024-10-01 10:04:00 +03:30
parent bd9680be4e
commit 68c89e21d3
2 changed files with 11 additions and 8 deletions

View File

@ -25,10 +25,13 @@ type AboutMeDataType = {
};
export default async function AboutMe() {
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/about-me`, {
cache: "no-store", // غیرفعال کردن کش
});
const aboutMeData: AboutMeDataType = await response.json();
const aboutMeData: AboutMeDataType = await fetch(
`${process.env.NEXT_PUBLIC_API_URL}/about-me`,
{
cache: "no-store", // غیرفعال کردن کش
},
).then((res) => res.json());
return (
<div
className="my-10 flex w-full max-w-[90%] flex-wrap items-center justify-center gap-10 pt-[120px]"

View File

@ -8,10 +8,10 @@ export default function New() {
className="absolute z-0"
/>
<div className="flex items-center justify-center gap-2">
<p className="text-white text-[16px] font-[400]">BY</p>
<h2 className="text-white text-[16px] font-[400]">AUTHOR NAME</h2>
<p className="text-white text-[16px] font-[400]">IN</p>
<h2 className="text-white text-[16px] font-[400]">CATEGORY</h2>
<p className="text-[16px] font-[400] text-white">BY</p>
<h2 className="text-[16px] font-[400] text-white">AUTHOR NAME</h2>
<p className="text-[16px] font-[400] text-white">IN</p>
<h2 className="text-[16px] font-[400] text-white">CATEGORY</h2>
</div>
<h1>How to accept rejection gracefully and use it to grow</h1>
<p>