diff --git a/src/main/resources/static/index.css b/src/main/resources/static/index.css index 0c16f07..2a9dee4 100644 --- a/src/main/resources/static/index.css +++ b/src/main/resources/static/index.css @@ -2,11 +2,11 @@ :root { --primary-color: #333; - --accent-color: #a00000; + --accent-color: #a8170d; --background-color: #F4F4F9; --confirm-button-color: #28a745; --confirm-button-color-hover: #218838; - --header-background-color: darkgray; + --header-background-color: #171717; } @@ -28,6 +28,13 @@ header { left: 0; right: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); + border-bottom: 5px solid #a8170d; +} + +header h1 { + color: white; + text-align: center; + padding: 10px; } nav { @@ -233,4 +240,124 @@ tbody tr:hover { select { min-width: 200px; -} \ No newline at end of file +} + + +.hamburger-menu { + position: relative; + width: 30px; + height: 21.5px; + cursor: pointer; + margin: 16px; + } + + .hamburger-line { + position: absolute; + width: 100%; + height: 4px; + background-color: white; + border-radius: 4px; + transition: transform 0.3s, opacity 0.3s; + } + + .hamburger-line:nth-child(2) { + top: 50%; + transform: translateY(-50%); + } + + .hamburger-line:nth-child(3) { + bottom: 0; + } + + .hamburger-menu.open .line-1 { + transform: rotate(-45deg) translate(-6px, 6px); + } + + .hamburger-menu.open .line-2 { + opacity: 0; + } + + .hamburger-menu.open .line-3 { + transform: rotate(45deg) translate(-6px, -6px); + } + + .navigation-menu { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: var(--nav-menu-background-color); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + z-index: 9999; + opacity: 0; + pointer-events: none; + transition: opacity 0.3s; + } + + .navigation-menu.show { + opacity: 1; + pointer-events: auto; + } + + .close-button { + position: absolute; + top: 1px; + left: 1px; + font-size: 24px; + color: var(--header-font-color); + cursor: pointer; + } + + .links { + list-style: none; + padding: 0; + display: flex; + flex-direction: column; + align-items: center; + } + + .links li { + margin: 10px 0; + } + + .links a { + color: var(--header-font-color); + text-decoration: none; + font-size: 18px; + } + + .navbar { + background-color: var(--header-background-color); + padding: 10px; + padding-top: 0; + padding-bottom: 0; + text-align: center; + width: 100%; + height: 58px; + display: flex; + position: fixed; + top: 0; + z-index: 1; + } + + @media only screen and (max-width: 650px) and (min-width: 375px) { + .nav-links { + display: none; + } + .hamburger-menu { + display: block; + } + } + + @media only screen and (max-width: 375px) and (min-width: 0px) { + .nav-links { + display: none; + } + .hamburger-menu { + display: block; + } + } \ No newline at end of file diff --git a/src/main/resources/templates/header.ftl b/src/main/resources/templates/header.ftl index d179b46..0af74e4 100644 --- a/src/main/resources/templates/header.ftl +++ b/src/main/resources/templates/header.ftl @@ -1,12 +1,115 @@
+
+
+
+
+

Multimodal Parliament Explorer

- -
\ No newline at end of file + + + + + +