Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 2 additions & 22 deletions src/Components/TopBar/TopBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
}

.SearchBar {
margin-left: 2vw;
height: 44px;
box-sizing: border-box;
display: flex;
Expand All @@ -48,19 +49,7 @@
}

.space {
margin-right: 32px;
}

.space2 {
margin-right: 24px;
}

.parag {
position: relative;
align-items: center;
justify-content: space-between;
align-self: center;
vertical-align: middle;
margin-right: 2vw;
}

.box {
Expand Down Expand Up @@ -92,13 +81,4 @@
border: 1px solid rgba(35, 35, 35, 0.16);
border-radius: 8px;
}
.Avatar{
margin-right: 48px;
}

.Currency {
vertical-align: middle;
align-items: flex-start;
display: flex;
position: absolute;
}
64 changes: 30 additions & 34 deletions src/Components/TopBar/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { NavDropdown, Form } from "react-bootstrap";
import dollar from "./dollar.png";
// import btc from "./btc.png";
import avatar from "./avatar.jpg";
import zil from "./bell.jpg";
import bell from "./bell.jpg";
function TopBar() {
return (
<div className='topBar'>
Expand All @@ -16,9 +16,7 @@ function TopBar() {
</Form>{" "}
</div>
</div>

<div>
<span className="space2"></span>
<span className="Cryptos">Cryptos:</span>
<span className="CryptosData">27,200</span>
<span className="space"></span>
Expand All @@ -28,38 +26,36 @@ function TopBar() {
<span className="Cryptos">Dominance:</span>
<span className="CryptosData">BTC 39.7%</span>
</div>
<div className="mt-8">
<div className="box">
<img alt="" src={dollar} width="18" height="18" />
{"USD"}
<NavDropdown id="nav-dropdown-dark-example" title="" menuVariant="white">
<NavDropdown.Item href="#action/3.1">
<img alt="" src={dollar} width="18" height="18" />
{"TRY"}
</NavDropdown.Item>
<NavDropdown.Item href="#action/3.2">
<img alt="" src={dollar} width="18" height="18" />
{"BTC"}
</NavDropdown.Item>
<NavDropdown.Item href="#action/3.3">
<img alt="" src={dollar} width="18" height="18" />
{"ETH"}
</NavDropdown.Item>
<NavDropdown.Divider />
<NavDropdown.Item href="#action/3.4">Choose a currency</NavDropdown.Item>
</NavDropdown>
</div>
</div>
<div className="ntfc">
<div className="bell">
<img alt="bell" src={zil} width="18" height="18" />
</div>
</div>
<div className="Avatar">
<img alt="avatar" src={avatar} width="44" height="44" />
<div className="box">
<img alt="" src={dollar} width="18" height="18" />
{"USD"}
<NavDropdown id="nav-dropdown-dark-example" title="" menuVariant="white">
<NavDropdown.Item>
<img alt="" src={dollar} width="18" height="18" />
{"TRY"}
</NavDropdown.Item>
<NavDropdown.Item>
<img alt="" src={dollar} width="18" height="18" />
{"BTC"}
</NavDropdown.Item>
<NavDropdown.Item>
<img alt="" src={dollar} width="18" height="18" />
{"ETH"}
</NavDropdown.Item>
<NavDropdown.Divider />
<NavDropdown.Item>Choose a currency</NavDropdown.Item>
</NavDropdown>
</div>
<div className="ntfc">
<div className="bell">
<img alt="bell" src={bell} width="18" height="18" />
</div>
</div>
);
<div className="space">
<img alt="avatar" src={avatar} width="44" height="44" />
</div>
</div>
);
}

export default TopBar;
export default TopBar;