|
| 1 | +import styled from 'styled-components'; |
| 2 | + |
| 3 | +export const RackDetailWrapper = styled.div` |
| 4 | + display: flex; |
| 5 | + flex-direction: column; |
| 6 | + padding: 16px; |
| 7 | + gap: 52px; |
| 8 | +`; |
| 9 | + |
| 10 | +export const TitleWrapper = styled.div` |
| 11 | + width: 600px; |
| 12 | + display: flex; |
| 13 | + justify-content: center; |
| 14 | + align-items: center; |
| 15 | +`; |
| 16 | + |
| 17 | +export const Title = styled.span` |
| 18 | + font-size: 24px; |
| 19 | + font-weight: 600; |
| 20 | + letter-spacing: 2px; |
| 21 | +`; |
| 22 | + |
| 23 | +export const LayerWrapper = styled.div` |
| 24 | + display: flex; |
| 25 | + align-items: center; |
| 26 | + justify-content: space-between; |
| 27 | + position: relative; |
| 28 | + padding-bottom: 16px; |
| 29 | +`; |
| 30 | + |
| 31 | +export const DotLine = styled.div` |
| 32 | + position: absolute; |
| 33 | + left: 45%; |
| 34 | + top: 200%; |
| 35 | + width: 0; /* 배경 대신 border 사용 */ |
| 36 | + height: 60px; |
| 37 | + border-left: 2px dotted rgba(0, 0, 0, 0.5); /* 점선 효과 */ |
| 38 | +`; |
| 39 | + |
| 40 | +export const LayerLevel = styled.span` |
| 41 | + font-size: 22px; |
| 42 | + font-weight: 400; |
| 43 | +`; |
| 44 | + |
| 45 | +export const LayerSquareWrapper = styled.div` |
| 46 | + position: relative; |
| 47 | +`; |
| 48 | + |
| 49 | +export const LayerRate = styled.span` |
| 50 | + position: absolute; |
| 51 | + top: 50%; |
| 52 | + left: 50%; |
| 53 | + transform: translate(-50%, -50%); |
| 54 | + font-size: 18px; |
| 55 | + font-weight: 500; |
| 56 | +`; |
| 57 | + |
| 58 | +export const LayerSquare = styled.div<{ $color?: 'red' | 'blue' | 'green' | 'yellow' }>` |
| 59 | + width: 100px; |
| 60 | + height: 40px; |
| 61 | + background: ${({ $color }) => |
| 62 | + $color === 'blue' |
| 63 | + ? 'linear-gradient(135deg, rgb(91, 143, 249, 0.9), rgba(91, 143, 249, 0.7))' |
| 64 | + : $color === 'green' |
| 65 | + ? 'linear-gradient(135deg, rgba(88, 240, 0, 0.9), rgba(88, 240, 0, 0.7))' |
| 66 | + : $color === 'yellow' |
| 67 | + ? 'linear-gradient(135deg, rgba(255, 221, 0, 0.9), rgba(255, 255, 100, 0.7))' |
| 68 | + : 'linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(255, 100, 100, 0.7))'}; |
| 69 | + transform: skew(-40deg) rotateX(10deg) scale(1.05); |
| 70 | + box-shadow: 8px 12px 18px rgba(0, 0, 0, 0.4); |
| 71 | + border: 1px solid rgba(0, 0, 0, 0.2); |
| 72 | +`; |
| 73 | + |
| 74 | +export const LayerInfoWrapper = styled.div` |
| 75 | + width: 300px; |
| 76 | + height: 100px; |
| 77 | + display: flex; |
| 78 | + flex-direction: column; |
| 79 | + gap: 8px; |
| 80 | + border: 1px solid rgba(0, 0, 0, 0.2); |
| 81 | + border-radius: 5px; |
| 82 | + padding: 16px; |
| 83 | +`; |
| 84 | + |
| 85 | +export const Span = styled.span` |
| 86 | + font-size: 16px; |
| 87 | +`; |
| 88 | + |
| 89 | +export const EmptyWrapper = styled.div` |
| 90 | + width: 100%; |
| 91 | + height: 100%; |
| 92 | + display: flex; |
| 93 | + justify-content: center; |
| 94 | + align-items: center; |
| 95 | +`; |
| 96 | + |
| 97 | +export const Empty = styled.div` |
| 98 | + font-size: 16px; |
| 99 | + color: ${({ theme }) => theme.colors.grayLight}; |
| 100 | +`; |
0 commit comments