A personal site made from scratch! https://badblocks.dev
Find a file
badbl0cks f2f42a84b5
Add contact actions and migrate contact form to Astro actions
Implement send_otp and send_msg handlers with server-side validation,
captcha verification, OTP generation/verification, rate limiting,
session-backed multi-step flow, and SMS gateway integration.

Replace broken contact endpoint and types with Astro server actions;
delete endpoints/contact.ts, types/ContactForm.ts and
src/components/ContactForm.astro. Update pages/contact.astro to use
astro:actions and improve captcha handling (listen for solve and set
hidden input). Adjust OTP timing (step 60s → 300s, VALID_PAST_OTP_STEPS
5 → 1). Add validator, @types/validator, Prettier and
prettier-plugin-astro; include .prettierrc.mjs in tsconfig include.

Add Prettier config for Astro
2026-01-22 14:04:27 -08:00
.vscode Initial commit from Astro 2025-12-19 14:06:51 -08:00
db Add support for cap, a pow captcha, and implement on contact form 2026-01-06 20:50:30 -08:00
public new minimal retro theme, progress on parallax hero, refactor into semantic html, 2026-01-04 21:36:24 -08:00
src Add contact actions and migrate contact form to Astro actions 2026-01-22 14:04:27 -08:00
.dockerignore docker image building and docker compose support 2026-01-06 08:08:12 -08:00
.gitignore work on porting over contact form from old site, also added initial db support 2026-01-06 08:07:19 -08:00
.prettierrc.mjs Add contact actions and migrate contact form to Astro actions 2026-01-22 14:04:27 -08:00
astro.config.mjs More progress but need to fully refactor into Astro action and take advantage of 2026-01-19 18:10:33 -08:00
bun.lockb Add contact actions and migrate contact form to Astro actions 2026-01-22 14:04:27 -08:00
docker-compose.yml docker image building and docker compose support 2026-01-06 08:08:12 -08:00
Dockerfile docker image building and docker compose support 2026-01-06 08:08:12 -08:00
package.json Add contact actions and migrate contact form to Astro actions 2026-01-22 14:04:27 -08:00
tsconfig.json Add contact actions and migrate contact form to Astro actions 2026-01-22 14:04:27 -08:00