-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
81 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import styled from "@emotion/styled" | ||
import { theme } from "@styles/theme" | ||
import { NavLink } from "react-router-dom" | ||
import openEye from "../../../assets/icons/openEye.svg"; | ||
|
||
export const Navigationbar = () => { | ||
return ( | ||
<Wrapper> | ||
<NavBtn> | ||
<img src={openEye}/> | ||
</NavBtn> | ||
|
||
|
||
<NavBtn> | ||
<img src={openEye}/> | ||
</NavBtn> | ||
|
||
|
||
<NavBtn> | ||
<img src={openEye}/> | ||
</NavBtn> | ||
<NavBorder/> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
const Wrapper = styled.nav` | ||
display: flex; | ||
border-radius: 30px; | ||
width: 200px; | ||
height: 50px; | ||
position: relative; | ||
background-color: ${theme.palette.background}; | ||
border: 1px solid ${theme.palette.gray_800}; | ||
filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.12)) drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.24)); | ||
` | ||
const NavBtn = styled.button` | ||
flex-grow: 1 | ||
z-index: 1; | ||
cursor: pointer; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 50%; | ||
position : relative; | ||
.active{ | ||
transform: translate3d(0, -.8em , 0); | ||
} | ||
` | ||
|
||
const NavBorder = styled.div` | ||
position: absolute; | ||
background-color: ${theme.palette.background}; | ||
left:0; | ||
bottom: 99%; | ||
` |
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,16 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { BrowserRouter, Routes } from 'react-router-dom'; | ||
import { Navigationbar } from '.'; | ||
|
||
const meta = { | ||
title: 'Atom/Navigationbar', | ||
component: Navigationbar, | ||
tags: ['autodocs'], | ||
} satisfies Meta<typeof Navigationbar>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Navigation: Story = { | ||
|
||
}; |