Overview
The RIS Gran Chimú mobile app provides several public landing pages that citizens can access without authentication. These pages display essential health information, news, services, and transparency documents.Landing Routes
All public pages are located in theapp/landing/ directory:
Available Public Pages
1. Landing Home (index.tsx)
Route:/landing
Features:
- News carousel with institutional updates
- Frequent questions (FAQs) section
- Hidden admin access button (revealed on scroll)
- Direct integration with Facebook links
2. Health Establishments (establecimientos.tsx)
Route:/landing/establecimientos
Features:
- List of all health centers and hospitals
- Address, phone, and map links for each facility
- Service badges showing available medical services
- Direct map integration via Google Maps links
3. Strategies & Services (estrategias.tsx)
Route:/landing/estrategias
Features:
- Health strategies with expandable descriptions
- Grid view of available medical services
- Dynamic icons from
healthicons-react-nativeandlucide-react-native - Color-coded categories for easy navigation
4. Transparency (transparencia.tsx)
Route:/landing/transparencia
Features:
- Links to government transparency portals
- Information access request forms
- Citizen complaint platform
- Internal regulations and official documents
5. Contact (contacto.tsx)
Route:/landing/contacto
Features:
- Contact information for health facilities
- Citizen service channels
- Social media links
Public API Endpoints
All public pages consume unauthenticated endpoints:| Endpoint | Purpose | Page |
|---|---|---|
/public/noticias | Fetch news articles | Landing Home |
/public/establecimientos | Get health facilities | Establishments |
/public/estrategias | Load health strategies | Strategies |
/public/servicios | Get medical services | Strategies |
Public endpoints explicitly remove the
Authorization header to prevent 401 errors if an expired token exists in storage (app/landing/index.tsx:77-79).News Carousel Implementation
The landing page features a horizontal scrolling news carousel:app/landing/index.tsx:213-233
- Featured image or placeholder
- Title and description
- Publication date
- Optional Facebook link button
Navigation Structure
Styling Guidelines
Public pages follow a consistent design system:- Primary Color:
#0066CC(header backgrounds) - Card Background:
#FFFFFFwith subtle shadows - Text Hierarchy:
- Titles:
28px,fontWeight: 800 - Subtitles:
15px, light color - Body:
14px,#4B5563
- Titles:
Accessibility: All public pages use high-contrast colors and readable font sizes to comply with MINSA (Ministry of Health) accessibility standards mentioned in
README.md:19.Related Documentation
Dashboard
Role-based admin dashboard
Offline Mode
Session persistence with AsyncStorage
