fixing
This commit is contained in:
parent
426a9e5c39
commit
47402ea655
|
|
@ -201,7 +201,7 @@ export default function FormBlog() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const blogId = response?.data?.data.id;
|
const blogId = response?.data?.data?.id;
|
||||||
if (blogId) {
|
if (blogId) {
|
||||||
if (thumbnail) {
|
if (thumbnail) {
|
||||||
const formMedia = new FormData();
|
const formMedia = new FormData();
|
||||||
|
|
|
||||||
|
|
@ -244,6 +244,8 @@ const EventCalender = () => {
|
||||||
<Image
|
<Image
|
||||||
src={event.thumbnailUrl || "/images/default-event.png"}
|
src={event.thumbnailUrl || "/images/default-event.png"}
|
||||||
alt={event.title}
|
alt={event.title}
|
||||||
|
width={1920}
|
||||||
|
height={1080}
|
||||||
className="w-16 h-12 object-cover rounded flex-shrink-0"
|
className="w-16 h-12 object-cover rounded flex-shrink-0"
|
||||||
/>
|
/>
|
||||||
<div className="ml-3 flex-1 min-w-0">
|
<div className="ml-3 flex-1 min-w-0">
|
||||||
|
|
|
||||||
|
|
@ -83,10 +83,12 @@ const ScrollableContent = () => {
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<h1 className="text-[18px] md:text-3xl font-bold text-gray-800 dark:text-white">
|
<h1 className="text-[18px] md:text-3xl font-bold text-gray-800 dark:text-white">
|
||||||
<span className="text-[#c03724] 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>
|
||||||
<span className="text-[#c03724] dark:text-white">
|
<span className="text-[#c03724] dark:text-white">
|
||||||
{t("download", { defaultValue: "Download" })} {t("coverage", { defaultValue: "Coverage" })}
|
{t("download", { defaultValue: "Download" })}
|
||||||
|
{t("coverage", { defaultValue: "Coverage" })}
|
||||||
</span>{" "}
|
</span>{" "}
|
||||||
</h1>
|
</h1>
|
||||||
<div className="w-[10%] h-1 bg-[#bb3523] mt-2"></div>
|
<div className="w-[10%] h-1 bg-[#bb3523] mt-2"></div>
|
||||||
|
|
@ -118,11 +120,21 @@ const ScrollableContent = () => {
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectGroup>
|
<SelectGroup>
|
||||||
<SelectItem value="all">{t("allContent", { defaultValue: "All Content" })}</SelectItem>
|
<SelectItem value="all">
|
||||||
<SelectItem value="image">{t("image", { defaultValue: "Image" })}</SelectItem>
|
{t("allContent", { defaultValue: "All Content" })}
|
||||||
<SelectItem value="video">{t("video", { defaultValue: "Video" })}</SelectItem>
|
</SelectItem>
|
||||||
<SelectItem value="document">{t("text", { defaultValue: "Text" })}</SelectItem>
|
<SelectItem value="image">
|
||||||
<SelectItem value="audio">{t("audio", { defaultValue: "Audio" })}</SelectItem>
|
{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>
|
</SelectGroup>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
|
|
@ -142,7 +154,9 @@ const ScrollableContent = () => {
|
||||||
</span>
|
</span>
|
||||||
<input
|
<input
|
||||||
type="text"
|
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"
|
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)}
|
onChange={(e) => setSearch(e.target.value)}
|
||||||
/>
|
/>
|
||||||
|
|
@ -150,7 +164,7 @@ const ScrollableContent = () => {
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
onClick={() =>
|
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]"
|
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]"
|
||||||
>
|
>
|
||||||
|
|
@ -199,7 +213,7 @@ const ScrollableContent = () => {
|
||||||
priority={true}
|
priority={true}
|
||||||
src={item?.smallThumbnailLink}
|
src={item?.smallThumbnailLink}
|
||||||
alt={item?.title}
|
alt={item?.title}
|
||||||
layout="fill"
|
fill
|
||||||
objectFit="cover"
|
objectFit="cover"
|
||||||
/>
|
/>
|
||||||
<div className="absolute top-2 right-2 bg-[#c03724] rounded-full p-1 shadow">
|
<div className="absolute top-2 right-2 bg-[#c03724] rounded-full p-1 shadow">
|
||||||
|
|
@ -252,7 +266,9 @@ const ScrollableContent = () => {
|
||||||
onClick={() => setSeeAllValuePolda(!seeAllValuePolda)}
|
onClick={() => setSeeAllValuePolda(!seeAllValuePolda)}
|
||||||
className="bg-white hover:bg-[#bb3523] text-[#bb3523] hover:text-white border-2 border-[#bb3523]"
|
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">
|
<span className="text-[#bb3523] hover:text-white">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|
@ -316,7 +332,7 @@ const ScrollableContent = () => {
|
||||||
priority={true}
|
priority={true}
|
||||||
src={item?.smallThumbnailLink}
|
src={item?.smallThumbnailLink}
|
||||||
alt={item?.title}
|
alt={item?.title}
|
||||||
layout="fill"
|
fill
|
||||||
objectFit="cover"
|
objectFit="cover"
|
||||||
/>
|
/>
|
||||||
<div className="absolute top-2 right-2 bg-[#c03724] rounded-full p-1 shadow">
|
<div className="absolute top-2 right-2 bg-[#c03724] rounded-full p-1 shadow">
|
||||||
|
|
@ -368,7 +384,9 @@ const ScrollableContent = () => {
|
||||||
onClick={() => setSeeAllValueSatker(!seeAllValueSatker)}
|
onClick={() => setSeeAllValueSatker(!seeAllValueSatker)}
|
||||||
className="bg-white hover:bg-[#bb3523] text-[#bb3523] hover:text-white border-2 border-[#bb3523]"
|
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">
|
<span className="text-[#bb3523] hover:text-white">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue