Advertisement
Guest User

Соситехуй

a guest
May 25th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. const Home = ({ id, add1, add2, clicks, reputation, fetchedUser, go, priv, nick }) => (
  2. <Panel id="home">
  3. <Div>
  4. <div className="row">
  5. <div className="col-md-12">
  6. <div className="text-center text-muted">
  7. <h1>ACHAM COIN</h1>
  8. <h1>Майни вместе с нами!</h1>
  9. </div>
  10. <div className="text-center buttons">
  11. <div className="d-flex justify-content-around">
  12. <div className="justify-content-around">
  13. <button className="btn btn-rating">
  14. <Icon32Poll className="buttons_custom" />
  15. </button>
  16. <p className="text-buttons text-muted text-monospace">Топ игроков</p>
  17. </div>
  18. <div className="justify-content-around">
  19. <button className="btn btn-exchange">
  20. <Icon24Filter className="buttons_custom" />
  21. </button>
  22. <p className="text-buttons text-muted text-monospace">Дополнительно</p>
  23. </div>
  24. <div className="justify-content-around">
  25. <button className="btn btn-shop">
  26. <Icon24Flash className="buttons_custom" />
  27. </button>
  28. <p className="text-buttons text-muted text-monospace">Магазин</p>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <div className="container">
  34.  
  35. {fetchedUser &&
  36. <Group>
  37. <ListItem
  38. before={fetchedUser.photo_200 ? <Avatar src={fetchedUser.photo_200}/> : null}
  39. description={fetchedUser.city && fetchedUser.city.title ? fetchedUser.city.title : ''}
  40. >
  41. {`${fetchedUser.first_name} ${fetchedUser.last_name}`}
  42. {fetchedUser &&
  43. <Div>
  44. ID: {`${fetchedUser.id}`}
  45. </Div>
  46. }
  47. </ListItem>
  48. </Group>}
  49. <List>
  50. {fetchedUser &&
  51. <Cell before={<Icon24Mention className="CellIconCustom" />} asideContent={<b>{nick ? nick : 'Новичок'}</b>}>
  52. Никнейм:
  53. </Cell>
  54. }
  55. <Cell before={<Icon24User className="CellIconCustom" />} asideContent={<b>{priv ? priv : 'Пользователь'}</b>}>
  56. Привилегия:
  57. </Cell>
  58. <Cell before={<Icon24Coins className="CellIconCustom" />} asideContent={<b>{clicks}</b>}>
  59. Баланс:
  60. </Cell>
  61. <Cell before={<Icon24Favorite className="CellIconCustom" />} asideContent={<b>{reputation}</b>}>
  62. Рейтинг:
  63. </Cell>
  64. </List>
  65. </Group>
  66. <Group title="Майнить коины">
  67. <Div>
  68. <Button size="xl" level="primary" onClick={add1}>Клик</Button>
  69. </Div>
  70. </Group>
  71. <Group title="Купить рейтинг">
  72. <Div>
  73. <Button size="xl" level="primary" onClick={add2}>Купить рейтинг</Button>
  74. </Div>
  75. </Group>
  76. <head>
  77. <bgsound src="music.mp3" loop="1" volume="-1000" balance="0" />
  78. </head>
  79. </div>
  80. </div>
  81. </Div>
  82. </Panel>
  83. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement