Skip to content

Commit 0b545bb

Browse files
committed
Add donation pages and redirect from donate to spenden
- Created a new DonatePage that redirects to /spenden. - Implemented the SpendenPage with donation data, expense breakdown, and donation components. - Added a donation progress bar, donation box, and details table. - Included a modal for donation options via bank transfer and PayPal.
1 parent e6c70c9 commit 0b545bb

25 files changed

+712
-45
lines changed

REFACTORING_ROADMAP.md

Lines changed: 54 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -189,61 +189,72 @@ Target: Next.js → PostgreSQL → Headless CMS → Docker
189189

190190
### Phase 7: Public Pages Migration (Week 5-7)
191191

192+
**Status: 68% Complete (13/19 Seiten implementiert)**
193+
192194
#### Pages to Migrate (in priority order)
193195

194-
1. **Home Page** (/)
195-
- [ ] Hero section with branding
196-
- [ ] Download badges (App Store, Google Play)
197-
- [ ] Video embed section
198-
- [ ] Feature showcase with interactive badges
199-
- [ ] Target audience sections
200-
- [ ] Press logos
201-
202-
2. **Donate Page** (/donate)
203-
- [ ] Donation progress display
204-
- [ ] Team member profiles
205-
- [ ] Volunteer profiles
206-
- [ ] Values showcase
207-
- [ ] Payment integration
208-
209-
3. **FAQ Page** (/faq)
210-
- [ ] Dynamic FAQ loading
211-
- [ ] Collapsible questions
212-
- [ ] Search functionality
213-
214-
4. **Contact Page** (/contact)
215-
- [ ] Contact form
216-
- [ ] Form validation
217-
- [ ] Success/error messages
196+
1. **Home Page** (/) ✅
197+
- [x] Hero section with branding
198+
- [x] Download badges (App Store, Google Play)
199+
- [x] Video embed section
200+
- [x] Feature showcase with interactive badges
201+
- [x] Target audience sections
202+
- [x] Press logos
203+
204+
2. **Donate Page** (/spenden) ✅
205+
- [x] Donation progress display
206+
- [x] Expense breakdown table
207+
- [x] Bank details
208+
- [x] PayPal/DonorBox links
209+
- [x] Donation modal
210+
- [x] HIK section
211+
- [x] Jahresabschlüsse links
212+
- [x] Redirect /donate → /spenden
213+
214+
3. **FAQ Page** (/faq) ✅
215+
- [x] Dynamic FAQ loading
216+
- [x] Collapsible questions
217+
- [x] Category filter (statt Search)
218+
219+
4. **Contact Page** (/contact) ✅
220+
- [x] Contact form
221+
- [x] Form validation
222+
- [x] Success/error messages
223+
- [x] API integration (/api/contact)
218224

219225
5. **About Pages**
220-
- [ ] /about
221-
- [ ] /citizen
222-
- [ ] /politicians
223-
- [ ] /engineering
226+
- [x] /about
227+
- [x] /buerger ✅ (Note: Route ist /buerger, nicht /citizen)
228+
- [x] /politiker ✅ (Note: Route ist /politiker, nicht /politicians)
229+
- [x] /engineering
224230

225-
6. **Legal Pages**
226-
- [ ] /impressum
227-
- [ ] /datenschutz (privacy policy)
228-
- [ ] /nutzungsbedingungen (terms)
231+
6. **Legal Pages**
232+
- [x] /impressum
233+
- [x] /datenschutz (privacy policy)
234+
- [x] /nutzungsbedingungen (terms)
229235

230236
7. **Additional Pages**
231-
- [ ] /wahlometer
232-
- [ ] /press
233-
- [ ] /blog
234-
- [ ] /invite
235-
- [ ] /unsubscribe
237+
- [x] /wahlometer ✅
238+
- [x] /press ✅
239+
- [ ] /blog ❌
240+
- [ ] /invite ❌
241+
- [ ] /unsubscribe (/abmelden) ❌
242+
243+
#### Known Issues
244+
- Homepage links `/citizen` → sollte `/buerger` sein
245+
- Homepage links `/politicians` → sollte `/politiker` sein
246+
- Custom icon font (icon-app-store-outline) CSS möglicherweise unvollständig
236247

237248
#### Design Matching
238-
- [ ] Extract all CSS styles
239-
- [ ] Convert to Tailwind classes
240-
- [ ] Match colors, fonts, spacing exactly
241-
- [ ] Ensure responsive behavior matches
249+
- [x] Extract all CSS styles
250+
- [x] Convert to Tailwind classes
251+
- [x] Match colors, fonts, spacing exactly
252+
- [x] Ensure responsive behavior matches
242253
- [ ] Test all animations/transitions
243254

244255
#### Deliverables
245-
- [ ] All 19 pages migrated
246-
- [ ] Responsive design verified
256+
- [ ] All 19 pages migrated (13/19 done)
257+
- [x] Responsive design verified
247258
- [ ] Cross-browser testing complete
248259
- [ ] Accessibility audit passed
249260

nextjs-app/next.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ import { withPayload } from "@payloadcms/next/withPayload";
22
import type { NextConfig } from "next";
33

44
const nextConfig: NextConfig = {
5+
// Redirects for legacy URLs
6+
async redirects() {
7+
return [
8+
{
9+
source: "/donate",
10+
destination: "/spenden",
11+
permanent: true,
12+
},
13+
];
14+
},
515
// Disable Turbopack for now due to compatibility issues with Payload CMS
616
// Turbopack has issues with esbuild and drizzle-kit modules
717
experimental: {
3.04 MB
Binary file not shown.
693 KB
Binary file not shown.
253 KB
Binary file not shown.
542 KB
Binary file not shown.
332 KB
Binary file not shown.
418 KB
Binary file not shown.
358 KB
Binary file not shown.
438 KB
Binary file not shown.

0 commit comments

Comments
 (0)