Skip to content

Commit 8b36202

Browse files
committed
Actualizacion Index
1 parent 20a69d8 commit 8b36202

11 files changed

+103
-56
lines changed

app/(tabs)/index.tsx

+103-56
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,117 @@
1-
import { Image, StyleSheet, Platform } from 'react-native';
1+
import React from 'react';
2+
import { View, Text, Image, ScrollView, StyleSheet, Button, TouchableOpacity } from 'react-native';
23

3-
import { HelloWave } from '@/components/HelloWave';
4-
import ParallaxScrollView from '@/components/ParallaxScrollView';
5-
import { ThemedText } from '@/components/ThemedText';
6-
import { ThemedView } from '@/components/ThemedView';
74

85
export default function HomeScreen() {
96
return (
10-
<ParallaxScrollView
11-
headerBackgroundColor={{ light: '#A1CEDC', dark: '#1D3D47' }}
12-
headerImage={
13-
<Image
14-
source={require('@/assets/images/partial-react-logo.png')}
15-
style={styles.reactLogo}
16-
/>
17-
}>
18-
<ThemedView style={styles.titleContainer}>
19-
<ThemedText type="title">Welcome!</ThemedText>
20-
<HelloWave />
21-
</ThemedView>
22-
<ThemedView style={styles.stepContainer}>
23-
<ThemedText type="subtitle">Step 1: Try it</ThemedText>
24-
<ThemedText>
25-
Edit <ThemedText type="defaultSemiBold">app/(tabs)/index.tsx</ThemedText> to see changes.
26-
Press{' '}
27-
<ThemedText type="defaultSemiBold">
28-
{Platform.select({ ios: 'cmd + d', android: 'cmd + m' })}
29-
</ThemedText>{' '}
30-
to open developer tools.
31-
</ThemedText>
32-
</ThemedView>
33-
<ThemedView style={styles.stepContainer}>
34-
<ThemedText type="subtitle">Step 2: Explore</ThemedText>
35-
<ThemedText>
36-
Tap the Explore tab to learn more about what's included in this starter app.
37-
</ThemedText>
38-
</ThemedView>
39-
<ThemedView style={styles.stepContainer}>
40-
<ThemedText type="subtitle">Step 3: Get a fresh start</ThemedText>
41-
<ThemedText>
42-
When you're ready, run{' '}
43-
<ThemedText type="defaultSemiBold">npm run reset-project</ThemedText> to get a fresh{' '}
44-
<ThemedText type="defaultSemiBold">app</ThemedText> directory. This will move the current{' '}
45-
<ThemedText type="defaultSemiBold">app</ThemedText> to{' '}
46-
<ThemedText type="defaultSemiBold">app-example</ThemedText>.
47-
</ThemedText>
48-
</ThemedView>
49-
</ParallaxScrollView>
7+
<ScrollView style={styles.container}>
8+
{/* Logo Section */}
9+
<View style={styles.logoContainer}>
10+
<Image source={require('@/assets/images/CirupieD.png')} style={styles.logo} />
11+
</View>
12+
13+
{/* Information Section */}
14+
<View style={styles.infoContainer}>
15+
<Text style={styles.title}>SOMOS UN EQUIPO MULTIDISCIPLINARIO DE PERSONAL DE LA SALUD</Text>
16+
<Text style={styles.subtitle}>Conserva tus pasos, cuida tus pies</Text>
17+
18+
</View>
19+
20+
{/* Carousel */}
21+
<ScrollView horizontal pagingEnabled style={styles.carousel}>
22+
<Image source={require('@/assets/images/slider-1.jpg')} style={styles.carouselImage} />
23+
<Image source={require('@/assets/images/slider-4.jpg')} style={styles.carouselImage} />
24+
<Image source={require('@/assets/images/slider-5.jpg')} style={styles.carouselImage} />
25+
</ScrollView>
26+
27+
28+
{/* Mission and Vision Section */}
29+
<View style={styles.cardsContainer}>
30+
<View style={styles.card}>
31+
<Text style={styles.cardTitle}>Misión</Text>
32+
<Text style={styles.cardText}>
33+
Proporcionar un servicio de atención integral con la finalidad de prevenir, detectar, diagnosticar,
34+
tratar y rehabilitar a los pacientes con pie diabético.
35+
</Text>
36+
</View>
37+
<View style={styles.card}>
38+
<Text style={styles.cardTitle}>Visión</Text>
39+
<Text style={styles.cardText}>
40+
Preservar la integridad de los pacientes con pie diabético, y crear un cambio consciente en los pacientes y su entorno.
41+
</Text>
42+
</View>
43+
</View>
44+
</ScrollView>
5045
);
5146
}
5247

5348
const styles = StyleSheet.create({
54-
titleContainer: {
55-
flexDirection: 'row',
49+
container: {
50+
flex: 1,
51+
padding: 16,
52+
backgroundColor: 'white',
53+
},
54+
carousel: {
55+
height: 200,
56+
},
57+
carouselImage: {
58+
width: 300,
59+
height: 200,
60+
marginHorizontal: 5,
61+
borderRadius: 10,
62+
},
63+
infoContainer: {
64+
padding: 20,
65+
alignItems: 'center',
66+
},
67+
title: {
68+
fontSize: 18,
69+
fontWeight: 'bold',
70+
textAlign: 'center',
71+
marginBottom: 10,
72+
},
73+
subtitle: {
74+
fontSize: 16,
75+
textAlign: 'center',
76+
color: 'gray',
77+
marginBottom: 20,
78+
},
79+
contactButton: {
80+
backgroundColor: '#28a745',
81+
paddingVertical: 10,
82+
paddingHorizontal: 20,
83+
borderRadius: 5,
84+
},
85+
contactButtonText: {
86+
color: 'white',
87+
fontWeight: 'bold',
88+
},
89+
logoContainer: {
5690
alignItems: 'center',
57-
gap: 8,
91+
marginVertical: 20,
92+
},
93+
logo: {
94+
width: 150,
95+
height: 150,
96+
resizeMode: 'contain',
97+
},
98+
cardsContainer: {
99+
paddingHorizontal: 20,
100+
},
101+
card: {
102+
backgroundColor: '#f0f0f0',
103+
padding: 15,
104+
borderRadius: 8,
105+
marginVertical: 10,
58106
},
59-
stepContainer: {
60-
gap: 8,
107+
cardTitle: {
108+
fontSize: 16,
109+
fontWeight: 'bold',
110+
color: '#007bff',
61111
marginBottom: 8,
62112
},
63-
reactLogo: {
64-
height: 178,
65-
width: 290,
66-
bottom: 0,
67-
left: 0,
68-
position: 'absolute',
113+
cardText: {
114+
fontSize: 14,
115+
color: '#555',
69116
},
70117
});

assets/images/CirupieD.png

114 KB
Loading

assets/images/slider-1.jpg

36.4 KB
Loading

assets/images/slider-2.jpg

148 KB
Loading

assets/images/slider-3.jpg

279 KB
Loading

assets/images/slider-4.jpg

33 KB
Loading

assets/images/slider-5.jpg

159 KB
Loading

src/img/CirupieD.png

114 KB
Loading

src/img/slider-1.jpg

36.4 KB
Loading

src/img/slider-2.jpg

148 KB
Loading

src/img/slider-3.jpg

279 KB
Loading

0 commit comments

Comments
 (0)