-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from straysh/dev-local
fixed #12 commit an aleph v0.2 UI
- Loading branch information
Showing
24 changed files
with
971 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ import Navbar from 'react-bootstrap/lib/Navbar'; | |
import Nav from 'react-bootstrap/lib/Nav'; | ||
import NavItem from 'react-bootstrap/lib/NavItem'; | ||
import Badge from 'react-bootstrap/lib/Badge'; | ||
import Button from 'react-bootstrap/lib/Button'; | ||
import NavDropdown from 'react-bootstrap/lib/NavDropdown'; | ||
import MenuItem from 'react-bootstrap/lib/MenuItem'; | ||
import history from '../../history'; | ||
|
@@ -23,52 +24,66 @@ import { User } from '../../actions'; | |
import s from './Header.css'; | ||
import Link from '../Link'; | ||
import Alerts from '../Alerts'; | ||
import Navigation from '../Navigation'; | ||
import logoUrl from './logo-small.png'; | ||
import logoUrl2x from './[email protected]'; | ||
import ethOffline from './eth_offline.svg'; | ||
import ethOnline from './eth_online.svg'; | ||
|
||
class Header extends React.Component { | ||
_gotoTokens(e) { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
history.replace('/tokens'); | ||
} | ||
|
||
render() { | ||
const { user } = this.props; | ||
return ( | ||
<Navbar inverse collapseOnSelect> | ||
<Navbar.Header> | ||
<Navbar.Brand> | ||
<Link className={s.brand} to="/"> | ||
<img | ||
src={logoUrl} | ||
width="32" | ||
height="32" | ||
alt="EchoWallet" | ||
className={s.App_logo} | ||
/> | ||
</Link> | ||
<span>加密国家</span> | ||
</Navbar.Brand> | ||
<Navbar.Toggle /> | ||
</Navbar.Header> | ||
<Navbar.Collapse> | ||
<Nav pullRight> | ||
<NavItem href="/dapp">市井</NavItem> | ||
<NavItem href="/myitems"> | ||
我的国家 <Badge>4</Badge> | ||
</NavItem> | ||
<NavItem href="#">D46202</NavItem> | ||
<NavItem href="#" onClick={this._gotoTokens} title="Connected:xxx"> | ||
{user.address || 'Online'} | ||
</NavItem> | ||
{/* <NavDropdown title={mapLocalesName()} id="language-you-choose"> */} | ||
{/* <MenuItem href="?lang=en-us">English</MenuItem> */} | ||
{/* <MenuItem href="?lang=zh-cn">CN</MenuItem> */} | ||
{/* </NavDropdown> */} | ||
</Nav> | ||
</Navbar.Collapse> | ||
</Navbar> | ||
<div className={s.root}> | ||
<div className={s.container}> | ||
<Navbar | ||
fluid | ||
collapseOnSelect | ||
style={{ backgroundColor: '#fff', borderColor: '#fff' }} | ||
> | ||
<Navbar.Header> | ||
<Navbar.Brand> | ||
加密国家 | ||
</Navbar.Brand> | ||
<Navbar.Toggle /> | ||
</Navbar.Header> | ||
<Navbar.Collapse> | ||
<Nav pullRight> | ||
<NavItem href="/dapp">市井</NavItem> | ||
<NavItem href="/myitems"> | ||
MY ITEMS <Badge>4</Badge> | ||
</NavItem> | ||
<NavItem href="#"> | ||
<Button bsStyle="primary" bsSize="xsmall"> | ||
D46202 | ||
</Button> | ||
</NavItem> | ||
<NavItem | ||
href="#" | ||
onClick={this._gotoTokens} | ||
title="Connected:xxx" | ||
> | ||
{user.address || ( | ||
<img | ||
src={ethOffline} | ||
width="35" | ||
height="35" | ||
alt="" | ||
/> | ||
)} | ||
</NavItem> | ||
{/* <NavDropdown title={mapLocalesName()} id="language-you-choose"> */} | ||
{/* <MenuItem href="?lang=en-us">English</MenuItem> */} | ||
{/* <MenuItem href="?lang=zh-cn">CN</MenuItem> */} | ||
{/* </NavDropdown> */} | ||
</Nav> | ||
</Navbar.Collapse> | ||
</Navbar> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
.card { | ||
cursor: pointer; | ||
border-radius: 5px; | ||
border: 1px solid #ccc; | ||
margin-bottom: 20px; | ||
|
||
} | ||
.countryCardBg{ | ||
border-top-left-radius: 5px; | ||
border-top-right-radius: 5px; | ||
display: block; | ||
background-color: #000; | ||
padding: 10px; | ||
} | ||
.flagImg{ | ||
float: left; | ||
width: 60px; | ||
border-radius: 5px; | ||
} | ||
.countryCardName{ | ||
float: right; | ||
text-align: right; | ||
color: #fff!important; | ||
font-weight: 700!important; | ||
font-size: 1.2em!important; | ||
letter-spacing: 1px; | ||
overflow: hidden; | ||
-o-text-overflow: ellipsis; | ||
text-overflow: ellipsis; | ||
white-space: pre; | ||
} | ||
.countryImg{ | ||
//margin: 5px; | ||
} | ||
.countryCardOwner{ | ||
font-weight: normal; | ||
font-size: 14px; | ||
height: 30px; | ||
line-height: 30px; | ||
background-color: rgb(59, 43, 200); | ||
color: rgb(255, 255, 255); | ||
text-align: center; | ||
} | ||
.content { | ||
padding: 10px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.column{ | ||
display: block; | ||
float: left; | ||
width: 50%; | ||
margin-bottom: 5px; | ||
//padding-top: 1rem; | ||
//padding-bottom: 1rem; | ||
} | ||
.listitem{ | ||
display: list-item; | ||
table-layout: fixed; | ||
padding: .21428571em 0; | ||
line-height: 1.14285714em; | ||
font-weight: 800!important; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: pre; | ||
box-sizing: inherit; | ||
} | ||
.header{ | ||
display: block; | ||
margin: 0; | ||
font-weight: 500!important; | ||
color: #999!important; | ||
font-size: .9em!important; | ||
overflow: hidden; | ||
-o-text-overflow: ellipsis; | ||
text-overflow: ellipsis; | ||
white-space: pre; | ||
box-sizing: inherit; | ||
} | ||
.purchase{ | ||
margin-top: 10px; | ||
border-top: 1px solid #ccc; | ||
box-sizing: inherit; | ||
overflow: hidden; | ||
-o-text-overflow: ellipsis; | ||
text-overflow: ellipsis; | ||
clear: both; | ||
a { | ||
padding: 7px 7px; | ||
align-items: center; | ||
font-size: 1em; | ||
border: 1px solid #ccc; | ||
border-color: rgba(34,36,38,.15); | ||
border-top-left-radius: 5px; | ||
border-bottom-left-radius: 5px; | ||
vertical-align: baseline; | ||
font-weight: 500; | ||
} | ||
a:hover,a:visited,a:link{ | ||
text-decoration: none; | ||
color: #000; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.card { | ||
display: block; | ||
content: " "; | ||
height: 0; | ||
clear: both; | ||
overflow: hidden; | ||
visibility: hidden; | ||
} | ||
.country-card { | ||
|
||
} | ||
.content { | ||
|
||
} | ||
.btcss { | ||
border: 1px solid #ccc; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.rank { | ||
margin-bottom: 20px; | ||
} |
Oops, something went wrong.