Responsive menu.

This commit is contained in:
codevictory
2021-04-28 18:34:32 +03:00
parent 02ae5245b8
commit 8c906a76d7
7 changed files with 35 additions and 33 deletions

View File

@@ -14,30 +14,25 @@
</head>
<body>
<header >
<nav class="main-nav-bar" role="navigation">
<%= link "Etusivu", to: Routes.page_path(@conn, :index) %>
<%= link "Ohjelma", to: Routes.performance_path(@conn, :index) %>
<%= link "Esiintyjät", to: Routes.performer_path(@conn, :index) %>
<%= link "Info", to: Routes.page_path(@conn, :info) %>
<%= link "Covid-19", to: Routes.page_path(@conn, :covid19) %>
<%= link "Ilmoittautuminen", to: Routes.admin_performer_path(@conn, :new) %>
</nav>
<h1 class="mobile-main-title">
<a href="/#logo-container">Runosaari 2021</a>
</h1>
<nav class="mobile-main-nav-bar" id="nav-bar">
<a href="/#logo-container">Etusivu</a>
<a href="calendar.html#calendar-container"
>Ohjelma</a
>
<a href="performers.html#performers-container"
>Esiintyjät</a
>
<a href="contact.html#contact-container">Info</a>
<a href="covid19.html#covid-container"
>Covid-19</a
>
</nav>
<nav class="main-nav-bar" role="navigation">
<%= link "Etusivu", to: Routes.page_path(@conn, :index) %>
<%= link "Ohjelma", to: Routes.performance_path(@conn, :index) %>
<%= link "Esiintyjät", to: Routes.performer_path(@conn, :index) %>
<%= link "Info", to: Routes.page_path(@conn, :info) %>
<%= link "Covid-19", to: Routes.page_path(@conn, :covid19) %>
<%= link "Ilmoittautuminen", to: Routes.admin_performer_path(@conn, :new) %>
</nav>
<h1 class="mobile-main-title">
<a href="/#logo-container">Runosaari 2021</a>
</h1>
<nav class="mobile-main-nav-bar" id="nav-bar">
<%= link "Etusivu", to: "#{Routes.page_path(@conn, :index)}#logo-start" %>
<%= link "Ohjelma", to: "#{Routes.performance_path(@conn, :index)}#calendar-start" %>
<%= link "Esiintyjät", to: "#{Routes.performer_path(@conn, :index)}#performers-start" %>
<%= link "Info", to: "#{Routes.page_path(@conn, :info)}#contact-start" %>
<%= link "Covid-19", to: "#{Routes.page_path(@conn, :covid19)}#covid-start" %>
<%= link "Ilmoittautuminen", to: "#{Routes.admin_performer_path(@conn, :new)}#registration-start" %>
</nav>
</header>
<main role="main">
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>