mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
placeholder for more nav pieces
This commit is contained in:
parent
7448cfca3b
commit
5774890d6c
@ -1,12 +1,31 @@
|
||||
<div class="bg-notebook-blue text-white w-full flex justify-between sticky top-0 z-50">
|
||||
<div class="relative block p-4 lg:p-6 text-xl font-bold">
|
||||
<%= image_tag 'logos/book-small.webp', class: 'h-8 w-8 float-left mr-3 bg-white rounded-full' %>
|
||||
<%= link_to 'Notebook.ai', root_path, class: 'hover:text-blue-100' %>
|
||||
</div>
|
||||
|
||||
<div class="pt-2 relative mx-auto text-notebook-blue">
|
||||
<input class="border-2 border-gray-300 bg-white h-10 px-5 pr-16 rounded-lg text-sm focus:outline-none"
|
||||
type="search" name="search" placeholder="Search your notebook">
|
||||
<button type="submit" class="absolute right-0 top-0 mt-5 mr-4">
|
||||
<svg class="text-gray-600 h-4 w-4 fill-current" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px"
|
||||
viewBox="0 0 56.966 56.966" style="enable-background:new 0 0 56.966 56.966;" xml:space="preserve"
|
||||
width="512px" height="512px">
|
||||
<path
|
||||
d="M55.146,51.887L41.588,37.786c3.486-4.144,5.396-9.358,5.396-14.786c0-12.682-10.318-23-23-23s-23,10.318-23,23 s10.318,23,23,23c4.761,0,9.298-1.436,13.177-4.162l13.661,14.208c0.571,0.593,1.339,0.92,2.162,0.92 c0.779,0,1.518-0.297,2.079-0.837C56.255,54.982,56.293,53.08,55.146,51.887z M23.984,6c9.374,0,17,7.626,17,17s-7.626,17-17,17 s-17-7.626-17-17S14.61,6,23.984,6z" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<ul class="flex">
|
||||
<!--
|
||||
<li class="border-transparent border-b-2 hover:border-white text-sm">
|
||||
<a href="#" class="relative block py-6 px-2 lg:p-6 text-sm lg:text-base font-bold">Home</a>
|
||||
<a href="#" class="relative block py-6 px-2 lg:p-6 text-sm lg:text-base font-bold">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
-->
|
||||
|
||||
<!-- Toggle dropdown by click -->
|
||||
<li class="toggleable border-transparent border-b-2 hover:border-white text-sm">
|
||||
@ -24,7 +43,7 @@
|
||||
<%= link_to 'customize active pages', main_app.customization_content_types_path %>
|
||||
</div>
|
||||
</div>
|
||||
<% @current_user_content.keys.sort.each do |key| %>
|
||||
<% (@current_user_content.keys - [Document.name, Timeline.name, Universe.name]).sort.each do |key| %>
|
||||
<%= link_to polymorphic_path(key.pluralize.downcase) do %>
|
||||
<span class="bg-white rounded-lg inline-block <%= content_class_from_name(key).color %> text-white pb-4 pt-1 px-4 m-1 hover:shadow-lg">
|
||||
<i class="material-icons mr-2 relative top-2"><%= content_class_from_name(key).icon %></i>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user