JSFiddle - React, Tailwind, and code Playground

by Sampath_Madhuranga

HTML

<div class="hero-image">
<div class="hero-text">
<h1>IT support for your<br> business - <span class="italic">as easy as<br>child’s play</span></h1>
<p class="herotext2">All inclusive IT GDPR service packages from <span class="no">£33</span><span class="tag">p/m</span></p>
<button>Try it for free today</button>
</div>
</div>

CSS

.hero-image {
     background-image: url(http://jms-securedata.co.uk/wp-content/uploads/2018/08/jms-slider-phone1.jpg);
     background-position: center;
     background-repeat: no-repeat;
     background-size: cover!important;
     padding: 50px;
     max-height: 475px;
}
 .hero-text {
     position: relative;
     color: #154774;
     text-align:right;
}
 .hero-text h1 {
    font-size: 45px;
    margin-left: 34%;
    margin-top: -26px;
    line-height: 53px;
    text-align: center;
}
 .hero-text h1 .italic {
     font-style: italic;
}
 .hero-text button {
     border-radius: 5px;
    padding: 10px 10px;
    color: white;
    background-color: #00adee;
    text-align: center;
    cursor: pointer;
    font-size: 21px;
    font-weight: bold;
    bottom: 50px;
    max-width: 162px;
    margin-top: 18px;
    margin-right: 7px;
    line-height: 30px;
    height: auto;
}
 .hero-text button:hover {
     background-color: #0597c4;
     color: white;
}
 .herotext2 {
    position: relative;
    border-radius: 5px;
    padding: 10px 10px;
    color: white;
    background-color: red;
    font-size: 23px;
    width: 225px;
    line-height: 1.4;
    margin: 0 0 0 auto;
    text-align: left;
    margin-top: 25px;
    margin-right: 10px;
}
 .herotext2 .no {
    font-size: 131px;
    line-height: 95px;
    font-weight: 900;
}
 .herotext2 .tag {
    position: absolute;
    bottom: 17px;
    right: 37px;
    font-size: 12px;
    color: red;
}


@media only screen and (max-width: 768px) {
  .hero-text h1 {
    font-size: 25px;
    margin-left: 0;
    margin-top: 0;
    line-height: 32px;
    text-align: center;
}


}