Images for demo purpose, use images at your own risk.
<!-- HTML code -->
<section id="cm-item-1" class="cm-item-1 hero-section">
<div class="hero-container">
<div class="content-wrapper">
<div class="left-area">
<h6>Quick <span>Bites</span>, Unmatched <span>Delights</span></h6>
<h1>Try Our Special Fast Food</h1>
<button class="cm-item-1-btn"> Start Order <img data-v-970044e4="" src="http://cdn.codemela.com/wp-content/uploads/2024/07/arrow.783baa56.svg"
alt="Image"></button>
</div>
<div class="right-area">
<div class="hero-img">
<img src="http://cdn.codemela.com/wp-content/uploads/2024/07/hero-img-1.85de789c.png" alt="">
</div>
<div class="discount-img">
<img src="http://cdn.codemela.com/wp-content/uploads/2024/07/Untitled.png" alt="">
</div>
</div>
<div class="center-text">
<a href="#">
<img src="http://cdn.codemela.com/wp-content/uploads/2024/07/Untitled-1.png" alt="">
Want To know More About Us?
</a>
</div>
</div>
</div>
</section>
<!-- CSS code -->
<style>
:root {
--cm-item-1-color-primary: #ffe5a5;
--cm-item-1-color-secondary: #ffbf35;
}
.cm-item-1.hero-section {
background: url(http://cdn.codemela.com/wp-content/uploads/2024/07/hero-bg.9eb4d293.png);
background-position: 50%;
background-size: 100% 100%;
background-repeat: no-repeat;
padding: 115px 0 170px;
position: relative;
background-repeat: no-repeat;
}
.hero-container {
max-width: 90%;
margin: 0 auto;
}
.cm-item-1.hero-section .content-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
}
.cm-item-1.hero-section .content-wrapper .left-area {
max-width: 46%;
}
.cm-item-1.hero-section .content-wrapper .left-area h6 {
color: var(--cm-item-1-color-primary);
font-size: 20px;
font-weight: 300;
line-height: 15px;
letter-spacing: 1px;
margin-bottom: 12px;
}
.cm-item-1.hero-section .content-wrapper .left-area h6 span {
color: var(--cm-item-1-color-secondary);
font-weight: 700;
}
.cm-item-1.hero-section .content-wrapper .left-area h1 {
font-size: 80px;
line-height: 90px;
color: var(--cm-item-1-color-primary);
}
.cm-item-1.hero-section .content-wrapper .left-area .cm-item-1-btn {
background-color: #3b2a56;
border: none;
display: block;
text-align: center;
transition: all ease .5s;
position: relative;
z-index: 1;
font-size: 16px;
line-height: 26px;
padding: 13px 36px 12px;
border-radius: 50px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
display: flex;
align-items: center;
color: var(--cm-item-1-color-primary);
}
.cm-item-1.hero-section .content-wrapper .left-area .cm-item-1-btn img {
display: block;
margin-left: 10px;
margin-top: 4px;
}
.cm-item-1.hero-section .content-wrapper .right-area {
max-width: 46%;
position: relative;
}
.cm-item-1.hero-section .content-wrapper .right-area .hero-img img {
max-width: 100%;
}
.cm-item-1.hero-section .content-wrapper .right-area .discount-img img {
position: absolute;
top: 0;
left: 17%;
}
.cm-item-1.hero-section .content-wrapper .right-area .discount-img img {
animation: cm-bounce-animation 1.5s ease-in-out infinite;
}
@keyframes cm-bounce-animation {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-7px);
}
100% {
transform: translateY(0);
}
}
.cm-item-1.hero-section .content-wrapper .center-text{
position: absolute;
bottom: 130px;
left: 44%;
transform: translateX(-50%);
max-width: 160px;
text-align: center;
display: block;
font-weight: 300;
text-decoration-line: underline;
animation: cm-bounce-animation 1.5s ease-in-out infinite;
}
.cm-item-1.hero-section .content-wrapper .center-text a{
color:var(--cm-item-1-color-primary);
font-size: 17px;
}
.cm-item-1.hero-section .content-wrapper .center-text a img{
display: block;
margin: 0 auto 7px;
}
/* Extra small devices (phones, 600px and down) */
@media (max-width: 767px){
.cm-item-1.hero-section{
padding: 80px 0 170px;
}
.cm-item-1.hero-section .content-wrapper{
display: block;
}
.cm-item-1.hero-section .content-wrapper .left-area{
max-width: 100%;
}
.cm-item-1.hero-section .content-wrapper .left-area h6{
font-size: 16px;
}
.cm-item-1.hero-section .content-wrapper .left-area h1{
font-size: 30px;
line-height: 50px;
}
.cm-item-1.hero-section .content-wrapper .left-area .cm-item-1-btn{
font-size: 15px;
line-height: 0;
}
.cm-item-1.hero-section .content-wrapper .right-area{
max-width: 100%;
margin-top: 50px;
}
.cm-item-1.hero-section .content-wrapper .center-text{
bottom: 40px;
}
}
</style>