From d9961d11a0ccd0672ab656e8b090143294874e82 Mon Sep 17 00:00:00 2001 From: vibin Date: Wed, 25 Dec 2019 20:36:45 +0530 Subject: [PATCH] sidenav --- src/components/SideNav.js | 59 ++++++++++++++++++++++++++++++++++++++++++ src/stories/SideNav.stories.js | 10 +++++++ 2 files changed, 69 insertions(+) create mode 100644 src/components/SideNav.js create mode 100644 src/stories/SideNav.stories.js diff --git a/src/components/SideNav.js b/src/components/SideNav.js new file mode 100644 index 0000000..9af9d70 --- /dev/null +++ b/src/components/SideNav.js @@ -0,0 +1,59 @@ +import React from 'react'; +import {ReactComponent as Dashboard} from '../assets/dashboard.svg'; + +/** @jsx jsx */ +import { css, jsx } from '@emotion/core'; +const layout = css` + positon: absolute; + width:25%; + height:100vh; +`; +const linkStyle=css` + text-decoration: none; +`; +const listStyle=css` + list-style: none; +`; +const listLinkStyle =css` +padding: 10px 20px 10px 20px; +cursor: pointer; +:hover{ + border: 1px solid rgba(200,200,200,0.2); + } +`; + +export const SideNavBar = () => { + return ( +
+
+ +
+
+ ); +} diff --git a/src/stories/SideNav.stories.js b/src/stories/SideNav.stories.js new file mode 100644 index 0000000..ee81d96 --- /dev/null +++ b/src/stories/SideNav.stories.js @@ -0,0 +1,10 @@ +import React from 'react'; +import {SideNavBar} from '../components/SideNav'; + +export default { + title: 'SideNavBar', +} + +export const SideNav =() =>( + +) \ No newline at end of file