JSFiddle - React, Tailwind, and code Playground
by rami7250
HTML
<div class="elements-promo">
<div class="elements-promo__copy-wrapper">
<div class="elements-promo__content">
<a class="fill" href="http://ebaysecrets.co.il/">
<h2 class="elements-heading ">עשרת הדברות: קניה נכונה באיביי</h2>
<p class="elements-heading2"> לקנות נכון, לקנות חכם.</p>
</a>
</div>
</div>
</div>
CSS
.elements-heading2 {
color: #fff;
}
.fill
{
display: block;
height: 100%;
width: 100%;
text-decoration: none;
}
h2
{
font-family: arial;
}
.elements-promo {
background-color: #f93d66;
background: linear-gradient(145deg, #4772d9, #5be0e0);
border-radius: 4px;
height: 42px;
}
.elements-promo__copy-wrapper {
-ms-flex: 0 0 75%;
flex: 0 0 75%;
margin: 6px 0px;
background-position: 100% left top;
background-repeat: no-repeat;
}
@media (min-width:160px) {
.elements-promo__copy-wrapper {
background-image: url("//public-assets.envato-static.com/assets/cross-promos/girl-with-headphones-f811be66c897e4e8d9243e07b77c3745eef05c9ab0862c903d1a88e794ce74c6.png")
}
}
.elements-promo .elements-heading {
color: #fff;
padding-top:5px;
}
.elements-promo__content {
padding-right:15px;
text-align:right;
}