Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added meet the Helm #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Binary file added src/assets/images/1723468189219.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 82 additions & 0 deletions src/components/meetHelm.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import React from 'react';

import image1 from '../assets/images/Screenshot 2024-12-24 225656.png';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Use semantic names for image assets

Screenshot timestamps as image names are not maintainable. Consider using descriptive names that reflect the content (e.g., 'astha_profile.png').

Suggested implementation:

import asthaImage from '../assets/images/astha_secretary_profile.png';
import memberTwoImage from '../assets/images/member_two_profile.jpeg';
import memberThreeImage from '../assets/images/member_three_profile.png';
            image: asthaImage,

You will need to:

  1. Rename the actual image files in the assets directory to match the new import paths:
    • Rename "Screenshot 2024-12-24 225656.png" to "astha_secretary_profile.png"
    • Rename "1723468189219.jpeg" to "member_two_profile.jpeg"
    • Rename "Screenshot 2024-12-24 225827.png" to "member_three_profile.png"
  2. Update any other references to image2 and image3 in the component (which are not visible in the provided code snippet) to use memberTwoImage and memberThreeImage respectively

import image2 from '../assets/images/1723468189219.jpeg';
import image3 from '../assets/images/Screenshot 2024-12-24 225827.png';


const MeetTheHelm: React.FC = () => {
const members = [
{
name: 'Astha Shetty',
role: 'Secretary',
description: 'A visionary leader with a knack for strategic thinking and innovation.',
image: image1,
},
{
name: 'Aryan Sharma',
role: 'General Secretary',
description: 'Passionate about fostering teamwork and ensuring smooth operations.',
image: image2,
},
{
name: 'Hrishit Yelchuri',
role: 'General Secretary',
description: 'Committed to driving growth and creating impactful initiatives.',
image: image3,
},
];

return (
<div className="p-8 bg-gray-100 min-h-screen">
<h1 className="text-4xl font-bold text-center mb-8 text-gray-800">Meet the Helm</h1>
<p className="text-lg text-center mb-12 text-gray-600">
Meet the visionary minds driving the Business Club IIT (BHU). Our team comprises dynamic leaders with a passion for fostering innovation, teamwork, and growth.
</p>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
{members.map((member, index) => (
<div
key={index}
className="bg-white shadow-lg rounded-lg p-6 hover:shadow-xl transition-shadow duration-300"
>
<div className="bg-gradient-to-tr">
tanmay-s18 marked this conversation as resolved.
Show resolved Hide resolved
<div className="w-40 h-40 mx-auto rounded-full border-4 border-white overflow-hidden">
<img
src={member.image}
alt={member.name}
className="object-cover w-full h-full"
style={{ aspectRatio: '1 / 1' }}
/>
</div>

</div>
{/* <h2 className="text-xl font-semibold text-gray-800 text-center">{member.name}</h2>
<p className="text-sm text-gray-600 text-center italic mb-4">{member.role}</p>
<p className="text-gray-700 text-center">{member.description}</p> */}
<div className="p-6 text-center">
<h2 className="text-2xl font-bold mb-2">{member.name}</h2>
<p className="text-sm font-semibold mb-4">{member.role}</p>
<p className="text-gray-600">{member.description}</p>
</div>
<div className="p-4 bg-gray-100 flex justify-center gap-4">
<a
href="#"
className=":text-indigo-800 transition-colors"
>
LinkedIn
</a>
<a
href="#"
className=" transition-colors"
tanmay-s18 marked this conversation as resolved.
Show resolved Hide resolved
>
Instagram
</a>
</div>
</div>
))}
</div>
</div>
);
};

export default MeetTheHelm;