-
diff --git a/modules/home/header.tsx b/modules/home/header.tsx
index d7f6919..8e9101a 100644
--- a/modules/home/header.tsx
+++ b/modules/home/header.tsx
@@ -5,7 +5,7 @@ import clsx from 'clsx';
import { manrope, caveat } from '@/styles/fonts';
import ThinStarBig from '@/assets/images/thin-star-big.svg';
import ThickRoundStar5 from '@/assets/images/thick-round-star-5.svg';
-import thickRoundStar6Url from '@/assets/images/thick-round-star-6.svg?url';
+import ThickRoundStar6 from '@/assets/images/thick-round-star-6.svg';
import ridebusFlat from '@/assets/images/cities-backdrop.jpg';
import Image from 'next/image';
import { Gradients } from '@/components/gradients';
@@ -22,12 +22,7 @@ const locales: LocalesMap = {
Приложение,
которое
поможет
-
+
вам
с
лёгкостью
смотреть
@@ -43,12 +38,7 @@ const locales: LocalesMap = {
app
that
helps
-
+
you
conveniently
view
@@ -69,8 +59,7 @@ export default function Header() {
const t = useLocale(locales);
const sloganLineRef = useRef(null);
const transitionToBackgoundRef = useRef(null);
- const thickRoundStar6MaskRef = useRef(null);
- const thickRoundStar6ImageRef = useRef(null);
+ const thickRoundStar6 = useRef(null);
const thickRoundStar5 = useRef(null);
const breakpoint600 = false;//useMediaQuery('(max-width: 600px)');
@@ -91,16 +80,12 @@ export default function Header() {
transitionToBackgoundRef.current.style.height = `${scrollY + 300}px`;
}
- if (thickRoundStar6MaskRef.current && scrollY - 300 < window.innerHeight) {
- thickRoundStar6MaskRef.current.style.transform = `translate3D(0px, ${scrollY / 6}px, 0px) rotate(${scrollY / 8 + (time * 0.01) % 360}deg)`;
- }
-
- if (thickRoundStar6ImageRef.current && scrollY - 300 < window.innerHeight) {
- thickRoundStar6ImageRef.current.style.transform = `rotate(${-scrollY / 8 - (time * 0.01) % 360}deg) translate3d(0,0,0)`;
+ if (thickRoundStar6.current && scrollY - 300 < window.innerHeight) {
+ thickRoundStar6.current.style.transform = `translate3D(0px, ${scrollY / 2}px, 0px) rotate(${scrollY / 8 + (time * 0.01) % 360}deg)`;
}
if (thickRoundStar5.current && scrollY - 300 < window.innerHeight) {
- thickRoundStar5.current.style.transform = `translate3D(-50%, -50%,0) rotate(${-scrollY / 6 - 10}deg)`;
+ thickRoundStar5.current.style.transform = `translate3D(0px, ${scrollY / 8}px, 0px) rotate(${scrollY / 8 + (time * 0.01) % 360}deg)`;
}
}, { accelerator: 0.06 });
@@ -108,19 +93,13 @@ export default function Header() {
-
-
+
+
+
+
+
@@ -128,11 +107,6 @@ export default function Header() {
-
);
}
\ No newline at end of file
diff --git a/modules/home/home.module.scss b/modules/home/home.module.scss
index 027ad6e..86aa49b 100644
--- a/modules/home/home.module.scss
+++ b/modules/home/home.module.scss
@@ -96,16 +96,14 @@
top: 20vh;
left: -125px;
z-index: 0;
- mask-repeat: no-repeat;
- mask-size: contain;
- mask-position: 50%;
width: 250px;
height: 250px;
display: flex;
align-items: center;
justify-content: center;
+ color: #1d4fac;
- img {
+ div {
position: absolute;
width: 400px;
height: 400px;
@@ -114,18 +112,22 @@
}
.thickRoundStar5 {
- position: relative;
- max-width: 1500px;
- width: 100%;
- margin: auto;
- z-index: 100000;
+ position: absolute;
+ top: 50vh;
+ right: -100px;
+ z-index: 0;
+ width: 250px;
+ height: 250px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #715573;
div {
position: absolute;
- top: -50px;
- right: 50px;
- transform: translate(-50%, -50%) rotate(-10deg);
- color: #9f7ea1;
+ width: 400px;
+ height: 400px;
+ object-fit: contain;
}
}
@@ -256,6 +258,13 @@
left: -62px;
top: 8vh;
}
+
+ .thickRoundStar5 {
+ width: 125px;
+ height: 125px;
+ right: -48px;
+ top: 74vh;
+ }
}
@media screen and (max-width: 500px) {