الگو:کانتینر متن و عکس/بخشنده: تفاوت میان نسخهها
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش برچسبها: ویرایش همراه ویرایش از وبگاه همراه |
||
| خط ۱: | خط ۱: | ||
<html> | <html> | ||
<!-- بخش Hero --> | <!-- بخش Hero --> | ||
<section class="sajad-hero" style=" | <section class="sajad-hero" style=" | ||
--hero-bg:#FFFFFF; | |||
--hero-bg: # | --hero-title:#100E47; | ||
--hero-title: #100E47; | --hero-text:#3E3A36; | ||
--hero-text: #3E3A36; | --hero-badge-bg:#FFB6C1; | ||
--hero-badge-bg: #FFB6C1; | --hero-btn-bg:#100E47; | ||
--hero-btn-bg: #100E47; | |||
"> | "> | ||
<div class="sajad-hero__container"> | |||
<div class="sajad-hero__content"> | |||
<h3 style="font-family:iransans;"> | |||
<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> | |||
<br> | |||
<span class="sajad-hero__badge"> | |||
همراه مطمئن درمان ناباروری | |||
</span> | |||
<h1 class="sajad-hero__title"> | |||
خدمات ما به شما: | |||
</h1> | |||
<p class="sajad-hero__description"> | |||
<ul style="font-family:iransans;"> | <ul style="font-family:iransans;"> | ||
| خط ۲۸: | خط ۴۰: | ||
</ul> | </ul> | ||
</p> | |||
</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="محصول پوشاک سجاد"> | |||
</div> | |||
</div> | |||
</div> | |||
</section> | </section> | ||
<style> | <style> | ||
/* | |||
.sajad-hero { | /*=============================== | ||
Base (Mobile First) | |||
================================*/ | |||
.sajad-hero{ | |||
background:var(--hero-bg); | |||
padding:40px 15px; | |||
direction:rtl; | |||
overflow:hidden; | |||
font-family:iransans; | |||
} | } | ||
.sajad-hero__container { | .sajad-hero__container{ | ||
max-width:1100px; | |||
margin:auto; | |||
display:grid; | |||
grid-template-columns:1fr; | |||
gap:35px; | |||
align-items:center; | |||
} | } | ||
.sajad-hero__content{ | |||
.sajad- | |||
text-align:center; | |||
} | } | ||
.sajad- | .sajad-hero__badge{ | ||
display:inline-block; | |||
background:var(--hero-badge-bg); | |||
padding:8px 16px; | |||
border-radius:8px; | |||
margin-bottom:20px; | |||
font-size:1rem; | |||
} | } | ||
.sajad- | .sajad-hero__title{ | ||
color:var(--hero-title); | |||
font-size:2rem; | |||
line-height:1.4; | |||
margin-bottom:20px; | |||
} | } | ||
.sajad- | .sajad-hero__description{ | ||
color:var(--hero-text); | |||
font-size:1rem; | |||
line-height:2; | |||
margin-bottom:20px; | |||
} | } | ||
.sajad-hero__button{ | |||
.sajad- | |||
background:var(--hero-btn-bg); | |||
color:#fff; | |||
padding:14px 28px; | |||
border-radius:50px; | |||
display:inline-block; | |||
text-decoration:none; | |||
} | } | ||
.sajad- | .sajad-hero__media{ | ||
display:flex; | |||
justify-content:center; | |||
align-items:center; | |||
width:100%; | |||
height:auto; | |||
overflow:visible; | |||
margin:0; | |||
} | } | ||
.sajad-hero__img | .sajad-hero__img{ | ||
width:100%; | |||
display:flex; | |||
justify-content:center; | |||
align-items:center; | |||
overflow:visible; | |||
} | } | ||
.sajad-hero__img img{ | |||
.sajad-hero__img | |||
display:block; | |||
width:100%; | |||
max-width:320px; | |||
height:auto; | |||
object-fit:contain; | |||
} | } | ||
/* | /*=============================== | ||
Desktop | |||
================================*/ | |||
@media(min-width:769px){ | |||
.sajad-hero{ | |||
padding:80px 20px; | |||
} | } | ||
.sajad-hero__container{ | |||
grid-template-columns:1fr 1fr; | |||
gap:40px; | |||
} | |||
.sajad-hero__content{ | |||
text-align:right; | |||
} | |||
.sajad-hero__title{ | |||
font-size:3rem; | |||
} | |||
.sajad-hero__description{ | |||
font-size:1.1rem; | |||
} | |||
.sajad-hero__media{ | |||
position:relative; | |||
height:500px; | |||
display:block; | |||
} | |||
.sajad-hero__img{ | |||
position:absolute; | |||
overflow:hidden; | |||
} | |||
.sajad-hero__img img{ | |||
max-width:100%; | |||
width:100%; | |||
} | |||
.sajad-hero__img--back{ | |||
width:350px; | |||
height:600px; | |||
left:20px; | |||
top:0; | |||
z-index:5; | |||
} | |||
.sajad-hero__img--front{ | |||
width:250px; | |||
height:450px; | |||
left:200px; | |||
top:150px; | |||
z-index:2; | |||
border:4px solid #fff; | |||
} | } | ||
} | |||
</style> | |||
</html> | </html> | ||