Skip to content

Commit

Permalink
Merge pull request #9 from isinghdivyanshu/master
Browse files Browse the repository at this point in the history
feat: update board, sc and jc
  • Loading branch information
anirudhgray authored Sep 30, 2024
2 parents fda9800 + 6bfa642 commit e27edb1
Show file tree
Hide file tree
Showing 90 changed files with 1,165 additions and 953 deletions.
658 changes: 344 additions & 314 deletions web/app/team/page.tsx

Large diffs are not rendered by default.

115 changes: 67 additions & 48 deletions web/components/TeamCardForGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,50 +1,69 @@
import React from 'react'
import Image from 'next/image'
import Card from './Card'
import Icon from './Icons'
import React from "react";
import Image from "next/image";
import Card from "./Card";
import Icon from "./Icons";
type Props = {
img: string
title: string
subtitle?: string;
i: number;
github?: string;
linkedin?: string;
link?: string;
}
img: string;
title: string;
subtitle?: string;
i: number;
github?: string;
linkedin?: string;
link?: string;
};

const TeamCardForGrid = ({ img, title, subtitle, i, github, link, linkedin }: Props) => {
return (
<div className='bg-white flex-col p-3 m-2 lg:m-4 rounded-md border-2 border-black flex'>
<div className='w-full border-2 border-black rounded-md '>
<div className='aspect-square' style={{ width: '100%', overflow: 'hidden' }}>
<Image
src={img}
sizes='100vw'
width={300}
height={300}
className='w-full h-auto object-cover'
alt='pfp'
/>
</div>
</div>
<h2 className='my-3 font-sans xl:text-2xl text-xl font-semibold text-black'>
{title}
</h2>
<h3 className='text-grey'>
{subtitle}
</h3>
<div className='flex gap-2 justify-end mt-auto pt-2'>
{link ?
<Icon icon='web' xsmall link={link || ""} name='userweb' />
: null}
{github ?
<Icon icon='githubdark' xsmall link={github || ""} name='usergh' />
: null}
{linkedin ?
<Icon icon='linkedindark' xsmall link={linkedin || ""} name='userli' />
: null}
</div>
</div>
)
}
export default TeamCardForGrid
const TeamCardForGrid = ({
img,
title,
subtitle,
i,
github,
link,
linkedin,
}: Props) => {
return (
<div className="bg-white flex-col p-3 m-2 lg:m-4 rounded-md border-2 border-black flex">
<div className="w-full border-2 border-black rounded-md ">
<div
className="aspect-square"
style={{ width: "100%", overflow: "hidden" }}
>
<Image
src={img}
sizes="100vw"
width={300}
height={300}
className="w-full min-h-full object-center"
alt="pfp"
/>
</div>
</div>
<h2 className="my-3 font-sans xl:text-2xl text-xl font-semibold text-black">
{title}
</h2>
<h3 className="text-grey">{subtitle}</h3>
<div className="flex gap-2 justify-end mt-auto pt-2">
{link ? (
<Icon icon="web" xsmall link={link || ""} name="userweb" />
) : null}
{github ? (
<Icon
icon="githubdark"
xsmall
link={github || ""}
name="usergh"
/>
) : null}
{linkedin ? (
<Icon
icon="linkedindark"
xsmall
link={linkedin || ""}
name="userli"
/>
) : null}
</div>
</div>
);
};
export default TeamCardForGrid;
Loading

0 comments on commit e27edb1

Please sign in to comment.