Ei kuvausta

Analisis.js 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. import React from "react";
  2. import {
  3. View,
  4. Text,
  5. StyleSheet,
  6. Linking
  7. } from "react-native";
  8. // TOOL DESCRIPTIONS
  9. const bodyEJScreen = "EJScreen es..... Presione para ir al enlace."
  10. const bodyCEJST = "CEJST es..... Presione para ir al enlace."
  11. const bodyEJAtlas = "EJAtlas es..... Presione para ir al enlace."
  12. const bodyIPCC = "El ''Intergovernmental Panel on Climate Change'' o IPCC es..... Presione para ir al enlace."
  13. const Analisis = () => {
  14. return (
  15. <View>
  16. {/* TAB TITLE CODE*/}
  17. {/* TAB TITLE */}
  18. <Text style={styles.Tab}>
  19. Enlaces a Herramientas de Análisis Externas
  20. </Text>
  21. {/* FIRST TOOL CODE*/}
  22. {/* FIRST TOOL TITLE */}
  23. <View style={styles.Number}>
  24. <Text style={styles.Number}>
  25. 1)
  26. </Text>
  27. <Text style={styles.Title}
  28. onPress={ ()=> Linking.openURL('https://ejscreen.epa.gov/mapper/') }>
  29. Enlace a EJScreen
  30. </Text>
  31. </View>
  32. {/* FIRST TOOL BODY */}
  33. <View style={styles.Bullet}>
  34. <Text style={styles.Bullet}>
  35. {'\u002D'}
  36. </Text>
  37. <Text style={styles.Body}>
  38. {bodyEJScreen}
  39. </Text>
  40. </View>
  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. {/* THIRD TOOL CODE*/}
  61. {/* THIRD TOOL TITLE */}
  62. <View style={styles.Number}>
  63. <Text style={styles.Number}>
  64. 3)
  65. </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. {/* FOURTH TOOL CODE*/}
  81. {/* FOURTH TOOL TITLE */}
  82. <View style={styles.Number}>
  83. <Text style={styles.Number}>
  84. 4)
  85. </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. </View>
  101. )}
  102. const styles = StyleSheet.create({
  103. Tab: { fontSize: 30,
  104. textAlign: "center",
  105. marginTop: "12%",
  106. marginLeft: "1.4%",
  107. marginRight: "1.4%"
  108. },
  109. Number: { fontSize: 23,
  110. textAlign: "left",
  111. marginLeft: "2.5%",
  112. marginTop: "5.5%",
  113. flexDirection: 'row'
  114. },
  115. Title: { fontSize: 23,
  116. textAlign: "left",
  117. marginTop: "5.5%",
  118. color: "#6495ed",
  119. flex: 0,
  120. paddingLeft: 6
  121. },
  122. Body: { fontSize: 18,
  123. textAlign: "left",
  124. marginTop: "2%",
  125. flex: 1,
  126. paddingLeft: 5
  127. },
  128. Bullet: { fontSize: 18,
  129. textAlign: "left",
  130. marginLeft: "6%",
  131. marginTop: "2%",
  132. flexDirection: 'row'
  133. }
  134. });
  135. export default Analisis;