WOrkscomponentcoding
WOrkscomponentcoding
const WorksData =[
{
img:Image10,
title:"ContractAwsome - Contract Management Tool (SaaS)",
para:"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Aperiam iste
voluptatum quibusdam molestias optio minus tempore ",
},
{
img:Image11,
title:"ContractAwsome - Contract Management Tool (SaaS)",
para:"ContractAwesome provided a robust set of features designed to streamline
and secure the contract lifecycle..",
},
{
img:Image12,
title:"ContractAwsome - Contract Management Tool (SaaS)",
para:"ContractAwesome provided a robust set of features designed to
streamline and secure the contract lifecycle..",
}
]
return (
<>
<section className='Works'>
<div className="heading">
<h1 >Recent Works</h1>
</div>
<div className="Workslist">
{
WorksData.map((item1)=>(
<div className="item1">
<img src={item1.src} alt="" />
<h2>{item1.title}</h2>
<p>{item1.para}</p>
</div>
))
}
</div>
</section>
</>)
-----------------------------------------------------------------------------------
------------------
.Works{
width: 100%;
height: 80vh;
margin-top: 50px;
background-color:#EEEEFF;
.Works h1{
padding: 30px;
font-size: 35px;
text-align: center;
}
.Workslist{
padding: 20px;
display: grid;
margin-left: 150px;
grid-template-columns: repeat(3,1fr);
grid-template-rows: 1fr 1fr;
align-items: center;
justify-content:space-between;
gap: -100px;
/* width: 100%; */
}
.item1{
height: 300px;
width: 300px;
background-color: rgb(243, 249, 249);
border-radius: 20px;
border: 1px solid rgb(219, 216, 216);
}
.item1 img{
width: 300px;
height: 150px;
opacity: 20%;
/* border-radius: 20px; */
/* border: 2px solid gray; */
border-bottom: 2px solid gray;
background-color: #EEEEFF;
}
.item1 h2{
width: 100%;
font-size: 20px;
margin-left: 20px;
}
.item1 p{
margin: 20px;