aboutme fetch updated
This commit is contained in:
parent
bd9680be4e
commit
68c89e21d3
@ -25,10 +25,13 @@ type AboutMeDataType = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default async function AboutMe() {
|
export default async function AboutMe() {
|
||||||
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/about-me`, {
|
const aboutMeData: AboutMeDataType = await fetch(
|
||||||
|
`${process.env.NEXT_PUBLIC_API_URL}/about-me`,
|
||||||
|
{
|
||||||
cache: "no-store", // غیرفعال کردن کش
|
cache: "no-store", // غیرفعال کردن کش
|
||||||
});
|
},
|
||||||
const aboutMeData: AboutMeDataType = await response.json();
|
).then((res) => res.json());
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="my-10 flex w-full max-w-[90%] flex-wrap items-center justify-center gap-10 pt-[120px]"
|
className="my-10 flex w-full max-w-[90%] flex-wrap items-center justify-center gap-10 pt-[120px]"
|
||||||
|
|||||||
@ -8,10 +8,10 @@ export default function New() {
|
|||||||
className="absolute z-0"
|
className="absolute z-0"
|
||||||
/>
|
/>
|
||||||
<div className="flex items-center justify-center gap-2">
|
<div className="flex items-center justify-center gap-2">
|
||||||
<p className="text-white text-[16px] font-[400]">BY</p>
|
<p className="text-[16px] font-[400] text-white">BY</p>
|
||||||
<h2 className="text-white text-[16px] font-[400]">AUTHOR NAME</h2>
|
<h2 className="text-[16px] font-[400] text-white">AUTHOR NAME</h2>
|
||||||
<p className="text-white text-[16px] font-[400]">IN</p>
|
<p className="text-[16px] font-[400] text-white">IN</p>
|
||||||
<h2 className="text-white text-[16px] font-[400]">CATEGORY</h2>
|
<h2 className="text-[16px] font-[400] text-white">CATEGORY</h2>
|
||||||
</div>
|
</div>
|
||||||
<h1>How to accept rejection gracefully — and use it to grow</h1>
|
<h1>How to accept rejection gracefully — and use it to grow</h1>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user