Project 03
Law & Trial Association Website
The website of the Law & Trial Association, the pre-law organization I founded at UT Dallas, with member sign in, a newsletter system, a public Case Hub and an officer console.
Who uses it
UT Dallas students who want to join, RSVP, read the newsletter or prepare for the mock trial case, and the association's officers, who run members, events, email and forms from a private console on its own subdomain.
Why it was built
A student organization needed one place for events, membership, sign ups and a newsletter that actually lands in UT Dallas inboxes, which run on Outlook. The first version leaned on Airtable and a third party auth service, and as the organization grew it needed a real database, its own sign in and email it controlled.
What it does
The public site has the association's story, events with RSVP and add to calendar, officers, a member directory with privacy controls, a Pre-Law hub with a live LSAT deadline tracker, and the mock trial competition sign up. The Case Hub at /case is a neutral study guide for the year's case with a timeline, witnesses, exhibits, a map, a glossary and a Trial Prep section on procedure, objections, rules of evidence and the scoring rubric. Members sign in with a UT Dallas email link and manage their profile, badges and account deletion. Officers write the newsletter in a block editor with undo, choose recipients with combinable chips, send it in scheduled daily batches, and see per issue delivery analytics, while a public archive and one click unsubscribe sit on the site. The console also holds a forms builder with QR codes, event check in, ambassador applications and a finance ledger.
What it serves
The site gives the association a single front door for students and a back office its officers can run without spreadsheets. Success is a newsletter that reaches the inbox instead of junk, members who can sign in with nothing but their school email, and officers who manage events, email and forms in one place.
Under the hood
I built it on Next.js 15 with the App Router, React 19, TypeScript, Tailwind CSS and Framer Motion on Vercel, with Supabase for Postgres and auth across 27 SQL migrations. Middleware serves the officer console on its own subdomain and answers a real 404 for /dashboard on the public domain, and every console API call checks the session email against the officer list on the server. Supabase only mints sign in tokens and I mail them from the association's own domain through Resend, which has SPF, DKIM and DMARC. The newsletter sends through Resend with inline CID images, RFC 8058 one click unsubscribe headers, a Svix verified webhook for delivery events, suppression of hard bounces and complaints, and a daily Vercel cron that sends each scheduled batch through the same code path as the Send button.
Flow
- Signup or member
- Email list
- Scheduled batch
- Resend
- Inbox
- Delivery webhook
Built with
- Next.js 15
- React 19
- TypeScript
- Tailwind CSS
- Framer Motion
- Supabase
- Resend
- Vercel Cron
- sharp
- pdf-lib
- PostHog
- node:test
How I built it
- I launched the first site with Airtable as the data source and a hosted auth service, then fixed the early problems that came with it, from edge middleware errors on Vercel to welcome emails landing in spam.
- I parked the hosted auth, added LinkedIn sign in and a member directory, then moved sign in to a UT Dallas email link and moved every table off Airtable onto Supabase.
- I added the officer console on its own subdomain, then the newsletter with an editor, a public archive and unsubscribe, starting on one email provider and moving fully to Resend.
- I rebuilt the newsletter for Outlook inboxes: images carried inside the message, no web fonts, plain layouts for reminders, one click unsubscribe, delivery tracking and deliverability guards.
- I added the Case Hub, the Pre-Law hub and branded share cards, then rolled the whole site onto a token based design system in six steps.
- I kept growing the console as the officers asked: forms with QR check in, judge and witness registration, team emails, a finance ledger, and a console redesign with grouped navigation and search, with pure logic covered by node:test suites.
Key decisions
- I send sign in links from the association's own domain instead of Supabase's mailer, because that mailer is capped at a few emails an hour and UT Dallas Outlook filed its sender as junk.
- Newsletter images are fetched once per send, resized with sharp and attached inline under strict size budgets, because Outlook blocks remote images from senders who are not on the reader's safe list.
- I set my own daily sending ceiling and keep the last 15 sends of each day for sign in codes, so a young sending domain ramps up gradually and a big newsletter never locks anyone out.
- Sending pauses on its own when the last week's bounce or complaint rate nears the thresholds Gmail and Resend act on, and no address gets more than two emails in 24 hours.
- Scheduled batches, the cron and the Send button share one press function with a per issue lock and per address delivery records, so no address is sent the same issue twice and a cut short batch rolls to the next day.
- Every word of the Case Hub comes from one typed content file under a facts only rule, so officers can update it without touching components and no team gets a strategic edge from the public page.
