JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>hello</title>
<link rel="stylesheet" href="CSS/index.css">
</head>
<body>
<div class="wrapp">
<div class="wrapp__shadow">
<div class="hello__container">
<div class="hello__ava">
<img src="http://lorempixel.com/g/200/200/people" alt="Avatar" class="hello__pic">
</div>
<div class="hello__name">
Петр Петров
</div>
</div>
<div class="hello__btn">
<a href="#" class="hello__btn-link">Просмотр резюме</a>
</div>
</div>
</div>
</body>
</html>
CSS
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
body{
font-size: 21px;
}
.wrapp {
display: block;
position: relative;
width: 300px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 20px;
}
.wrapp__shadow {
box-shadow: 2px 2px 3px rgba(0, 0, 0, .5);
}
.hello__container {
display: block;
position: relative;
width: 100%;
height: calc(300px-120px);
text-align: center;
}
.hello__ava {
display: block;
position: relative;
width: 140px;
height: 140px;
top: -50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
border:2px solid grey;
overflow: hidden;
}
.hello__pic {
display: block;
max-width: 100%;
max-height: 100%;
}
.hello__name {
width: 30%;
margin: 0 auto;
padding: 0 0 20px 0;
}
.hello__btn {
display: block;
width: 100%;
height: 80px;
background: aqua;
text-align: center;
line-height: 21px;
}
.hello__btn:before {
content: '';
display: inline-block;
width: 100%;
height: 0;
vertical-align: middle;
}
.hello__btn-link {
display: inline-block;
color: black;
text-decoration: none;
cursor: default;
vertical-align: middle;
border: 2px solid black;
border-radius: 18px;
padding: 10px;
}
.hello__btn-link:hover {
cursor: pointer;
color: #fff;
border: 2px solid #fff;
}
p {
margin: 0;
padding: 0;
}