Skip to content

Commit 34b8bb2

Browse files
authored
privacy policy deluxe (#473)
1 parent be9de21 commit 34b8bb2

File tree

4 files changed

+74
-1
lines changed

4 files changed

+74
-1
lines changed

app/views/layouts/application.html.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@
164164
<!-- 250px is defined in nav.css -->
165165
<main class="flex-1 lg:ml-[250px] lg:max-w-[calc(100%-250px)] p-5 mb-[100px] pt-16 lg:pt-5 transition-all duration-300 ease-in-out">
166166
<%= yield %>
167+
<!-- the real footer -->
167168
<footer class="relative w-full mt-12 mb-5 p-2.5 text-center text-xs text-gray-600 hover:text-gray-300 transition-colors duration-200">
169+
<p class="text-sm text-gray-300">
170+
Made with ❤️ by <%= link_to "Hack Club", "https://hackclub.com", class: "text-inherit underline opacity-80 hover:opacity-100 transition-opacity duration-200", target: "_blank", rel: "noopener" %> | <%= link_to "Privacy Policy", "/privacy", class: "text-inherit underline opacity-80 hover:opacity-100 transition-opacity duration-200" %>
171+
</p>
168172
<div class="container">
169173
<p>
170174
Build <%= link_to Rails.application.config.git_version, Rails.application.config.commit_link, class: "text-inherit underline opacity-80 hover:opacity-100 transition-opacity duration-200" %>

app/views/static_pages/index.html.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@
9595
<p class="m-0 ml-2 italic text-gray-400"><%= @ssp_message %> (this is real data)</p>
9696
<% end %>
9797
</div>
98+
<div class="flex items-center text-gray-600">
99+
By continuing, you agree to Hackatime's <%= link_to "Privacy Policy", "/privacy", class: "text-inherit underline opacity-80 hover:opacity-100 transition-opacity duration-200 mx-1" %>
100+
</div>
98101
</div>
99102
<% end %>
100103
<p>
@@ -165,6 +168,9 @@
165168
Because you're on localhost, <%= link_to "click here to view the email", letter_opener_web_path %>
166169
<% end %>
167170
<% end %>
171+
<p class="text-sm text-gray-600">
172+
By using this site, you agree to our <%= link_to "Privacy Policy", "/privacy", class: "text-inherit underline opacity-80 hover:opacity-100 transition-opacity duration-200" %>.
173+
</p>
168174
</div>
169175
</div>
170176
</div>
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8 bg-dark text-gray-300 rounded-xl">
2+
<h1 class="text-3xl font-bold text-primary mb-2">Hackatime Privacy Policy</h1>
3+
<p class="mb-2">
4+
This page outlines how Hackatime, a platform owned and operated by Hack Club, collects, uses, stores, and protects your personal data when you use Hackatime. We will use many complex terms in this, so be ready. Hack Club is committed to safeguarding your privacy in Hackatime. By using Hackatime, you agree to the terms described in this policy.
5+
</p>
6+
7+
<h2 class="text-2xl font-semibold text-primary mt-6 mb-2">1. Information We Collect</h2>
8+
<p class="mb-2">
9+
We collect and store all data transmitted by users (that’s you!), including:
10+
</p>
11+
<ul class="list-disc pl-5">
12+
<li>Email addresses, Slack account information (including Slack IDs and authentication details for users signing in via Slack), and GitHub authentication details when you link your GitHub account.</li>
13+
<li>Heartbeat information, such as activity information and timestamps. The specific heartbeat data collected depends on the browser extension or integration you use and what is transmitted to our servers. Please review your extension to understand the exact data collected.</li>
14+
</ul>
15+
16+
<h2 class="text-2xl font-semibold text-primary mt-6 mb-2">2. How We Use Your Information</h2>
17+
<p class="mb-2">
18+
We collect data to enable time tracking for users participating in programs run by Hack Club. Additionally, we may use your data to:
19+
</p>
20+
<ul class="list-disc pl-5">
21+
<li>Verify the legitimacy of logged hours.</li>
22+
<li>Prevent fraud and ensure integrity.</li>
23+
</ul>
24+
<p class="mt-2">
25+
We do not use your data for tracking purposes unrelated to our services. We use internal analytics tools to measure usage, utilizing only IP addresses to identify unique visits without collecting demographic information.
26+
</p>
27+
28+
<h2 class="text-2xl font-semibold text-primary mt-6 mb-2">3. Data Storage and Security</h2>
29+
<p class="mb-2">
30+
All data is stored securely, and access controls are in place to protect against unauthorized access, loss, or misuse. Only members of HQ and the Fraud Department can access raw heartbeat data, and that is to ensure eligibility in programs.
31+
</p>
32+
33+
<h2 class="text-2xl font-semibold text-primary mt-6 mb-2">4. Sharing of Information</h2>
34+
<p class="mb-2">
35+
Hack Club does not sell your personal data to advertisers or third parties. Your data is shared in these possible situations:
36+
</p>
37+
<ul class="list-disc pl-5">
38+
<li>With service providers (e.g., hosting providers) under strict confidentiality agreements to operate the platform.</li>
39+
<li>When others call our public API</li>
40+
<li>To prevent fraud or detect abuse.</li>
41+
<li>As required by law, such as in response to legal processes or government requests.</li>
42+
</ul>
43+
44+
<h2 class="text-2xl font-semibold text-primary mt-6 mb-2">5. Data Retention</h2>
45+
<p class="mb-2">
46+
We retain your data indefinitely to protect against malicious, deceptive, fraudulent, or illegal activity. This retention ensures we can detect and prevent abuse. We do not delete accounts and/or data, as doing so could compromise our ability to maintain security and prevent fraudulent activity.
47+
</p>
48+
49+
<h2 class="text-2xl font-semibold text-primary mt-6 mb-2">6. Your Rights</h2>
50+
<p class="mb-2">
51+
You may have certain rights regarding your personal data, depending on applicable laws, such as accessing your data, correcting inaccuracies, or requesting restrictions on processing. To exercise these rights, contact us at the details below. Note that, due to our retention policy for fraud prevention, we may not fulfill erasure requests. If you have concerns, you may contact your local data protection authority. Please allow for 30 days for us to fulfill your request from the moment it is issued.
52+
</p>
53+
54+
<h2 class="text-2xl font-semibold text-primary mt-6 mb-2">7. Changes to This Policy</h2>
55+
<p class="mb-2">
56+
This policy may change at any time, with or without prior notice. We encourage you to review it periodically. Continued use of Hackatime after changes indicates acceptance of the updated policy.
57+
</p>
58+
59+
<h2 class="text-2xl font-semibold text-primary mt-6 mb-2">8. Questions?</h2>
60+
<p class="mb-2">
61+
For questions, concerns, or to exercise your data rights, please contact us via email at <a href="mailto:[email protected]" class="text-blue">[email protected]</a>. Please allow for up to 5 business days for queries.
62+
</p>
63+
</div>

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,6 @@ def matches?(request)
189189
end
190190
end
191191

192-
# SEO routes
193192
get "/sitemap.xml", to: "sitemap#sitemap", defaults: { format: "xml" }
193+
get "/privacy", to: "static_pages#privacy"
194194
end

0 commit comments

Comments
 (0)