-
- <%= render "application/flash" unless @hide_flash %>
+ <% unless @no_app_shell %>
+
+ <%= render "application/logo" %>
- <%= yield(:container) %>
+ <% end %>
+ <%= yield(:header) %>
+
+ <%= render "application/flash" unless @hide_flash %>
<%= yield %>
- <%= render "application/footer" unless @no_app_shell || @hide_footer %>
-
-
-
-<% else %>
- <%= render "application/banner_container" %>
- <% unless @no_app_shell %>
-
- <%= render "application/logo" %>
-
- <% end %>
- <%= yield(:header) %>
-
- <%= render "application/flash" unless @hide_flash %>
- <%= yield %>
-
-<% end %>
-
-<% if Rails.env.production? %>
- <%= render "application/fullstory" if current_user&.sessions_reported %>
-<% end %>
-
-<% if flash[:confetti] %>
-
-
-<% end %>
-<% if Flipper.enabled?(:transactions_background_2024_06_05, current_user) %>
-
-<% end %>
-
+ <%= render "layouts/body_suffix" %>
+
diff --git a/app/views/layouts/docs.html.erb b/app/views/layouts/docs.html.erb
index 49fc346748..b2e1b72db1 100644
--- a/app/views/layouts/docs.html.erb
+++ b/app/views/layouts/docs.html.erb
@@ -1,72 +1,11 @@
-<% @is_dark = !!@dark || cookies[:theme] == "dark" || (cookies[:theme] == "system" && cookies[:system_preference] == "dark") %>
-
-
- <%= yield(:title).concat(" –") if content_for?(:title) %>
- HCB
-
- <%= csrf_meta_tags %>
- <%= csp_meta_tag %>
-
">
-
- <%= javascript_include_tag "dark", 'data-turbo-track': "reload" %>
- <%= stylesheet_link_tag "application", media: "all", 'data-turbo-track': "reload" %>
- <%= javascript_include_tag "bundle", 'data-turbo-track': "reload", defer: true %>
- <%= javascript_include_tag "application", 'data-turbo-track': "reload", defer: true %>
+ <%= render "layouts/head", console_art_url: Rails.configuration.constants.hack_on_hcb_form_url %>
<%# Web component used for TOTP / donation QR codes %>
-
- <% unless Rails.env.production? %>
-
- <% end %>
-
- <% if Rails.env.production? %>
-
- <% end %>
-
-
-
- <% if content_for?(:favicon) %>
- <%= yield :favicon %>
- <% elsif user_birthday? %>
-
- <% else %>
-
-
- <% end %>
-
-
-
-
- <%= yield(:head) if content_for?(:head) %>
class="bg-snow embedded <%= content_for :page_class %> <%= "season-#{current_season}" if current_season %>">
<%= react_component "tour/TourOverlay",
@@ -87,21 +26,12 @@
This HCB organization has made their finances public.
- Hey, <%= link_to "what’s HCB?", "https://hackclub.com/fiscal-sponsorship/", target: "_blank", class: "primary" %>
+ Hey, <%= link_to "what's HCB?", "https://hackclub.com/fiscal-sponsorship/", target: "_blank", class: "primary" %>
<% end %>
- <%# LET THERE BE SNOW %>
- <% if winter? %>
- <%= react_component "holiday/Snow", {}, { style: "height:100%;position:fixed;top:0;left:0;width:100%;pointer-events:none;z-index:99999" } %>
- <% end %>
-
- <%# ghosts and ghouls %>
- <% if fall? %>
-

-

- <% end %>
+ <%= render "layouts/seasonal" %>
<% if content_for?(:nav) %>
@@ -129,32 +59,6 @@
<% end %>
<%= render "application/fullstory" %>
-
- <% if flash[:confetti] %>
-
-
- <% end %>
- <% if Flipper.enabled?(:transactions_background_2024_06_05, current_user) %>
-
- <% end %>
+ <%= render "layouts/body_suffix", skip_fullstory: true %>
diff --git a/app/views/layouts/login.html.erb b/app/views/layouts/login.html.erb
index ca998241e9..0b56cf5852 100644
--- a/app/views/layouts/login.html.erb
+++ b/app/views/layouts/login.html.erb
@@ -1,68 +1,9 @@
-<% @is_dark = !!@dark || cookies[:theme] == "dark" || (cookies[:theme] == "system" && cookies[:system_preference] == "dark") %>
<% @home_size = 50 %>
<% page_full %>
-
-
- <%= yield(:title).concat(" –") if content_for?(:title) %>
- HCB
-
- <%= csrf_meta_tags %>
- <%= csp_meta_tag %>
- ">
- <%= javascript_include_tag "dark", 'data-turbo-track': "reload" %>
- <%= stylesheet_link_tag "application", media: "all", 'data-turbo-track': "reload" %>
- <%= javascript_include_tag "application", 'data-turbo-track': "reload", defer: true %>
- <%= javascript_include_tag "bundle", 'data-turbo-track': "reload", defer: true %>
- <% if Rails.env.production? %>
-
- <% end %>
- <% unless Rails.env.production? %>
-
- <% end %>
- <% if Rails.env.production? %>
-
- <% end %>
-
-
- <% if content_for?(:favicon) %>
- <%= yield :favicon %>
- <% elsif user_birthday? %>
-
- <% else %>
-
-
- <% end %>
-
-
-
-
+ <%= render "layouts/head" %>
+ <% img = "/brand/hcb-icon-icon-original.png" %>
+
+
+
+
+
+
+
+
+
+
<%= yield(:head) if content_for?(:head) %>
<%= render "application/seo_meta_tags" %>
class="bg-snow embedded <%= content_for :page_class %> <%= "season-#{current_season}" if current_season %>">
- <%# LET THERE BE SNOW %>
- <% if winter? %>
- <%= react_component "holiday/Snow", {}, { style: "height:0px" } %>
- <% end %>
- <%# ghosts and ghouls %>
- <% if fall? %>
-
-
- <% end %>
+ <%= render "layouts/seasonal", render_snow: false %>
<%= yield(:header) %>