mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-01-15 15:34:07 +00:00
Adjust hero
This commit is contained in:
parent
23d7dbc58b
commit
64d2e66d8f
@ -17,6 +17,7 @@
|
||||
position: relative;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
mix-blend-mode: lighten;
|
||||
|
||||
video {
|
||||
@include respond-to('mobile') {
|
||||
@ -25,7 +26,6 @@
|
||||
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
mix-blend-mode: screen;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@ -34,10 +34,11 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
mix-blend-mode: overlay;
|
||||
background: radial-gradient(
|
||||
ellipse,
|
||||
rgb(3 3 3 / 0) 55%,
|
||||
rgb(3 3 3 / 1) 75%,
|
||||
rgb(3 3 3 / 0) 50%,
|
||||
rgb(3 3 3 / 1) 72%,
|
||||
rgb(3 3 3 / 1) 100%
|
||||
);
|
||||
width: 101%;
|
||||
|
||||
@ -20,13 +20,35 @@
|
||||
}
|
||||
}
|
||||
|
||||
video {
|
||||
@include respond-to('mobile') {
|
||||
display: none;
|
||||
.video_container {
|
||||
position: relative;
|
||||
margin: auto;
|
||||
width: 82%;
|
||||
mix-blend-mode: lighten;
|
||||
|
||||
video {
|
||||
@include respond-to('mobile') {
|
||||
display: none;
|
||||
}
|
||||
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
margin: 0 tovw(180px, 'default', 115px);
|
||||
mix-blend-mode: screen;
|
||||
&::after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
background: radial-gradient(
|
||||
ellipse,
|
||||
rgb(3 3 3 / 0) 60%,
|
||||
rgb(3 3 3 / 1) 75%,
|
||||
rgb(3 3 3 / 1) 100%
|
||||
);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
|
||||
.hero__mobile {
|
||||
@ -187,7 +209,8 @@
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
z-index: 2;
|
||||
mix-blend-mode: screen;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgb(0 0 244 / 0.9) 1.63%,
|
||||
|
||||
@ -17,19 +17,21 @@ const Hero = () => {
|
||||
return (
|
||||
<Section className={s['section']} disableFadeIn>
|
||||
<div className={s.gradient} />
|
||||
<video
|
||||
autoPlay
|
||||
ref={heroVideoRef}
|
||||
controls={false}
|
||||
loop
|
||||
// onEnded={() => loop()}
|
||||
muted
|
||||
playsInline={true}
|
||||
preload="true"
|
||||
>
|
||||
<source src="/videos/banner-products.webm" type="video/webm" />
|
||||
<source src="/videos/banner-products.mp4" type="video/mp4" />
|
||||
</video>
|
||||
<div className={s.video_container}>
|
||||
<video
|
||||
autoPlay
|
||||
ref={heroVideoRef}
|
||||
controls={false}
|
||||
loop
|
||||
// onEnded={() => loop()}
|
||||
muted
|
||||
playsInline={true}
|
||||
preload="true"
|
||||
>
|
||||
<source src="/videos/banner-products.webm" type="video/webm" />
|
||||
<source src="/videos/banner-products.mp4" type="video/mp4" />
|
||||
</video>
|
||||
</div>
|
||||
<img
|
||||
className={s.hero__mobile}
|
||||
loading="eager"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user