Created
August 4, 2020 10:49
-
-
Save DZuz14/e900026f6a1cffff62b7b93ccfcaccd4 to your computer and use it in GitHub Desktop.
React Spotify P1 Playbar
This file contains hidden or 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
/** @jsx jsx */ | |
import React from 'react' | |
import { css, jsx } from '@emotion/core' | |
const Playbar = ({ children }) => ( | |
<div | |
className="Playbar" | |
css={css` | |
position: absolute; | |
bottom: 0; | |
left: 0; | |
width: 100%; | |
height: 75px; | |
background: #282828; | |
z-index: 99; | |
padding: 20px; | |
`} | |
> | |
{children} | |
</div> | |
) | |
export default Playbar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment