update landing
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
abf7c359e0
commit
96224f8d4c
|
|
@ -112,11 +112,18 @@ export default function Development() {
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p className="text-[11px] text-gray-600">
|
<p className="text-[11px] text-gray-600">
|
||||||
{new Date(item.publishedAt).toLocaleDateString("id-ID", {
|
{new Date(item?.publishedAt ?? item?.createdAt)
|
||||||
day: "numeric",
|
.toLocaleString("id-ID", {
|
||||||
month: "long",
|
day: "numeric",
|
||||||
year: "numeric",
|
month: "long",
|
||||||
})}
|
year: "numeric",
|
||||||
|
hour: "2-digit",
|
||||||
|
minute: "2-digit",
|
||||||
|
hour12: false,
|
||||||
|
timeZone: "Asia/Jakarta",
|
||||||
|
})
|
||||||
|
.replace("pukul ", "")}{" "}
|
||||||
|
WIB
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ export default function Header() {
|
||||||
|
|
||||||
const res = await getListArticle(req);
|
const res = await getListArticle(req);
|
||||||
setArticles(res?.data?.data || []);
|
setArticles(res?.data?.data || []);
|
||||||
|
console.log("data slider", res?.data?.data || []);
|
||||||
};
|
};
|
||||||
|
|
||||||
fetchArticles();
|
fetchArticles();
|
||||||
|
|
@ -144,14 +145,20 @@ export default function Header() {
|
||||||
</span>
|
</span>
|
||||||
<span>•</span>
|
<span>•</span>
|
||||||
<span>
|
<span>
|
||||||
{new Date(mainArticle.publishedAt).toLocaleDateString(
|
{new Date(
|
||||||
"id-ID",
|
mainArticle?.publishedAt ?? mainArticle?.createdAt,
|
||||||
{
|
)
|
||||||
day: "2-digit",
|
.toLocaleString("id-ID", {
|
||||||
|
day: "numeric",
|
||||||
month: "long",
|
month: "long",
|
||||||
year: "numeric",
|
year: "numeric",
|
||||||
}
|
hour: "2-digit",
|
||||||
)}
|
minute: "2-digit",
|
||||||
|
hour12: false,
|
||||||
|
timeZone: "Asia/Jakarta",
|
||||||
|
})
|
||||||
|
.replace("pukul ", "")}{" "}
|
||||||
|
WIB
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -190,11 +197,18 @@ export default function Header() {
|
||||||
{item.title}
|
{item.title}
|
||||||
</p>
|
</p>
|
||||||
<span className="text-xs text-gray-500 mt-1">
|
<span className="text-xs text-gray-500 mt-1">
|
||||||
{new Date(item.publishedAt).toLocaleDateString("id-ID", {
|
{new Date(item?.publishedAt ?? item?.createdAt)
|
||||||
day: "2-digit",
|
.toLocaleString("id-ID", {
|
||||||
month: "long",
|
day: "numeric",
|
||||||
year: "numeric",
|
month: "long",
|
||||||
})}
|
year: "numeric",
|
||||||
|
hour: "2-digit",
|
||||||
|
minute: "2-digit",
|
||||||
|
hour12: false,
|
||||||
|
timeZone: "Asia/Jakarta",
|
||||||
|
})
|
||||||
|
.replace("pukul ", "")}{" "}
|
||||||
|
WIB
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,18 @@ export default function NewsTerkini() {
|
||||||
{/* AUTHOR + DATE */}
|
{/* AUTHOR + DATE */}
|
||||||
<p className="text-xs text-gray-400 mt-2">
|
<p className="text-xs text-gray-400 mt-2">
|
||||||
By {item.customCreatorName || item.createdByName} —{" "}
|
By {item.customCreatorName || item.createdByName} —{" "}
|
||||||
{formatDate(item.publishedAt)}
|
{new Date(item?.publishedAt ?? item?.createdAt)
|
||||||
|
.toLocaleString("id-ID", {
|
||||||
|
day: "numeric",
|
||||||
|
month: "long",
|
||||||
|
year: "numeric",
|
||||||
|
hour: "2-digit",
|
||||||
|
minute: "2-digit",
|
||||||
|
hour12: false,
|
||||||
|
timeZone: "Asia/Jakarta",
|
||||||
|
})
|
||||||
|
.replace("pukul ", "")}{" "}
|
||||||
|
WIB
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="relative w-40 h-28 rounded overflow-hidden flex-shrink-0">
|
<div className="relative w-40 h-28 rounded overflow-hidden flex-shrink-0">
|
||||||
|
|
@ -144,7 +155,18 @@ export default function NewsTerkini() {
|
||||||
{item.title}
|
{item.title}
|
||||||
</h4>
|
</h4>
|
||||||
<p className="text-[10px] text-gray-400 mt-1">
|
<p className="text-[10px] text-gray-400 mt-1">
|
||||||
{formatDate(item.createdAt)}
|
{new Date(item?.publishedAt ?? item?.createdAt)
|
||||||
|
.toLocaleString("id-ID", {
|
||||||
|
day: "numeric",
|
||||||
|
month: "long",
|
||||||
|
year: "numeric",
|
||||||
|
hour: "2-digit",
|
||||||
|
minute: "2-digit",
|
||||||
|
hour12: false,
|
||||||
|
timeZone: "Asia/Jakarta",
|
||||||
|
})
|
||||||
|
.replace("pukul ", "")}{" "}
|
||||||
|
WIB
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -100,11 +100,18 @@ export default function News() {
|
||||||
</span>
|
</span>
|
||||||
<span className="text-yellow-500">-</span>
|
<span className="text-yellow-500">-</span>
|
||||||
<span>
|
<span>
|
||||||
{new Date(item.publishedAt).toLocaleDateString("id-ID", {
|
{new Date(item?.publishedAt ?? item?.createdAt)
|
||||||
day: "numeric",
|
.toLocaleString("id-ID", {
|
||||||
month: "long",
|
day: "numeric",
|
||||||
year: "numeric",
|
month: "long",
|
||||||
})}
|
year: "numeric",
|
||||||
|
hour: "2-digit",
|
||||||
|
minute: "2-digit",
|
||||||
|
hour12: false,
|
||||||
|
timeZone: "Asia/Jakarta",
|
||||||
|
})
|
||||||
|
.replace("pukul ", "")}{" "}
|
||||||
|
WIB
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -100,11 +100,18 @@ export default function OpinionNews() {
|
||||||
</span>
|
</span>
|
||||||
<span className="text-yellow-500">-</span>
|
<span className="text-yellow-500">-</span>
|
||||||
<span>
|
<span>
|
||||||
{new Date(item.publishedAt).toLocaleDateString("id-ID", {
|
{new Date(item?.publishedAt ?? item?.createdAt)
|
||||||
day: "numeric",
|
.toLocaleString("id-ID", {
|
||||||
month: "long",
|
day: "numeric",
|
||||||
year: "numeric",
|
month: "long",
|
||||||
})}
|
year: "numeric",
|
||||||
|
hour: "2-digit",
|
||||||
|
minute: "2-digit",
|
||||||
|
hour12: false,
|
||||||
|
timeZone: "Asia/Jakarta",
|
||||||
|
})
|
||||||
|
.replace("pukul ", "")}{" "}
|
||||||
|
WIB
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue