Advertisement
lariciamota

Untitled

May 27th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import { StyleSheet, Text, View, Button } from 'react-native';
  3.  
  4. export default class Rules extends React.Component{
  5.   static navigationOptions = {
  6.     title: 'Regras',
  7.     headerStyle: {
  8.       backgroundColor: '#23BAA7',
  9.     },
  10.     headerTintColor: '#ffffff',
  11.     headerTitleStyle: {
  12.       fontSize: 'bold',
  13.       fontSize: 20,
  14.     },
  15.   };
  16.  
  17.     render(){
  18.       return (
  19.         <View style={styles.container}>
  20.           <View style={styles.border}>
  21.             <Text style={styles.title}>Jogo</Text>
  22.             <View style={styles.line}/>
  23.             <Text style={styles.text}>Após adicionar de 2 a 6 jogadores, botões com o nome de cada jogador aparecerá. Clique e segure no seu nome, assim que todos estiverem clicando em seu respectivo botão a partida iniciará.
  24. Uma palavra aparecerá na tela e o primeiro jogador a soltar o dedo fará com que o timer inicie e deverá usar esse tempo para cantar um trecho de uma música que contenha essa palavra ou similar.</Text>
  25.           </View>
  26.           <Text/>
  27.           <View style={styles.border}>
  28.             <Text style={styles.title}>Votação</Text>
  29.             <View style={styles.line}/>
  30.             <Text style={styles.text}>Cada jogador, exceto o que cantou, terá a chance de votar. Se você acha que a música cantada contém a palavra ou similar vote “Sim”, se não concorda com a música escolhida vote “Não”, e se não conhece a música ou acha que não deveria opinar vote “Não sei”.</Text>
  31.           </View>
  32.           <Text/>
  33.           <View style={styles.border}>
  34.             <Text style={styles.title}>Pontuação</Text>
  35.             <View style={styles.line}/>
  36.             <Text style={styles.text}>Numa partida, ou seja, para a palavra da vez, cada jogador só poderá cantar uma vez. Após a votação, se for decidido que o jogador merece ganhar o ponto, ele receberá uma quantidade x de pontos. Essa quantidade será decrescente, o primeiro que ganhar recebe x pontos, o segundo x-1 e assim sucessivamente.</Text>
  37.           </View>
  38.         </View>
  39.       );
  40.     }
  41.   }
  42.  
  43. const styles = StyleSheet.create({
  44.     container: {
  45.       flex: 1,
  46.       backgroundColor: '#4E555D',
  47.       alignItems: 'center',
  48.       justifyContent: 'center',
  49.     },
  50.     title: {
  51.       fontSize: 18,
  52.       textAlign: 'center',
  53.       margin: 10,
  54.       fontWeight:'600',
  55.       color: '#ffffff',
  56.     },
  57.     text: {
  58.       fontSize: 14,
  59.       textAlign: 'center',
  60.       margin: 10,
  61.       fontWeight:'200',
  62.       color: '#ffffff',
  63.       fontStyle: 'italic',
  64.       textAlign: 'justify',
  65.     },
  66.     border: {
  67.       borderColor: '#23BAA7',
  68.       borderRadius: 10,
  69.       borderWidth: 1,
  70.     },
  71.     line: {
  72.       borderBottomColor: '#23BAA7',
  73.       borderBottomWidth: 1,
  74.       marginLeft: 20,
  75.       marginRight:20,
  76.     }
  77.    
  78.   });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement