fixing
This commit is contained in:
parent
426a9e5c39
commit
47402ea655
|
|
@ -201,7 +201,7 @@ export default function FormBlog() {
|
|||
return;
|
||||
}
|
||||
|
||||
const blogId = response?.data?.data.id;
|
||||
const blogId = response?.data?.data?.id;
|
||||
if (blogId) {
|
||||
if (thumbnail) {
|
||||
const formMedia = new FormData();
|
||||
|
|
|
|||
|
|
@ -244,6 +244,8 @@ const EventCalender = () => {
|
|||
<Image
|
||||
src={event.thumbnailUrl || "/images/default-event.png"}
|
||||
alt={event.title}
|
||||
width={1920}
|
||||
height={1080}
|
||||
className="w-16 h-12 object-cover rounded flex-shrink-0"
|
||||
/>
|
||||
<div className="ml-3 flex-1 min-w-0">
|
||||
|
|
|
|||
|
|
@ -83,10 +83,12 @@ const ScrollableContent = () => {
|
|||
<div className="w-full">
|
||||
<h1 className="text-[18px] md:text-3xl font-bold text-gray-800 dark:text-white">
|
||||
<span className="text-[#c03724] dark:text-white">
|
||||
{t("exploration", { defaultValue: "Exploration" })} {t("and", { defaultValue: "And" })}
|
||||
{t("exploration", { defaultValue: "Exploration" })}
|
||||
{t("and", { defaultValue: "And" })}
|
||||
</span>
|
||||
<span className="text-[#c03724] dark:text-white">
|
||||
{t("download", { defaultValue: "Download" })} {t("coverage", { defaultValue: "Coverage" })}
|
||||
{t("download", { defaultValue: "Download" })}
|
||||
{t("coverage", { defaultValue: "Coverage" })}
|
||||
</span>{" "}
|
||||
</h1>
|
||||
<div className="w-[10%] h-1 bg-[#bb3523] mt-2"></div>
|
||||
|
|
@ -118,11 +120,21 @@ const ScrollableContent = () => {
|
|||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectGroup>
|
||||
<SelectItem value="all">{t("allContent", { defaultValue: "All Content" })}</SelectItem>
|
||||
<SelectItem value="image">{t("image", { defaultValue: "Image" })}</SelectItem>
|
||||
<SelectItem value="video">{t("video", { defaultValue: "Video" })}</SelectItem>
|
||||
<SelectItem value="document">{t("text", { defaultValue: "Text" })}</SelectItem>
|
||||
<SelectItem value="audio">{t("audio", { defaultValue: "Audio" })}</SelectItem>
|
||||
<SelectItem value="all">
|
||||
{t("allContent", { defaultValue: "All Content" })}
|
||||
</SelectItem>
|
||||
<SelectItem value="image">
|
||||
{t("image", { defaultValue: "Image" })}
|
||||
</SelectItem>
|
||||
<SelectItem value="video">
|
||||
{t("video", { defaultValue: "Video" })}
|
||||
</SelectItem>
|
||||
<SelectItem value="document">
|
||||
{t("text", { defaultValue: "Text" })}
|
||||
</SelectItem>
|
||||
<SelectItem value="audio">
|
||||
{t("audio", { defaultValue: "Audio" })}
|
||||
</SelectItem>
|
||||
</SelectGroup>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
|
|
@ -142,7 +154,9 @@ const ScrollableContent = () => {
|
|||
</span>
|
||||
<input
|
||||
type="text"
|
||||
placeholder={t("searchCoverageHere", { defaultValue: "Search Coverage Here" })}
|
||||
placeholder={t("searchCoverageHere", {
|
||||
defaultValue: "Search Coverage Here",
|
||||
})}
|
||||
className="w-full py-4 px-2 text-sm text-gray-700 dark:text-gray-100 focus:outline-none"
|
||||
onChange={(e) => setSearch(e.target.value)}
|
||||
/>
|
||||
|
|
@ -150,7 +164,7 @@ const ScrollableContent = () => {
|
|||
</div>
|
||||
<button
|
||||
onClick={() =>
|
||||
router.push( prefixPath + `/${contentType}/filter?title=${search}`)
|
||||
router.push(prefixPath + `/${contentType}/filter?title=${search}`)
|
||||
}
|
||||
className="flex justify-center items-center px-6 w-full lg:w-[20%] py-4 bg-[#bb3523] gap-2 text-white rounded-lg hover:bg-red-700 text-[14px]"
|
||||
>
|
||||
|
|
@ -196,10 +210,10 @@ const ScrollableContent = () => {
|
|||
}
|
||||
>
|
||||
<Image
|
||||
priority={true}
|
||||
priority={true}
|
||||
src={item?.smallThumbnailLink}
|
||||
alt={item?.title}
|
||||
layout="fill"
|
||||
fill
|
||||
objectFit="cover"
|
||||
/>
|
||||
<div className="absolute top-2 right-2 bg-[#c03724] rounded-full p-1 shadow">
|
||||
|
|
@ -252,7 +266,9 @@ const ScrollableContent = () => {
|
|||
onClick={() => setSeeAllValuePolda(!seeAllValuePolda)}
|
||||
className="bg-white hover:bg-[#bb3523] text-[#bb3523] hover:text-white border-2 border-[#bb3523]"
|
||||
>
|
||||
{seeAllValuePolda ? t("seeLess", { defaultValue: "See Less" }) : t("seeMore", { defaultValue: "See More" })}{" "}
|
||||
{seeAllValuePolda
|
||||
? t("seeLess", { defaultValue: "See Less" })
|
||||
: t("seeMore", { defaultValue: "See More" })}{" "}
|
||||
<span className="text-[#bb3523] hover:text-white">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
|
@ -313,10 +329,10 @@ const ScrollableContent = () => {
|
|||
}
|
||||
>
|
||||
<Image
|
||||
priority={true}
|
||||
priority={true}
|
||||
src={item?.smallThumbnailLink}
|
||||
alt={item?.title}
|
||||
layout="fill"
|
||||
fill
|
||||
objectFit="cover"
|
||||
/>
|
||||
<div className="absolute top-2 right-2 bg-[#c03724] rounded-full p-1 shadow">
|
||||
|
|
@ -368,7 +384,9 @@ const ScrollableContent = () => {
|
|||
onClick={() => setSeeAllValueSatker(!seeAllValueSatker)}
|
||||
className="bg-white hover:bg-[#bb3523] text-[#bb3523] hover:text-white border-2 border-[#bb3523]"
|
||||
>
|
||||
{seeAllValueSatker ? t("seeLess", { defaultValue: "See Less" }) : t("seeMore", { defaultValue: "See More" })}{" "}
|
||||
{seeAllValueSatker
|
||||
? t("seeLess", { defaultValue: "See Less" })
|
||||
: t("seeMore", { defaultValue: "See More" })}{" "}
|
||||
<span className="text-[#bb3523] hover:text-white">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue