Browse Source

styles tuning

feature/upgrade_sdk
Carmine De Rosa 5 years ago
parent
commit
731d9cdb3b
  1. 5
      vds-app/App/components/Variables.js
  2. 12
      vds-app/App/screens/Quiz.js
  3. 18
      vds-app/App/screens/Setup.js
  4. 2
      vds-app/app.json

5
vds-app/App/components/Variables.js

@ -73,7 +73,7 @@ export const texts = {
materials: "Materiali", materials: "Materiali",
flightSafety: "Sicurezza del volo", flightSafety: "Sicurezza del volo",
examScheme: "Schema domande d'esame", examScheme: "Schema domande d'esame",
setupScheme: "Setup dell'applicazione",
setupScheme: "Configurazione dell'applicazione",
setupRandomCheck: "Visualizza le domande per argomento in ordine casuale", setupRandomCheck: "Visualizza le domande per argomento in ordine casuale",
setupExcludeDelta: "Escludi le domande relative all'esame per deltaplano", setupExcludeDelta: "Escludi le domande relative all'esame per deltaplano",
resultsScheme: "Calcolo risultati", resultsScheme: "Calcolo risultati",
@ -81,7 +81,8 @@ export const texts = {
false: "Falso", false: "Falso",
trueFalse: "Test Vero/Falso", trueFalse: "Test Vero/Falso",
trueFalseSubtitle: "10 domande casuali con risposte Vero/Falso", trueFalseSubtitle: "10 domande casuali con risposte Vero/Falso",
goToQuestion: "Vai ad una domanda specifica..."
goToQuestion: "Seleziona ad una domanda specifica...",
lens: "\uD83D\uDD0D"
} }
export const examScheme = [ export const examScheme = [

12
vds-app/App/screens/Quiz.js

@ -48,17 +48,20 @@ const styles = StyleSheet.create({
height: "100%" height: "100%"
}, },
dropdown: { dropdown: {
marginTop: 20,
color: colors.white, color: colors.white,
fontSize: 16, fontSize: 16,
borderRadius: 10,
width: "100%", width: "100%",
textAlign: "center",
textAlign: "left",
fontWeight: "600", fontWeight: "600",
backgroundColor: 'transparent',
backgroundColor: colors.white_alpha
}, },
dropdownItem: { dropdownItem: {
color: colors.white, color: colors.white,
fontSize: 20,
textAlign: "center",
fontSize: 16,
borderRadius: 10,
textAlign: "left",
fontWeight: "600" fontWeight: "600"
}, },
bannerContainer: { bannerContainer: {
@ -232,7 +235,6 @@ class Quiz extends React.Component {
</Text> </Text>
<Picker <Picker
label={texts.goToQuestion}
style={styles.dropdown} style={styles.dropdown}
itemStyle={styles.dropdownItem} itemStyle={styles.dropdownItem}
onValueChange={(itemValue, itemIndex) => this.jumpTo(itemValue, itemIndex)} onValueChange={(itemValue, itemIndex) => this.jumpTo(itemValue, itemIndex)}

18
vds-app/App/screens/Setup.js

@ -1,17 +1,17 @@
import React from "react" import React from "react"
import { View, ScrollView, StyleSheet, StatusBar, Text, CheckBox, SafeAreaView, Dimensions, Image, BackHandler, AsyncStorage} from "react-native"
import { View, ScrollView, StyleSheet, StatusBar, Text, CheckBox, SafeAreaView, Dimensions, Image, ImageBackground, BackHandler, AsyncStorage} from "react-native"
import { Button, ButtonContainer } from "../components/Button" import { Button, ButtonContainer } from "../components/Button"
import { colors, texts, examScheme, resultsScheme} from "../components/Variables" import { colors, texts, examScheme, resultsScheme} from "../components/Variables"
const bgImage = require("../assets/bg.jpg")
const screen = Dimensions.get("window") const screen = Dimensions.get("window")
const header = require("../assets/header.png")
const pkg = require('../../app.json') const pkg = require('../../app.json')
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
backgroundColor: colors.dark_blue,
//backgroundColor: colors.dark_blue,
flex: 1 flex: 1
}, },
safearea: { safearea: {
@ -20,7 +20,10 @@ const styles = StyleSheet.create({
justifyContent: "space-between", justifyContent: "space-between",
paddingHorizontal: 10 paddingHorizontal: 10
}, },
bg: {
width: "100%",
height: "100%"
},
box: { box: {
width: screen.width-20, width: screen.width-20,
paddingHorizontal: 10 paddingHorizontal: 10
@ -36,7 +39,8 @@ const styles = StyleSheet.create({
textShadowRadius: 5 textShadowRadius: 5
}, },
title: { title: {
paddingTop: 30,
paddingTop: 40,
paddingBottom: 20,
color: colors.white, color: colors.white,
fontSize: 18, fontSize: 18,
textTransform: "uppercase", textTransform: "uppercase",
@ -171,6 +175,7 @@ class Setup extends React.Component {
render() { render() {
return ( return (
<ImageBackground source={bgImage} style={styles.bg} resizeMode="cover">
<View style={styles.container} > <View style={styles.container} >
<SafeAreaView style={styles.safearea}> <SafeAreaView style={styles.safearea}>
@ -192,7 +197,7 @@ class Setup extends React.Component {
<Text style={styles.checkboxLabel}>{texts.setupRandomCheck}</Text> <Text style={styles.checkboxLabel}>{texts.setupRandomCheck}</Text>
</View> </View>
<View style={styles.checkboxContainer}>
<View style={[styles.checkboxContainer, styles.noBorder]}>
<CheckBox <CheckBox
value={this.state.setupData.excludeDelta} value={this.state.setupData.excludeDelta}
onValueChange={() => this.changeSetup('excludeDelta')} onValueChange={() => this.changeSetup('excludeDelta')}
@ -210,6 +215,7 @@ class Setup extends React.Component {
</SafeAreaView> </SafeAreaView>
</View> </View>
</ImageBackground>
) )
} }
} }

2
vds-app/app.json

@ -8,7 +8,7 @@
"ios", "ios",
"android" "android"
], ],
"version": "3.1.1",
"version": "3.5.1",
"orientation": "portrait", "orientation": "portrait",
"icon": "./assets/icon.png", "icon": "./assets/icon.png",
"splash": { "splash": {

Loading…
Cancel
Save