Application Android et IOS pour l'amicale des élèves
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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. // @flow
  20. import * as React from 'react';
  21. import {Image, View} from 'react-native';
  22. import i18n from 'i18n-js';
  23. import {Card, Avatar, Paragraph, Text} from 'react-native-paper';
  24. import CustomTabBar from '../../../components/Tabbar/CustomTabBar';
  25. import CollapsibleScrollView from '../../../components/Collapsible/CollapsibleScrollView';
  26. const LOGO = 'https://etud.insa-toulouse.fr/~amicale_app/images/Proximo.png';
  27. /**
  28. * Class defining the proximo about screen.
  29. */
  30. export default function ProximoAboutScreen() {
  31. return (
  32. <CollapsibleScrollView style={{padding: 5}}>
  33. <View
  34. style={{
  35. width: '100%',
  36. height: 100,
  37. marginTop: 20,
  38. marginBottom: 20,
  39. justifyContent: 'center',
  40. alignItems: 'center',
  41. }}>
  42. <Image
  43. source={{uri: LOGO}}
  44. style={{height: '100%', width: '100%', resizeMode: 'contain'}}
  45. />
  46. </View>
  47. <Text>{i18n.t('screens.proximo.description')}</Text>
  48. <Card style={{margin: 5}}>
  49. <Card.Title
  50. title={i18n.t('screens.proximo.openingHours')}
  51. left={(iconProps) => (
  52. <Avatar.Icon size={iconProps.size} icon="clock-outline" />
  53. )}
  54. />
  55. <Card.Content>
  56. <Paragraph>18h30 - 19h30</Paragraph>
  57. </Card.Content>
  58. </Card>
  59. <Card style={{margin: 5, marginBottom: CustomTabBar.TAB_BAR_HEIGHT + 20}}>
  60. <Card.Title
  61. title={i18n.t('screens.proximo.paymentMethods')}
  62. left={(iconProps) => (
  63. <Avatar.Icon size={iconProps.size} icon="cash" />
  64. )}
  65. />
  66. <Card.Content>
  67. <Paragraph>
  68. {i18n.t('screens.proximo.paymentMethodsDescription')}
  69. </Paragraph>
  70. </Card.Content>
  71. </Card>
  72. </CollapsibleScrollView>
  73. );
  74. }