Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions components/CommitteeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,19 @@ export const CommitteeCard = ({ members }: { members: Members[] }) => {
: ''
}
>
<h2 className="text-2xl font-bold text-gray-900 mb-2 text-center">{post}</h2>
<h2 className="text-2xl font-bold text-gray-900 mb-2 text-center">
{post}
</h2>
{/* <div className="w-24 h-1 bg-gradient-to-r from-blue-500 to-indigo-500 mx-auto rounded-full"></div> */}
</div>

{/* Cards for this group - two per row on large screens, one per row on small */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
{postMembers.map((member, idx) => {
const isLastSingle = postMembers.length % 2 === 1 && idx === postMembers.length - 1 && post === 'Patrons'
const isLastSingle =
postMembers.length % 2 === 1 &&
idx === postMembers.length - 1 &&
post === 'Patrons'

const card = (
<>
Expand All @@ -60,13 +65,14 @@ export const CommitteeCard = ({ members }: { members: Members[] }) => {
<div className="w-40 h-40 bg-gradient-to-br from-gray-100 to-gray-200 rounded-xl overflow-hidden flex items-center justify-center">
{member.imgLink ? (
<img
className="w-full h-full object-cover transition-transform duration-300 group-hover:scale-105 rounded-xl"
className="w-full h-full object-cover object-top transition-transform duration-300 group-hover:scale-105 rounded-xl"
src={member.imgLink}
alt={`${member.name}'s photo`}
onError={(e) => {
const target = e.target as HTMLImageElement
target.style.display = 'none'
const fallback = target.nextElementSibling as HTMLElement
const fallback =
target.nextElementSibling as HTMLElement
if (fallback) fallback.style.display = 'flex'
}}
/>
Expand Down Expand Up @@ -104,7 +110,9 @@ export const CommitteeCard = ({ members }: { members: Members[] }) => {
{member.name}
</h3>
{member.position && (
<p className="mt-1 text-sm text-gray-600 font-medium">{member.position}</p>
<p className="mt-1 text-sm text-gray-600 font-medium">
{member.position}
</p>
)}
</div>

Expand Down
6 changes: 3 additions & 3 deletions data/conference_chairs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const conference_chairs_data = [
name: 'Dr. K Sreelakshmi',
post: 'Program Chair',
department: 'ETE',
imgLink: '/committee/conference_committee/USHA-J-1-1229x1536.jpg',
imgLink: '/committee/conference_committee/SREELAKSHMI.jpg',
email: '',
},
{
Expand Down Expand Up @@ -90,6 +90,6 @@ const conference_chairs_data = [
imgLink: '/committee/conference_committee/BHADARINATH-K-1-1229x1536.jpg',
email: '',
},
];
]

export default conference_chairs_data;
export default conference_chairs_data
9 changes: 4 additions & 5 deletions data/patrons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const patrons = [
position: 'Hon. Joint Secretary, RSST',
imgLink: 'https://rvu.edu.in/wp-content/uploads/2023/02/01-3.png',
},



{
name: 'Sri. Venkatesh Babu P S',
post: 'Patrons',
Expand All @@ -29,8 +28,8 @@ const patrons = [
name: 'Sri. Nikhil A Murthy',
post: 'Patrons',
position: 'Assistant Secretary, RSST',
imgLink: '',
imgLink: '/committee/nikhilamurthy.jpeg',
},
];
]

export default patrons;
export default patrons
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/committee/nikhilamurthy.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.