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
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:
@@ -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 { computeFinanzplan } from '@/lib/finanzplan/engine'
|
||||
|
||||
export async function POST() {
|
||||
const WD = 'c0000000-0000-0000-0000-000000000200'
|
||||
await pool.query(`UPDATE fp_liquiditaet SET row_label='2. Finanzierungsrunde (optional)' WHERE scenario_id=$1 AND row_label='2. Finanzierungsrunde'`, [WD])
|
||||
return NextResponse.json({ ok: true })
|
||||
/** Admin-only: recompute a Finanzplan scenario. */
|
||||
export async function POST(request: NextRequest) {
|
||||
const guard = await requireAdmin(request)
|
||||
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 })
|
||||
}
|
||||
|
||||
@@ -780,9 +780,12 @@ export default function MilestonesSlide({ lang }: MilestonesSlideProps) {
|
||||
<style>{CSS_KF}</style>
|
||||
|
||||
<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>
|
||||
</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 delay={0.1}>
|
||||
|
||||
@@ -631,9 +631,12 @@ export default function USPSlide({ lang }: USPSlideProps) {
|
||||
<style>{CSS_KF}</style>
|
||||
|
||||
<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>
|
||||
</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 delay={0.1}>
|
||||
|
||||
@@ -6,7 +6,6 @@ const PUBLIC_PATHS = [
|
||||
'/auth', // investor login pages
|
||||
'/api/auth', // investor auth API
|
||||
'/api/health',
|
||||
'/api/admin/fp-patch',
|
||||
'/api/admin-auth', // admin login API
|
||||
'/pitch-admin/login', // admin login page
|
||||
'/_next',
|
||||
|
||||
Reference in New Issue
Block a user