Application Android et IOS pour l'amicale des élèves https://play.google.com/store/apps/details?id=fr.amicaleinsat.application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProximoAboutScreen.tsx 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright (c) 2019 - 2020 Arnaud Vergnet.
  3. *
  4. * This file is part of Campus INSAT.
  5. *
  6. * Campus INSAT is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Campus INSAT is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Campus INSAT. If not, see <https://www.gnu.org/licenses/>.
  18. */
  19. import * as React from 'react';
  20. import { Image, StyleSheet, View } from 'react-native';
  21. import i18n from 'i18n-js';
  22. import { Card, Avatar, Paragraph, Text } from 'react-native-paper';
  23. import { TAB_BAR_HEIGHT } from '../../../components/Tabbar/CustomTabBar';
  24. import CollapsibleScrollView from '../../../components/Collapsible/CollapsibleScrollView';
  25. import Urls from '../../../constants/Urls';
  26. const styles = StyleSheet.create({
  27. container: {
  28. padding: 5,
  29. },
  30. imageContainer: {
  31. width: '100%',
  32. height: 100,
  33. marginTop: 20,
  34. marginBottom: 20,
  35. justifyContent: 'center',
  36. alignItems: 'center',
  37. },
  38. image: {
  39. height: '100%',
  40. width: '100%',
  41. resizeMode: 'contain',
  42. },
  43. card: {
  44. margin: 5,
  45. },
  46. });
  47. /**
  48. * Class defining the proximo about screen.
  49. */
  50. export default function ProximoAboutScreen() {
  51. return (
  52. <CollapsibleScrollView style={styles.container}>
  53. <View style={styles.imageContainer}>
  54. <Image source={{ uri: Urls.images.proximo }} style={styles.image} />
  55. </View>
  56. <Text>{i18n.t('screens.proximo.description')}</Text>
  57. <Card style={styles.card}>
  58. <Card.Title
  59. title={i18n.t('screens.proximo.openingHours')}
  60. left={(iconProps) => (
  61. <Avatar.Icon size={iconProps.size} icon="clock-outline" />
  62. )}
  63. />
  64. <Card.Content>
  65. <Paragraph>18h30 - 19h30</Paragraph>
  66. </Card.Content>
  67. </Card>
  68. <Card
  69. style={{
  70. ...styles.card,
  71. marginBottom: TAB_BAR_HEIGHT + 20,
  72. }}
  73. >
  74. <Card.Title
  75. title={i18n.t('screens.proximo.paymentMethods')}
  76. left={(iconProps) => (
  77. <Avatar.Icon size={iconProps.size} icon="cash" />
  78. )}
  79. />
  80. <Card.Content>
  81. <Paragraph>
  82. {i18n.t('screens.proximo.paymentMethodsDescription')}
  83. </Paragraph>
  84. </Card.Content>
  85. </Card>
  86. </CollapsibleScrollView>
  87. );
  88. }