JSFiddle - React, Tailwind, and code Playground
by Milan Gladiš
HTML
<div class="container">
<div class="team">
<div class="member">
<div class="title">
<div class="name">Sam Huber</div>
<div class="role">CEO</div>
</div>
<div class="picture"><img width="165" height="246" src="https://i.postimg.cc/cLL03kwz/team-1.png" alt=""></div>
</div>
<div class="member active">
<div class="title">
<div class="name">Loadfruit</div>
<div class="role">VP Metaverse Ops</div>
</div>
<div class="picture"><img width="165" height="246" src="https://i.postimg.cc/Yq3thBGg/team-4.png" alt=""></div>
</div>
<div class="member">
<div class="title">
<div class="name">Marcin Gierlak</div>
<div class="role">VP of Engineering</div>
</div>
<div class="picture"><img width="165" height="246" src="https://i.postimg.cc/Sx1qfLGx/team-5.png" alt=""></div>
</div>
</div>
<div class="quote">
<p>“As the world’s largest metaverse builder, LandVault is the backbone of the metaverse. We create. We promote. We build. LandVault is the top choice in the space for globally renowned brands.”</p>
<div id="name">Marcin Gierlak</div>
<div id="role">VP of Engineering</div>
</div>
</div>
CSS
body {
background-color: #151617;
font-family: "Inter", sans-serif;
}
.container {
max-width: 600px;
margin: auto;
}
.team {
display: flex;
gap: 32px;
}
.member {
flex: 1;
position: relative;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
transition: all 0.15s ease;
}
.member:hover {
box-shadow: 0 0 0 2px rgba(255,255,255,0.2)
}
.member.active {
box-shadow: 0 0 0 2px rgba(255,255,255,1)
}
.title {
position: absolute;
bottom: 16px;
left: 16px;
z-index: 1;
color: #fff
}
.picture:after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 44.27%, rgba(0, 0, 0, 0.7) 100%), linear-gradient(180deg, rgba(48, 99, 177, 0) 44.27%, rgba(48, 99, 177, 0.7) 100%), url(image.png);
}
img {
width: 100%;
object-fit: cover;
display: block;
}
.name {
font-size: 16px;
font-weight: 600;
}
.role {
font-size: 14px;
opacity: .5;
margin-top: 4px;
}
.quote {
color: white;
text-align: center;
margin-top: 40px;
}
p {
line-height: 160%;
opacity: .8;
}
JavaScript
var team = [
{
quote: 'As the world’s largest metaverse builder, LandVault is the backbone of the metaverse. We create. We promote. We build. ',
name: "Sam Huber",
role: 'CEO'
},
{
quote: 'We build. LandVault is the top choice in the space for globally renowned brands. ',
name: "Loadfruit",
role: 'VP Metaverse Ops'
},
{
quote: 'As the world’s largest metaverse builder, LandVault is the backbone of the metaverse. We create. We promote. We build. ',
name: "Marcin Gierlak",
role: 'VP of Engineering'
}
]