diff --git a/client/public/images/vr-helmet-2.png b/client/public/images/vr-helmet-2.png new file mode 100644 index 0000000..c75ab99 Binary files /dev/null and b/client/public/images/vr-helmet-2.png differ diff --git a/client/public/images/vr-helmet.png b/client/public/images/vr-helmet.png deleted file mode 100644 index 0890dc5..0000000 Binary files a/client/public/images/vr-helmet.png and /dev/null differ diff --git a/client/public/images/vr-mask.svg b/client/public/images/vr-mask.svg new file mode 100644 index 0000000..029cc78 --- /dev/null +++ b/client/public/images/vr-mask.svg @@ -0,0 +1,3 @@ + + + diff --git a/client/src/App.tsx b/client/src/App.tsx index e49425a..4f51b97 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -1,5 +1,5 @@ import "./App.css"; -import { FormEvent, useRef, useState } from "react"; +import { FormEvent, useEffect, useRef, useState } from "react"; import PieChart from "./components/PieChart/PieChart"; import Calc from "./components/Calc"; import { motion } from "framer-motion"; @@ -48,6 +48,10 @@ function App() { alert("Заявка отправлена!"); } + useEffect(() => { + console.log(navigator); + }, []); + return (
@@ -281,8 +295,22 @@ function App() {
-
- +
+
+ + +
@@ -749,7 +777,11 @@ function App() { diff --git a/client/src/components/Calc.tsx b/client/src/components/Calc.tsx index b45aa33..8d142d4 100644 --- a/client/src/components/Calc.tsx +++ b/client/src/components/Calc.tsx @@ -117,6 +117,8 @@ function Calc() { if (implementationTime) { const lastIndex = Number(implementationTime.toString().at(-1)); + console.log("lastIndex", lastIndex); + if (lastIndex === 1) { setImplementationTimeCase("месяц"); } else if (lastIndex > 1 && lastIndex < 5) { diff --git a/client/src/index.css b/client/src/index.css index 9ce40c9..48ee001 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -125,3 +125,10 @@ input:checked + div svg { .swiper-pagination-bullet-active { background-color: #fff; } + +.vr-mask { + mask: url("/images/vr-mask.svg"); + mask-repeat: no-repeat; + mask-position: bottom; + mask-size: cover; +} diff --git a/server/app.js b/server/app.js index 27cb567..ba2a74c 100644 --- a/server/app.js +++ b/server/app.js @@ -30,6 +30,8 @@ app.get("/regions", async (req, res) => { } }); + console.log(regions); + res.send(regions); });