Skip to content

Commit d7cc00f

Browse files
authored
Merge pull request #41 from bmlt-enabled/homepage
Add homepage explaining the CleanTime.live tool
2 parents f510cab + 7f56982 commit d7cc00f

File tree

3 files changed

+55
-2
lines changed

3 files changed

+55
-2
lines changed

app.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ app.use(bodyParser.urlencoded({ extended: false }));
2222
app.use(cookieParser('diffcalc-secret-key'));
2323
app.use(express.static(path.join(__dirname, 'public')));
2424

25-
// Health check endpoint for Render
25+
// Homepage
2626
app.get('/', function(req, res) {
27+
res.render('home');
28+
});
29+
30+
// Health check endpoint for Render
31+
app.get('/health', function(req, res) {
2732
res.status(200).send('OK');
2833
});
2934

render.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
name: diffcalc
44
runtime: docker
55
plan: free
6-
healthCheckPath: /
6+
healthCheckPath: /health
77
envVars:
88
- key: NODE_ENV
99
value: production

views/home.ejs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>CleanTime.live - Recovery Time Calculator</title>
7+
<link rel="stylesheet" href="/stylesheets/style.css">
8+
</head>
9+
<body>
10+
<div class="container">
11+
<h1>CleanTime.live</h1>
12+
13+
<div class="message">
14+
<p><strong>What is CleanTime.live?</strong></p>
15+
<p>CleanTime.live is a tool for recovery events or groups to collectively track and celebrate clean time milestones. It allows events or groups to gather clean time data from their members and display combined totals during celebrations, anniversaries, and special occasions.</p>
16+
</div>
17+
18+
<div class="admin-section">
19+
<h2 style="color: #667eea; margin-bottom: 15px;">How It Works</h2>
20+
<ul style="list-style-position: inside; line-height: 2;">
21+
<li>Each event or group gets their own private space</li>
22+
<li>Members submit their clean date via a simple form</li>
23+
<li>The tool calculates years, months, and days of clean time</li>
24+
<li>Events or groups can view combined totals for celebrations</li>
25+
<li>QR codes available for easy mobile access</li>
26+
</ul>
27+
</div>
28+
29+
<hr>
30+
31+
<div class="admin-section">
32+
<h2 style="color: #667eea; margin-bottom: 15px;">Request Access</h2>
33+
<p style="margin-bottom: 15px;">CleanTime.live is not self-service. To request a space for your event or group, please submit an issue on GitHub:</p>
34+
<a href="https://github.com/bmlt-enabled/diffcalc/issues/new?title=Request%20new%20group%20space&body=Group%20name:%0AContact%20email:%0A"
35+
class="btn-edit"
36+
style="display: inline-block; padding: 14px 30px; font-size: 1.1em; text-align: center; width: auto;">
37+
Request a Space
38+
</a>
39+
</div>
40+
41+
<hr>
42+
43+
<div style="text-align: center; color: #777; font-size: 0.9em;">
44+
<p>CleanTime.live is a free service for recovery communities.</p>
45+
</div>
46+
</div>
47+
</body>
48+
</html>

0 commit comments

Comments
 (0)