Skip to content

Commit

Permalink
fix: change img tags to Image of next/image (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
kavania2002 authored Jul 8, 2024
1 parent ae1f633 commit 788bc04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/Sponsors/sponsors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import React from 'react'
import Heading from '../Typography/heading';
import Paragraph from '../Typography/paragraph';
import Image from 'next/image';

function Sponsors({imgs}) {
return (
Expand All @@ -20,14 +21,13 @@ function Sponsors({imgs}) {
{imgs &&
imgs.map((img) => (
<div key={img} className='w-[300px] h-[150px] flex items-center'>
<img src={img} alt={img} className='' />
<Image src={img} alt={img} height={210} width={300}/>
</div>
))}
</div>
<div className=' flex space-y-2 flex-col items-center justify-center text-white text-2xl font-bold'>
<Heading typeStyle='heading-md' className='text-white mb-12 sm:text-2xl'>Financial Sponsor</Heading>

<img src="/img/graviteeio.svg" alt='financial sponsor' width={250} />
<Image src="/img/graviteeio.svg" alt='financial sponsor' width={250} height={50} />
</div>
</div>
</div>
Expand Down

0 comments on commit 788bc04

Please sign in to comment.