هدر منحنی/سهند نوین سازه - فراغیب
صفحهای تازه حاوی «<html lang="fa" dir="rtl"> <!-- ========================================================= HERO | آقای پور ابراهیمی Responsive Image-Based Hero تصویر تعیینکننده ارتفاع کانتینر است ========================================================= --> <section class="industrial-hero" aria-labelledby="industrial-hero-title"> <!-- =======================================...» ایجاد کرد |
بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
<html | <html> | ||
<!-- ========================================================= | <!-- ========================================================= | ||
HERO | آقای پور ابراهیمی | HERO | آقای پور ابراهیمی | ||
Responsive | Mobile-First + SEO + Responsive | ||
========================================================= --> | ========================================================= --> | ||
| خط ۱۰: | خط ۸: | ||
aria-labelledby="industrial-hero-title"> | aria-labelledby="industrial-hero-title"> | ||
<!-- | <!-- تصویر اصلی --> | ||
<img | <img | ||
class="industrial-hero__image" | class="industrial-hero__image" | ||
src="https://dl.faraghaib.ir/m/260010-01/ | src="https://dl.faraghaib.ir/m/260010-01/260010-01-02.jpg" | ||
alt=" | alt="تراش کاری CNC" | ||
loading="eager" | loading="eager" | ||
fetchpriority="high" | fetchpriority="high" | ||
| خط ۲۵: | خط ۱۸: | ||
> | > | ||
<!-- لایه تاریک روی تصویر --> | |||
<div class="industrial-hero__overlay" aria-hidden="true"></div> | |||
<!-- | <!-- محتوای اصلی --> | ||
<div class="industrial-hero__content"> | <div class="industrial-hero__content"> | ||
<p class="industrial-hero__eyebrow"> | <p class="industrial-hero__eyebrow"> | ||
تخصصیترین خدمات | تخصصیترین خدمات تراش کاری CNC | ||
</p> | </p> | ||
<h1 | <h1 id="industrial-hero-title" class="industrial-hero__title"> | ||
مدیریت آقای پور ابراهیمی | مدیریت آقای پور ابراهیمی | ||
</h1> | </h1> | ||
| خط ۵۷: | خط ۳۵: | ||
href="#contact" | href="#contact" | ||
class="industrial-hero__button" | class="industrial-hero__button" | ||
aria-label=" | aria-label="دریافت مشاوره رایگان درباره تراشکاری CNC" | ||
> | |||
ثبت سفارش فوری | ثبت سفارش فوری | ||
</a> | </a> | ||
</div> | </div> | ||
<!-- منحنی پایین --> | |||
<!-- | <div class="industrial-hero__wave" aria-hidden="true"> | ||
<div | |||
<svg | <svg | ||
viewBox="0 0 1440 130" | viewBox="0 0 1440 130" | ||
preserveAspectRatio="none" | preserveAspectRatio="none" | ||
xmlns="http://www.w3.org/2000/svg"> | xmlns="http://www.w3.org/2000/svg" | ||
> | |||
<path | <path | ||
d=" | d=" | ||
M0 58 | |||
C130 92 245 112 380 108 | |||
C530 104 650 67 780 35 | |||
C920 1 1035 2 1155 20 | |||
C1270 37 1360 55 1440 60 | |||
L1440 130 | |||
L0 130 | |||
Z | |||
" | " | ||
fill="#ffffff" | fill="#ffffff" | ||
/> | |||
</svg> | |||
</svg> | |||
</div> | |||
</div> | |||
</section> | |||
</section> | |||
<style> | |||
<style> | |||
/* ========================================================= | |||
/* ========================================================= | RESET | ||
RESET | ========================================================= */ | ||
========================================================= */ | |||
.industrial-hero, | |||
.industrial-hero, | .industrial-hero *, | ||
.industrial-hero *, | .industrial-hero *::before, | ||
.industrial-hero *::before, | .industrial-hero *::after { | ||
.industrial-hero *::after { | box-sizing: border-box; | ||
} | |||
box-sizing: border-box; | |||
} | /* ========================================================= | ||
HERO - MOBILE FIRST | |||
========================================================= */ | |||
/* ========================================================= | |||
HERO | .industrial-hero { | ||
position: relative; | |||
========================================================= */ | isolation: isolate; | ||
.industrial-hero { | width: 100%; | ||
min-height: 380px; | |||
position: relative; | |||
overflow: hidden; | |||
width: 100%; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
background: #111; | |||
} | |||
/* ========================================================= | |||
BACKGROUND IMAGE | |||
========================================================= */ | |||
background: #111; | |||
.industrial-hero__image { | |||
} | position: absolute; | ||
z-index: -3; | |||
/* ========================================================= | inset: 0; | ||
IMAGE | |||
width: 100%; | |||
========================================================= */ | height: 100%; | ||
.industrial-hero__image { | object-fit: cover; | ||
/* | |||
کمی به سمت بالا تنظیم شده تا | |||
قسمت بیشتری از دستگاه دیده شود | |||
*/ | |||
object-position: center 38%; | |||
display: block; | |||
/* | |||
تصویر کمی روشنتر و واضحتر | |||
*/ | |||
filter: | |||
brightness(0.88) | |||
contrast(1.05) | |||
saturate(0.95); | |||
*/ | transform: scale(1.01); | ||
} | |||
/* ========================================================= | |||
DARK OVERLAY | |||
/* | ========================================================= */ | ||
تصویر | |||
*/ | .industrial-hero__overlay { | ||
position: absolute; | |||
z-index: -2; | |||
inset: 0; | |||
/* | |||
در تصویر اصلی تاریکی زیاد بود. | |||
این مقدار باعث میشود عکس واضحتر دیده شود. | |||
*/ | |||
background: | |||
saturate(0.95); | linear-gradient( | ||
180deg, | |||
} | rgba(0, 0, 0, 0.34) 0%, | ||
rgba(0, 0, 0, 0.28) 45%, | |||
rgba(0, 0, 0, 0.40) 100% | |||
/* ========================================================= | ); | ||
DARK OVERLAY | } | ||
========================================================= */ | |||
.industrial-hero__overlay { | /* ========================================================= | ||
CONTENT | |||
position: absolute; | ========================================================= */ | ||
z-index: | .industrial-hero__content { | ||
position: relative; | |||
inset: 0; | z-index: 2; | ||
width: min(92%, 1000px); | |||
background: | padding: | ||
55px | |||
linear-gradient( | 15px | ||
180deg, | 115px; | ||
rgba(0, 0, 0, 0.34) 0%, | |||
rgba(0, 0, 0, 0. | text-align: center; | ||
rgba(0, 0, 0, 0.40) 100% | |||
); | display: flex; | ||
flex-direction: column; | |||
} | align-items: center; | ||
justify-content: center; | |||
} | |||
/* ========================================================= | |||
CONTENT | |||
========================================================= */ | /* ========================================================= | ||
EYEBROW | |||
.industrial-hero__content { | ========================================================= */ | ||
position: | .industrial-hero__eyebrow { | ||
margin: 0 0 20px; | |||
z-index: 2; | |||
color: #ffffff; | |||
font-size: clamp(15px, 3.5vw, 21px); | |||
width: | |||
font-weight: 600; | |||
padding: | |||
line-height: 1.8; | |||
text-shadow: | |||
0 2px 8px rgba(0, 0, 0, 0.7); | |||
} | |||
display: flex; | |||
flex-direction: column; | /* ========================================================= | ||
H1 | |||
align-items: center; | ========================================================= */ | ||
justify-content: center; | .industrial-hero__title { | ||
margin: 0 0 32px; | |||
color: #ffffff; | |||
} | |||
font-size: clamp(42px, 11vw, 78px); | |||
/* ========================================================= | font-weight: 800; | ||
EYEBROW | |||
========================================================= */ | line-height: 1.15; | ||
.industrial-hero__eyebrow { | letter-spacing: -1px; | ||
margin: | text-shadow: | ||
0 3px 12px rgba(0, 0, 0, 0.75); | |||
} | |||
/* ========================================================= | |||
color: #ffffff; | CTA BUTTON | ||
========================================================= */ | |||
font-size: | |||
.industrial-hero__button { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
min-width: 145px; | |||
font-weight: 600; | min-height: 50px; | ||
line-height: 1.8; | padding: 12px 25px; | ||
text-shadow: | background: #FF8A00; | ||
0 | color: #ffffff; | ||
text-decoration: none; | |||
font-size: 15px; | |||
} | font-weight: 700; | ||
border-radius: 10px; | |||
/* ========================================================= | |||
H1 | box-shadow: | ||
========================================================= */ | 0 6px 20px rgba(0, 0, 0, 0.25); | ||
.industrial-hero__title { | transition: | ||
transform 0.25s ease, | |||
margin: | box-shadow 0.25s ease, | ||
background-color 0.25s ease; | |||
} | |||
/* هاور فقط برای دستگاههایی که موس دارند */ | |||
color: #ffffff; | @media (hover: hover) and (pointer: fine) { | ||
font-size: | .industrial-hero__button:hover { | ||
transform: translateY(-3px); | |||
background: #f5b400; | |||
color: #ffffff; | |||
box-shadow: | |||
font-weight: 800; | 0 10px 25px rgba(0, 0, 0, 0.30); | ||
} | |||
line-height: 1. | |||
} | |||
letter-spacing: -1px; | |||
text-shadow: | /* ========================================================= | ||
WAVE | |||
0 | ========================================================= */ | ||
.industrial-hero__wave { | |||
position: absolute; | |||
} | z-index: 3; | ||
left: 0; | |||
/* ========================================================= | right: 0; | ||
CTA BUTTON | bottom: -1px; | ||
========================================================= */ | |||
width: 100%; | |||
.industrial-hero__button { | |||
height: 100px; | |||
display: inline-flex; | |||
pointer-events: none; | |||
align-items: center; | |||
line-height: 0; | |||
justify-content: center; | } | ||
min-width: 145px; | |||
.industrial-hero__wave svg { | |||
min-height: 50px; | display: block; | ||
padding: | width: 100%; | ||
height: 100%; | |||
} | |||
background: #FF8A00; | /* ========================================================= | ||
TABLET | |||
color: #ffffff; | ========================================================= */ | ||
text-decoration: none; | @media (min-width: 600px) { | ||
font-size: 15px; | .industrial-hero { | ||
min-height: 430px; | |||
font-weight: 700; | } | ||
.industrial-hero__content { | |||
padding: | |||
border-radius: 10px; | 65px | ||
20px | |||
box-shadow: | 125px; | ||
} | |||
0 | |||
.industrial-hero__eyebrow { | |||
margin-bottom: 18px; | |||
} | |||
transition: | .industrial-hero__title { | ||
margin-bottom: 35px; | |||
transform 0.25s ease, | } | ||
box-shadow 0.25s ease, | |||
background-color 0.25s ease; | .industrial-hero__wave { | ||
height: 110px; | |||
} | } | ||
} | |||
/* | |||
========================================== | /* ========================================================= | ||
DESKTOP | |||
========================================================= */ | |||
@media (min-width: 992px) { | |||
.industrial-hero { | |||
min-height: 470px; | |||
} | |||
.industrial-hero__image { | |||
/* | |||
نمایش بخش بیشتری از تصویر صنعتی | |||
*/ | |||
object-position: center 34%; | |||
filter: | |||
brightness(0.92) | |||
contrast(1.05) | |||
saturate(0.95); | |||
} | } | ||
.industrial-hero__overlay { | |||
background: | |||
linear-gradient( | |||
180deg, | |||
========================================================= */ | rgba(0, 0, 0, 0.30) 0%, | ||
rgba(0, 0, 0, 0.22) 48%, | |||
rgba(0, 0, 0, 0.34) 100% | |||
); | |||
} | |||
.industrial-hero__content { | |||
width: min(90%, 1100px); | |||
padding: | |||
65px | |||
20px | |||
bottom: | 135px; | ||
} | |||
.industrial-hero__eyebrow { | |||
font-size: 20px; | |||
} | |||
.industrial-hero__title { | |||
font-size: clamp(58px, 6vw, 82px); | |||
} | |||
.industrial-hero__wave { | |||
height: 125px; | |||
} | |||
} | |||
/* ========================================================= | |||
LARGE DESKTOP | |||
========================================================= */ | |||
@media (min-width: 1400px) { | |||
.industrial-hero { | |||
min-height: 500px; | |||
} | |||
.industrial-hero__content { | |||
padding-bottom: 145px; | |||
} | |||
.industrial-hero__wave { | |||
height: 135px; | |||
} | |||
========================================================= */ | |||
} | |||
@media ( | |||
.industrial- | /* ========================================================= | ||
ACCESSIBILITY | |||
========================================================= */ | |||
.industrial-hero__button:focus-visible { | |||
*/ | outline: 3px solid #f5b400; | ||
outline-offset: 4px; | |||
} | |||
/* ========================================================= | |||
REDUCED MOTION | |||
} | ========================================================= */ | ||
@media (prefers-reduced-motion: reduce) { | |||
.industrial- | |||
.industrial-hero__button { | |||
transition: none; | |||
} | |||
} | |||
</style> | |||
} | |||
.industrial- | |||
===================================== | |||
@media (min-width: | |||
.industrial- | |||
.industrial-hero__content { | |||
padding-bottom: 145px; | |||
} | |||
.industrial-hero__wave { | |||
height: 135px; | |||
} | |||
} | |||
/* ========================================================= | |||
ACCESSIBILITY | |||
========================================================= */ | |||
.industrial-hero__button:focus-visible { | |||
outline: | |||
outline-offset: 4px; | |||
} | |||
/* ========================================================= | |||
REDUCED MOTION | |||
========================================================= */ | |||
@media (prefers-reduced-motion: reduce) { | |||
.industrial-hero__button { | |||
transition: none; | |||
} | |||
} | |||
</style> | |||
</html> | </html> | ||
نسخهٔ کنونی تا ۲۷ اوت ۲۰۲۶، ساعت ۰۸:۰۷