diff --git a/src/components/DropDown/index.js b/src/components/DropDown/index.js new file mode 100644 index 0000000..bf2a574 --- /dev/null +++ b/src/components/DropDown/index.js @@ -0,0 +1,52 @@ +import React, { Component } from 'react'; +import styled from 'styled-components'; + +const DropDownWrapper = styled.div` + position: relative; + display: inline-block; +`; + +const DropDownButton = styled.button` + width: 160px; + background-color: white; + color: #5f7183; + font-family: 'Open Sans'; + border: 1px solid #0085ff; + border-radius: 2px; + font-size: 16px; + cursor: pointer; +`; + +const DropDownContent = styled.div` + display: none; + position: absolute; + background-color: #f9f9f9; + min-width: 160px; + border-radius: 0px 0px 2px 2px; + box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); + z-index: 1; + a { + color: black; + padding: 5px 5px; + text-decoration: none; + display: block; + } + ${DropDownWrapper}:hover & { + display: block; + } +`; + +export default class DropDown extends Component { + render() { + return ( + + Drop Down + + Link 1 + Link 2 + Link 3 + + + ); + } +} diff --git a/src/components/Modal/index.js b/src/components/Modal/index.js index 75744bf..229b0d3 100644 --- a/src/components/Modal/index.js +++ b/src/components/Modal/index.js @@ -43,7 +43,7 @@ const ModalHead = styled.div` width: 100%; padding: 10px 0; `; -const ModalFooter = styled.div``; +const ModalFooter = styled.div`padding: 12px;`; export default class Modal extends Component { render() { diff --git a/src/containers/api/index.js b/src/containers/api/index.js index 20f741e..5745911 100644 --- a/src/containers/api/index.js +++ b/src/containers/api/index.js @@ -10,6 +10,7 @@ import * as ApiActions from '../../components/Actions/actions'; import timeBlue from './timeblue.svg'; import timeRed from './timered.svg'; import noteGray from './notesgray.svg'; +import DropDown from '../../components/DropDown'; const HeaderDiv = styled.div` button { @@ -231,10 +232,10 @@ class Api extends Component { >
- Start Blue clock icon + Start Blue clock icon
- EndRed clock icon + EndRed clock icon
NoteGrey note icon