-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
223 lines (206 loc) · 10.3 KB
/
index.html
File metadata and controls
223 lines (206 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Team Reports — Secure HTML Sharing</title>
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&display=swap" rel="stylesheet">
<style>
:root {
--bg:#0a0b0e;--bg2:#0f1115;--bg3:#151820;
--border:#1e2229;--border-b:#2a3040;
--text:#c8d0de;--dim:#5a6578;--muted:#3a4252;--white:#eef1f7;
--amber:#f0a030;--amber-d:rgba(240,160,48,.12);
--green:#38c98a;--green-d:rgba(56,201,138,.12);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:var(--text);font-family:'DM Mono',monospace;font-size:13px;line-height:1.6;overflow-x:hidden}
body::before{content:'';position:fixed;inset:0;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");pointer-events:none;z-index:9999;opacity:.5}
.page{max-width:760px;margin:0 auto;padding:0 32px 80px}
/* HEADER */
header{padding:60px 0 44px;border-bottom:1px solid var(--border);margin-bottom:44px}
.hlbl{font-size:11px;letter-spacing:.25em;text-transform:uppercase;color:var(--amber);margin-bottom:14px;display:flex;align-items:center;gap:10px}
.hlbl::before{content:'';display:inline-block;width:24px;height:1px;background:var(--amber)}
h1{font-family:'Bebas Neue',sans-serif;font-size:clamp(42px,6vw,72px);letter-spacing:.04em;color:var(--white);line-height:.9;margin-bottom:16px}
h1 span{color:var(--amber)}
.intro{color:var(--dim);font-size:13px;line-height:1.7;max-width:580px}
.intro strong{color:var(--text);font-weight:500}
/* SECTIONS */
section{margin-bottom:44px}
.st{font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:.08em;color:var(--white);margin-bottom:4px}
.ss{font-size:11px;color:var(--dim);letter-spacing:.1em;text-transform:uppercase;margin-bottom:18px}
p{margin-bottom:12px;line-height:1.7}
.highlight{color:var(--amber);font-weight:500}
/* TEAMS */
.teams{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
a.team{display:flex;align-items:center;justify-content:space-between;background:var(--bg2);border:1px solid var(--border);border-radius:4px;padding:18px 22px;text-decoration:none;color:var(--text);transition:border-color .2s,background .2s}
a.team:hover{border-color:var(--amber);background:var(--bg3)}
.tname{font-size:14px;font-weight:500;color:var(--white)}
.arrow{color:var(--dim);font-size:18px;transition:color .2s,transform .2s}
a.team:hover .arrow{color:var(--amber);transform:translateX(4px)}
/* STEPS */
.steps{display:flex;flex-direction:column;gap:16px;margin-bottom:8px}
.step{display:flex;gap:16px;align-items:flex-start;background:var(--bg2);border:1px solid var(--border);border-radius:4px;padding:16px 20px}
.step-num{font-family:'Bebas Neue',sans-serif;font-size:28px;color:var(--amber);line-height:1;min-width:28px}
.step-text{font-size:12px;line-height:1.6;color:var(--text)}
.step-text code{background:var(--bg3);border:1px solid var(--border);border-radius:3px;padding:1px 6px;font-size:11px;color:var(--amber)}
/* FEATURES */
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:4px;overflow:hidden;margin-bottom:8px}
.feat{background:var(--bg2);padding:18px 16px}
.feat-lbl{font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:var(--dim);margin-bottom:6px}
.feat-val{font-size:13px;color:var(--white)}
/* LINKS */
.links{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
a.link{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--amber);text-decoration:none;padding:8px 16px;border:1px solid var(--amber);border-radius:4px;transition:background .2s,color .2s}
a.link:hover{background:var(--amber);color:var(--bg)}
/* DIVIDER */
hr{border:none;border-top:1px solid var(--border);margin:44px 0}
/* MOBILE */
@media(max-width:600px){
.page{padding:0 18px 60px}
header{padding:36px 0 28px;margin-bottom:32px}
section{margin-bottom:32px}
hr{margin:32px 0}
.intro{font-size:12px}
.features{grid-template-columns:repeat(2,1fr)}
.feat{padding:14px 12px}
.feat-val{font-size:12px}
a.team{padding:14px 16px;gap:12px}
.tname{font-size:12px;white-space:normal;word-break:break-word}
.step{padding:14px 16px;gap:12px}
.step-num{font-size:24px;min-width:24px}
.step-text{font-size:11px}
.step-text code{font-size:10px;word-break:break-all}
.links{gap:8px}
a.link{padding:10px 14px;font-size:10px;flex:1;text-align:center;min-width:0}
}
@media(max-width:360px){
.features{grid-template-columns:1fr 1fr}
h1{font-size:36px}
}
</style>
</head>
<body>
<div class="page">
<header>
<div class="hlbl">Secure HTML Sharing</div>
<h1>Team <span>Reports</span></h1>
<p class="intro">
AI agents like Claude, ChatGPT, and Copilot are generating rich HTML reports every day — dashboards, analyses, sprint reviews, audits. But <strong>sharing them securely is still a problem</strong>. Email attachments get lost, internal wikis require logins, and pasting into Notion strips the formatting.
</p>
<p class="intro" style="margin-top:12px">
This repo solves that. Drop your HTML files in a folder, set a password, run one command, and your reports are <strong>AES-256 encrypted and published on GitHub Pages</strong>. No backend, no database, no accounts to manage. Just a password and a link.
</p>
</header>
<!-- REPORTS -->
<section>
<div class="st">Reports</div>
<div class="ss">Select your team — credentials required</div>
<div class="teams" id="teams"></div>
</section>
<hr>
<!-- HOW IT WORKS -->
<section>
<div class="st">How It Works</div>
<div class="ss">From HTML file to secure shared report</div>
<div class="features">
<div class="feat">
<div class="feat-lbl">Encryption</div>
<div class="feat-val">AES-256 + 600K PBKDF2</div>
</div>
<div class="feat">
<div class="feat-lbl">Hosting</div>
<div class="feat-val">GitHub Pages (free)</div>
</div>
<div class="feat">
<div class="feat-lbl">Backend</div>
<div class="feat-val">None — fully static</div>
</div>
<div class="feat">
<div class="feat-lbl">Decryption</div>
<div class="feat-val">Client-side in browser</div>
</div>
<div class="feat">
<div class="feat-lbl">Per Team</div>
<div class="feat-val">Unique salt + password</div>
</div>
<div class="feat">
<div class="feat-lbl">Remember Me</div>
<div class="feat-val">30-day auto-login</div>
</div>
<div class="feat">
<div class="feat-lbl">Password Check</div>
<div class="feat-val">Strength warnings on build</div>
</div>
<div class="feat">
<div class="feat-lbl">Dependencies</div>
<div class="feat-val">Dependabot auto-updates</div>
</div>
</div>
</section>
<!-- STEPS -->
<section>
<div class="st">Add Your Reports</div>
<div class="ss">Requires <a href="https://nodejs.org/" style="color:var(--amber)">Node.js</a> (v18+) — works on Windows, macOS, and Linux</div>
<div class="steps">
<div class="step">
<div class="step-num">1</div>
<div class="step-text">Clone the repo and run <code>npm install</code></div>
</div>
<div class="step">
<div class="step-num">2</div>
<div class="step-text">Create a folder <code>teams/your-team/</code> and drop your HTML files in it. Use the <strong>test-team</strong> template as a starting point.</div>
</div>
<div class="step">
<div class="step-num">3</div>
<div class="step-text">Add your team to <code>teams.json</code> with a name and password. Add the team link to the root <code>index.html</code>.</div>
</div>
<div class="step">
<div class="step-num">4</div>
<div class="step-text">Run <code>npm run build</code> — it encrypts every HTML file and generates a team index page automatically.</div>
</div>
<div class="step">
<div class="step-num">5</div>
<div class="step-text">Commit the <code>dist/</code> folder and push. GitHub Pages deploys it instantly. Share the link and password with your team.</div>
</div>
</div>
</section>
<!-- SECURITY -->
<section>
<div class="st">Security</div>
<div class="ss">What gets published and what stays private</div>
<p>Raw HTML reports and passwords <span class="highlight">never leave your machine</span>. They are gitignored and excluded from the repo. Only the AES-256 encrypted output is committed and deployed. The encrypted pages contain zero readable content — not even the page title is exposed.</p>
<p>Each team gets a <span class="highlight">unique cryptographic salt</span>, so even if two teams use the same password their encryption keys are different. Passwords are hashed through <span class="highlight">600,000 PBKDF2 iterations</span> to resist brute-force attacks. The build script warns about weak passwords. Decryption happens entirely in the browser using the Web Crypto API — nothing is sent to any server.</p>
</section>
<!-- CTA -->
<section>
<div class="st">Get Started</div>
<div class="ss">Fork, clone, or read the docs</div>
<p>Full setup instructions, template reference, and file structure guide are in the README.</p>
<div class="links">
<a class="link" href="https://github.com/salahawad/report">GitHub Repo</a>
<a class="link" href="https://github.com/salahawad/report#for-admins--host-your-own">Setup Guide</a>
<a class="link" href="https://github.com/salahawad/report/fork">Fork It</a>
</div>
</section>
</div>
<script>
const teams = [
{ slug: 'hapster-dev', name: 'Hapster Dev Team' },
{ slug: 'test-team', name: 'Test Team (Template) — password: test123' },
{ slug: 'rmcflow', name: 'RMC<em>Flow</em> Team' },
{ slug: 'intent', name: 'Intent Team' },
// Add your teams here:
// { slug: 'your-team', name: 'Your Team Name' },
];
const container = document.getElementById('teams');
teams.forEach(t => {
const a = document.createElement('a');
a.className = 'team';
a.href = t.slug + '/';
a.innerHTML = `<span class="tname">${t.name}</span><span class="arrow">→</span>`;
container.appendChild(a);
});
</script>
</body>
</html>