_6_List.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import React from 'react';
  2. import C from 'rn-class'
  3. C.addColor("#d7d7d7", "color-listbg");
  4. export default (props)=>{
  5. return (
  6. <C.View cls="flx1 bgc-color-white">
  7. <C.Comp.Header />
  8. <C.View cls="w100% ai-c flx1">
  9. <C.ScrollView>
  10. {/* main */}
  11. <C.View cls="h28 w100 ai-c pt2">
  12. <C.ImageBackground
  13. source={{uri : `https://picsum.photos/630/300?r=${(new Date).getTime()+Math.random()}` }}
  14. cls="w80 flx1 h20"
  15. // resizeMode="contain"
  16. >
  17. <C.View cls="flx1 bgc-rgba-black-0_3">
  18. <C.View cls="flx-row w100% jc-sb ph5 pt0.6">
  19. <C.Text cls="f2.3 color-white txt-sdof2 tsdo-r20 tsdoc-rgba-black-0_9 ">
  20. 오늘의 생각
  21. </C.Text>
  22. <C.Text cls="f2.3 color-white txt-sdof2 tsdo-r20 tsdoc-rgba-black-0_9 ">
  23. Category
  24. </C.Text>
  25. </C.View>
  26. <C.View cls="w100% ai-c pt1">
  27. <C.Text cls="f3.4 color-white txt-sdof2 tsdo-r20 tsdoc-rgba-black-0_9 ">
  28. 마음의 양식
  29. </C.Text>
  30. <C.Text cls="f2.2 ta-c w80% flx-w color-white txt-sdof2 tsdo-r20 tsdoc-rgba-black-0_9">
  31. 가나다라마바사아자차카타파하 가나다라마바사아자차카타파하
  32. </C.Text>
  33. </C.View>
  34. <C.View cls="w100% ai-c pt2">
  35. <C.EL.Icon type={"entypo"} name="controller-play" {...C.n2cls("color-white")} {...C.n2cls("size9")}/>
  36. </C.View>
  37. </C.View>
  38. </C.ImageBackground>
  39. </C.View>
  40. {/* weekday*/}
  41. <C.View cls="w100% mt2 bgc-rgba-gray-dark-0_2 ph3">
  42. <C.Text cls="f2.6">
  43. weekday
  44. </C.Text>
  45. </C.View>
  46. <C.View cls="pt2">
  47. <C.ScrollView horizontal cls="pv1">
  48. <Imgs></Imgs>
  49. <Imgs></Imgs>
  50. <Imgs></Imgs>
  51. </C.ScrollView>
  52. </C.View>
  53. <C.View cls="w100% mt2 bgc-rgba-gray-dark-0_2 ph3">
  54. <C.Text cls="f2.6">
  55. weekend
  56. </C.Text>
  57. </C.View>
  58. <C.View cls="pt2">
  59. <C.ScrollView horizontal cls="pv1">
  60. <Imgs></Imgs>
  61. <Imgs></Imgs>
  62. <Imgs></Imgs>
  63. </C.ScrollView>
  64. </C.View>
  65. </C.ScrollView>
  66. </C.View>
  67. </C.View>
  68. )
  69. }
  70. const Imgs = ()=>{
  71. return (
  72. <C.ImageBackground
  73. source={{uri : `https://picsum.photos/630/300?r=${(new Date).getTime()+Math.random()}` }}
  74. cls="w45 flx1 h20 mh2.5"
  75. // resizeMode="contain"
  76. >
  77. <C.View cls="flx1 bgc-rgba-black-0_3 ai-e">
  78. <C.EL.Icon type="entypo" name="lock" ccls="ma2" {...C.n2cls("color-white")}/>
  79. </C.View>
  80. </C.ImageBackground>
  81. )
  82. }