-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a9ad83
commit 8384ce2
Showing
4 changed files
with
228 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#team { | ||
padding: 60px 0; | ||
text-align: center; | ||
background-color: #6f85ff; | ||
color: #fff; | ||
} | ||
#team h2 { | ||
position: relative; | ||
padding: 0px 0px 15px; | ||
} | ||
#team p { | ||
font-size: 15px; | ||
font-style: italic; | ||
padding: 0px; | ||
margin: 25px 0px 40px; | ||
} | ||
#team h2::after { | ||
content: ""; | ||
border-bottom: 2px solid #fff; | ||
position: absolute; | ||
bottom: 0px; | ||
right: 0px; | ||
left: 0px; | ||
width: 90px; | ||
margin: 0 auto; | ||
display: block; | ||
} | ||
#team .member { | ||
margin-bottom: 20px; | ||
position: relative; | ||
overflow: hidden; | ||
background-color: #ffffff; | ||
padding: 10px; | ||
border-radius: 15px 0px 15px 0px; | ||
box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.4); | ||
} | ||
#team .member .member-info { | ||
display: block; | ||
position: absolute; | ||
bottom: 0px; | ||
left: -200px; | ||
transition: 0.4s; | ||
padding: 15px 0; | ||
background: rgba(0, 0, 0, 0.4); | ||
} | ||
#team .member:hover .member-info { | ||
left: 0px; | ||
right: 0px; | ||
} | ||
#team .member h4 { | ||
font-weight: 700; | ||
margin-bottom: 2px; | ||
font-size: 18px; | ||
color: #fff; | ||
} | ||
#team .member span { | ||
font-style: italic; | ||
display: block; | ||
font-size: 13px; | ||
} | ||
#team .member .social-links { | ||
margin-top: 15px; | ||
} | ||
#team .member .social-links a { | ||
transition: none; | ||
color: #fff; | ||
} | ||
#team .member .social-links a:hover { | ||
color: #ffc107; | ||
} | ||
#team .member .social-links i { | ||
font-size: 18px; | ||
margin: 0 2px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
import React from 'react'; | ||
|
||
import './ProductItem.css'; | ||
import './RelatedProducts.css'; | ||
|
||
const RelatedProducts = ({ product}) => { | ||
|
||
return ( | ||
<> | ||
<div className='related' style={{backgroundSize:'cover', backgroundRepeat:'no-repeat',backgroundImage:`url(${product.images.url})`}}> | ||
{/* this image is needed in order for the div's height to scale to the image */} | ||
<img src={product.images.url} alt="product" style={{visibility: "hidden", maxWidth:"100%", maxHeight:'100%'}}/> | ||
</div> | ||
<section id="team"> | ||
<div class="container"> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-6"> | ||
<h2>Meet Our Team</h2> | ||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text</p> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-lg-3 col-md-6"> | ||
<div class="member"> | ||
<div class="member-img"> | ||
<img src="/images/img-500x500-1.jpg" class="img-fluid" alt=""/> | ||
</div> | ||
<div class="member-info"> | ||
<h4>Gaurav Kumar</h4> | ||
<span>Web Designer</span> | ||
<div class="social-links"> | ||
<a href="#"><i class="fab fa-facebook-f"></i></a> | ||
<a href="#"><i class="fab fa-twitter"></i></a> | ||
<a href="#"><i class="fab fa-linkedin-in"></i></a> | ||
<a href="#"><i class="fab fa-pinterest-p"></i></a> | ||
<a href="#"><i class="fab fa-instagram"></i></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-3 col-md-6"> | ||
<div class="member"> | ||
<div class="member-img"> | ||
<img src="/images/img-500x500-1.jpg" class="img-fluid" alt=""/> | ||
</div> | ||
<div class="member-info"> | ||
<h4>Parveen Singh</h4> | ||
<span>Web Developer</span> | ||
<div class="social-links"> | ||
<a href="#"><i class="fab fa-facebook-f"></i></a> | ||
<a href="#"><i class="fab fa-twitter"></i></a> | ||
<a href="#"><i class="fab fa-linkedin-in"></i></a> | ||
<a href="#"><i class="fab fa-pinterest-p"></i></a> | ||
<a href="#"><i class="fab fa-instagram"></i></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-3 col-md-6"> | ||
<div class="member"> | ||
<div class="member-img"> | ||
<img src="/images/img-500x500-1.jpg" class="img-fluid" alt=""/> | ||
</div> | ||
<div class="member-info"> | ||
<h4>Pardeep Kumar</h4> | ||
<span>SEO Expert</span> | ||
<div class="social-links"> | ||
<a href="#"><i class="fab fa-facebook-f"></i></a> | ||
<a href="#"><i class="fab fa-twitter"></i></a> | ||
<a href="#"><i class="fab fa-linkedin-in"></i></a> | ||
<a href="#"><i class="fab fa-pinterest-p"></i></a> | ||
<a href="#"><i class="fab fa-instagram"></i></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-3 col-md-6"> | ||
<div class="member"> | ||
<div class="member-img"> | ||
<img src="/images/img-500x500-1.jpg" class="img-fluid" alt=""/> | ||
</div> | ||
<div class="member-info"> | ||
<h4>Gurdeep Singh</h4> | ||
<span>ISO Developer</span> | ||
<div class="social-links"> | ||
<a href="#"><i class="fab fa-facebook-f"></i></a> | ||
<a href="#"><i class="fab fa-twitter"></i></a> | ||
<a href="#"><i class="fab fa-linkedin-in"></i></a> | ||
<a href="#"><i class="fab fa-pinterest-p"></i></a> | ||
<a href="#"><i class="fab fa-instagram"></i></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</> | ||
) | ||
} | ||
|
||
export default RelatedProducts; |