<%= get_flash(@conn, :info) %>
diff --git a/assets/css/layout.scss b/assets/css/layout.scss index 75fb71d..e330dd6 100644 --- a/assets/css/layout.scss +++ b/assets/css/layout.scss @@ -11,6 +11,10 @@ body { } header { + display: flex; + flex-direction: column; + align-items: center; + nav { display: flex; justify-content: center; @@ -25,6 +29,56 @@ header { background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), #d5caf2); text-decoration: underline; } + + @media screen and (max-width: 600px) { + a { + width: 100%; + padding: 0px; + text-align: center; + text-decoration: underline; + font-size: 1.5rem; + margin-bottom: 4px; + } + } + + &.mobile-main-nav-bar { + visibility: hidden; + height: 0px; + } + + @media screen and (max-width: 600px) { + &.mobile-main-nav-bar { + height: auto; + display: flex; + visibility: visible; + flex-direction: column; + align-items: center; + background-color: #d5caf2; + width: 80%; + margin-bottom: 30px; + } + + &.main-nav-bar { + visibility: hidden; + height: 0px; + } + } + } + + .mobile-main-title { + visibility: hidden; + height: 0px; + margin: 0px; + } + + @media screen and (max-width: 600px) { + .mobile-main-title { + visibility: visible !important; + height: 100% !important; + margin-top: 30px !important; + margin-bottom: 30px !important; + text-align: center; + } } } diff --git a/assets/css/pages/index.scss b/assets/css/pages/index.scss index 90fb6c0..5d290e2 100644 --- a/assets/css/pages/index.scss +++ b/assets/css/pages/index.scss @@ -28,3 +28,11 @@ section.text { padding: 0px 20px; } } + +@media screen and (max-width: 600px) { + #main-title { + visibility: hidden; + height: 0px; + margin: 0px; + } +} diff --git a/lib/runosaari_web/templates/layout/app.html.eex b/lib/runosaari_web/templates/layout/app.html.eex index 88c89eb..46921ae 100644 --- a/lib/runosaari_web/templates/layout/app.html.eex +++ b/lib/runosaari_web/templates/layout/app.html.eex @@ -22,6 +22,22 @@ <%= link "Covid-19", to: Routes.page_path(@conn, :covid19) %> <%= link "Ilmoittautuminen", to: Routes.admin_performer_path(@conn, :new) %> +
<%= get_flash(@conn, :info) %>