پرش به محتوا

لایه شفاف روی عکس/کافه محمد - فراغیب

از فراغیب
بدون خلاصۀ ویرایش
برچسب‌ها: واگردانی دستی برگردانده‌شده
بدون خلاصۀ ویرایش
برچسب: واگردانی دستی
خط ۱: خط ۱:
<html>
<html>


<section class="hero-banner">
<!-- پس زمینه -->
<div class="hero-bg"></div>


    <!-- پس زمینه -->
<!-- لایه رنگی -->
    <div class="hero-bg"></div>
<div class="hero-overlay"></div>


    <!-- لایه رنگی -->
<!-- محتوا -->
    <div class="hero-overlay"></div>
<div class="container">


    <!-- محتوا -->
     <div class="hero-content">
     <div class="container">


        <div class="hero-content">
      <h1 style="color:#D7CCC8;">
          کافه پاتوق محمد
        </h1>


             <h1>
        <span style="color:#D7CCC8;font-size: 2rem;">
              کافه پاتوق محمد
             <strog> محیطی دنج و دلپذیر برای ساخت لحظات بهتر</strong><br>
            </h1>
        </span>


            <p>
        <a href="#" class="hero-btn">
                محیطی دنج و دلپذیر
            رزرو و سفارش آنلاین
            </p>
        </a>
 
            <a href="#" class="hero-btn">
                رزرو و سفارش آنلاین
            </a>
 
        </div>


     </div>
     </div>


</section>
</div>


<style>
<style>
/*------------------------
/* =========================
  تنظیمات قابل تغییر
  Hero Background
-------------------------*/
========================= */
 
:root{
 
    /* تصویر */
    --hero-image:url("https://dl.faraghaib.ir/m/260012/26001208.jpg");
 
    /* رنگ لایه */
    --overlay-color: rgba(121 , 85 , 72,.72);


     /* ارتفاع */
.hero-bg {
     --hero-height:520px;
    position: absolute;
    inset: 0;
     width: 100%;
     height: 100%;


     /* رنگ متن */
     background-image: url("https://dl.faraghaib.ir/m/260012/26001207.jpg");
     --text-color:#fff;
     background-size: cover;
    background-position: center;


     /* دکمه */
     z-index: 1;
    --btn-bg:#161a88;
    --btn-hover:#0d1267;
}
}


/*------------------------*/


*{
/* =========================
    margin:0;
  لایه شفاف منحنی
    padding:0;
========================= */
    box-sizing:border-box;
}


body{
.hero-overlay {
     font-family:tahoma;
     position: absolute;
     direction:rtl;
     top: 0;
}
    right: 0;


.container{
    width: 58%;
    height: 100%;


     width:min(1200px,92%);
     /*
     margin:auto;
      لایه شفاف از سمت راست شروع می‌شود
     height:100%;
      و سمت چپ آن به صورت منحنی وارد تصویر می‌شود
}
     */
     background: rgba(121 , 85 , 72,.72);


.hero-banner{
    z-index: 2;


     position:relative;
     /*
    height:var(--hero-height);
      ایجاد منحنی در لبه سمت چپ
 
     */
    overflow:hidden;
     clip-path: ellipse(100% 85% at 100% 50%);
 
     display:flex;
     align-items:center;
}
}


.hero-bg{


    position:absolute;
/* =========================
    inset:0;
  Container
========================= */


     background-image:var(--hero-image);
.container {
     position: relative;
    z-index: 3;


     background-size:cover;
     width: 100%;
     background-position:center;
     max-width: 1200px;
    background-repeat:no-repeat;


     z-index:1;
     height: 100%;
}
    margin: 0 auto;


.hero-overlay{
     display: flex;
 
     align-items: center;
    position:absolute;
    inset:0;
 
     background:var(--overlay-color);
 
     z-index:2;
}
}


.hero-content{


    position:relative;
/* =========================
    z-index:3;
  محتوای Hero
========================= */


     max-width:620px;
.hero-content {
     width: 50%;
    margin-right: auto;


     margin-right:auto;
     text-align: right;
    padding: 40px;
    box-sizing: border-box;


     color:var(--text-color);
     color: #BCAAA4;
 
    text-align:right;
}
}


.hero-content h1{


    font-size:48px;
/* عنوان */


     line-height:1.6;
.hero-content h1 {
     margin: 0 0 15px;


     margin-bottom:15px;
     font-size: 42px;
 
    line-height: 1.4;
     font-weight:700;
     font-weight: 800;
}
}


.hero-content p{


    font-size:26px;
/* توضیحات */


     line-height:1.9;
.hero-content p {
     margin: 0 0 25px;


     margin-bottom:35px;
     font-size: 20px;
    line-height: 1.8;
}
}


.hero-btn{


    display:inline-flex;
/* =========================
  دکمه
========================= */


     align-items:center;
.hero-btn {
     display: inline-block;


     justify-content:center;
     padding: 13px 28px;


     min-width:190px;
     border-radius: 50px;


     height:58px;
     background: #ffffff;
    color: #222;


     padding:0 30px;
     text-decoration: none;


     background:var(--btn-bg);
     font-size: 16px;
    font-weight: 700;


     color:#fff;
     transition: all 0.3s ease;
 
}
    border-radius:12px;


     text-decoration:none;
.hero-btn:hover {
 
     transform: translateY(-2px);
     transition:.3s;
     opacity: 0.9;
}
}


.hero-btn:hover{


    background:var(--btn-hover);
/* =========================
  Responsive
========================= */


}
@media (max-width: 768px) {


/* تبلت */
    .hero-overlay {
        width: 75%;


@media(max-width:992px){
        clip-path: ellipse(
            100% 85%
            at 100% 50%
        );
    }


     .hero-banner{
     .container {
 
         justify-content: center;
         height:520px;
     }
     }


     .hero-content{
     .hero-content {
        width: 70%;
        padding: 25px;


         max-width:100%;
         text-align: center;
     }
     }


     .hero-content h1{
     .hero-content h1 {
 
         font-size: 30px;
         font-size:36px;
     }
     }


     .hero-content p{
     .hero-content p {
 
         font-size: 17px;
         font-size:22px;
     }
     }
}
}


/* موبایل */


@media(max-width:768px){
@media (max-width: 480px) {


     .hero-banner{
     .hero-overlay {
        width: 100%;


         height:430px;
         /*
          در موبایل لایه تقریباً کل تصویر را می‌گیرد
          ولی همچنان لبه منحنی حفظ می‌شود
        */
        clip-path: ellipse(
            110% 85%
            at 100% 50%
        );
     }
     }


     .hero-content{
     .hero-content {
 
         width: 90%;
         text-align:center;
         padding: 20px;
 
         margin:auto;
     }
     }


     .hero-content h1{
     .hero-content h1 {
 
         font-size: 26px;
         font-size:28px;
 
        line-height:1.8;
     }
     }


     .hero-content p{
     .hero-content p {
 
         font-size: 16px;
         font-size:18px;
 
        margin-bottom:25px;
     }
     }


     .hero-btn{
     .hero-btn {
 
         padding: 11px 22px;
         width:100%;
         font-size: 15px;
         max-width:260px;
     }
     }
}
}
</style>


</style>
</html>
</html>

نسخهٔ ‏۸ اوت ۲۰۲۶، ساعت ۰۸:۲۷

کافه پاتوق محمد

محیطی دنج و دلپذیر برای ساخت لحظات بهتر
رزرو و سفارش آنلاین