generated from knso/webklar-preview-template
- Primärfarbe: Apple-System-Blau (#007AFF) statt dunklem Marineblau — Buttons, Icons und Links wirken wie in Apples eigenen Apps - Header nach Apple-Konvention: Titel in Textfarbe, nur Interaktives im Tint - Ampel: frische Signalfarben in zugänglichen Varianten (klares Rot, Orange statt Braun, sattes Grün) — als Text auf Weiß weiter WCAG-lesbar - Großtitel entfernt (renderte auf iOS 26 nicht zuverlässig) — Standard- Header ist stabil auf allen Screens Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
59 lines
2.7 KiB
TypeScript
59 lines
2.7 KiB
TypeScript
/**
|
|
* BehördenKlar — Behördenbriefe verstehen, übersetzen, beantworten.
|
|
* Einstiegspunkt: Navigation + Initialisierung (Archiv, Benachrichtigungen).
|
|
*/
|
|
import React, { useEffect } from 'react';
|
|
import { StatusBar } from 'expo-status-bar';
|
|
import { NavigationContainer } from '@react-navigation/native';
|
|
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
|
import { RootStackParamList } from './src/types';
|
|
import { useAppStore } from './src/store/useAppStore';
|
|
import { initialisiereBenachrichtigungen } from './src/services/erinnerungen';
|
|
import { AppSchutz } from './src/components/AppSchutz';
|
|
import { farben, schrift } from './src/theme';
|
|
import { HomeScreen } from './src/screens/HomeScreen';
|
|
import { ConsentScreen } from './src/screens/ConsentScreen';
|
|
import { ScanScreen } from './src/screens/ScanScreen';
|
|
import { AnalyseScreen } from './src/screens/AnalyseScreen';
|
|
import { AntwortScreen } from './src/screens/AntwortScreen';
|
|
import { GlossarScreen } from './src/screens/GlossarScreen';
|
|
import { EinstellungenScreen } from './src/screens/EinstellungenScreen';
|
|
|
|
const Stack = createNativeStackNavigator<RootStackParamList>();
|
|
|
|
export default function App() {
|
|
const initialisiere = useAppStore((s) => s.initialisiere);
|
|
|
|
useEffect(() => {
|
|
initialisiereBenachrichtigungen();
|
|
initialisiere();
|
|
}, [initialisiere]);
|
|
|
|
return (
|
|
<AppSchutz>
|
|
<NavigationContainer>
|
|
<StatusBar style="dark" />
|
|
<Stack.Navigator
|
|
screenOptions={{
|
|
headerStyle: { backgroundColor: farben.hintergrund },
|
|
headerShadowVisible: false,
|
|
// Apple-Konvention: Titel in Textfarbe, nur Interaktives im Blau-Tint
|
|
headerTintColor: farben.primaer,
|
|
headerTitleStyle: { fontSize: schrift.gross, fontWeight: '700', color: farben.text },
|
|
headerBackTitle: 'Zurück',
|
|
contentStyle: { backgroundColor: farben.hintergrund },
|
|
}}
|
|
>
|
|
<Stack.Screen name="Home" component={HomeScreen} options={{ title: 'BehördenKlar' }} />
|
|
<Stack.Screen name="Consent" component={ConsentScreen} options={{ title: 'Datenschutz' }} />
|
|
<Stack.Screen name="Scan" component={ScanScreen} options={{ title: 'Brief scannen' }} />
|
|
<Stack.Screen name="Analyse" component={AnalyseScreen} options={{ title: 'Ihr Brief erklärt' }} />
|
|
<Stack.Screen name="Antwort" component={AntwortScreen} options={{ title: 'Antwort erstellen' }} />
|
|
<Stack.Screen name="Glossar" component={GlossarScreen} options={{ title: 'Behörden-Glossar' }} />
|
|
<Stack.Screen name="Einstellungen" component={EinstellungenScreen} options={{ title: 'Einstellungen' }} />
|
|
</Stack.Navigator>
|
|
</NavigationContainer>
|
|
</AppSchutz>
|
|
);
|
|
}
|