From 75ac7a6ffcd9e16820fddc1baf7451606fe10caa Mon Sep 17 00:00:00 2001 From: drusepth Date: Mon, 21 Mar 2022 14:59:09 -0700 Subject: [PATCH] start prototyping different tailwind structure with sidenav --- app/views/layouts/tailwind.html.erb | 127 +++++++++++++++--- app/views/layouts/tailwind/_sidenav.html.erb | 2 +- .../tailwind/navbar/_logged_in.html.erb | 1 + 3 files changed, 111 insertions(+), 19 deletions(-) diff --git a/app/views/layouts/tailwind.html.erb b/app/views/layouts/tailwind.html.erb index 024449f7..d8ff9d70 100644 --- a/app/views/layouts/tailwind.html.erb +++ b/app/views/layouts/tailwind.html.erb @@ -19,27 +19,118 @@ - <%= render 'layouts/tailwind/navbar' %> - <%= render 'cards/ui/alert' %> - <%= render 'cards/ui/notice' %> + <%# render 'layouts/tailwind/navbar' %> + <%# render 'cards/ui/alert' %> + <%# render 'cards/ui/notice' %> - <% if user_signed_in? %> -
-
- <%= render 'layouts/tailwind/sidenav' %> -
-
- main content -
-
+
+ + +
+
+ + + <%= form_tag main_app.search_path, method: :get, class: 'bg-blue-300' do %> + + + <% end %> + +
+ notifs +
+
+
<%= yield %> - <% else %> -
- <%= yield %> -
- <% end %> +
+
+ +
+
+ + + + + + + <%= react_component("Footer") unless defined?(@show_footer) && !@show_footer %> diff --git a/app/views/layouts/tailwind/_sidenav.html.erb b/app/views/layouts/tailwind/_sidenav.html.erb index ad733cd1..68c06fcb 100644 --- a/app/views/layouts/tailwind/_sidenav.html.erb +++ b/app/views/layouts/tailwind/_sidenav.html.erb @@ -1,4 +1,4 @@ -