feat(pitch-deck): add subtitles to USP + Milestones, EUR hint, re-secure
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m8s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 29s
CI / test-python-voice (push) Successful in 30s
CI / test-bqas (push) Successful in 29s

- USP: "Compliance und Code — in einer Plattform, immer synchron"
- Milestones: "Von der Idee zur GmbH — was wir bereits erreicht haben"
- Finanzplan subtitle: "Alle Werte in EUR"
- 2. Finanzierungsrunde (optional)
- Re-secure fp-patch

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-21 23:38:51 +02:00
parent 8442ac82f1
commit 56da89fb0e
4 changed files with 22 additions and 8 deletions

View File

@@ -1,8 +1,17 @@
import { NextResponse } from 'next/server' import { NextRequest, NextResponse } from 'next/server'
import { requireAdmin } from '@/lib/admin-auth'
import pool from '@/lib/db' import pool from '@/lib/db'
import { computeFinanzplan } from '@/lib/finanzplan/engine'
export async function POST() { /** Admin-only: recompute a Finanzplan scenario. */
const WD = 'c0000000-0000-0000-0000-000000000200' export async function POST(request: NextRequest) {
await pool.query(`UPDATE fp_liquiditaet SET row_label='2. Finanzierungsrunde (optional)' WHERE scenario_id=$1 AND row_label='2. Finanzierungsrunde'`, [WD]) const guard = await requireAdmin(request)
return NextResponse.json({ ok: true }) if (guard.kind === 'response') return guard.response
const body = await request.json().catch(() => ({}))
const scenarioId = body.scenarioId || (await pool.query("SELECT id FROM fp_scenarios WHERE is_default = true LIMIT 1")).rows[0]?.id
if (!scenarioId) return NextResponse.json({ error: 'No scenario found' }, { status: 404 })
const result = await computeFinanzplan(pool, scenarioId)
return NextResponse.json({ success: true, scenarioId, cash_m60: result.liquiditaet?.endstand?.m60 })
} }

View File

@@ -780,9 +780,12 @@ export default function MilestonesSlide({ lang }: MilestonesSlideProps) {
<style>{CSS_KF}</style> <style>{CSS_KF}</style>
<FadeInView className="text-center mb-1"> <FadeInView className="text-center mb-1">
<h2 className="text-5xl md:text-6xl font-bold"> <h2 className="text-5xl md:text-6xl font-bold mb-1">
<GradientText>{de ? 'Meilensteine' : 'Milestones'}</GradientText> <GradientText>{de ? 'Meilensteine' : 'Milestones'}</GradientText>
</h2> </h2>
<p className="text-lg text-white/50 max-w-2xl mx-auto">
{de ? 'Von der Idee zur GmbH — was wir bereits erreicht haben' : 'From idea to GmbH — what we have already achieved'}
</p>
</FadeInView> </FadeInView>
<FadeInView delay={0.1}> <FadeInView delay={0.1}>

View File

@@ -631,9 +631,12 @@ export default function USPSlide({ lang }: USPSlideProps) {
<style>{CSS_KF}</style> <style>{CSS_KF}</style>
<FadeInView className="text-center mb-1"> <FadeInView className="text-center mb-1">
<h2 className="text-5xl md:text-6xl font-bold"> <h2 className="text-5xl md:text-6xl font-bold mb-1">
<GradientText>USP</GradientText> <GradientText>USP</GradientText>
</h2> </h2>
<p className="text-lg text-white/50 max-w-2xl mx-auto">
{de ? 'Compliance und Code — in einer Plattform, immer synchron' : 'Compliance and code — one platform, always in sync'}
</p>
</FadeInView> </FadeInView>
<FadeInView delay={0.1}> <FadeInView delay={0.1}>

View File

@@ -6,7 +6,6 @@ const PUBLIC_PATHS = [
'/auth', // investor login pages '/auth', // investor login pages
'/api/auth', // investor auth API '/api/auth', // investor auth API
'/api/health', '/api/health',
'/api/admin/fp-patch',
'/api/admin-auth', // admin login API '/api/admin-auth', // admin login API
'/pitch-admin/login', // admin login page '/pitch-admin/login', // admin login page
'/_next', '/_next',