Pārlūkot izejas kodu

pagina de analisis actualizada

andrelfuentes 2 gadus atpakaļ
vecāks
revīzija
3c13f0112f
2 mainītis faili ar 160 papildinājumiem un 9 dzēšanām
  1. 134
    9
      screens/Analisis.js
  2. 26
    0
      screens/analisis.json

+ 134
- 9
screens/Analisis.js Parādīt failu

@@ -1,19 +1,144 @@
1 1
 import React from "react";
2
-import { View, Text, StyleSheet, TouchableOpacity, TextInput} from "react-native";
2
+import { View, Text, StyleSheet, TouchableOpacity, Linking, Pressable} from "react-native";
3
+import Tools from "./analisis.json";
4
+
5
+// TOOL DESCRIPTIONS
6
+const bodyEJScreen = "EJScreen es..... Presione para ir al enlace."
7
+const bodyCEJST = "CEJST es..... Presione para ir al enlace."
8
+const bodyEJAtlas = "EJAtlas es..... Presione para ir al enlace."
9
+const bodyIPCC = "El ''Intergovernmental Panel on Climate Change'' o IPCC es..... Presione para ir al enlace."
3 10
 
4 11
 const Analisis = () => {
5 12
     return (
6 13
         <View>
7
-            <Text
8
-                style={{
9
-                    fontSize: 30,
10
-                    textAlign: "center",
11
-                    marginTop: "20%"
12
-                }}
13
-            
14
-            >Herramientas de analisis</Text>
14
+
15
+            {/* TAB TITLE CODE*/}
16
+            {/* TAB TITLE */}
17
+            <Text style={styles.Tab}> 
18
+                Enlaces a Herramientas de Análisis Externas
19
+            </Text>
20
+
21
+            {/* FIRST TOOL CODE*/}
22
+            {/* FIRST TOOL TITLE */}
23
+            <View style={styles.Number}>
24
+                <Text style={styles.Number}>
25
+                    1)</Text>
26
+                <Text style={styles.Title} 
27
+                onPress={ ()=> Linking.openURL('https://ejscreen.epa.gov/mapper/') }>
28
+                    Enlace a EJScreen
29
+                </Text>
30
+            </View>
31
+            {/* FIRST TOOL BODY */}
32
+            <View style={styles.Bullet}>
33
+                <Text style={styles.Bullet}>
34
+                    {'\u002D'}
35
+                </Text>
36
+                <Text style={styles.Body}>
37
+                    {bodyEJScreen}
38
+                </Text>
39
+            </View>
40
+
41
+            {/* SECOND TOOL CODE*/}
42
+            {/* SECOND TOOL TITLE */}
43
+            <View style={styles.Number}>
44
+                <Text style={styles.Number}>
45
+                    2)</Text>
46
+                <Text style={styles.Title} 
47
+                onPress={ ()=> Linking.openURL('https://screeningtool.geoplatform.gov/en/#3/33.47/-97.5') }>
48
+                    Enlace a CEJST
49
+                </Text>
50
+            </View>
51
+            {/* SECOND TOOL BODY */}
52
+            <View style={styles.Bullet}>
53
+                <Text style={styles.Bullet}>
54
+                    {'\u002D'}
55
+                </Text>
56
+                <Text style={styles.Body}>
57
+                    {bodyCEJST}
58
+                </Text>
59
+            </View>
60
+
61
+            {/* THIRD TOOL CODE*/}
62
+            {/* THIRD TOOL TITLE */}
63
+            <View style={styles.Number}>
64
+                <Text style={styles.Number}>
65
+                    3)</Text>
66
+                <Text style={styles.Title} 
67
+                onPress={ ()=> Linking.openURL('https://ejatlas.org/') }>
68
+                    Enlace a EJAtlas
69
+                </Text>
70
+            </View>
71
+            {/* THIRD TOOL BODY */}
72
+            <View style={styles.Bullet}>
73
+                <Text style={styles.Bullet}>
74
+                    {'\u002D'}
75
+                </Text>
76
+                <Text style={styles.Body}>
77
+                    {bodyEJAtlas}
78
+                </Text>
79
+            </View>
80
+
81
+            {/* FOURTH TOOL CODE*/}
82
+            {/* FOURTH TOOL TITLE */}
83
+            <View style={styles.Number}>
84
+                <Text style={styles.Number}>
85
+                    4)</Text>
86
+                <Text style={styles.Title} 
87
+                onPress={ ()=> Linking.openURL('https://www.ipcc.ch/') }>
88
+                    Enlace al IPCC
89
+                </Text>
90
+            </View>
91
+            {/* FOURTH TOOL BODY */}
92
+            <View style={styles.Bullet}>
93
+                <Text style={styles.Bullet}>
94
+                    {'\u002D'}
95
+                </Text>
96
+                <Text style={styles.Body}>
97
+                    {bodyIPCC}
98
+                </Text>
99
+            </View>
100
+        
15 101
         </View>
16 102
     )
17 103
 }
18 104
 
105
+const styles = StyleSheet.create({
106
+    Tab: { fontSize: 30,
107
+           textAlign: "center",
108
+           marginTop: "12%",
109
+           marginLeft: "1.4%",
110
+           marginRight: "1.4%"
111
+    },
112
+
113
+    Number: { fontSize: 23,
114
+        textAlign: "left",
115
+        marginLeft: "2.5%",
116
+        marginTop: "5.5%",
117
+        flexDirection: 'row'
118
+    },
119
+
120
+    Title: { fontSize: 23,
121
+                textAlign: "left",
122
+                marginTop: "5.5%", 
123
+                color: "#6495ed",
124
+                flex: 0,
125
+                paddingLeft: 6
126
+    },
127
+
128
+    Body: { fontSize: 18,
129
+                textAlign: "left",
130
+                marginTop: "2%",
131
+                flex: 1, 
132
+                paddingLeft: 5
133
+    }, 
134
+
135
+    Bullet: { fontSize: 18,
136
+              textAlign: "left",
137
+              marginLeft: "6%",
138
+              marginTop: "2%",
139
+              flexDirection: 'row'
140
+    }
141
+  });
142
+
19 143
 export default Analisis
144
+

+ 26
- 0
screens/analisis.json Parādīt failu

@@ -0,0 +1,26 @@
1
+[
2
+    {
3
+        "id": 1,
4
+        "title": "EJScreen",
5
+        "link": "https://ejscreen.epa.gov/mapper/",
6
+        "description": "EJScreen es..... Presione para ir al enlace."
7
+    },
8
+    {
9
+        "id": 2,
10
+        "title": "CEJST",
11
+        "link": "https://screeningtool.geoplatform.gov/en/#3/33.47/-97.5",
12
+        "description": "CEJST es..... Presione para ir al enlace."
13
+    },
14
+    {
15
+        "id": 3,
16
+        "title": "EJAtlas",
17
+        "link": "https://ejatlas.org/",
18
+        "description": "EJAtlas es..... Presione para ir al enlace."
19
+    },
20
+    {
21
+        "id": 4,
22
+        "title": "Intergovernmental Panel on Climate Change",
23
+        "link": "https://www.ipcc.ch/",
24
+        "description": "El Intergovernmental Panel on Climate Change (IPCC) es..... Presione para ir al enlace."
25
+    }
26
+]