الگو:کانتینر متن و عکس/بخشنده: تفاوت میان نسخهها
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
<html> | <html> | ||
<!-- بخش Hero --> | <!-- ========================= | ||
<section class="sajad-hero" style=" | بخش Hero | ||
========================= --> | |||
<section class="sajad-hero" | |||
style=" | |||
--hero-bg:#FFFFFF; | |||
--hero-title:#100E47; | |||
"> | --hero-text:#3E3A36; | ||
--hero-badge-bg:#FFB6C1; | |||
--hero-btn-bg:#100E47; | |||
"> | |||
<div class="sajad-hero__container"> | <div class="sajad-hero__container"> | ||
<div class="sajad-hero__content"> | <!-- محتوای متنی --> | ||
<div class="sajad-hero__content"> | |||
<h3 | <h3 class="sajad-hero__intro"> | ||
<a href="https://fa.faraghaib.ir/wiki/%D8%A7%D9%84%DA%AF%D9%88:%D9%81%D8%B1%D9%85_%D8%AB%D8%A8%D8%AA_%D9%86%D8%A7%D9%85"> | <a href="https://fa.faraghaib.ir/wiki/%D8%A7%D9%84%DA%AF%D9%88:%D9%81%D8%B1%D9%85_%D8%AB%D8%A8%D8%AA_%D9%86%D8%A7%D9%85"> | ||
تکمیل فرم</a>، اولین قدم برای دریافت مشاوره دقیقتر است. | تکمیل فرم | ||
</h3> | </a>، | ||
اولین قدم برای دریافت مشاوره دقیقتر است. | |||
</h3> | |||
< | <span class="sajad-hero__badge"> | ||
همراه مطمئن درمان ناباروری | |||
</span> | |||
< | <h1 class="sajad-hero__title"> | ||
خدمات ما به شما: | |||
</ | </h1> | ||
< | <ul class="sajad-hero__description"> | ||
< | <li> | ||
<strong>اهدای تخمک:</strong> | |||
شامل شرایط سنی، پزشکی و پرداخت مبالغ متفاوت بسته به شهر. | |||
</li> | |||
< | <li> | ||
<strong>رحم جایگزین:</strong> | |||
شامل شرایط سنی، پزشکی، سابقه بارداری و هزینههای کلان. | |||
</li> | |||
<li><strong>اهدای | <li> | ||
<strong>اهدای جنین:</strong> | |||
شرایط خاص برای زوجین اهداکننده اسپرم و تخمک. | |||
</li> | |||
</ul> | |||
</div> | |||
< | <!-- تصویر --> | ||
<div class="sajad-hero__media"> | |||
< | <div class="sajad-hero__img sajad-hero__img--back"> | ||
</ | <img | ||
src="https://dl.faraghaib.ir/m/109/109m020.png" | |||
alt="محصول پوشاک سجاد" | |||
loading="lazy" | |||
decoding="async" | |||
> | |||
<div | </div> | ||
<div | </div> | ||
< | </div> | ||
</ | </section> | ||
< | <style> | ||
/* ================================================== | |||
Base Reset | |||
================================================== */ | |||
.sajad-hero, | |||
.sajad-hero *, | |||
.sajad-hero *::before, | |||
.sajad-hero *::after { | |||
box-sizing: border-box; | |||
} | |||
/*=============================== | /* ================================================== | ||
Hero - Mobile First | |||
================================*/ | ================================================== */ | ||
.sajad-hero{ | .sajad-hero { | ||
width: 100%; | |||
max-width: 100%; | |||
background: var(--hero-bg); | |||
padding: 35px 15px; | |||
direction: rtl; | |||
overflow: hidden; | |||
font-family: iransans, Tahoma, Arial, sans-serif; | |||
} | } | ||
/* ================================================== | |||
Container | |||
================================================== */ | |||
.sajad-hero__container { | |||
width: 100%; | |||
max-width: 1100px; | |||
margin: 0 auto; | |||
display: grid; | |||
grid-template-columns: 1fr; | |||
gap: 30px; | |||
align-items: center; | |||
} | } | ||
/* ================================================== | |||
Content | |||
================================================== */ | |||
.sajad-hero__content { | |||
width: 100%; | |||
min-width: 0; | |||
text-align: center; | |||
} | } | ||
/* ================================================== | |||
Intro Text | |||
================================================== */ | |||
.sajad-hero__intro { | |||
margin: 0 0 22px; | |||
color: var(--hero-text); | |||
font-size: clamp(1rem, 3.8vw, 1.35rem); | |||
line-height: 2; | |||
font-weight: 600; | |||
} | } | ||
.sajad- | .sajad-hero__intro a { | ||
color:var(--hero-title); | color: var(--hero-title); | ||
font- | font-weight: 700; | ||
text-decoration: none; | |||
} | |||
.sajad-hero__intro a:hover { | |||
text-decoration: underline; | |||
} | } | ||
/* ================================================== | |||
Badge | |||
================================================== */ | |||
.sajad-hero__badge { | |||
display: inline-block; | |||
max-width: 100%; | |||
background: var(--hero-badge-bg); | |||
padding: 8px 16px; | |||
border-radius: 8px; | |||
margin-bottom: 18px; | |||
font-size: clamp(.9rem, 3.5vw, 1rem); | |||
line-height: 1.8; | |||
white-space: normal; | |||
} | } | ||
/* ================================================== | |||
Title | |||
================================================== */ | |||
.sajad-hero__title { | |||
color: var(--hero-title); | |||
font-size: clamp(1.7rem, 7vw, 3rem); | |||
line-height: 1.5; | |||
margin: 0 0 18px; | |||
font-weight: 700; | |||
} | } | ||
/* ================================================== | |||
Description / List | |||
================================================== */ | |||
.sajad-hero__description { | |||
width: 100%; | |||
margin: 0; | |||
padding: 0 20px 0 0; | |||
color: var(--hero-text); | |||
font-size: clamp(.95rem, 3.8vw, 1.1rem); | |||
line-height: 2; | |||
text-align: right; | |||
} | } | ||
.sajad- | .sajad-hero__description li { | ||
margin-bottom: 12px; | |||
padding-right: 5px; | |||
} | |||
.sajad-hero__description li:last-child { | |||
margin-bottom: 0; | |||
} | |||
.sajad-hero__description strong { | |||
color: var(--hero-title); | |||
font-weight: 700; | |||
} | } | ||
display: | /* ================================================== | ||
Media | |||
================================================== */ | |||
.sajad-hero__media { | |||
width: 100%; | |||
min-width: 0; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
overflow: visible; | |||
margin: 0 auto; | |||
order: 2; | |||
} | } | ||
/* ================================================== | |||
Image Wrapper | |||
================================================== */ | |||
.sajad-hero__img { | |||
width: 100%; | |||
max-width: 320px; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
overflow: visible; | |||
margin: 0 auto; | |||
} | } | ||
/* ================================================== | |||
Image | |||
================================================== */ | |||
.sajad-hero__img img { | |||
display: block; | |||
width: 100%; | |||
max-width: 100%; | |||
height: auto; | |||
object-fit: contain; | |||
border-radius: 8px; | |||
} | } | ||
/* ================================================== | |||
Tablet | |||
================================================== */ | |||
@media (min-width: 600px) { | |||
.sajad-hero { | |||
padding: 50px 25px; | |||
} | |||
.sajad-hero__container { | |||
gap: 40px; | |||
} | |||
.sajad-hero__img { | |||
max-width: 380px; | |||
} | |||
.sajad-hero__description { | |||
padding-right: 25px; | |||
} | |||
} | } | ||
/* ================================================== | |||
Desktop | |||
================================================== */ | |||
@media (min-width: 769px) { | |||
.sajad-hero { | |||
padding: 70px 30px; | |||
} | |||
.sajad-hero__container { | |||
grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); | |||
gap: 50px; | |||
min-height: 500px; | |||
} | |||
.sajad-hero__content { | |||
text-align: right; | |||
order: 1; | |||
} | |||
.sajad-hero__media { | |||
} | order: 2; | ||
height: auto; | |||
min-height: 500px; | |||
position: relative; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
} | |||
.sajad-hero__img { | |||
width: 350px; | |||
max-width: 100%; | |||
height: auto; | |||
position: relative; | |||
left: auto; | |||
top: auto; | |||
} | |||
.sajad-hero__img img { | |||
width: 100%; | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
} | } | ||
/* ================================================== | |||
Large Desktop | |||
================================================== */ | |||
@media (min-width: 1100px) { | |||
.sajad-hero { | |||
} | padding: 80px 30px; | ||
} | |||
.sajad-hero__container { | |||
gap: 70px; | |||
} | |||
.sajad-hero__img { | |||
width: 400px; | |||
} | |||
} | } | ||
/* ================================================== | |||
Very Small Mobile | |||
================================================== */ | |||
width: | @media (max-width: 360px) { | ||
} | .sajad-hero { | ||
padding: 28px 12px; | |||
} | |||
.sajad- | .sajad-hero__container { | ||
gap: 25px; | |||
} | |||
.sajad-hero__intro { | |||
line-height: 1.9; | |||
} | |||
.sajad-hero__description { | |||
padding-right: 18px; | |||
font-size: .9rem; | |||
. | line-height: 1.9; | ||
} | |||
.sajad-hero__badge { | |||
padding: 7px 12px; | |||
} | |||
} | |||
/* ================================================== | |||
Prevent horizontal overflow | |||
================================================== */ | |||
.sajad-hero img { | |||
max-width: 100%; | |||
} | } | ||
.sajad-hero a { | |||
overflow-wrap: anywhere; | |||
} | } | ||