Skip to content

Commit

Permalink
Copy across box from detail page for logged out state
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Oct 24, 2023
1 parent 18306a1 commit 8bbe1e1
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions app/views/_tailwind/applications/_create_alert_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<%# TODO: Make it work %>
<% if current_user %>
<div class="flex items-center justify-between px-4 py-2 bg-light-grey">
<div class="flex gap-6 pl-4">
Expand All @@ -10,6 +9,19 @@
<% end %>
</div>
<% else %>
<%# TODO: Handle logged out state %>
<p>Show something else when you're not logged in</p>
<% end %>
<div class="flex flex-col items-center justify-between gap-8 md:flex-row bg-light-grey px-14 mt-14">
<%# TODO: Is h2 correct here? %>
<div class="pt-14 md:pb-14">
<h2 class="text-3xl font-bold font-display text-navy">Save this search as an email alert?</h2>
<p class="mt-4 text-2xl text-navy">
<%= pa_link_to "Create an account", new_user_registration_path %>
or
<%= pa_link_to "sign in", new_user_session_path %>.
</p>
<p class="text-2xl text-navy">
It only takes a moment.
</p>
</div>
<%= image_tag "tailwind/illustration/save-search.svg", class: "self-end md:pt-14" %>
</div>
<% end %>

0 comments on commit 8bbe1e1

Please sign in to comment.