import React from "react"; import styled from "styled-components"; import colors from "@theme/colors"; import breakpoints from "@theme/breakpoints"; import Icon, { IconType } from "./Icon"; import NavbarDropdownLink from "./NavbarDropdownLink"; import NavbarChildLink from "./NavbarChildLink"; export const renderNavigationItems = (mobile = false): JSX.Element => ( <> Toiminta Fuksi Kunnianosoitukset Dokumenttiarkisto Kuvagalleria Jäseneksi {/* Simo Höglund */} ); const Nav = styled.div` flex: 1 0 auto; display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: center; font-size: 0.8rem; color: ${colors.lightBlue}; margin-left: 5rem; a { fill: ${colors.lightBlue}; color: ${colors.lightBlue}; text-decoration: none; } @media screen and (min-width: ${breakpoints.mobile}) and (max-width: ${breakpoints.medium}) { justify-content: flex-end; } @media screen and (max-width: ${breakpoints.mobile}) { justify-content: center; margin-left: 0; } svg { width: 1.5rem; height: 1.5rem; fill: ${colors.white}; color: ${colors.white}; } `; const DesktopContainer = styled.div` flex: 1 0 auto; display: flex; flex-flow: row nowrap; justify-content: space-between; @media screen and (max-width: ${breakpoints.medium}) { display: none; } `; const SomeContainer = styled.div` display: flex; flex-flow: row nowrap; a { display: flex; flex-flow: row nowrap; justify-content: center; margin: 1rem; } `; const MobileMenu = styled.div` display: flex; margin: 0 1rem; cursor: pointer; span { display: flex; } @media screen and (min-width: ${breakpoints.medium}) { display: none; } @media screen and (max-width: ${breakpoints.mobile}) { margin-left: 3rem; } `; interface NavigationProps { onMobileMenuOpen: () => void; } const Navigation: React.FC = ({ onMobileMenuOpen }) => { const desktopItems = renderNavigationItems(); return ( ); }; export default Navigation;