<%# Home Dashboard Page - aligns with portfolio card styling and app color palette %>
<% if current_user&.student? && current_user.portfolio %> <% if current_user.portfolio.cash_balance > 0 %>
<%= image_tag 'party_popper.png', class: 'object-contain absolute w-6 h-6 md:w-8 md:h-8', style: 'margin-left: -2rem; top: -0.75rem;', alt: 'Party popper celebration' %> You have <%= number_to_currency(current_user.portfolio.cash_balance) %> to invest! Lets Get Trading!
<% else %>
Sorry, you don't have any earnings to invest yet
<% end %> <% end %>

WELCOME TO YOUR FINANCIAL JOURNEY!

This Is Your Launchpad To Earn, Invest, And Grow.

<%= image_tag 'girl_skateboarding_holding_laptop.png', class: 'w-full max-w-48 md:max-w-56 lg:max-w-64 h-auto object-contain pointer-events-none select-none mx-auto -mt-8 relative z-10', alt: 'SITF Home Teens' %>
Announcements
<% if @current_announcement %> <% cache @current_announcement do %>

<%= @current_announcement.title %>

<%= @current_announcement.content %>
<% end %> <% else %>

No announcements yet.

<% end %>
Getting Started
<% steps = [ { num: '1', title: 'Earn Funds', body: 'Show Up, Stay Engaged, And Earn Investment Funds Based On Your Attendance, Participation, And Performance.' }, { num: '2', title: 'Go To The Trading Floor', body: "Once You Have Funds, Explore The Trading Floor And The Company's To Buy Your First Stock." }, { num: '3', title: 'Buy & Sell', body: 'Choose Your Companies Wisely! You Can Buy And Sell As Your Portfolio Grows. Watch Your Earnings Change Based On The Market.' }, { num: '4', title: 'Track Your Progress', body: 'Your Portfolio Shows How Your Investments Are Performing Over Time, Plus Summaries Of Your Grades And Attendance.' } ] %> <% steps.each do |s| %>
<%= image_tag "#{s[:num]}_Number.png", alt: "Step #{s[:num]}", class: "h-10 md:h-14 lg:h-16" %>

<%= s[:title] %>

<%= s[:body] %>

<% end %>
<%# Future ideas: render partials for announcements, dynamic steps, and maybe a quick links panel %>