Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Home = ({ id, add1, add2, clicks, reputation, fetchedUser, go, priv, nick }) => (
- <Panel id="home">
- <Div>
- <div className="row">
- <div className="col-md-12">
- <div className="text-center text-muted">
- <h1>ACHAM COIN</h1>
- <h1>Майни вместе с нами!</h1>
- </div>
- <div className="text-center buttons">
- <div className="d-flex justify-content-around">
- <div className="justify-content-around">
- <button className="btn btn-rating">
- <Icon32Poll className="buttons_custom" />
- </button>
- <p className="text-buttons text-muted text-monospace">Топ игроков</p>
- </div>
- <div className="justify-content-around">
- <button className="btn btn-exchange">
- <Icon24Filter className="buttons_custom" />
- </button>
- <p className="text-buttons text-muted text-monospace">Дополнительно</p>
- </div>
- <div className="justify-content-around">
- <button className="btn btn-shop">
- <Icon24Flash className="buttons_custom" />
- </button>
- <p className="text-buttons text-muted text-monospace">Магазин</p>
- </div>
- </div>
- </div>
- </div>
- <div className="container">
- {fetchedUser &&
- <Group>
- <ListItem
- before={fetchedUser.photo_200 ? <Avatar src={fetchedUser.photo_200}/> : null}
- description={fetchedUser.city && fetchedUser.city.title ? fetchedUser.city.title : ''}
- >
- {`${fetchedUser.first_name} ${fetchedUser.last_name}`}
- {fetchedUser &&
- <Div>
- ID: {`${fetchedUser.id}`}
- </Div>
- }
- </ListItem>
- </Group>}
- <List>
- {fetchedUser &&
- <Cell before={<Icon24Mention className="CellIconCustom" />} asideContent={<b>{nick ? nick : 'Новичок'}</b>}>
- Никнейм:
- </Cell>
- }
- <Cell before={<Icon24User className="CellIconCustom" />} asideContent={<b>{priv ? priv : 'Пользователь'}</b>}>
- Привилегия:
- </Cell>
- <Cell before={<Icon24Coins className="CellIconCustom" />} asideContent={<b>{clicks}</b>}>
- Баланс:
- </Cell>
- <Cell before={<Icon24Favorite className="CellIconCustom" />} asideContent={<b>{reputation}</b>}>
- Рейтинг:
- </Cell>
- </List>
- </Group>
- <Group title="Майнить коины">
- <Div>
- <Button size="xl" level="primary" onClick={add1}>Клик</Button>
- </Div>
- </Group>
- <Group title="Купить рейтинг">
- <Div>
- <Button size="xl" level="primary" onClick={add2}>Купить рейтинг</Button>
- </Div>
- </Group>
- <head>
- <bgsound src="music.mp3" loop="1" volume="-1000" balance="0" />
- </head>
- </div>
- </div>
- </Div>
- </Panel>
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement