<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<title>Document</title>
</head>
<body>
<div class="wrapper">
<div class="profile-top">
<div class="profile-image"></div>
</div>
<div class="profile-bottom">
<div class="profile-infos">
<div class="main-infos">
<h3 class="name">Jane Doe</h3>
<p class="age grey">26</p>
</div>
<p class="email">jane.doe@example.com</p>
<p class="ville">
<ion-icon name="location"></ion-icon>Paris
</p>
</div>
<div class="profile-stats">
<div class="stat-item">
<p class="stat">38K</p>
<p class="grey">Abonnés</p>
</div>
<div class="stat-item">
<p class="stat">103K</p>
<p class="grey">Likes</p>
</div>
<div class="stat-item">
<p class="stat">1.3K</p>
<p class="grey">Photos</p>
</div>
</div>
</div>
</div>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body>
</html>
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #fbab7e;
background-image: linear-gradient(62deg, #fbab7e 0%, #f7ce68 100%);
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
font-family: "Rubik", sans-serif;
}
.wrapper {
background-color: white;
border-radius: 15px;
overflow: hidden;
box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.grey {
color: #999999;
}
.profile-top {
height: 250px;
width: 500px;
background-image: url("https://cdn.pixabay.com/photo/2016/11/22/19/17/buildings-1850129_960_720.jpg");
background-position: center;
background-size: cover;
position: relative;
}
.profile-image {
background-image: url("https://cdn.pixabay.com/photo/2019/11/03/20/11/portrait-4599553_960_720.jpg");
background-position: center;
background-size: cover;
position: relative;
width: 150px;
height: 150px;
overflow: hidden;
border-radius: 50%;
border: 3px solid white;
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, 50%);
}
.profile-bottom {
margin-top: 75px;
padding: 25px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.main-infos {
display: flex;
align-items: center;
font-size: 28px;
margin-bottom: 5px;
}
.name {
font-weight: 700;
margin-right: 15px;
}
.email {
font-size: 14px;
margin-bottom: 25px;
}
.ville {
font-size: 20px;
margin-bottom: 75px;
display: flex;
justify-content: center;
align-items: center;
}
.ville ion-icon {
margin-right: 5px;
color: #388eff;
}
.profile-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
width: 100%;
}
.stat-item:not(:last-child) {
border-right: 1px solid black;
}
.stat {
font-size: 20px;
font-weight: 700;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.