site/README.md
2026-01-06 20:51:48 +00:00

52 lines
1.3 KiB
Markdown

APP Website — Associação Portuguesa de Powerlifting
Overview
- Next.js (App Router) + TypeScript + Tailwind
- Strict accessibility (WCAG 2.1 AA)
- Bilingual support: Portuguese (default) and English
- Markdown content with sticky Table of Contents
- OpenPowerlifting integration (meets scraping + results CSV parsing)
- Cloudflare Turnstile on Contatos page
Getting Started
1. Install dependencies:
```bash
npm install
```
2. Set environment variables in `.env.local`:
```bash
NEXT_PUBLIC_TURNSTILE_SITE_KEY=your_site_key_here
```
3. Run the dev server:
```bash
npm run dev
```
Open http://localhost:3000 — you will be redirected to /pt.
Key Paths
- Portuguese: [src/app/pt](src/app/pt)
- English: [src/app/en](src/app/en)
- Content: [content](content)
- Markdown API: [src/app/api/content/route.ts](src/app/api/content/route.ts)
- Meets API: [src/app/api/openpowerlifting/meets/route.ts](src/app/api/openpowerlifting/meets/route.ts)
- Results API: [src/app/api/openpowerlifting/results/route.ts](src/app/api/openpowerlifting/results/route.ts)
Accessibility Notes
- Skip link and clear focus indicators present
- Semantic headings and ARIA labels on navigation
- Tables include headers and caption
Next Steps
- Add comprehensive English pages and translations
- Expand accessibility testing with Lighthouse and axe DevTools