Spaces:
Running
Running
Update index.html
Browse files- index.html +604 -492
index.html
CHANGED
|
@@ -5,481 +5,622 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
<meta
|
| 7 |
name="description"
|
| 8 |
-
content="Sweep AI is a student
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
/>
|
| 10 |
-
<title>Sweep AI — Making data easier to understand</title>
|
| 11 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
| 12 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
| 13 |
<link
|
| 14 |
-
href="https://fonts.googleapis.com/css2?family=
|
| 15 |
rel="stylesheet"
|
| 16 |
/>
|
| 17 |
<style>
|
| 18 |
:root {
|
| 19 |
-
--
|
| 20 |
-
--
|
| 21 |
-
--
|
| 22 |
-
--
|
| 23 |
-
--lime: #
|
| 24 |
-
--
|
| 25 |
-
--
|
| 26 |
-
--
|
| 27 |
-
--
|
| 28 |
-
--
|
| 29 |
-
--
|
| 30 |
}
|
| 31 |
|
| 32 |
-
* { box-sizing: border-box;
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
body.modal-open { overflow: hidden; }
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
button { cursor: pointer; }
|
| 38 |
a { color: inherit; text-decoration: none; }
|
| 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 |
.mobile-nav[hidden] { display: none; }
|
| 66 |
-
.mobile-nav a { padding:
|
| 67 |
-
.mobile-nav .
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
.
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
.hero
|
| 78 |
-
.
|
| 79 |
-
|
| 80 |
-
.
|
| 81 |
-
.
|
| 82 |
-
.hero-
|
| 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 |
-
.roadmap-
|
| 149 |
-
.roadmap-
|
| 150 |
-
.
|
| 151 |
-
|
| 152 |
-
.
|
| 153 |
-
.
|
| 154 |
-
.
|
| 155 |
-
.
|
| 156 |
-
.
|
| 157 |
-
.
|
| 158 |
-
.
|
| 159 |
-
.
|
| 160 |
-
.
|
| 161 |
-
.
|
| 162 |
-
.
|
| 163 |
-
.
|
| 164 |
-
.
|
| 165 |
-
.
|
| 166 |
-
|
| 167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
.modal[hidden] { display: none; }
|
| 169 |
-
.modal { position: fixed; inset: 0; z-index:
|
| 170 |
-
.modal-card { position: relative; width: min(
|
| 171 |
-
.modal-close { position: absolute; top:
|
| 172 |
-
.modal-close:hover {
|
| 173 |
-
.modal-card
|
| 174 |
-
.modal-
|
| 175 |
-
.
|
| 176 |
-
.auth-
|
| 177 |
-
.auth-tab
|
|
|
|
|
|
|
| 178 |
.auth-form { display: grid; gap: 14px; }
|
| 179 |
.auth-form[hidden] { display: none; }
|
| 180 |
-
.auth-form label { display: grid; gap:
|
| 181 |
-
.auth-form input { width: 100%; padding: 12px; border:
|
| 182 |
-
.auth-form input:focus {
|
| 183 |
-
.
|
| 184 |
-
.form-message { min-height:
|
| 185 |
-
.modal-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
.hero { grid-template-columns: 1fr; gap:
|
| 190 |
-
.
|
| 191 |
-
.
|
| 192 |
-
.
|
| 193 |
-
.
|
|
|
|
| 194 |
}
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
.
|
| 198 |
-
.main-nav, .header-actions .
|
| 199 |
-
.menu-
|
| 200 |
.header-actions { margin-left: auto; }
|
| 201 |
-
|
| 202 |
-
.
|
| 203 |
-
.
|
| 204 |
-
.
|
| 205 |
-
|
| 206 |
-
.
|
| 207 |
-
.
|
| 208 |
-
.
|
| 209 |
-
.
|
| 210 |
-
.
|
| 211 |
-
.
|
| 212 |
-
.
|
| 213 |
-
.
|
| 214 |
-
.
|
| 215 |
-
.
|
| 216 |
-
.
|
| 217 |
-
.model-grid { grid-template-columns: 1fr; }
|
| 218 |
-
.model-card { min-height: 260px; }
|
| 219 |
-
.model-card h3 { margin-top: 35px; }
|
| 220 |
-
.roadmap-item { grid-template-columns: 44px 1fr; gap: 16px; }
|
| 221 |
-
.roadmap-date { grid-column: 2; grid-row: 1; padding-top: 8px; }
|
| 222 |
-
.roadmap-content { grid-column: 2; grid-row: 2; }
|
| 223 |
-
.roadmap-line { left: 20px; }
|
| 224 |
-
.join-section, .site-footer { display: block; }
|
| 225 |
-
.join-section > div:last-child { margin-top: 28px; }
|
| 226 |
-
.site-footer .brand { margin-bottom: 18px; }
|
| 227 |
-
.site-footer .back-top { display: inline-block; margin-top: 16px; }
|
| 228 |
-
.modal-card { padding: 30px 22px; }
|
| 229 |
}
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
.hero-actions .button { width: 100%; }
|
| 234 |
-
.hero-art { min-height: 290px; }
|
| 235 |
-
.chip-one { left: 8%; }
|
| 236 |
-
.chip-two { right: 4%; }
|
| 237 |
-
.chip-three { left: 17%; }
|
| 238 |
}
|
| 239 |
</style>
|
| 240 |
</head>
|
| 241 |
|
| 242 |
<body>
|
| 243 |
-
<
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
</a>
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
<a href="#why-sweep">Why Sweep</a>
|
| 255 |
<a href="#models">Models</a>
|
| 256 |
<a href="#roadmap">Roadmap</a>
|
| 257 |
-
<a href="#about">About</a>
|
| 258 |
</nav>
|
| 259 |
-
|
| 260 |
<div class="header-actions">
|
| 261 |
-
<button class="
|
| 262 |
-
<button class="
|
| 263 |
-
<button class="menu-
|
| 264 |
-
<span></span><span></span>
|
| 265 |
</button>
|
| 266 |
</div>
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
<
|
| 282 |
-
<
|
| 283 |
-
|
|
|
|
| 284 |
</p>
|
| 285 |
<div class="hero-actions">
|
| 286 |
-
<a class="
|
| 287 |
-
<button class="
|
| 288 |
</div>
|
| 289 |
-
<p class="hero-note">Built by a Year 7 student with a big curiosity about what computers can help people understand.</p>
|
| 290 |
</div>
|
| 291 |
|
| 292 |
-
<
|
| 293 |
-
<div class="
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 299 |
</div>
|
| 300 |
-
<
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
<span class="signal signal-two"></span>
|
| 305 |
-
<span class="signal signal-three"></span>
|
| 306 |
-
</div>
|
| 307 |
-
</section>
|
| 308 |
-
|
| 309 |
-
<section class="proof-strip section-wrap" aria-label="Sweep AI capabilities">
|
| 310 |
-
<div><strong>01</strong><span>Look at data</span></div>
|
| 311 |
-
<div><strong>02</strong><span>Analyse patterns</span></div>
|
| 312 |
-
<div><strong>03</strong><span>Report clearly</span></div>
|
| 313 |
-
<div><strong>04</strong><span>Improve over time</span></div>
|
| 314 |
-
</section>
|
| 315 |
-
|
| 316 |
-
<section class="intro-section section-wrap" id="why-sweep">
|
| 317 |
-
<div class="section-heading">
|
| 318 |
-
<p class="eyebrow">01 / Why Sweep</p>
|
| 319 |
-
<h2>Not just another chatbot. A direction for useful models.</h2>
|
| 320 |
-
</div>
|
| 321 |
-
<div class="intro-grid">
|
| 322 |
-
<p class="large-copy">
|
| 323 |
-
The idea behind Sweep is simple: make models that can help people work through large databases without making the information feel impossible to use.
|
| 324 |
-
</p>
|
| 325 |
-
<div class="feature-list">
|
| 326 |
-
<article class="feature-item">
|
| 327 |
-
<span class="feature-number">01</span>
|
| 328 |
-
<div><h3>See the signal</h3><p>Find useful information inside large, messy collections of data.</p></div>
|
| 329 |
-
</article>
|
| 330 |
-
<article class="feature-item">
|
| 331 |
-
<span class="feature-number">02</span>
|
| 332 |
-
<div><h3>Explain the result</h3><p>Turn analysis into reports that are easier for people to read and act on.</p></div>
|
| 333 |
-
</article>
|
| 334 |
-
<article class="feature-item">
|
| 335 |
-
<span class="feature-number">03</span>
|
| 336 |
-
<div><h3>Keep getting better</h3><p>As the models become more advanced, the goal is to produce higher-quality results.</p></div>
|
| 337 |
-
</article>
|
| 338 |
-
</div>
|
| 339 |
-
</div>
|
| 340 |
-
</section>
|
| 341 |
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 347 |
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 351 |
<h3>Sweep.1</h3>
|
| 352 |
-
<p
|
| 353 |
-
<
|
|
|
|
| 354 |
</article>
|
| 355 |
-
<article class="model
|
| 356 |
-
<div class="model-topline"><span class="model-index">02</span><span class="status-pill">Lightweight</span></div>
|
| 357 |
<h3>Sweep Lite</h3>
|
| 358 |
-
<p
|
| 359 |
-
<
|
|
|
|
| 360 |
</article>
|
| 361 |
-
<article class="model
|
| 362 |
-
<div class="model-topline"><span class="model-index">03</span><span class="status-pill">Desktop SaaS</span></div>
|
| 363 |
<h3>Sweep Latest</h3>
|
| 364 |
-
<p
|
| 365 |
-
<
|
|
|
|
| 366 |
</article>
|
| 367 |
-
<article class="model
|
| 368 |
-
<div class="model-topline"><span class="model-index">04</span><span class="status-pill">Desktop SaaS</span></div>
|
| 369 |
<h3>Sweep Ultra</h3>
|
| 370 |
-
<p
|
| 371 |
-
<
|
|
|
|
| 372 |
</article>
|
| 373 |
</div>
|
| 374 |
|
| 375 |
-
<
|
| 376 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
<div
|
| 381 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 382 |
</div>
|
| 383 |
|
| 384 |
-
<
|
| 385 |
-
<
|
| 386 |
-
|
| 387 |
-
<
|
| 388 |
-
<
|
| 389 |
-
|
| 390 |
-
<
|
| 391 |
-
|
| 392 |
-
<
|
| 393 |
-
<
|
| 394 |
-
|
| 395 |
-
<
|
| 396 |
-
|
| 397 |
-
<
|
| 398 |
-
<
|
| 399 |
-
|
| 400 |
-
<
|
| 401 |
-
|
| 402 |
-
<
|
| 403 |
-
<
|
| 404 |
-
|
| 405 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 406 |
</div>
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
<
|
| 412 |
-
<div class="about-copy">
|
| 413 |
-
<p class="eyebrow">04 / The person behind it</p>
|
| 414 |
-
<h2>I’m a Year 7 student building toward something <em>useful.</em></h2>
|
| 415 |
-
<p>I’m trying to make models that can help with big databases by looking at data, analysing it and reporting what matters. Sweep is still being built, so this website is a place to share the idea, the roadmap and the progress.</p>
|
| 416 |
-
<p class="about-disclaimer">Sweep is an independent learning project. The release dates and capabilities shown here are goals for the future, not currently available products.</p>
|
| 417 |
-
<button class="button button-dark" id="aboutSignupButton" type="button">Follow the journey <span>↗</span></button>
|
| 418 |
-
</div>
|
| 419 |
</div>
|
| 420 |
-
</
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
<
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 434 |
|
| 435 |
<div class="modal" id="authModal" hidden aria-hidden="true">
|
| 436 |
<div class="modal-card" role="dialog" aria-modal="true" aria-labelledby="authTitle">
|
| 437 |
-
<button class="modal-close" type="button"
|
| 438 |
-
<
|
| 439 |
<h2 id="authTitle">Welcome back.</h2>
|
| 440 |
-
<p class="modal-intro" id="authIntro">Log in to
|
| 441 |
-
<div class="auth-tabs">
|
|
|
|
|
|
|
|
|
|
| 442 |
<form class="auth-form" id="loginForm">
|
| 443 |
-
<label>Email
|
| 444 |
-
<label>Password<input id="loginPassword" type="password" required placeholder="Your password" /></label>
|
| 445 |
-
<button class="
|
| 446 |
</form>
|
| 447 |
<form class="auth-form" id="signupForm" hidden>
|
| 448 |
-
<label>
|
| 449 |
-
<label>Email
|
| 450 |
-
<label>Password<input id="signupPassword" type="password" minlength="6" required placeholder="At least 6 characters" /></label>
|
| 451 |
-
<button class="
|
| 452 |
</form>
|
| 453 |
<p class="form-message" id="authMessage" role="status"></p>
|
| 454 |
-
<p class="modal-
|
| 455 |
</div>
|
| 456 |
</div>
|
| 457 |
|
| 458 |
<script>
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 463 |
|
| 464 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 465 |
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 469 |
|
| 470 |
-
function
|
| 471 |
-
|
|
|
|
| 472 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 473 |
|
| 474 |
async function hashPassword(password) {
|
| 475 |
if (window.crypto && crypto.subtle) {
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
return Array.from(new Uint8Array(digest))
|
| 479 |
-
.map(byte => byte.toString(16).padStart(2, "0"))
|
| 480 |
-
.join("");
|
| 481 |
}
|
| 482 |
-
|
| 483 |
return btoa(unescape(encodeURIComponent(password)));
|
| 484 |
}
|
| 485 |
|
|
@@ -489,31 +630,39 @@
|
|
| 489 |
}
|
| 490 |
|
| 491 |
function openModal() {
|
| 492 |
-
|
| 493 |
modal.hidden = false;
|
| 494 |
modal.setAttribute("aria-hidden", "false");
|
| 495 |
document.body.classList.add("modal-open");
|
| 496 |
-
setTimeout(
|
|
|
|
|
|
|
|
|
|
| 497 |
}
|
| 498 |
|
| 499 |
function closeModal() {
|
| 500 |
-
|
| 501 |
modal.hidden = true;
|
| 502 |
modal.setAttribute("aria-hidden", "true");
|
| 503 |
document.body.classList.remove("modal-open");
|
| 504 |
}
|
| 505 |
|
| 506 |
-
function setAuthMode(mode, message
|
| 507 |
-
|
| 508 |
-
$("#loginForm").hidden = !
|
| 509 |
-
$("#signupForm").hidden =
|
| 510 |
-
$("#loginTab").classList.toggle("selected",
|
| 511 |
-
$("#signupTab").classList.toggle("selected", !
|
| 512 |
-
$("#authTitle").textContent =
|
| 513 |
-
$("#authIntro").textContent =
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 517 |
}
|
| 518 |
|
| 519 |
function setSession(user) {
|
|
@@ -522,95 +671,58 @@
|
|
| 522 |
updateAuthButtons();
|
| 523 |
}
|
| 524 |
|
| 525 |
-
function
|
| 526 |
-
const label = currentUser ? `Hi, ${currentUser.name.split(" ")[0]}` : "Log in";
|
| 527 |
-
$("#loginButton").textContent = label;
|
| 528 |
-
$("#signupButton").textContent = currentUser ? "Log out ↗" : "Sign up ↗";
|
| 529 |
-
$("#mobileSignupButton").textContent = currentUser ? "Log out ↗" : "Sign up ↗";
|
| 530 |
-
}
|
| 531 |
-
|
| 532 |
-
function handleAuthAction() {
|
| 533 |
-
if (!currentUser) {
|
| 534 |
-
setAuthMode("login");
|
| 535 |
-
openModal();
|
| 536 |
-
return;
|
| 537 |
-
}
|
| 538 |
-
|
| 539 |
currentUser = null;
|
| 540 |
localStorage.removeItem(SESSION_KEY);
|
| 541 |
updateAuthButtons();
|
| 542 |
-
setAuthMode("login", "You have been logged out of this prototype.");
|
| 543 |
}
|
| 544 |
|
| 545 |
function openSignup() {
|
| 546 |
-
if (currentUser) {
|
| 547 |
-
handleAuthAction();
|
| 548 |
-
return;
|
| 549 |
-
}
|
| 550 |
-
|
| 551 |
setAuthMode("signup");
|
| 552 |
openModal();
|
| 553 |
}
|
| 554 |
|
| 555 |
-
$("#loginButton").addEventListener("click", ()
|
| 556 |
-
if (currentUser) {
|
| 557 |
-
document.querySelector("#about").scrollIntoView({ behavior: "smooth" });
|
| 558 |
-
return;
|
| 559 |
-
}
|
| 560 |
setAuthMode("login");
|
| 561 |
openModal();
|
| 562 |
});
|
| 563 |
|
| 564 |
-
["#signupButton", "#mobileSignupButton", "#heroSignupButton", "#aboutSignupButton", "#joinSignupButton"].forEach(
|
| 565 |
-
$(
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
$("[data-close=authModal]").addEventListener("click", closeModal);
|
| 571 |
-
$("#authModal").addEventListener("click", event => {
|
| 572 |
-
if (event.target === $("#authModal")) closeModal();
|
| 573 |
});
|
| 574 |
|
| 575 |
-
$("#
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
}
|
| 585 |
-
|
| 586 |
-
if (await hashPassword(password) !== user.passwordHash) {
|
| 587 |
-
$("#authMessage").textContent = "That password does not match this demo account.";
|
| 588 |
-
return;
|
| 589 |
-
}
|
| 590 |
-
|
| 591 |
setSession(user);
|
| 592 |
$("#loginForm").reset();
|
| 593 |
closeModal();
|
| 594 |
});
|
| 595 |
|
| 596 |
-
$("#signupForm").addEventListener("submit", async
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
}
|
| 606 |
-
|
| 607 |
-
const users = getUsers();
|
| 608 |
-
if (users.some(user => user.email === email)) {
|
| 609 |
-
$("#authMessage").textContent = "An account with that email already exists.";
|
| 610 |
-
return;
|
| 611 |
-
}
|
| 612 |
-
|
| 613 |
-
const user = { id: makeId(), name, email, passwordHash: await hashPassword(password) };
|
| 614 |
users.push(user);
|
| 615 |
saveUsers(users);
|
| 616 |
setSession(user);
|
|
@@ -618,22 +730,22 @@
|
|
| 618 |
closeModal();
|
| 619 |
});
|
| 620 |
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
|
|
|
| 626 |
});
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
link.addEventListener("click", () => {
|
| 630 |
$("#mobileNav").hidden = true;
|
| 631 |
$("#menuButton").setAttribute("aria-expanded", "false");
|
| 632 |
});
|
| 633 |
});
|
| 634 |
|
| 635 |
-
document.addEventListener("keydown",
|
| 636 |
-
if (
|
| 637 |
});
|
| 638 |
|
| 639 |
updateAuthButtons();
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
<meta
|
| 7 |
name="description"
|
| 8 |
+
content="Sweep AI is a Year 7 student's project: models that read big spreadsheets and databases and write up what's in them."
|
| 9 |
+
/>
|
| 10 |
+
<title>Sweep AI | Models that read your messy data</title>
|
| 11 |
+
<link
|
| 12 |
+
rel="icon"
|
| 13 |
+
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='16' fill='%23b8f12a'/%3E%3Cg transform='rotate(40 32 32)'%3E%3Crect x='30.5' y='8' width='3' height='27' rx='1.5'/%3E%3Crect x='25.5' y='34' width='13' height='6' rx='2'/%3E%3Cpath d='M25.5 40h13l4 16h-21z'/%3E%3C/g%3E%3Cpath d='M16 10q0 6 6 6-6 0-6 6 0-6-6-6 6 0 6-6z'/%3E%3C/svg%3E"
|
| 14 |
/>
|
|
|
|
| 15 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
| 16 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
| 17 |
<link
|
| 18 |
+
href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,700;12..96,800&family=IBM+Plex+Mono:wght@400;500&display=swap"
|
| 19 |
rel="stylesheet"
|
| 20 |
/>
|
| 21 |
<style>
|
| 22 |
:root {
|
| 23 |
+
--paper: #efece2;
|
| 24 |
+
--paper-dark: #e4e0d3;
|
| 25 |
+
--ink: #14150f;
|
| 26 |
+
--soft: #5d5f52;
|
| 27 |
+
--lime: #b8f12a;
|
| 28 |
+
--lime-deep: #9ad414;
|
| 29 |
+
--white: #fbfaf5;
|
| 30 |
+
--red: #c8442b;
|
| 31 |
+
--line: #14150f;
|
| 32 |
+
--sans: "Bricolage Grotesque", system-ui, sans-serif;
|
| 33 |
+
--mono: "IBM Plex Mono", ui-monospace, monospace;
|
| 34 |
}
|
| 35 |
|
| 36 |
+
*, *::before, *::after { box-sizing: border-box; }
|
| 37 |
+
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
|
| 38 |
+
body {
|
| 39 |
+
margin: 0;
|
| 40 |
+
background: var(--paper);
|
| 41 |
+
color: var(--ink);
|
| 42 |
+
font-family: var(--sans);
|
| 43 |
+
font-size: 17px;
|
| 44 |
+
line-height: 1.55;
|
| 45 |
+
-webkit-font-smoothing: antialiased;
|
| 46 |
+
}
|
| 47 |
body.modal-open { overflow: hidden; }
|
| 48 |
+
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
|
| 49 |
+
ul, ol { list-style: none; }
|
|
|
|
| 50 |
a { color: inherit; text-decoration: none; }
|
| 51 |
+
button, input { font: inherit; color: inherit; }
|
| 52 |
+
button { cursor: pointer; }
|
| 53 |
+
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
|
| 54 |
+
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
|
| 55 |
+
.mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em; }
|
| 56 |
+
.logo { display: block; flex-shrink: 0; }
|
| 57 |
+
|
| 58 |
+
/* ---------- header ---------- */
|
| 59 |
+
.site-header {
|
| 60 |
+
position: sticky; top: 0; z-index: 30;
|
| 61 |
+
background: var(--paper);
|
| 62 |
+
border-bottom: 2px solid var(--line);
|
| 63 |
+
}
|
| 64 |
+
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
|
| 65 |
+
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; }
|
| 66 |
+
.main-nav { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; font-weight: 500; }
|
| 67 |
+
.main-nav a { padding: 4px 0; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 2px; transition: background-size 0.2s; }
|
| 68 |
+
.main-nav a:hover { background-size: 100% 2px; }
|
| 69 |
+
.header-actions { display: flex; align-items: center; gap: 10px; }
|
| 70 |
+
.link-btn { border: 0; background: none; padding: 8px 6px; font-weight: 500; font-size: 0.95rem; }
|
| 71 |
+
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
|
| 72 |
+
|
| 73 |
+
.btn {
|
| 74 |
+
display: inline-flex; align-items: center; justify-content: center; gap: 10px;
|
| 75 |
+
min-height: 46px; padding: 0 20px;
|
| 76 |
+
border: 2px solid var(--ink); border-radius: 10px;
|
| 77 |
+
font-weight: 700; font-size: 0.95rem; white-space: nowrap;
|
| 78 |
+
transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
|
| 79 |
+
}
|
| 80 |
+
.btn-dark { background: var(--ink); color: var(--paper); }
|
| 81 |
+
.btn-lime { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
|
| 82 |
+
.btn-lime:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
|
| 83 |
+
.btn-lime:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
|
| 84 |
+
.btn-dark:hover { background: #2b2d22; }
|
| 85 |
+
.btn-plain { background: transparent; }
|
| 86 |
+
.btn-plain:hover { background: var(--paper-dark); }
|
| 87 |
+
.btn-small { min-height: 40px; padding: 0 16px; }
|
| 88 |
+
|
| 89 |
+
.menu-btn { display: none; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 10px; background: transparent; padding: 0; }
|
| 90 |
+
.menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }
|
| 91 |
+
.mobile-nav { border-top: 2px solid var(--line); background: var(--paper); padding: 10px 24px 20px; }
|
| 92 |
.mobile-nav[hidden] { display: none; }
|
| 93 |
+
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(20, 21, 15, 0.15); font-weight: 500; }
|
| 94 |
+
.mobile-nav .btn { margin-top: 16px; width: 100%; }
|
| 95 |
+
|
| 96 |
+
/* ---------- hero ---------- */
|
| 97 |
+
.hero-bg {
|
| 98 |
+
background-image:
|
| 99 |
+
linear-gradient(rgba(20, 21, 15, 0.07) 1px, transparent 1px),
|
| 100 |
+
linear-gradient(90deg, rgba(20, 21, 15, 0.07) 1px, transparent 1px);
|
| 101 |
+
background-size: 36px 36px;
|
| 102 |
+
border-bottom: 2px solid var(--line);
|
| 103 |
+
}
|
| 104 |
+
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-block: 84px 92px; }
|
| 105 |
+
.tag { display: inline-block; padding: 5px 10px; margin-bottom: 26px; border: 1.5px solid var(--ink); border-radius: 100px; background: var(--white); }
|
| 106 |
+
h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); line-height: 0.96; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
|
| 107 |
+
.mark { background: linear-gradient(transparent 58%, var(--lime) 58% 92%, transparent 92%); padding: 0 4px; margin: 0 -4px; }
|
| 108 |
+
.lede { max-width: 33em; margin-top: 26px; font-size: 1.15rem; color: #34362b; }
|
| 109 |
+
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
|
| 110 |
+
|
| 111 |
+
/* spreadsheet demo */
|
| 112 |
+
.demo { position: relative; padding-left: 38px; }
|
| 113 |
+
.sheet { position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 8px 8px 0 var(--ink); }
|
| 114 |
+
.sheet-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 2px solid var(--ink); background: var(--paper-dark); border-radius: 10px 10px 0 0; }
|
| 115 |
+
.sheet-bar i { width: 10px; height: 10px; border: 1.5px solid var(--ink); border-radius: 50%; }
|
| 116 |
+
.sheet-bar .mono { margin-left: 6px; font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
| 117 |
+
.sheet-body { position: relative; padding: 8px 0 8px; }
|
| 118 |
+
.row {
|
| 119 |
+
display: grid; grid-template-columns: 1fr 0.8fr 1fr;
|
| 120 |
+
align-items: center; height: 36px; padding: 0 18px;
|
| 121 |
+
font-family: var(--mono); font-size: 0.8rem; overflow: hidden;
|
| 122 |
+
transform: translateX(var(--x, 0)) rotate(var(--r, 0deg));
|
| 123 |
+
transition: transform 0.5s cubic-bezier(.5, 0, .2, 1), opacity 0.4s, height 0.45s, background 0.3s;
|
| 124 |
+
}
|
| 125 |
+
.row.head { color: var(--soft); border-bottom: 1.5px dashed rgba(20, 21, 15, 0.3); text-transform: uppercase; font-size: 0.68rem; transform: none; }
|
| 126 |
+
.row span:last-child { text-align: right; }
|
| 127 |
+
.row.bad { background: #f6d9a0; }
|
| 128 |
+
.row.swept { transform: translateX(120%) rotate(8deg); opacity: 0; }
|
| 129 |
+
.row.gone { height: 0; }
|
| 130 |
+
.row.tidy { --x: 0px; --r: 0deg; }
|
| 131 |
+
|
| 132 |
+
.broom { position: absolute; left: -36px; top: 52px; width: 92px; height: 32px; pointer-events: none; transition: top 0.4s cubic-bezier(.5, 0, .2, 1), opacity 0.4s; z-index: 2; }
|
| 133 |
+
.broom.push { animation: push 0.55s ease-in-out; }
|
| 134 |
+
.broom.off { opacity: 0; }
|
| 135 |
+
@keyframes push { 50% { transform: translateX(46px); } }
|
| 136 |
+
|
| 137 |
+
.report { margin: 6px 14px 14px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 8px; background: var(--lime); min-height: 124px; opacity: 0.18; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; }
|
| 138 |
+
.report.show { opacity: 1; transform: none; }
|
| 139 |
+
.report .mono { display: block; margin-bottom: 6px; font-size: 0.66rem; text-transform: uppercase; }
|
| 140 |
+
.report p { font-size: 0.93rem; line-height: 1.45; font-weight: 500; }
|
| 141 |
+
.demo-caption { margin-top: 20px; color: var(--soft); }
|
| 142 |
+
.no-anim, .no-anim * { transition: none !important; }
|
| 143 |
+
|
| 144 |
+
/* ---------- shared section bits ---------- */
|
| 145 |
+
section { padding-block: 110px; }
|
| 146 |
+
.label { display: inline-block; margin-bottom: 18px; padding-bottom: 3px; border-bottom: 2px solid var(--ink); text-transform: uppercase; }
|
| 147 |
+
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; max-width: 14em; }
|
| 148 |
+
|
| 149 |
+
/* ---------- what it does ---------- */
|
| 150 |
+
.jobs { margin-top: 56px; border-top: 2px solid var(--ink); }
|
| 151 |
+
.job { display: grid; grid-template-columns: 90px 0.8fr 1.2fr; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 2px solid var(--ink); }
|
| 152 |
+
.job-num { font-family: var(--mono); color: var(--soft); }
|
| 153 |
+
.job h3 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
|
| 154 |
+
.job p { max-width: 36em; color: #34362b; }
|
| 155 |
+
.jobs-end { margin-top: 28px; max-width: 34em; font-size: 1.15rem; font-weight: 500; }
|
| 156 |
+
|
| 157 |
+
/* ---------- models ---------- */
|
| 158 |
+
.models { background: var(--ink); color: var(--paper); border-block: 2px solid var(--ink); }
|
| 159 |
+
.models .label { border-color: var(--paper); }
|
| 160 |
+
.ledger { margin-top: 56px; border-top: 1.5px solid rgba(239, 236, 226, 0.5); }
|
| 161 |
+
.ledger-head, .model { display: grid; grid-template-columns: 1.1fr 2fr 1fr 1fr; gap: 24px; align-items: center; }
|
| 162 |
+
.ledger-head { padding: 14px 20px; color: rgba(239, 236, 226, 0.6); text-transform: uppercase; font-size: 0.68rem; }
|
| 163 |
+
.model { padding: 26px 20px; border-top: 1.5px solid rgba(239, 236, 226, 0.25); }
|
| 164 |
+
.model h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
|
| 165 |
+
.model p { color: rgba(239, 236, 226, 0.78); max-width: 30em; }
|
| 166 |
+
.model .where { font-family: var(--mono); font-size: 0.78rem; color: rgba(239, 236, 226, 0.78); }
|
| 167 |
+
.model .when { font-family: var(--mono); font-size: 0.85rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
| 168 |
+
.model.now { background: var(--lime); color: var(--ink); border-radius: 12px; border-top-color: transparent; margin-block: 0; }
|
| 169 |
+
.model.now p, .model.now .where { color: #2a2c1f; }
|
| 170 |
+
.pill { padding: 2px 9px; border: 1.5px solid var(--ink); border-radius: 100px; font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; background: var(--ink); color: var(--lime); }
|
| 171 |
+
.models-note { margin-top: 36px; max-width: 40em; color: rgba(239, 236, 226, 0.78); }
|
| 172 |
+
.models-note strong { color: var(--lime); font-weight: 500; }
|
| 173 |
+
|
| 174 |
+
/* ---------- roadmap ---------- */
|
| 175 |
+
.roadmap-top { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
|
| 176 |
+
.roadmap-top p { max-width: 24em; color: var(--soft); }
|
| 177 |
+
.year { position: relative; margin-top: 70px; }
|
| 178 |
+
.year-line { position: relative; height: 22px; border: 2px solid var(--ink); border-radius: 100px; background: var(--white); }
|
| 179 |
+
.year-line::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 100px; background: var(--lime); }
|
| 180 |
+
.stop { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); font-family: var(--mono); font-weight: 500; font-size: 0.85rem; }
|
| 181 |
+
.stop.next { background: var(--lime); box-shadow: 0 0 0 5px rgba(184, 241, 42, 0.45); }
|
| 182 |
+
.months { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 22px; color: var(--soft); text-align: center; font-size: 0.68rem; }
|
| 183 |
+
.months span:first-child { text-align: left; padding-left: 4px; }
|
| 184 |
+
.year-title { position: absolute; top: -34px; left: 0; color: var(--soft); }
|
| 185 |
+
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 2px solid var(--ink); }
|
| 186 |
+
.step { padding: 26px 24px 8px 0; }
|
| 187 |
+
.step + .step { padding-left: 24px; border-left: 2px solid var(--ink); }
|
| 188 |
+
.step-date { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
|
| 189 |
+
.step-date b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 500; font-size: 0.72rem; }
|
| 190 |
+
.step.next .step-date b { background: var(--lime); color: var(--ink); border: 2px solid var(--ink); }
|
| 191 |
+
.step h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
|
| 192 |
+
.step p { color: #34362b; font-size: 0.96rem; }
|
| 193 |
+
|
| 194 |
+
/* ---------- about ---------- */
|
| 195 |
+
.about { background: var(--lime); border-block: 2px solid var(--ink); }
|
| 196 |
+
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
|
| 197 |
+
.about h2 { max-width: 9em; }
|
| 198 |
+
.about-text p { margin-bottom: 18px; font-size: 1.12rem; max-width: 30em; }
|
| 199 |
+
.about-text .fine { margin-top: 28px; padding: 16px 18px; border: 2px dashed var(--ink); border-radius: 10px; font-size: 0.95rem; }
|
| 200 |
+
.about-text .btn { margin-top: 10px; }
|
| 201 |
+
|
| 202 |
+
/* ---------- end ---------- */
|
| 203 |
+
.end { padding-block: 100px 90px; }
|
| 204 |
+
.end h2 { max-width: 12em; }
|
| 205 |
+
.end-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
|
| 206 |
+
.end-side { max-width: 26em; }
|
| 207 |
+
.end-side p { margin-bottom: 20px; color: #34362b; }
|
| 208 |
+
|
| 209 |
+
.site-footer { border-top: 2px solid var(--ink); padding-block: 26px; }
|
| 210 |
+
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--soft); }
|
| 211 |
+
.footer-inner .brand { color: var(--ink); font-size: 1.1rem; }
|
| 212 |
+
.footer-inner a.mono:hover { color: var(--ink); text-decoration: underline; }
|
| 213 |
+
|
| 214 |
+
/* ---------- modal ---------- */
|
| 215 |
.modal[hidden] { display: none; }
|
| 216 |
+
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(20, 21, 15, 0.6); }
|
| 217 |
+
.modal-card { position: relative; width: min(440px, 100%); max-height: 100%; overflow: auto; padding: 34px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 8px 8px 0 var(--lime); }
|
| 218 |
+
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 8px; background: transparent; font-size: 1.2rem; line-height: 1; }
|
| 219 |
+
.modal-close:hover { background: var(--paper-dark); }
|
| 220 |
+
.modal-card .logo { margin-bottom: 16px; }
|
| 221 |
+
.modal-card h2 { font-size: 2.2rem; margin-bottom: 8px; }
|
| 222 |
+
.modal-intro { color: var(--soft); font-size: 0.95rem; }
|
| 223 |
+
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 18px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
|
| 224 |
+
.auth-tab { padding: 10px; border: 0; background: transparent; font-weight: 500; }
|
| 225 |
+
.auth-tab + .auth-tab { border-left: 2px solid var(--ink); }
|
| 226 |
+
.auth-tab.selected { background: var(--ink); color: var(--paper); }
|
| 227 |
.auth-form { display: grid; gap: 14px; }
|
| 228 |
.auth-form[hidden] { display: none; }
|
| 229 |
+
.auth-form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 500; }
|
| 230 |
+
.auth-form input { width: 100%; padding: 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); outline: 0; }
|
| 231 |
+
.auth-form input:focus { box-shadow: 0 0 0 3px var(--lime); }
|
| 232 |
+
.auth-form .btn { width: 100%; margin-top: 4px; }
|
| 233 |
+
.form-message { min-height: 22px; margin-top: 12px; color: var(--red); font-size: 0.88rem; font-weight: 500; }
|
| 234 |
+
.modal-foot { margin-top: 6px; color: var(--soft); font-size: 0.8rem; }
|
| 235 |
+
|
| 236 |
+
/* ---------- responsive ---------- */
|
| 237 |
+
@media (max-width: 980px) {
|
| 238 |
+
.hero { grid-template-columns: 1fr; gap: 56px; padding-block: 60px 72px; }
|
| 239 |
+
.demo { max-width: 520px; }
|
| 240 |
+
.steps { grid-template-columns: 1fr 1fr; }
|
| 241 |
+
.step:nth-child(3) { padding-left: 0; border-left: 0; }
|
| 242 |
+
.step:nth-child(n+3) { border-top: 2px solid var(--ink); margin-top: 26px; }
|
| 243 |
+
.about-grid { grid-template-columns: 1fr; gap: 36px; }
|
| 244 |
}
|
| 245 |
+
@media (max-width: 760px) {
|
| 246 |
+
body { font-size: 16px; }
|
| 247 |
+
.wrap { width: calc(100% - 32px); }
|
| 248 |
+
.main-nav, .header-actions .link-btn, .header-actions .btn { display: none; }
|
| 249 |
+
.menu-btn { display: block; }
|
| 250 |
.header-actions { margin-left: auto; }
|
| 251 |
+
section { padding-block: 72px; }
|
| 252 |
+
.job { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
|
| 253 |
+
.job h3 { font-size: 1.9rem; }
|
| 254 |
+
.ledger-head { display: none; }
|
| 255 |
+
.model { grid-template-columns: 1fr; gap: 10px; padding: 22px 16px; }
|
| 256 |
+
.demo { padding-left: 26px; }
|
| 257 |
+
.broom { left: -26px; width: 70px; }
|
| 258 |
+
.row { padding: 0 12px; font-size: 0.72rem; }
|
| 259 |
+
.year { margin-top: 48px; }
|
| 260 |
+
.months span:nth-child(even) { visibility: hidden; }
|
| 261 |
+
.stop { width: 32px; height: 32px; margin: -16px 0 0 -16px; font-size: 0.75rem; }
|
| 262 |
+
.steps { grid-template-columns: 1fr; }
|
| 263 |
+
.step, .step + .step { padding: 22px 0 6px; border-left: 0; }
|
| 264 |
+
.step:nth-child(n+2) { border-top: 2px solid var(--ink); margin-top: 22px; }
|
| 265 |
+
.about-text p { font-size: 1.05rem; }
|
| 266 |
+
.modal-card { padding: 28px 20px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
}
|
| 268 |
+
@media (prefers-reduced-motion: reduce) {
|
| 269 |
+
html { scroll-behavior: auto; }
|
| 270 |
+
* { animation: none !important; transition: none !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
}
|
| 272 |
</style>
|
| 273 |
</head>
|
| 274 |
|
| 275 |
<body>
|
| 276 |
+
<!-- logo: lime tile, black broom, two sparkles -->
|
| 277 |
+
<svg width="0" height="0" style="position:absolute" aria-hidden="true" focusable="false">
|
| 278 |
+
<symbol id="sweep-logo" viewBox="0 0 64 64">
|
| 279 |
+
<rect width="64" height="64" rx="16" fill="#b8f12a" />
|
| 280 |
+
<g transform="rotate(40 32 32)" fill="#14150f">
|
| 281 |
+
<rect x="30.5" y="8" width="3" height="27" rx="1.5" />
|
| 282 |
+
<rect x="25.5" y="34" width="13" height="6" rx="2" />
|
| 283 |
+
<path d="M25.5 40h13l4 16h-21z" />
|
| 284 |
+
<path d="M29 45v9M32 45v10M35 45v9" stroke="#b8f12a" stroke-width="1.2" stroke-linecap="round" fill="none" />
|
| 285 |
+
</g>
|
| 286 |
+
<path fill="#14150f" d="M16 9q0 7 7 7-7 0-7 7 0-7-7-7 7 0 7-7z" />
|
| 287 |
+
<path fill="#14150f" d="M28 8q0 3.5 3.5 3.5-3.5 0-3.5 3.5 0-3.5-3.5-3.5 3.5 0 3.5-3.5z" />
|
| 288 |
+
</symbol>
|
| 289 |
+
</svg>
|
| 290 |
+
|
| 291 |
+
<header class="site-header" id="top">
|
| 292 |
+
<div class="wrap header-inner">
|
| 293 |
+
<a class="brand" href="#top" aria-label="Sweep AI, back to top">
|
| 294 |
+
<svg class="logo" width="38" height="38"><use href="#sweep-logo" /></svg>
|
| 295 |
+
Sweep AI
|
| 296 |
</a>
|
| 297 |
+
<nav class="main-nav" aria-label="Main">
|
| 298 |
+
<a href="#what">What it does</a>
|
|
|
|
| 299 |
<a href="#models">Models</a>
|
| 300 |
<a href="#roadmap">Roadmap</a>
|
| 301 |
+
<a href="#about">About me</a>
|
| 302 |
</nav>
|
|
|
|
| 303 |
<div class="header-actions">
|
| 304 |
+
<button class="link-btn" id="loginButton" type="button">Log in</button>
|
| 305 |
+
<button class="btn btn-dark btn-small" id="signupButton" type="button">Sign up</button>
|
| 306 |
+
<button class="menu-btn" id="menuButton" type="button" aria-expanded="false" aria-controls="mobileNav" aria-label="Menu">
|
| 307 |
+
<span></span><span></span><span></span>
|
| 308 |
</button>
|
| 309 |
</div>
|
| 310 |
+
</div>
|
| 311 |
+
<nav class="mobile-nav" id="mobileNav" aria-label="Mobile" hidden>
|
| 312 |
+
<a href="#what">What it does</a>
|
| 313 |
+
<a href="#models">Models</a>
|
| 314 |
+
<a href="#roadmap">Roadmap</a>
|
| 315 |
+
<a href="#about">About me</a>
|
| 316 |
+
<button class="btn btn-dark" id="mobileSignupButton" type="button">Sign up</button>
|
| 317 |
+
</nav>
|
| 318 |
+
</header>
|
| 319 |
+
|
| 320 |
+
<main>
|
| 321 |
+
<div class="hero-bg">
|
| 322 |
+
<div class="wrap hero">
|
| 323 |
+
<div>
|
| 324 |
+
<p class="tag mono">Year 7 project · not released yet</p>
|
| 325 |
+
<h1>Sweep goes through your <span class="mark">messy data</span> so you don't have to.</h1>
|
| 326 |
+
<p class="lede">
|
| 327 |
+
I'm making AI models that read big spreadsheets and databases, work out what's in them, and write it up in plain English. None of it is finished. This page shows what I'm building and when I'm aiming to get there.
|
| 328 |
</p>
|
| 329 |
<div class="hero-actions">
|
| 330 |
+
<a class="btn btn-lime" href="#roadmap">See the plan ↓</a>
|
| 331 |
+
<button class="btn btn-plain" id="heroSignupButton" type="button">Make an account</button>
|
| 332 |
</div>
|
|
|
|
| 333 |
</div>
|
| 334 |
|
| 335 |
+
<figure class="demo" aria-label="Animation of a messy spreadsheet being cleaned up by a broom">
|
| 336 |
+
<div class="sheet" id="sheet">
|
| 337 |
+
<div class="sheet-bar"><i></i><i></i><i></i><span class="mono">q1_sales_FINAL_v3 (2).csv</span></div>
|
| 338 |
+
<div class="sheet-body" id="sheetBody">
|
| 339 |
+
<div class="row head"><span>region</span><span>month</span><span>sales</span></div>
|
| 340 |
+
<div class="row keep" style="--x:6px;--r:-0.8deg"><span>north</span><span>jan</span><span>4,210</span></div>
|
| 341 |
+
<div class="row bad" style="--x:-8px;--r:0.9deg"><span>North</span><span>jan</span><span>4,210</span></div>
|
| 342 |
+
<div class="row bad" style="--x:10px;--r:-0.6deg"><span>south</span><span>jan</span><span>N/A</span></div>
|
| 343 |
+
<div class="row keep" style="--x:-5px;--r:0.7deg"><span>south</span><span>feb</span><span>3,980</span></div>
|
| 344 |
+
<div class="row bad" style="--x:8px;--r:-1deg"><span></span><span>feb</span><span>5,1o0</span></div>
|
| 345 |
+
<div class="row keep" style="--x:-7px;--r:0.5deg"><span>north</span><span>mar</span><span>5,460</span></div>
|
| 346 |
+
<div class="row keep" style="--x:4px;--r:-0.6deg"><span>south</span><span>mar</span><span>4,720</span></div>
|
| 347 |
+
|
| 348 |
+
<svg class="broom off" id="broom" viewBox="0 0 92 32" aria-hidden="true">
|
| 349 |
+
<rect x="0" y="14" width="50" height="4" rx="2" fill="#14150f" />
|
| 350 |
+
<rect x="50" y="9" width="9" height="14" rx="2" fill="#14150f" />
|
| 351 |
+
<path d="M59 9L88 3v26L59 23z" fill="#14150f" />
|
| 352 |
+
<path d="M64 12L84 8M64 16h22M64 20l20 4" stroke="#b8f12a" stroke-width="1.4" stroke-linecap="round" />
|
| 353 |
+
</svg>
|
| 354 |
+
</div>
|
| 355 |
+
<div class="report" id="report">
|
| 356 |
+
<span class="mono">Summary</span>
|
| 357 |
+
<p>North grew about 30% from January to March. South is up 19% from February to March. I dropped 1 duplicate and 2 broken rows.</p>
|
| 358 |
+
</div>
|
| 359 |
</div>
|
| 360 |
+
<figcaption class="demo-caption mono">What I'm aiming for. The numbers are made up.</figcaption>
|
| 361 |
+
</figure>
|
| 362 |
+
</div>
|
| 363 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 364 |
|
| 365 |
+
<section id="what">
|
| 366 |
+
<div class="wrap">
|
| 367 |
+
<p class="label mono">01 · What it does</p>
|
| 368 |
+
<h2>Three jobs, in this order.</h2>
|
| 369 |
+
|
| 370 |
+
<ol class="jobs">
|
| 371 |
+
<li class="job">
|
| 372 |
+
<span class="job-num">1</span>
|
| 373 |
+
<h3>Look</h3>
|
| 374 |
+
<p>Open a huge file or database and take in all of it, including the ugly parts. Blank cells, doubles, columns called "misc2".</p>
|
| 375 |
+
</li>
|
| 376 |
+
<li class="job">
|
| 377 |
+
<span class="job-num">2</span>
|
| 378 |
+
<h3>Analyse</h3>
|
| 379 |
+
<p>Work out what's actually going on. What went up, what went down, what's a weird one-off, and what's just noise.</p>
|
| 380 |
+
</li>
|
| 381 |
+
<li class="job">
|
| 382 |
+
<span class="job-num">3</span>
|
| 383 |
+
<h3>Report</h3>
|
| 384 |
+
<p>Write it up so someone who never opened the data can still follow it.</p>
|
| 385 |
+
</li>
|
| 386 |
+
</ol>
|
| 387 |
+
<p class="jobs-end">Each new model should do all three better than the last one. That's the whole plan.</p>
|
| 388 |
+
</div>
|
| 389 |
+
</section>
|
| 390 |
|
| 391 |
+
<section class="models" id="models">
|
| 392 |
+
<div class="wrap">
|
| 393 |
+
<p class="label mono">02 · The models</p>
|
| 394 |
+
<h2>Four models, from small to big.</h2>
|
| 395 |
+
|
| 396 |
+
<div class="ledger">
|
| 397 |
+
<div class="ledger-head mono"><span>Name</span><span>What it's for</span><span>Runs on</span><span>Aiming for</span></div>
|
| 398 |
+
|
| 399 |
+
<article class="model now">
|
| 400 |
<h3>Sweep.1</h3>
|
| 401 |
+
<p>The first preview. It looks at data and tells you what it found.</p>
|
| 402 |
+
<span class="where">Preview</span>
|
| 403 |
+
<span class="when">Jan 2027 <span class="pill">Building now</span></span>
|
| 404 |
</article>
|
| 405 |
+
<article class="model">
|
|
|
|
| 406 |
<h3>Sweep Lite</h3>
|
| 407 |
+
<p>Smaller and quicker. Good for simple questions and short summaries.</p>
|
| 408 |
+
<span class="where">Lightweight</span>
|
| 409 |
+
<span class="when">Mar 2027</span>
|
| 410 |
</article>
|
| 411 |
+
<article class="model">
|
|
|
|
| 412 |
<h3>Sweep Latest</h3>
|
| 413 |
+
<p>A stronger model for deeper analysis and longer reports.</p>
|
| 414 |
+
<span class="where">Your computer (desktop SaaS)</span>
|
| 415 |
+
<span class="when">Late Jun 2027</span>
|
| 416 |
</article>
|
| 417 |
+
<article class="model">
|
|
|
|
| 418 |
<h3>Sweep Ultra</h3>
|
| 419 |
+
<p>The long-term goal. The best results I can get out of it.</p>
|
| 420 |
+
<span class="where">Your computer (desktop SaaS)</span>
|
| 421 |
+
<span class="when">Late Oct 2027</span>
|
| 422 |
</article>
|
| 423 |
</div>
|
| 424 |
|
| 425 |
+
<p class="models-note">
|
| 426 |
+
<strong>My rule:</strong> a bigger model should give better answers, not just more of them. I'll test each one properly before it comes out, and you decide what to do with what it tells you.
|
| 427 |
+
</p>
|
| 428 |
+
</div>
|
| 429 |
+
</section>
|
| 430 |
+
|
| 431 |
+
<section id="roadmap">
|
| 432 |
+
<div class="wrap">
|
| 433 |
+
<div class="roadmap-top">
|
| 434 |
+
<div>
|
| 435 |
+
<p class="label mono">03 · Roadmap</p>
|
| 436 |
+
<h2>One year, four steps.</h2>
|
| 437 |
+
</div>
|
| 438 |
+
<p>These dates are goals. If something needs more testing, the date moves.</p>
|
| 439 |
+
</div>
|
| 440 |
|
| 441 |
+
<div class="year" aria-hidden="true">
|
| 442 |
+
<span class="year-title mono">2027</span>
|
| 443 |
+
<div class="year-line">
|
| 444 |
+
<span class="stop next" style="left:4.2%">1</span>
|
| 445 |
+
<span class="stop" style="left:20.8%">2</span>
|
| 446 |
+
<span class="stop" style="left:48.3%">3</span>
|
| 447 |
+
<span class="stop" style="left:81.7%">4</span>
|
| 448 |
+
</div>
|
| 449 |
+
<div class="months mono">
|
| 450 |
+
<span>Jan</span><span>Feb</span><span>Mar</span><span>Apr</span><span>May</span><span>Jun</span><span>Jul</span><span>Aug</span><span>Sep</span><span>Oct</span><span>Nov</span><span>Dec</span>
|
| 451 |
+
</div>
|
| 452 |
</div>
|
| 453 |
|
| 454 |
+
<ol class="steps">
|
| 455 |
+
<li class="step next">
|
| 456 |
+
<p class="step-date mono"><b>1</b> January · next up</p>
|
| 457 |
+
<h3>Finish the Sweep.1 preview</h3>
|
| 458 |
+
<p>A first version that looks at data, spots patterns and writes a simple explanation.</p>
|
| 459 |
+
</li>
|
| 460 |
+
<li class="step">
|
| 461 |
+
<p class="step-date mono"><b>2</b> March</p>
|
| 462 |
+
<h3>Release Sweep Lite</h3>
|
| 463 |
+
<p>A faster, lighter model for everyday data questions and quick summaries.</p>
|
| 464 |
+
</li>
|
| 465 |
+
<li class="step">
|
| 466 |
+
<p class="step-date mono"><b>3</b> Late June</p>
|
| 467 |
+
<h3>Launch Sweep Latest</h3>
|
| 468 |
+
<p>A desktop model that runs on your own computer, with stronger analysis and reports.</p>
|
| 469 |
+
</li>
|
| 470 |
+
<li class="step">
|
| 471 |
+
<p class="step-date mono"><b>4</b> Late October</p>
|
| 472 |
+
<h3>Build Sweep Ultra</h3>
|
| 473 |
+
<p>The biggest model, also on your computer, aiming for the best results Sweep can reach.</p>
|
| 474 |
+
</li>
|
| 475 |
+
</ol>
|
| 476 |
+
</div>
|
| 477 |
+
</section>
|
| 478 |
+
|
| 479 |
+
<section class="about" id="about">
|
| 480 |
+
<div class="wrap about-grid">
|
| 481 |
+
<div>
|
| 482 |
+
<p class="label mono">04 · Who's making this</p>
|
| 483 |
+
<h2>Hi, I'm in Year 7.</h2>
|
| 484 |
</div>
|
| 485 |
+
<div class="about-text">
|
| 486 |
+
<p>I want to make models that can help with big databases: look at the data, analyse it, and report back on what matters.</p>
|
| 487 |
+
<p>Sweep isn't finished, so this site is where I'm putting the idea, the plan and how far along I am.</p>
|
| 488 |
+
<p class="fine">Sweep is a learning project. The dates and features on this page are goals. You can't use any of these models yet.</p>
|
| 489 |
+
<button class="btn btn-dark" id="aboutSignupButton" type="button">Make an account</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 490 |
</div>
|
| 491 |
+
</div>
|
| 492 |
+
</section>
|
| 493 |
+
|
| 494 |
+
<section class="end">
|
| 495 |
+
<div class="wrap end-row">
|
| 496 |
+
<h2>Sweep.1 is aimed for January. Check back then.</h2>
|
| 497 |
+
<div class="end-side">
|
| 498 |
+
<p>The accounts on this site are a demo and only live in your browser, so I can't email you yet. You can still make one to see how it works.</p>
|
| 499 |
+
<button class="btn btn-lime" id="joinSignupButton" type="button">Try the account demo</button>
|
| 500 |
+
</div>
|
| 501 |
+
</div>
|
| 502 |
+
</section>
|
| 503 |
+
</main>
|
| 504 |
+
|
| 505 |
+
<footer class="site-footer">
|
| 506 |
+
<div class="wrap footer-inner">
|
| 507 |
+
<a class="brand" href="#top" aria-label="Sweep AI, back to top">
|
| 508 |
+
<svg class="logo" width="30" height="30"><use href="#sweep-logo" /></svg>
|
| 509 |
+
Sweep AI
|
| 510 |
+
</a>
|
| 511 |
+
<p class="mono">© 2026 Sweep AI. A school project, not a company.</p>
|
| 512 |
+
<a class="mono" href="#top">Back to top ↑</a>
|
| 513 |
+
</div>
|
| 514 |
+
</footer>
|
| 515 |
|
| 516 |
<div class="modal" id="authModal" hidden aria-hidden="true">
|
| 517 |
<div class="modal-card" role="dialog" aria-modal="true" aria-labelledby="authTitle">
|
| 518 |
+
<button class="modal-close" type="button" id="closeModal" aria-label="Close">×</button>
|
| 519 |
+
<svg class="logo" width="44" height="44"><use href="#sweep-logo" /></svg>
|
| 520 |
<h2 id="authTitle">Welcome back.</h2>
|
| 521 |
+
<p class="modal-intro" id="authIntro">Log in to your demo account.</p>
|
| 522 |
+
<div class="auth-tabs">
|
| 523 |
+
<button class="auth-tab selected" id="loginTab" type="button">Log in</button>
|
| 524 |
+
<button class="auth-tab" id="signupTab" type="button">Sign up</button>
|
| 525 |
+
</div>
|
| 526 |
<form class="auth-form" id="loginForm">
|
| 527 |
+
<label>Email<input id="loginEmail" type="email" required placeholder="you@example.com" autocomplete="email" /></label>
|
| 528 |
+
<label>Password<input id="loginPassword" type="password" required placeholder="Your password" autocomplete="current-password" /></label>
|
| 529 |
+
<button class="btn btn-dark" type="submit">Log in</button>
|
| 530 |
</form>
|
| 531 |
<form class="auth-form" id="signupForm" hidden>
|
| 532 |
+
<label>Name<input id="signupName" type="text" required placeholder="Your name" autocomplete="name" /></label>
|
| 533 |
+
<label>Email<input id="signupEmail" type="email" required placeholder="you@example.com" autocomplete="email" /></label>
|
| 534 |
+
<label>Password<input id="signupPassword" type="password" minlength="6" required placeholder="At least 6 characters" autocomplete="new-password" /></label>
|
| 535 |
+
<button class="btn btn-dark" type="submit">Create account</button>
|
| 536 |
</form>
|
| 537 |
<p class="form-message" id="authMessage" role="status"></p>
|
| 538 |
+
<p class="modal-foot">Demo only. Your details are saved in this browser and nowhere else. Don't use a real password.</p>
|
| 539 |
</div>
|
| 540 |
</div>
|
| 541 |
|
| 542 |
<script>
|
| 543 |
+
/* ---------- spreadsheet sweep animation ---------- */
|
| 544 |
+
(function () {
|
| 545 |
+
var body = document.getElementById("sheetBody");
|
| 546 |
+
var broom = document.getElementById("broom");
|
| 547 |
+
var report = document.getElementById("report");
|
| 548 |
+
var sheet = document.getElementById("sheet");
|
| 549 |
+
var rows = Array.prototype.slice.call(body.querySelectorAll(".row:not(.head)"));
|
| 550 |
+
var bad = rows.filter(function (r) { return r.classList.contains("bad"); });
|
| 551 |
+
var keep = rows.filter(function (r) { return r.classList.contains("keep"); });
|
| 552 |
+
var timers = [];
|
| 553 |
+
var reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
| 554 |
+
|
| 555 |
+
function later(fn, ms) { timers.push(setTimeout(fn, ms)); }
|
| 556 |
+
|
| 557 |
+
function finalState() {
|
| 558 |
+
bad.forEach(function (r) { r.classList.add("swept", "gone"); });
|
| 559 |
+
keep.forEach(function (r) { r.classList.add("tidy"); });
|
| 560 |
+
report.classList.add("show");
|
| 561 |
+
}
|
| 562 |
|
| 563 |
+
function reset() {
|
| 564 |
+
sheet.classList.add("no-anim");
|
| 565 |
+
rows.forEach(function (r) { r.classList.remove("swept", "gone", "tidy"); });
|
| 566 |
+
report.classList.remove("show");
|
| 567 |
+
broom.classList.add("off");
|
| 568 |
+
void sheet.offsetWidth;
|
| 569 |
+
sheet.classList.remove("no-anim");
|
| 570 |
+
}
|
| 571 |
|
| 572 |
+
function placeBroom(row) {
|
| 573 |
+
broom.style.top = row.offsetTop + (row.offsetHeight - 32) / 2 + "px";
|
| 574 |
+
}
|
| 575 |
+
|
| 576 |
+
function run() {
|
| 577 |
+
reset();
|
| 578 |
+
var t = 900;
|
| 579 |
+
placeBroom(bad[0]);
|
| 580 |
+
later(function () { broom.classList.remove("off"); }, 400);
|
| 581 |
+
bad.forEach(function (row) {
|
| 582 |
+
later(function () { placeBroom(row); }, t);
|
| 583 |
+
later(function () {
|
| 584 |
+
broom.classList.remove("push");
|
| 585 |
+
void broom.offsetWidth;
|
| 586 |
+
broom.classList.add("push");
|
| 587 |
+
}, t + 450);
|
| 588 |
+
later(function () { row.classList.add("swept"); }, t + 650);
|
| 589 |
+
t += 1200;
|
| 590 |
+
});
|
| 591 |
+
later(function () { broom.classList.add("off"); }, t + 200);
|
| 592 |
+
later(function () {
|
| 593 |
+
bad.forEach(function (r) { r.classList.add("gone"); });
|
| 594 |
+
keep.forEach(function (r) { r.classList.add("tidy"); });
|
| 595 |
+
}, t + 500);
|
| 596 |
+
later(function () { report.classList.add("show"); }, t + 1100);
|
| 597 |
+
later(run, t + 7000);
|
| 598 |
+
}
|
| 599 |
+
|
| 600 |
+
if (reduce) { finalState(); } else { run(); }
|
| 601 |
+
})();
|
| 602 |
+
|
| 603 |
+
/* ---------- demo accounts (stored in this browser only) ---------- */
|
| 604 |
+
var USERS_KEY = "sweep_ai_users";
|
| 605 |
+
var SESSION_KEY = "sweep_ai_session";
|
| 606 |
+
function $(s) { return document.querySelector(s); }
|
| 607 |
+
function $$(s) { return document.querySelectorAll(s); }
|
| 608 |
|
| 609 |
+
function readJSON(key, fallback) {
|
| 610 |
+
try { return JSON.parse(localStorage.getItem(key) || "null") || fallback; }
|
| 611 |
+
catch (e) { return fallback; }
|
| 612 |
}
|
| 613 |
+
var currentUser = readJSON(SESSION_KEY, null);
|
| 614 |
+
|
| 615 |
+
function getUsers() { return readJSON(USERS_KEY, []); }
|
| 616 |
+
function saveUsers(users) { localStorage.setItem(USERS_KEY, JSON.stringify(users)); }
|
| 617 |
|
| 618 |
async function hashPassword(password) {
|
| 619 |
if (window.crypto && crypto.subtle) {
|
| 620 |
+
var data = new TextEncoder().encode(password);
|
| 621 |
+
var digest = await crypto.subtle.digest("SHA-256", data);
|
| 622 |
+
return Array.from(new Uint8Array(digest)).map(function (b) { return b.toString(16).padStart(2, "0"); }).join("");
|
|
|
|
|
|
|
| 623 |
}
|
|
|
|
| 624 |
return btoa(unescape(encodeURIComponent(password)));
|
| 625 |
}
|
| 626 |
|
|
|
|
| 630 |
}
|
| 631 |
|
| 632 |
function openModal() {
|
| 633 |
+
var modal = $("#authModal");
|
| 634 |
modal.hidden = false;
|
| 635 |
modal.setAttribute("aria-hidden", "false");
|
| 636 |
document.body.classList.add("modal-open");
|
| 637 |
+
setTimeout(function () {
|
| 638 |
+
var first = $("#loginForm").hidden ? $("#signupName") : $("#loginEmail");
|
| 639 |
+
first.focus();
|
| 640 |
+
}, 40);
|
| 641 |
}
|
| 642 |
|
| 643 |
function closeModal() {
|
| 644 |
+
var modal = $("#authModal");
|
| 645 |
modal.hidden = true;
|
| 646 |
modal.setAttribute("aria-hidden", "true");
|
| 647 |
document.body.classList.remove("modal-open");
|
| 648 |
}
|
| 649 |
|
| 650 |
+
function setAuthMode(mode, message) {
|
| 651 |
+
var login = mode === "login";
|
| 652 |
+
$("#loginForm").hidden = !login;
|
| 653 |
+
$("#signupForm").hidden = login;
|
| 654 |
+
$("#loginTab").classList.toggle("selected", login);
|
| 655 |
+
$("#signupTab").classList.toggle("selected", !login);
|
| 656 |
+
$("#authTitle").textContent = login ? "Welcome back." : "Make an account.";
|
| 657 |
+
$("#authIntro").textContent = login ? "Log in to your demo account." : "It takes ten seconds and nothing leaves your browser.";
|
| 658 |
+
$("#authMessage").textContent = message || "";
|
| 659 |
+
}
|
| 660 |
+
|
| 661 |
+
function updateAuthButtons() {
|
| 662 |
+
var first = currentUser ? currentUser.name.split(" ")[0] : "";
|
| 663 |
+
$("#loginButton").textContent = currentUser ? "Hi, " + first : "Log in";
|
| 664 |
+
$("#signupButton").textContent = currentUser ? "Log out" : "Sign up";
|
| 665 |
+
$("#mobileSignupButton").textContent = currentUser ? "Log out" : "Sign up";
|
| 666 |
}
|
| 667 |
|
| 668 |
function setSession(user) {
|
|
|
|
| 671 |
updateAuthButtons();
|
| 672 |
}
|
| 673 |
|
| 674 |
+
function logOut() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 675 |
currentUser = null;
|
| 676 |
localStorage.removeItem(SESSION_KEY);
|
| 677 |
updateAuthButtons();
|
|
|
|
| 678 |
}
|
| 679 |
|
| 680 |
function openSignup() {
|
| 681 |
+
if (currentUser) { logOut(); return; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 682 |
setAuthMode("signup");
|
| 683 |
openModal();
|
| 684 |
}
|
| 685 |
|
| 686 |
+
$("#loginButton").addEventListener("click", function () {
|
| 687 |
+
if (currentUser) { $("#about").scrollIntoView({ behavior: "smooth" }); return; }
|
|
|
|
|
|
|
|
|
|
| 688 |
setAuthMode("login");
|
| 689 |
openModal();
|
| 690 |
});
|
| 691 |
|
| 692 |
+
["#signupButton", "#mobileSignupButton", "#heroSignupButton", "#aboutSignupButton", "#joinSignupButton"].forEach(function (sel) {
|
| 693 |
+
$(sel).addEventListener("click", function () {
|
| 694 |
+
$("#mobileNav").hidden = true;
|
| 695 |
+
$("#menuButton").setAttribute("aria-expanded", "false");
|
| 696 |
+
openSignup();
|
| 697 |
+
});
|
|
|
|
|
|
|
|
|
|
| 698 |
});
|
| 699 |
|
| 700 |
+
$("#loginTab").addEventListener("click", function () { setAuthMode("login"); });
|
| 701 |
+
$("#signupTab").addEventListener("click", function () { setAuthMode("signup"); });
|
| 702 |
+
$("#closeModal").addEventListener("click", closeModal);
|
| 703 |
+
$("#authModal").addEventListener("click", function (e) { if (e.target === $("#authModal")) closeModal(); });
|
| 704 |
+
|
| 705 |
+
$("#loginForm").addEventListener("submit", async function (e) {
|
| 706 |
+
e.preventDefault();
|
| 707 |
+
var email = $("#loginEmail").value.trim().toLowerCase();
|
| 708 |
+
var password = $("#loginPassword").value;
|
| 709 |
+
var user = getUsers().find(function (u) { return u.email === email; });
|
| 710 |
+
if (!user) { $("#authMessage").textContent = "There's no demo account with that email."; return; }
|
| 711 |
+
if ((await hashPassword(password)) !== user.passwordHash) { $("#authMessage").textContent = "That password doesn't match."; return; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 712 |
setSession(user);
|
| 713 |
$("#loginForm").reset();
|
| 714 |
closeModal();
|
| 715 |
});
|
| 716 |
|
| 717 |
+
$("#signupForm").addEventListener("submit", async function (e) {
|
| 718 |
+
e.preventDefault();
|
| 719 |
+
var name = $("#signupName").value.trim();
|
| 720 |
+
var email = $("#signupEmail").value.trim().toLowerCase();
|
| 721 |
+
var password = $("#signupPassword").value;
|
| 722 |
+
if (password.length < 6) { $("#authMessage").textContent = "Use at least 6 characters."; return; }
|
| 723 |
+
var users = getUsers();
|
| 724 |
+
if (users.some(function (u) { return u.email === email; })) { $("#authMessage").textContent = "That email already has an account."; return; }
|
| 725 |
+
var user = { id: makeId(), name: name, email: email, passwordHash: await hashPassword(password) };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 726 |
users.push(user);
|
| 727 |
saveUsers(users);
|
| 728 |
setSession(user);
|
|
|
|
| 730 |
closeModal();
|
| 731 |
});
|
| 732 |
|
| 733 |
+
/* ---------- mobile menu ---------- */
|
| 734 |
+
$("#menuButton").addEventListener("click", function () {
|
| 735 |
+
var menu = $("#mobileNav");
|
| 736 |
+
var open = !menu.hidden;
|
| 737 |
+
menu.hidden = open;
|
| 738 |
+
$("#menuButton").setAttribute("aria-expanded", String(!open));
|
| 739 |
});
|
| 740 |
+
$$(".mobile-nav a").forEach(function (link) {
|
| 741 |
+
link.addEventListener("click", function () {
|
|
|
|
| 742 |
$("#mobileNav").hidden = true;
|
| 743 |
$("#menuButton").setAttribute("aria-expanded", "false");
|
| 744 |
});
|
| 745 |
});
|
| 746 |
|
| 747 |
+
document.addEventListener("keydown", function (e) {
|
| 748 |
+
if (e.key === "Escape" && !$("#authModal").hidden) closeModal();
|
| 749 |
});
|
| 750 |
|
| 751 |
updateAuthButtons();
|