Новые правки

This commit is contained in:
Web-serfer 2026-04-15 23:29:28 +05:00
parent eb5ce90de6
commit d34ba48a91

View file

@ -13,6 +13,7 @@ const lawyerImageUrl = "/images/home/avtourist-surgut.avif";
---
<section class="hero-section">
<img src={bgImageUrl} alt="" class="hero-bg-image" fetchpriority="high" decoding="async" />
<div class="hero-overlay"></div>
<div class="site-container hero-grid">
@ -67,14 +68,14 @@ const lawyerImageUrl = "/images/home/avtourist-surgut.avif";
});
</script>
<style define:vars={{ bgImageUrl: `url("${bgImageUrl}")` }}>
<style>
.hero-section {
position: relative;
width: 100%;
min-height: 100vh;
display: flex;
align-items: center;
background-image: var(--bgImageUrl);
background-image: url("/images/home/bg_hero.avif");
background-size: cover;
background-position: center;
@ -84,6 +85,14 @@ const lawyerImageUrl = "/images/home/avtourist-surgut.avif";
overflow: hidden;
}
.hero-bg-image {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.hero-overlay {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;