Primero, abrimos visual studio code y ejecutamos html, pero para trabajar con CSS es importante declararlo como html5, entonces, escribimos “html:5” + enter y en automatico nos desplegará todas las etiquetas necesarias para empezar a trabajar.
Despues hay que realizar los diseños en CSS.
<div class="card-content">
<div class="card">
<div><img class="picture" src="assets/Victoria.jpeg"></div>
<div class="content">
<div class="name">
<h2>Victoria Rodriguez<br></h2>
<div class="information">
<h3>5 años<br><span>Edad</span></h3>
<h3>Bailarina<br><span>Talento</span></h3>
</div>
<div class="actionbtn">
<button>Perfil</button>
<button>Más información</button>
</div>
</div>
</div>
.card-content{
width: 100%;
height: 100%;
background: linear-gradient(45deg,#fbda61,#ff5f95);
display: flex;
justify-content: center;
align-items: center;
border-radius: 20px;
}
.card{
width: 350px;
height: 550px;
background-color: #fff;
background-position: center;
border-radius: 20px;
overflow: hidden;
box-shadow: 0010px 0 rgba(0,0,0,0.2);
position: relative;
justify-content: center;
align-items: top;
}
.picture{
width: 90%;
height: 75%;
position: absolute;
border-radius: 20px;
left: 50%;
transform: translateX(-50%);
box-shadow: 0010px 0 rgba(0,0,0,0.2);
}
.card .content {
position: absolute;width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: flex-end;
}
.card .content .name{
text-align: center;width: 100%;
}
.card .content .name h2{
color: #555;font-size: 20px;font-weight: 600;
margin-bottom: 10px;
}
.card .content .name .information{
display: flex;
justify-content: space-between;
margin: 5px 5px;
}
.card .content .name .information h3{
color: #555;font-size: 18px;font-weight: 500;
margin: 5px 5px;
}
.card .content .name .actionbtn{
display: flex;
justify-content: space-between;
margin: 5px 5px;;
}
.card .content .name .actionbtn button {
padding: 10px 20px;
border-radius: 5px;
border: none;
outline: none;font-size: 1em;font-weight: 500;
background: #ff5f95;color: #fff;
cursor: pointer;
}```
muy buen aporte