1
Fork 0
form-validation/index.html
Leonardo Devai befab0e70d Review and modernize all 42 projects to the updated standard
Pinned 2026 toolchains (Go 1.26, Rust 1.98/edition 2024, Python 3.14 + uv, Node 24,
Zig 0.16, NixOS 26.05), postgres 18 / mongo 8, lockfiles built from, non-root
runtimes, .dockerignore, per-project LICENSE, READMEs with the git.devai.io clone
line, checkout@v7 CI. Security fixes in the legacy Rust APIs (any-password login,
self-assigned admin, hard-coded JWT secret), JWT alg/exp/sub enforcement across the
blog series, safe markdown links in the frontends, and many smaller bugs — every
project was built, run and exercised end to end.

Adds scripts/publish.sh + a CI publish job that splits every folder into its own
repo at git.devai.io/templates/<folder>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01128fhuZbgivaSJvtMf4s1G
2026-09-27 21:10:38 +02:00

39 lines
1.5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Form Validation</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main class="card">
<h1>Create your account</h1>
<p class="sub">A sign-up form that checks your input before accepting it.</p>
<!-- novalidate turns off the browser's own popups so we can show ours. -->
<form id="form" novalidate>
<label for="name">Name</label>
<input id="name" class="input" type="text" autocomplete="name" aria-describedby="nameError" />
<p id="nameError" class="error"></p>
<label for="email">Email</label>
<input id="email" class="input" type="email" autocomplete="email" aria-describedby="emailError" />
<p id="emailError" class="error"></p>
<label for="password">Password</label>
<input id="password" class="input" type="password" autocomplete="new-password" aria-describedby="passwordError" />
<p id="passwordError" class="error"></p>
<label for="confirm">Confirm password</label>
<input id="confirm" class="input" type="password" autocomplete="new-password" aria-describedby="confirmError" />
<p id="confirmError" class="error"></p>
<button class="btn" type="submit">Sign up</button>
<p id="success" class="success" role="status"></p>
</form>
</main>
<script src="app.js"></script>
</body>
</html>