JSFiddle - React, Tailwind, and code Playground
by Michel Penke
HTML
<div class="container-factcheck">
<span>9.124</span><span>4.567</span>
</div>
<div class="container-influencer">
<div>
<span>Profil (Follower)</span><span>Datum</span><span>Shares</span><span>Link</span></div>
<img src="https://pbs.twimg.com/profile_images/459117729014747136/Q9ewFvop_400x400.png">
<div>
<li>Psychologie 321.346</li>
<li>03.12.2019</li>
<li>1.120</li>
<a href="#"><li class="facebook"></li></a>
</div>
<img src="https://pbs.twimg.com/profile_images/459117729014747136/Q9ewFvop_400x400.png">
<div>
<li>Psychologie<br>321.346</li>
<li>03.12.2019</li>
<li>1.120</li>
<a href="#"><li class="twitter"></li></a>
</div>
<img src="https://pbs.twimg.com/profile_images/459117729014747136/Q9ewFvop_400x400.png">
<div>
<li>Psychologie<br>321.346</li>
<li>03.12.2019</li>
<li>1.120</li>
<a href="#"><li class="reddit"></li></a>
</div>
</div>
CSS
.container-factcheck,
.container-influencer{
width: 90%;
max-width: 500px;
margin: 30px auto;
height: auto;
text-align: center;
padding: 20px 0;
box-shadow: 0 5px 11px rgba(0,0,0,0.30), 0 3px 7px rgba(0,0,0,0.22);
}
.container-factcheck::before {
content: '';
font-size: inherit;
font-family: inherit;
line-height: inherit;
margin-top: 20px;
}
.container-factcheck span {
font-size: inherit;
font-family: inherit;
line-height: inherit;
height: auto;
padding: 10px;
background: white;
margin: 0 5px;
}
.container-factcheck span:nth-child(1)::before {
content: '';
background-image: url('https://correctiv.org/wp-content/uploads/2019/04/emoji.jpg');
background-size: contain;
background-position: 100% 100%;
background-repeat: no-repeat;
height: 20px;
width: 30px;
display: inline-block;
margin-right: 10px;
margin-bottom: -2px;
}
.container-factcheck span:nth-child(2)::before {
content: '';
background-image: url('https://correctiv.org/wp-content/uploads/2019/04/retweet.jpg');
background-size: contain;
background-position: 100% 100%;
background-repeat: no-repeat;
height: 20px;
width: 30px;
display: inline-block;
margin-right: 10px;
margin-bottom: -2px;
}
/*Wichtigsten Accounts*/
.container-influencer {
text-align: left;
}
.container-influencer div {
list-style: none;
width: 100%;
height: 70px;
display: block;
}
.container-influencer div:nth-child(1) {
width: 100%;
height: 30px;
display: inline-block;
}
.container-influencer div:nth-child(1) span {
font-weight: 900;
}
.container-influencer div:nth-child(1) span:nth-child(1) {
margin-left: 70px;
width: calc((100% - 80px) * .3 - 3px);
}
.container-influencer div:nth-child(1) span:nth-child(2) {
width: calc((100% - 80px) * .25 - 3px);
}
.container-influencer div:nth-child(1) span:nth-child(3) {
width: calc((100% - 80px) * .25 - 3px);
}
.container-influencer div:nth-child(1) span:nth-child(4) {
width: calc((100% -...