diff --git a/app/assets/images/avatar_no_fill.svg b/app/assets/images/avatar_no_fill.svg new file mode 100644 index 00000000..23e6b940 --- /dev/null +++ b/app/assets/images/avatar_no_fill.svg @@ -0,0 +1,3 @@ + diff --git a/app/assets/images/bell.svg b/app/assets/images/bell.svg new file mode 100644 index 00000000..ee95f124 --- /dev/null +++ b/app/assets/images/bell.svg @@ -0,0 +1,3 @@ + diff --git a/app/assets/images/calendar.svg b/app/assets/images/calendar.svg new file mode 100644 index 00000000..a9136743 --- /dev/null +++ b/app/assets/images/calendar.svg @@ -0,0 +1,3 @@ + diff --git a/app/assets/images/clock.svg b/app/assets/images/clock.svg new file mode 100644 index 00000000..2f04e9a4 --- /dev/null +++ b/app/assets/images/clock.svg @@ -0,0 +1,3 @@ + diff --git a/app/assets/images/info.svg b/app/assets/images/info.svg new file mode 100644 index 00000000..41c2967e --- /dev/null +++ b/app/assets/images/info.svg @@ -0,0 +1,3 @@ + diff --git a/app/helpers/navigation_helper.rb b/app/helpers/navigation_helper.rb index 3aaa18e5..9490d431 100644 --- a/app/helpers/navigation_helper.rb +++ b/app/helpers/navigation_helper.rb @@ -1,4 +1,14 @@ module NavigationHelper + def nav_icon_class_for(path) + return "fill-red stroke-red w-6 h-6" if path.any? { |p| current_page?(p) } + "fill-gray-5 stroke-gray-5 w-6 h-6" + end + + def nav_text_class_for(path) + return "text-red" if path.any? { |p| current_page?(p) } + "text-gray-5" + end + # Todo: A better approach would be to support authenticated root and unauthenticated root in routes.rb def homepage_link user_signed_in? ? root_path : new_session_path diff --git a/app/views/layouts/_bottom_navbar.html.erb b/app/views/layouts/_bottom_navbar.html.erb new file mode 100644 index 00000000..c8272f81 --- /dev/null +++ b/app/views/layouts/_bottom_navbar.html.erb @@ -0,0 +1,22 @@ +