|
| 1 | +/* eslint-disable import/prefer-default-export */ |
| 2 | +import styled from "styled-components"; |
| 3 | + |
| 4 | +export const DrawerBg = styled.div` |
| 5 | + @-webkit-keyframes slide-in-right { |
| 6 | + 0% { |
| 7 | + -webkit-transform: translateX(1000px); |
| 8 | + transform: translateX(1000px); |
| 9 | + opacity: 0; |
| 10 | + } |
| 11 | + 100% { |
| 12 | + -webkit-transform: translateX(0); |
| 13 | + transform: translateX(0); |
| 14 | + opacity: 1; |
| 15 | + } |
| 16 | + } |
| 17 | + @keyframes slide-in-right { |
| 18 | + 0% { |
| 19 | + -webkit-transform: translateX(1000px); |
| 20 | + transform: translateX(1000px); |
| 21 | + opacity: 0; |
| 22 | + } |
| 23 | + 100% { |
| 24 | + -webkit-transform: translateX(0); |
| 25 | + transform: translateX(0); |
| 26 | + opacity: 1; |
| 27 | + } |
| 28 | + } |
| 29 | +
|
| 30 | + display: flex; |
| 31 | + align-items: center; |
| 32 | + justify-content: flex-end; |
| 33 | + background: transparent; |
| 34 | + width: 100%; |
| 35 | + margin: 0; |
| 36 | + padding: 0; |
| 37 | + height: 100vh; |
| 38 | + margin-top: -1.5rem; |
| 39 | + position: absolute; |
| 40 | + z-index: 99; |
| 41 | + -webkit-animation: slide-in-right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) |
| 42 | + both; |
| 43 | + animation: slide-in-right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; |
| 44 | +
|
| 45 | + @media only screen and (min-width: 769px) { |
| 46 | + display: none; |
| 47 | + } |
| 48 | +`; |
| 49 | + |
| 50 | +export const DrawerWrapper = styled.div` |
| 51 | + width: 40vw; |
| 52 | + min-width: 12rem; |
| 53 | + background: #2e2e2e; |
| 54 | + height: 100vh; |
| 55 | + max-width: 250px; |
| 56 | + display: flex; |
| 57 | + align-items: flex-start; |
| 58 | + justify-content: space-between; |
| 59 | +`; |
| 60 | + |
| 61 | +export const DrawerLinksList = styled.nav` |
| 62 | + display: flex; |
| 63 | + list-style: none; |
| 64 | + justify-content: space-evenly; |
| 65 | + align-items: flex-start; |
| 66 | + flex-direction: column; |
| 67 | + margin-left: 1rem; |
| 68 | +
|
| 69 | + a { |
| 70 | + color: #fff; |
| 71 | + transition: 0.2s; |
| 72 | + &:hover { |
| 73 | + color: #ffdf28; |
| 74 | + } |
| 75 | + } |
| 76 | +`; |
| 77 | + |
| 78 | +export const DrawerLinkItem = styled.li` |
| 79 | + text-decoration: none; |
| 80 | + margin: 1rem; |
| 81 | +
|
| 82 | + a { |
| 83 | + text-decoration: none; |
| 84 | + color: #fff; |
| 85 | + } |
| 86 | +`; |
0 commit comments