feat: disable Image optimization

This commit is contained in:
swve 2024-08-12 20:03:07 +02:00
parent 6cb738a8a2
commit 14a3ddebeb
3 changed files with 6 additions and 6 deletions

View file

@ -30,7 +30,7 @@ function NewActivityModal({
}}
>
<div className="h-20 rounded-lg m-0.5 flex flex-col items-center justify-end text-center bg-white hover:cursor-pointer">
<Image quality={100} alt="Dynamic Page" src={DynamicPageActivityImage}></Image>
<Image unoptimized quality={100} alt="Dynamic Page" src={DynamicPageActivityImage}></Image>
</div>
<div className="flex text-sm h-5 font-medium text-gray-500 items-center justify-center text-center">
Dynamic Page
@ -42,7 +42,7 @@ function NewActivityModal({
}}
>
<div className="h-20 rounded-lg m-0.5 flex flex-col items-center justify-end text-center bg-white hover:cursor-pointer">
<Image quality={100} alt="Video Page" src={VideoPageActivityImage}></Image>
<Image unoptimized quality={100} alt="Video Page" src={VideoPageActivityImage}></Image>
</div>
<div className="flex text-sm h-5 font-medium text-gray-500 items-center justify-center text-center">
Video
@ -54,7 +54,7 @@ function NewActivityModal({
}}
>
<div className="h-20 rounded-lg m-0.5 flex flex-col items-center justify-end text-center bg-white hover:cursor-pointer">
<Image quality={100} alt="Document PDF Page" src={DocumentPdfPageActivityImage}></Image>
<Image unoptimized quality={100} alt="Document PDF Page" src={DocumentPdfPageActivityImage}></Image>
</div>
<div className="flex text-sm h-5 font-medium text-gray-500 items-center justify-center text-center">
Document
@ -66,7 +66,7 @@ function NewActivityModal({
}}
>
<div className="h-20 rounded-lg m-0.5 flex flex-col items-center justify-end text-center bg-white hover:cursor-pointer">
<Image quality={100} alt="Assignment Page" src={AssignmentActivityImage}></Image>
<Image unoptimized quality={100} alt="Assignment Page" src={AssignmentActivityImage}></Image>
</div>
<div className="flex text-sm h-5 font-medium text-gray-500 items-center justify-center text-center">
Assignments

View file

@ -213,7 +213,7 @@ const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
<div className='flex flex-col'>
<div className='onboarding_screens flex-col px-4 py-4'>
<div className='flex-grow rounded-xl'>
<Image className='mx-auto shadow-md shadow-gray-200 rounded-lg aspect-auto' alt='' priority quality={100} src={step.imageSrc} />
<Image unoptimized className='mx-auto shadow-md shadow-gray-200 rounded-lg aspect-auto' alt='' priority quality={100} src={step.imageSrc} />
</div>
<div className='grid grid-flow-col justify-stretch space-x-3 mt-4'>
{onboardingData.map((_, index) => (

View file

@ -17,7 +17,7 @@ function TypeOfContentTitle(props: { title: string; type: string }) {
return (
<div className="home_category_title flex my-5 items-center">
<div className="ml-2 rounded-full ring-1 ring-slate-900/5 shadow-inner p-2 my-auto mr-4">
<Image className="" src={getLogo()} alt="Courses logo" />
<Image unoptimized className="" src={getLogo()} alt="Courses logo" />
</div>
<h1 className="font-bold text-2xl">{props.title}</h1>
</div>