Skip to content

Commit

Permalink
added unoptimized tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Shibbu264 committed Jan 22, 2025
1 parent 0fc4921 commit 6cfb6be
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 24 deletions.
2 changes: 2 additions & 0 deletions app/merch/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function CardWithForm() {
<CardContent>
<div className="w-full h-[300px] md:h-[400px] lg:h-[450px] overflow-hidden rounded-md">
<Image
unoptimized
src="/images/T-Shirt Front.png"
alt="E-Summit 2024 Merchandise Front"
width={600}
Expand All @@ -30,6 +31,7 @@ export default function CardWithForm() {
<CardContent>
<div className="w-full h-[300px] md:h-[400px] lg:h-[450px] overflow-hidden rounded-md">
<Image
unoptimized
src="/images/T-Shirt Back.png"
alt="E-Summit 2024 Merchandise Back"
width={600}
Expand Down
2 changes: 2 additions & 0 deletions components/EventsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const EventsCard: (props: EventProps) => JSX.Element = (props: EventProps) => {
>
<div className={"flex justify-center"}>
<Image
unoptimized
src={props.imageUrl}
alt={props.title}
width={250}
Expand Down Expand Up @@ -57,6 +58,7 @@ const EventsCard: (props: EventProps) => JSX.Element = (props: EventProps) => {
export default EventsCard;
// <article className="group relative flex flex-col space-y-2">
// <Image
unoptimized
// src={props.imageUrl}
// alt={props.title}
// width={404}
Expand Down
40 changes: 23 additions & 17 deletions components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Res from "@/public/reg.png";
import { ToastContainer, toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";

interface OwnProps {}
interface OwnProps { }

import "@/app/globals.css";

Expand Down Expand Up @@ -72,23 +72,25 @@ const Hero: FunctionComponent<Props> = () => {
>
<div className="flex justify-center w-fit mx-auto items-center gap-4">
<Link href={"https://sarasai.org/"}>
<Image
src={Saras}
width={isSmallScreen ? 100 : 150}
height={isSmallScreen ? 100 : 150}
alt="Saras logo"
className="mx-auto"

<Image
unoptimized
src={Saras}
width={isSmallScreen ? 100 : 150}
height={isSmallScreen ? 100 : 150}
alt="Saras logo"
className="mx-auto"

/>
</Link>
<span className="text-2xl font-bold">×</span>
<Link href={"https://www.iitbhufoundation.org/"}>
<Image
src={Ibf}
width={isSmallScreen ? 100 : 150}
height={isSmallScreen ? 100 : 150}
alt="IBF logo"
className="mx-auto brightness-150"
<Image
unoptimized
src={Ibf}
width={isSmallScreen ? 100 : 150}
height={isSmallScreen ? 100 : 150}
alt="IBF logo"
className="mx-auto brightness-150"
/>
</Link>
</div>
Expand All @@ -110,6 +112,7 @@ const Hero: FunctionComponent<Props> = () => {
style={{ marginTop: isSmallScreen ? "2%" : "5%" }}
>
<Image
unoptimized
src={Logo}
width={isSmallScreen ? 200 : 300}
height={isSmallScreen ? 200 : 300}
Expand Down Expand Up @@ -165,7 +168,8 @@ const Hero: FunctionComponent<Props> = () => {
delay: 1,
}}
>
<Image src={Res} alt="Arrow Icon" width={50} height={50} />
<Image
unoptimized src={Res} alt="Arrow Icon" width={50} height={50} />
</motion.div>
</Link>
</div>
Expand Down Expand Up @@ -203,14 +207,16 @@ const Hero: FunctionComponent<Props> = () => {
delay: 1,
}}
>
<Image src={Res} alt="Arrow Icon" width={50} height={50} />
<Image
unoptimized src={Res} alt="Arrow Icon" width={50} height={50} />
</motion.div>
</Link>
</div>
</div>
) : (
<div className="rounded-full flex justify-center items-center bg-gradient-to-r from-purple-600 to-red-500 cursor-pointer mt-4">
<Image src={Res} alt="Arrow Icon" width={50} height={50} />
<Image
unoptimized src={Res} alt="Arrow Icon" width={50} height={50} />
</div>
)}
</motion.div>
Expand Down
1 change: 1 addition & 0 deletions components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const Navbar: FunctionComponent<Props> = (props) => {
className="block w-10 -m-4 items-center"
>
<Image
unoptimized
src={logo}
style={{ width: "50px", height: "20px" }}
alt="E-Summit'24 logo"
Expand Down
1 change: 1 addition & 0 deletions components/PartnerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const PartnerCard: FunctionComponent<Props> = (props: OwnProps) => {
<div className="relative flex flex-col cursor-pointer bg-card shadow-md bg-clip-border rounded-xl w-64 m-4 md:m-2">
<a href={props?.siteURL} target="_blank" rel="no-referrer" className="relative mx-4 overflow-hidden shadow-lg bg-clip-border rounded-xl">
<Image
unoptimized
width={800}
height={500}
// fill={true}
Expand Down
1 change: 1 addition & 0 deletions components/SpeakerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const SpeakerCard: FunctionComponent<Props> = (props: OwnProps) => {
<div className="relative flex flex-col hover:bg-accent bg-card shadow-md bg-clip-border rounded-xl w-64 m-4 md:m-2">
<div className="relative mx-4 mt-4 overflow-hidden shadow-lg bg-clip-border rounded-xl">
<Image
unoptimized
width={500}
height={800}
// fill={true}
Expand Down
3 changes: 2 additions & 1 deletion components/WSYA/WSYA.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const MotionDiv = ({ src, width, height, alt, text }) => (
className="mt-8 flex flex-col items-center justify-center"
>
<div className="filter invert">
<Image src={src} width={width} height={height} alt={alt} />
<Image
unoptimized src={src} width={width} height={height} alt={alt} />
</div>
<p className="">{text}</p>
</motion.div>
Expand Down
6 changes: 4 additions & 2 deletions components/faq/components/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ const Accordion = ({question, answer, turn, setTurn, idx}: Props) => {
<div className='flex items-center justify-between h-14 text-left'>
<span className='ml-2 font-medium lg:font-semibold lg:text-xl text-sm text-sky-600'>{question}</span>
<div>
{ turn![idx] ? <Image src={minus} alt="" width={20} height={20}/> :
<Image src={plus} alt="" width={20} height={20}/>}
{ turn![idx] ? <Image
unoptimized src={minus} alt="" width={20} height={20}/> :
<Image
unoptimized src={plus} alt="" width={20} height={20}/>}

</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions components/faq/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const Layout = ({
}
>
<Image
unoptimized
// className="bg-transparent"
src={down}
alt=""
Expand Down
3 changes: 2 additions & 1 deletion components/gallery/gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const Gallery = () => {
<div className={styles.container}>
{imageUrls.map((imageUrl, index) => (
<div className={styles.img} key={index}>
<Image src={imageUrl.url} alt={`Image-${index}`} width={100} height={100} />
<Image
unoptimized src={imageUrl.url} alt={`Image-${index}`} width={100} height={100} />
</div>
))}
</div>
Expand Down
3 changes: 2 additions & 1 deletion public/logos/Tec.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions public/logos/ecell_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6cfb6be

Please sign in to comment.