<% if current_user&.trust_level == "red" %>
Hold up! Your account has been banned for suspicious activity.

What does this mean? Your account was convicted for fraud or abuse of Hackatime, such as using methods to gain an unfair advantage on the leaderboards or attempting to manipulate your coding time in any way. This restricts your access to participate in public leaderboards, but Hackatime will still track and display your time. This may also affect your ability to participate in current and future Hack Club events.

What can I do? Account bans are non-negotiable, and will not be removed unless determined to have been issued incorrectly. In that case, it will automatically be removed. We take fraud very seriously and have a zero-tolerance policy for abuse. If you believe this was a mistake, please DM the Fraud Department on Slack. We do not respond in any other channel, DM or thread.

Can I know what caused this? No. We do not disclose the patterns that were detected. Releasing this information would only benefit fraudsters. The fraud team regularly investigates claims of false bans to increase the effectiveness of our detection systems to combat fraud.

<% end %>

<%= @flavor_text %>

<% if current_user %>

Keep Track of Your Coding Time

<% else %>

Track How Much You Code

<%= link_to hca_auth_path, class: "inline-flex items-center justify-center px-6 py-3 rounded text-white font-bold cursor-pointer border-none w-full mt-4 bg-primary" do %> Sign in with your Hack Club account <% end %>
or
<%= form_tag email_auth_path, class: "relative flex-1", data: { turbo: false } do %>
<%= email_field_tag :email, nil, placeholder: "Enter your email to get a sign in link", required: true, class: "w-full px-3 py-3 pr-12 border border-darkless bg-dark hover:bg-gray-600 placeholder-gray-300 rounded focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500" %>
<% end %> <%= link_to slack_auth_path, class: "flex items-center justify-center px-4 py-3 rounded text-white cursor-pointer border border-darkless bg-dark hover:bg-gray-600 transition-colors w-1/4 gap-2" do %> <% end %>
<% if params[:sign_in_email] %>
Check your email for a sign-in link!
<% dev_tool class: "text-center max-w-[50vw] mx-auto mb-4" do %> Because you're on localhost, <%= link_to "click here to view the email", letter_opener_web_path %> <% end %> <% end %>

==============================================/ h a c k /=============================================

Compatible with your favourite IDEs

Hackatime works with these code editors and more!

<% popular_editors = [ ['VS Code', 'vs-code'], ['PyCharm', 'pycharm'], ['IntelliJ IDEA', 'intellij-idea'], ['Sublime Text', 'sublime-text'], ['Vim', 'vim'], ['Neovim', 'neovim'], ['Android Studio', 'android-studio'], ['Xcode', 'xcode'], ['Unity', 'unity'], ['Godot', 'godot'], ['Cursor', 'cursor'], ['Zed', 'zed'], ['Terminal', 'terminal'], ['WebStorm', 'webstorm'], ['Eclipse', 'eclipse'], ['Emacs', 'emacs'], ['Jupyter', 'jupyter'], ['OnShape', 'onshape'] ] %> <% popular_editors.each do |name, slug| %> " class="bg-darkless rounded-lg p-3 hover:bg-primary/10 transition-all duration-200 text-center block hover:-translate-y-0.5 hover:shadow-lg hover:shadow-blue-500/20"> <%= name %>
<%= name %>
<% end %>

-----------------------------------------------------------------------------------------------

Why Hackatime?

<% if @home_stats&.[](:seconds_tracked) && @home_stats&.[](:users_tracked) %>

We've tracked over <%= number_with_delimiter(@home_stats[:seconds_tracked] / 3600) %> <%= 'hour'.pluralize(@home_stats[:seconds_tracked] / 3600) %> of coding time across <%= number_with_delimiter(@home_stats[:users_tracked]) %> <%= 'high schooler'.pluralize(@home_stats[:users_tracked]) %> since 2025!

<% end %>

100%
free

works
offline

real time
stats

rise to the
top #1

--------------------------------| #hackclub | #hackclub | #hackclub |--------------------------------

For your favourite Hack Club events!

Don't commit fraud lol ;)

<%= link_to "Start building", "https://summer.hackclub.com/", class: "inline-block bg-[#592F31] font-primary font-bold text-[#f6dbba] px-4 py-2 rounded-[100px] text-[22px] hover:scale-105 transition-transform duration-200", target: "_blank" %>

Build Projects

Build websites, games, apps, or any other personal open-source coding projects to showcase your skills.

Get Stuff

Get awesome prizes like Raspberry Pis, Server hosting credits, 3D printers, and more to fuel your next creation.

Earn an industry recognized technical certificate for coding 30 hours and building 3 personal projects. Win prizes as you code, and a chance to travel to NYC for 2025's largest high school hackathon for girls.

<%= link_to "Join Athena", "https://athena.hackclub.com/", class: "inline-block bg-white font-primary font-bold text-[#D35648] px-4 py-2 m-4 rounded-[100px] text-[22px] hover:scale-105 transition-transform duration-200", target: "_blank" %>
<% end %> <% if current_user %> <% if @show_wakatime_setup_notice %>

Hello friend! Looks like you are new around here, let's get you set up so you can start tracking your coding time.

<%= link_to "Let's setup Hackatime! Click me :D", my_wakatime_setup_path, class: "inline-block w-auto text-3xl font-bold px-8 py-4 bg-primary text-white rounded shadow-md hover:shadow-lg hover:-translate-y-1 transition-all duration-300 animate-pulse" %>
<% if @ssp_users_recent&.any? %>
<% @ssp_users_recent.each_with_index do |user, index| %>
<%= h(user[:display_name]) %>
<% end %> <% if @ssp_users_size && @ssp_users_size > 5 %>
+<%= @ssp_users_size - 5 %>
<% end %>
<% end %> <% if @ssp_message %>

<%= @ssp_message %> (this is real data)

<% end %>
<% end %>

<% if @show_logged_time_sentence %> You've logged <%= short_time_detailed @todays_duration %> <% if @todays_languages.any? || @todays_editors.any? %> across <% if @todays_languages.any? %> <% if @todays_languages.length >= 4 %> <%= @todays_languages[0..1].join(", ") %> ">(& <%= pluralize(@todays_languages.length - 2, 'other language') %>) <% else %> <%= @todays_languages.to_sentence %> <% end %> <% end %> <% if @todays_languages.any? && @todays_editors.any? %> using <% end %> <% if @todays_editors.any? %> <%= @todays_editors.to_sentence %> <% end %> <% end %> <% else %> No time logged today... but you can change that! <% end %>

<%= turbo_frame_tag "mini_leaderboard", src: mini_leaderboard_static_pages_path do %> <%= render "leaderboards/mini_leaderboard_loading" %> <% end %> <%= turbo_frame_tag "filterable_dashboard", src: filterable_dashboard_static_pages_path do %> Loading... <% end %> <%= turbo_frame_tag "activity_graph", src: activity_graph_static_pages_path do %> Loading... <% end %> <% else %> <% if @leaderboard %>

Today's Top Hack Clubbers

<%= render "leaderboards/mini_leaderboard", leaderboard: @leaderboard, current_user: nil %> <% end %>

==============================================/ h a c k /=============================================

Start hacking with Hackatime now!

Superrrrrr easy to setup :)

<% end %>