From 66827e486c873df9d09ceba87f660d1c7848a0b5 Mon Sep 17 00:00:00 2001 From: zojgame Date: Thu, 4 Apr 2024 11:58:57 +0500 Subject: [PATCH] Infrasrtucture Page --- src/pages/InfrastructurePage.tsx | 58 ++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/pages/InfrastructurePage.tsx diff --git a/src/pages/InfrastructurePage.tsx b/src/pages/InfrastructurePage.tsx new file mode 100644 index 0000000..01f2cc3 --- /dev/null +++ b/src/pages/InfrastructurePage.tsx @@ -0,0 +1,58 @@ +import { useRef, useState } from "react"; +import Button from "../components/Button"; +import ArrowLeftIcon from "../components/icons/ArrowLeftIcon"; +import FullscreenIcon from "../components/icons/FullscreenIcon"; +import { useFullscreen } from "ahooks"; +import WindowModeIcon from "../components/icons/WindowModeIcon"; +import _images from "../images.json"; +import Image from "../types/Image"; + +const images = _images as Image[]; + +const InfrastructurePage = () => { + const [selectedImageId, setSelectedImageId] = useState(images[0].id); + const fullscreenRef = useRef(null); + const [isFullscreen, { toggleFullscreen }] = useFullscreen(fullscreenRef); + + return ( +
+
+
+ {selectedImageId.includes("Dvor") && ( + <> +

+ Внутренний +
+ двор +

+ + + )} + {selectedImageId.includes("Lobby_1") && ( + <> +

Лобби

+ + + )} + {selectedImageId.includes("Lobby_2") && ( + <> +

Лобби

+ + + )} +
+
+ +
+
+
+ ); +}; + +export default InfrastructurePage;