style.js 4.62 KB
Newer Older
1 2 3 4 5 6 7 8
import {Dimensions, StyleSheet} from 'react-native';
import dimension from '../../values/dimension';
import colors from '../../values/colors';
const windowWidth = Dimensions.get('window').width;
const windowHeight = Dimensions.get('window').height;
const styles = StyleSheet.create({
  container: {
    flex: 1,
dungtnguyen's avatar
dungtnguyen committed
9
    padding: 10,
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  },
  flexRow: {
    flexDirection: 'row',
  },
  centerContent: {
    alignItems: 'center',
    padding: 10,
  },
  viewImageProfile: {
    width: windowWidth - 20,
    height: 370,
    alignItems: 'center',
    borderWidth: 1,
    backgroundColor: colors.white,
    borderColor: colors.white,
    marginBottom: 10,
dungtnguyen's avatar
dungtnguyen committed
26
    borderRadius: 5,
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
  },
  viewCardProfile: {
    width: windowWidth - 20,
    height: 370,
    borderWidth: 1,
    backgroundColor: colors.white,
    borderColor: colors.white,
  },
  coverImage: {
    width: windowWidth - 20,
    height: 240,
    alignItems: 'flex-end',
    justifyContent: 'flex-end',
    resizeMode: 'contain',
  },
  viewAvatar: {
    borderWidth: 5,
    borderRadius: 60,
    borderColor: 'white',
    marginTop: -50,
    backgroundColor: 'white',
  },
  imgAvatar: {
    width: 80,
    height: 80,
    resizeMode: 'contain',
    alignSelf: 'center',
    borderRadius: 60,
  },
  imgFrame: {
    width: 120,
    height: 120,
    resizeMode: 'contain',
    alignSelf: 'center',
    justifyContent: 'center',
    borderRadius: 30,
  },
  imgAvatarFullScreen: {
    width: windowWidth,
    height: windowHeight,
  },
  btnClose: {
    position: 'absolute',
    top: 10,
    right: 10,
    zIndex: 100,
  },
  imgClose: {
    width: 30,
    height: 30,
    position: 'absolute',
    top: 10,
    right: 10,
    zIndex: 100,
  },
  viewFullScreen: {
    width: windowWidth,
    height: windowHeight,
  },
  viewInfo: {
dungtnguyen's avatar
dungtnguyen committed
87
    width: '100%',
88 89
    alignSelf: 'center',
    borderWidth: 1,
dungtnguyen's avatar
dungtnguyen committed
90
    borderRadius: 5,
91 92 93 94 95 96 97 98 99
    backgroundColor: colors.white,
    borderColor: colors.white,
    padding: 10,
    marginTop: 10,
  },
  viewTitle: {
    borderBottomColor: 'gray',
    borderBottomWidth: 1,
    marginBottom: 10,
dungtnguyen's avatar
dungtnguyen committed
100
    paddingHorizontal: 10,
101 102
    flexDirection: 'row',
    alignItems: 'center',
dungtnguyen's avatar
dungtnguyen committed
103
    justifyContent: 'space-between',
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
  },
  paddingView: {
    padding: 20,
  },
  marginBottom: {
    marginBottom: 20,
  },
  rightView: {
    flexDirection: 'row',
    flex: 1,
  },
  viewItem: {
    flexDirection: 'row',
    borderBottomWidth: 1,
    borderBottomColor: '#f6f6f6',
dungtnguyen's avatar
dungtnguyen committed
119
    paddingVertical: 10,
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
  },
  btnSubmit: {
    backgroundColor: '#5d78ff',
    justifyContent: 'center',
    alignItems: 'center',
    height: 40,
    borderRadius: 8,
    width: 100,
  },
  btnCancel: {
    backgroundColor: colors.white,
    justifyContent: 'center',
    alignItems: 'center',
    height: 40,
    borderRadius: 8,
    width: 100,
  },
  whiteTxt: {
    color: colors.white,
    fontWeight: '500',
  },
  blueTxt: {
    color: '#5d78ff',
    fontWeight: '500',
  },
  dropdown1DropdownStyle: {backgroundColor: '#EFEFEF'},
  dropdown1RowStyle: {},
  dropdown1RowTxtStyle: {color: '#444', textAlign: 'center'},
  dropdown1BtnStyle: {
    backgroundColor: '#FFF',
    borderColor: 'red',
    width: 130,
  },
  dropdown1BtnTxtStyle: {textAlign: 'left', fontSize: 14},
  centeredView: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    marginTop: 22,
  },
  modalView: {
    margin: 20,
    backgroundColor: 'white',
    borderRadius: 20,
    padding: 35,
    alignItems: 'center',
    shadowColor: '#000',
    shadowOffset: {
      width: 0,
      height: 2,
    },
    shadowOpacity: 0.25,
    shadowRadius: 4,
    elevation: 5,
  },
  button: {
    borderRadius: 20,
    padding: 10,
    elevation: 2,
  },
  buttonOpen: {
    backgroundColor: '#F194FF',
  },
  buttonClose: {
    backgroundColor: '#2196F3',
  },
  textStyle: {
    color: 'white',
    fontWeight: 'bold',
    textAlign: 'center',
  },
  modalText: {
    marginBottom: 15,
    textAlign: 'center',
  },
  hiddenItem: {
    flexDirection: 'row',
    paddingTop: 10,
    flex: 1,
    justifyContent: 'flex-end',
  },
  item: {
    width: '90%',
    height: 70,
    marginVertical: 10,
    justifyContent: 'center',
    paddingLeft: 20,
    backgroundColor: '#FFFFFF',
    borderRadius: 10,

    shadowOpacity: 0.08,
    shadowOffset: {
      width: 0,
      height: 20,
    },
    shadowRadius: 10,
    elevation: 5,
    flexDirection: 'row',
  },
dungtnguyen's avatar
dungtnguyen committed
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
  activeDot: {
    backgroundColor: colors.purple_blue,
    width: 25,
    height: 8,
    borderRadius: 4,
  },
  avatarFrame: {
    width: 100,
    height: 100,
    resizeMode: 'contain',
    alignSelf: 'center',
    borderRadius: 60,
    zIndex: -100,
  },
  infoView: {flexDirection: 'row', paddingVertical: 10},
234 235 236
});

export default styles;