-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User can now permanently hide the welcome banner
- Loading branch information
Showing
1 changed file
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
<div class="flex items-start gap-5 px-8 mt-8 text-xl text-white rounded-lg bg-lavender"> | ||
<div class="self-end text-light-lavender shrink-0"> | ||
<%= image_tag "tailwind/illustration/celebration.svg", alt: "", class: "hidden sm:block" %> | ||
<% unless cookies[:planningalerts_welcome] == "false" %> | ||
<div x-data="{open: true}" x-show="open" x-transition class="flex items-start gap-5 px-8 mt-8 text-xl text-white rounded-lg bg-lavender"> | ||
<div class="self-end text-light-lavender shrink-0"> | ||
<%= image_tag "tailwind/illustration/celebration.svg", alt: "", class: "hidden sm:block" %> | ||
</div> | ||
<div class="my-8 grow"> | ||
<p class="text-3xl font-bold">Hooray, our new website is live!</p> | ||
<p class="mt-4"> | ||
We've revamped our space to be simpler and more welcoming for everyone. | ||
Why the change? | ||
<%# TODO: Add link to actual blog post %> | ||
<%= link_to "Discover the reasons behind our redesign", "https://www.oaf.org.au/blog/", class: "hover:opacity-80 focus:bg-sun-yellow focus:text-navy underline" %>. | ||
</p> | ||
</div> | ||
<%# TODO: This button doesn't do anything without javascript, so hide it until js is running %> | ||
<button x-on:click="open=false; document.cookie='planningalerts_welcome=false;Path=/'" | ||
class="p-2 mt-8 hover:opacity-80 focus:outline-none focus:ring-sun-yellow focus:ring-4"> | ||
<%= render Tailwind::Icon.new(name: :dismiss) %> | ||
</button> | ||
</div> | ||
<div class="my-8 grow"> | ||
<p class="text-3xl font-bold">Hooray, our new website is live!</p> | ||
<p class="mt-4"> | ||
We've revamped our space to be simpler and more welcoming for everyone. | ||
Why the change? | ||
<%# TODO: Add link to actual blog post %> | ||
<%= link_to "Discover the reasons behind our redesign", "https://www.oaf.org.au/blog/", class: "hover:opacity-80 focus:bg-sun-yellow focus:text-navy underline" %>. | ||
</p> | ||
</div> | ||
<button class="p-2 mt-8 hover:opacity-80 focus:outline-none focus:ring-sun-yellow focus:ring-4"> | ||
<%= render Tailwind::Icon.new(name: :dismiss) %> | ||
</button> | ||
</div> | ||
|
||
<% end %> |