Implement basic navbar

Signed-off-by: Tobias Eidelpes <tobias@eidelpes.info>
This commit is contained in:
2020-04-07 13:51:05 +02:00
parent e769fffed7
commit c8bc0ca1cd
8 changed files with 126 additions and 1 deletions
+16
View File
@@ -7,9 +7,25 @@
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
<meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
</head>
<body>
<%= nav_bar do %>
<%= nav_link 'Home', root_path %>
<%= nav_link 'People', people_index_path %>
<%= nav_link 'Courses', courses_index_path %>
<%= nav_link 'Projects', projects_index_path %>
<%= nav_link 'Theses', theses_index_path %>
<a href="javascript:void(0);" class="icon" id="toggleMenu">
<%= show_svg('menu-white-24dp.svg') %>
</a>
<% end %>
<main>
<%= yield %>
</main>
</body>
</html>