From 54582584a2ca6b51545cbbf5f0a3d2b6807ece27 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 7 Jul 2025 23:58:05 -0700 Subject: [PATCH] add streak styling --- app/views/main/dashboard.html.erb | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/app/views/main/dashboard.html.erb b/app/views/main/dashboard.html.erb index 961eeb43..f3ef9985 100644 --- a/app/views/main/dashboard.html.erb +++ b/app/views/main/dashboard.html.erb @@ -145,6 +145,12 @@
+ <% if (@current_streak || 0) > 0 %> + +
+ local_fire_department +
+ <% end %>
<%= @current_streak || 0 %> @@ -553,6 +559,34 @@ document.addEventListener('DOMContentLoaded', function() { 0% { transform: scale(1) rotate(-1deg); } 100% { transform: scale(1.1) rotate(1deg); } } + + /* Background flame icon styling */ + .flame-icon-bg { + animation: flame-background-dance 4s ease-in-out infinite alternate; + filter: blur(1px); + } + + @keyframes flame-background-dance { + 0% { + transform: scale(1) rotate(-2deg); + opacity: 0.12; + } + 50% { + transform: scale(1.05) rotate(0deg); + opacity: 0.18; + } + 100% { + transform: scale(1.02) rotate(2deg); + opacity: 0.15; + } + } + + /* Enhanced flame effect on streak hover */ + .streak-info:hover ~ .flame-icon-bg { + animation: flame-background-dance 1.5s ease-in-out infinite alternate; + opacity: 0.25 !important; + filter: blur(0.5px); + }