Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhgray committed Oct 30, 2023
1 parent 31952f0 commit c21d368
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 14 deletions.
13 changes: 8 additions & 5 deletions web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function Home() {
slidesToScroll: 3,
arrows: false,
dots: false,
beforeChange: (_: any, next: any) => { setSlideIndex(next); console.log(next); },
beforeChange: (_: any, next: any) => { setSlideIndex(next); },
responsive: [
{
breakpoint: 1000,
Expand Down Expand Up @@ -239,13 +239,16 @@ export default function Home() {
<Image
style={{
position: 'absolute',
width: '100%',
height: '100%',
}}
// width={300}
// height={300}
src={pic.img}
layout='fill' // Fills the parent container
objectFit='cover' // Enlarges/shrinks the image to cover the container
fill
sizes='100vw'
// layout='fill' // Fills the parent container
// objectFit='cover' // Enlarges/shrinks the image to cover the container
alt='event'
className='object-cover '
/>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions web/components/Icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ type Props = {

const Icon = ({ icon, name, link, small, xsmall }: Props) => {
return (
<Link target="blank" href={link} className={`flex items-center ${xsmall ? "w-[1.5rem] h-[1.5rem]" : small ? "w-[2rem] h-[2rem]": "w-[3rem] h-[3rem]"} opacity-60 hover:opacity-100`} >
<Image src={getIcon(icon)} alt={name} layout="responsive" />
<Link target="_blank" href={link} className={`flex items-center ${xsmall ? "w-[1.5rem] h-[1.5rem]" : small ? "w-[2rem] h-[2rem]": "w-[3rem] h-[3rem]"} opacity-60 hover:opacity-100`} >
<Image src={getIcon(icon)} alt={name} className="w-full h-auto" />
</Link>
);
}
Expand Down
7 changes: 4 additions & 3 deletions web/components/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ const ProjectCard = ({ img, title, description, link, i, github }: Props) => {
<div style={{ width: '100%', overflow: 'hidden' }}>
<Image
src={img}
layout='responsive'
// layout='responsive'
sizes='100vw'
width={300}
height={300}
objectFit='contain'
// objectFit='contain'
alt='proj'
className='aspect-video'
className='aspect-video w-full h-auto object-cover'
/>
</div>
</div>
Expand Down
9 changes: 8 additions & 1 deletion web/components/TeamCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ const TeamCard = ({ img, title, subtitle, i, linkedin, github, link }: Props) =>
return (
<Card bg='white' i={i}>
<div className='w-full border-2 border-black rounded-md'>
<Image src={img} layout='responsive' width={300} height={300} alt='Logo' />
<Image
src={img}
sizes='100vw'
width={300}
height={300}
className='w-full h-auto'
alt='pfp'
/>
</div>
<h2 className='my-3 font-sans text-2xl font-semibold'>
{title}
Expand Down
6 changes: 3 additions & 3 deletions web/components/TeamCardForGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ const TeamCardForGrid = ({ img, title, subtitle, i, github, link, linkedin }: Pr
<div className='aspect-square' style={{ width: '100%', overflow: 'hidden' }}>
<Image
src={img}
layout='responsive'
sizes='100vw'
width={300}
height={300}
objectFit='cover'
alt='Logo'
className='w-full h-auto object-cover'
alt='pfp'
/>
</div>
</div>
Expand Down

0 comments on commit c21d368

Please sign in to comment.