Skip to content

Commit

Permalink
new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
heyyakash committed Nov 18, 2023
1 parent 831f7d5 commit 0b23e0b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/assets/scss/members/members.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
background-color: rgba(255, 255, 255, 0.079);
border-radius: 7px;
// min-height: 350px;
width: 337px;
width: 330px;
display: flex;
align-items: flex-end;
justify-content: center;
height: 400px;
height: 330px;
overflow: hidden;
// margin-bottom: 5%;
position: relative;
Expand Down
34 changes: 23 additions & 11 deletions src/components/Members/Members.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@ import SectionHeader from '../sections/partials/SectionHeader'
import Hero2 from "../sections/Hero2";
import data from "../../core.json";
import "../../assets/scss/members/members.scss";
import {Link} from "react-router-dom"
import { Link } from "react-router-dom"

export const Card = ({img, name, role}) => {
return (
<Link to="https://pointblank.vercel.app/kitarp29" className="members-container">
<img src={img} alt="logo" className='members-img' />
<div className='members-img-overlay'></div>
<div className='members-info-container'>
<h2>{name}</h2>
<h3>{role}</h3>
</div>
</Link>
)
}

const Members = () => {

Expand All @@ -17,17 +30,16 @@ const Members = () => {

<div className="container">
<SectionHeader style={{ marginTop: "-30px" }} data={sectionHeader} className="center-content" />
<h3 style = {{marginLeft:"10px"}}>Leads</h3>
<div className='members-parent-container'>
{data.filter((x)=>x.role==="Lead").map((item, key) => (
<Card img={item.img} key={key} name={item.name} role={item.role} />
))}
</div>
<h3 style = {{marginLeft:"10px"}}>Members</h3>
<div className='members-parent-container'>
{data.map((item,key)=>(
<Link to="https://pointblank.vercel.app/kitarp29" className="members-container" key={key}>
<img src={item.img} alt="logo" className='members-img'/>
<div className='members-img-overlay'></div>
<div className='members-info-container'>

<h2>{item.name}</h2>
<h3>{item.role}</h3>
</div>
</Link>
{data.filter((x)=>x.role==="Member").map((item, key) => (
<Card img={item.img} key={key} name={item.name} role={item.role} />
))}
</div>
</div>
Expand Down

0 comments on commit 0b23e0b

Please sign in to comment.