modified side navbar to include wallet card
This commit is contained in:
parent
0664ca81d9
commit
cd31780e96
@ -1,6 +1,7 @@
|
||||
import React, {Component} from "react";
|
||||
import {NewTickMessage} from "../types";
|
||||
import {SidebarCard} from "./HCard";
|
||||
import {SidebarCard, WalletCard} from "./HCard";
|
||||
import {DollarIcon} from "./Icons";
|
||||
|
||||
export class Navbar extends Component<any, any> {
|
||||
constructor(props) {
|
||||
@ -10,21 +11,11 @@ export class Navbar extends Component<any, any> {
|
||||
render() {
|
||||
return (
|
||||
<nav
|
||||
className="ml-1 w-24 flex flex-col items-center bg-gray-800 dark:bg-gray-800 py-4 my-1 rounded-tl rounded-bl">
|
||||
<div>
|
||||
<a href={"#"} className={"flex flex-col items-center"}>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"
|
||||
className={"text-white w-7 fill-current"}>
|
||||
<path
|
||||
d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"/>
|
||||
</svg>
|
||||
</a>
|
||||
className="ml-1 w-24 flex flex-col items-center bg-gray-700 dark:bg-gray-700 py-4 my-1 rounded-tl rounded-bl">
|
||||
|
||||
</div>
|
||||
|
||||
<ul className="mt-2 text-gray-700 dark:text-gray-400 capitalize">
|
||||
<ul className="flex-1 mt-2 text-gray-700 dark:text-gray-400 capitalize">
|
||||
{/* Links */}
|
||||
<li className="mt-3 p-2 text-blue-600 dark:text-blue-300 rounded-lg">
|
||||
<li className="mt-3 p-2 text-gray-400 dark:text-blue-300 rounded-lg">
|
||||
<a href="#" className=" flex flex-col items-center">
|
||||
<svg className="fill-current h-5 w-5" viewBox="0 0 24 24">
|
||||
<path
|
||||
@ -34,7 +25,25 @@ export class Navbar extends Component<any, any> {
|
||||
</svg>
|
||||
<span className="text-xs mt-2 text-gray-300">Dashboard</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
<li className="mt-3 p-2 text-gray-400 dark:text-blue-300 rounded-lg">
|
||||
<a href="#" className=" flex flex-col items-center">
|
||||
<svg className="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z" />
|
||||
</svg>
|
||||
<span className="text-xs mt-2 text-gray-300">Reports</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul className="text-gray-700 dark:text-gray-400 capitalize">
|
||||
<li className="mt-auto p-2 text-gray-400 dark:text-blue-300 rounded-lg">
|
||||
<a href="#" className=" flex flex-col items-center">
|
||||
<svg className="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
|
||||
</svg>
|
||||
<span className="text-xs mt-2 text-gray-300">Settings</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
@ -50,71 +59,9 @@ export class Sidebar extends Component<NewTickMessage, any> {
|
||||
render() {
|
||||
return (
|
||||
<aside
|
||||
className="w-1/4 my-1 mr-1 pl-6 pr-2 py-4 flex flex-col bg-gray-200 dark:bg-black
|
||||
className="w-1/4 my-1 mr-1 pr-2 py-4 flex flex-col bg-gray-200 dark:bg-black
|
||||
dark:text-gray-400 rounded-r-lg overflow-y-auto">
|
||||
|
||||
<div className="flex flex-wrap justify-center">
|
||||
<SidebarCard title={"Current price"} content={"$" + this.props.price.toFixed(2).toString()}/>
|
||||
<SidebarCard title={"Current tick"} content={this.props.tick.toString()}/>
|
||||
</div>
|
||||
|
||||
|
||||
{/* <button*/}
|
||||
{/* className="mt-8 flex items-center py-4 px-3 text-white rounded-lg*/}
|
||||
{/*bg-green-400 shadow focus:outline-none">*/}
|
||||
{/* /!*Action*!/*/}
|
||||
{/* <svg className="h-5 w-5 fill-current mr-2 ml-3" viewBox="0 0 24 24">*/}
|
||||
{/* <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>*/}
|
||||
{/* </svg>*/}
|
||||
|
||||
{/* <span>Bill your Students</span>*/}
|
||||
|
||||
{/* </button>*/}
|
||||
|
||||
{/* <div className="mt-12 flex items-center">*/}
|
||||
{/* /!*Payments*!/*/}
|
||||
{/* <span>Payments</span>*/}
|
||||
{/* <button className="ml-2 focus:outline-none">*/}
|
||||
{/* <svg className="h-5 w-5 fill-current" viewBox="0 0 256 512">*/}
|
||||
{/* <path*/}
|
||||
{/* d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9*/}
|
||||
{/* 0l-22.6-22.6c-9.4-9.4-9.4-24.6*/}
|
||||
{/* 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3*/}
|
||||
{/* 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1*/}
|
||||
{/* 34z"/>*/}
|
||||
{/* </svg>*/}
|
||||
{/* </button>*/}
|
||||
{/* </div>*/}
|
||||
|
||||
{/* <a*/}
|
||||
{/* href="/"*/}
|
||||
{/* className="mt-8 p-4 flex justify-between bg-gray-300 rounded-lg*/}
|
||||
{/*font-semibold capitalize">*/}
|
||||
{/* /!*Link*!/*/}
|
||||
{/* <div className="flex">*/}
|
||||
|
||||
{/* <img*/}
|
||||
{/* className="h-10 w-10 rounded-full object-cover"*/}
|
||||
{/* src="https://lh3.googleusercontent.com/cX0xwvJKCNIFrl2wIwoYiIURxmZt1y7tF3wJvynqcnQG5tmYdKBLpDDvhXzmVZzrstAEkw=s151"*/}
|
||||
{/* alt="veldora profile"/>*/}
|
||||
|
||||
{/* <div className="flex flex-col ml-4">*/}
|
||||
|
||||
{/* <span>veldora</span>*/}
|
||||
{/* <span className="text-sm text-gray-600">english</span>*/}
|
||||
|
||||
{/* </div>*/}
|
||||
|
||||
{/* </div>*/}
|
||||
|
||||
{/* <span>$ 25</span>*/}
|
||||
|
||||
{/* </a>*/}
|
||||
|
||||
{/* <div className="mt-4 flex justify-center capitalize text-blue-600">*/}
|
||||
{/* <a href="#">see all</a>*/}
|
||||
{/* </div>*/}
|
||||
|
||||
<WalletCard/>
|
||||
</aside>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user