diff --git a/package.json b/package.json index e882759..9e71028 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "preview": "vite preview" }, "dependencies": { + "@chakra-ui/icons": "^2.0.18", "@chakra-ui/react": "^2.5.5", "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", diff --git a/src/components/Controls.tsx b/src/components/Controls.tsx index c3a3539..ea215db 100644 --- a/src/components/Controls.tsx +++ b/src/components/Controls.tsx @@ -1,35 +1,117 @@ -import { Card, Heading, Radio, RadioGroup, Stack } from '@chakra-ui/react'; +import { + Button, + Card, + Heading, + Link, + ListItem, + Modal, + ModalBody, + ModalCloseButton, + ModalContent, + ModalHeader, + ModalOverlay, + Radio, + RadioGroup, + Stack, + Stat, + StatHelpText, + StatLabel, + StatNumber, + UnorderedList, + useDisclosure, +} from '@chakra-ui/react'; import { type FC } from 'react'; import { useData } from './DataProvider'; import { useAppState } from './StateManager'; +import { InfoIcon } from '@chakra-ui/icons'; export const Controls: FC = () => { const data = useData(); const [{ selectedView }, setAppState] = useAppState(); + const { isOpen, onOpen, onClose } = useDisclosure(); return ( - - - - Wybierz widok - - - - {data?.mapViews.map(({ name }, i) => ( - { - setAppState((p) => ({ ...p, selectedView: i })); - }} - bg={'white'} - key={i} - value={`${i}`} - > - {name} - - ))} - - - - + <> + + + + Wybierz widok + + + + {data?.mapViews.map(({ name }, i) => ( + { + setAppState((p) => ({ ...p, selectedView: i })); + }} + bg={'white'} + key={i} + value={`${i}`} + > + {name} + + ))} + + + + + + + + + + O projekcie + + + + Twórcy strony + + Tworzenie strony i przetwarzanie danych + Marcin Macierzanka + 4aSP + + + Zbieranie i zestawianie statystyk + Bartosz Hospodura + 4aSP + + Źródła danych + + + + Wikipedia + + + + + Pomorze Zachodnie - eRegion + + + + + Główny Urząd Statystyczny + + + + + Zintegrowana Platforma Edukacyjna + + + + + {`Podręcznik "Oblicza Geografii 3" (wydawnictwo "Nowa Era")`} + + + + + + + + ); }; diff --git a/yarn.lock b/yarn.lock index 68189a9..426034e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -415,6 +415,13 @@ dependencies: "@chakra-ui/shared-utils" "2.0.5" +"@chakra-ui/icons@^2.0.18": + version "2.0.18" + resolved "https://registry.yarnpkg.com/@chakra-ui/icons/-/icons-2.0.18.tgz#6f859d2e0d8f31fea9cb2e6507d65eb65cb95cf5" + integrity sha512-E/+DF/jw7kdN4/XxCZRnr4FdMXhkl50Q34MVwN9rADWMwPK9uSZPGyC7HOx6rilo7q4bFjYDH3yRj9g+VfbVkg== + dependencies: + "@chakra-ui/icon" "3.0.16" + "@chakra-ui/image@2.0.15": version "2.0.15" resolved "https://registry.yarnpkg.com/@chakra-ui/image/-/image-2.0.15.tgz#7f275f8f3edbb420e0613afd5023ad9cf442d09d"