|
| 1 | +import styled from "styled-components"; |
| 2 | + |
| 3 | +export const LankTable = styled.table` |
| 4 | + border-radius: 16px; |
| 5 | + border: 1px solid #dee1e6; |
| 6 | + background: rgba(0, 0, 0, 0); |
| 7 | + width: 55vw; |
| 8 | + border-collapse: separate; |
| 9 | + text-align: center; |
| 10 | +
|
| 11 | + .header { |
| 12 | + border-bottom: 1px solid #dee1e6; |
| 13 | + background: #fafafb; |
| 14 | + padding: 10px; |
| 15 | + } |
| 16 | + .td { |
| 17 | + padding: 10px; |
| 18 | + align-items: center; |
| 19 | + } |
| 20 | + .tr:nth-child(2n + 0) { |
| 21 | + border: 0px solid #dee1e6; |
| 22 | + background: #fafafb; |
| 23 | + } |
| 24 | +`; |
| 25 | + |
| 26 | +export const StyledLankPage = styled.div` |
| 27 | + display: flex; |
| 28 | + align-items: center; |
| 29 | + flex-direction: column; |
| 30 | + margin: 20px 16px; |
| 31 | + gap: 16px; |
| 32 | +`; |
| 33 | + |
| 34 | +export const PaginationWrapper = styled.div` |
| 35 | + display: flex; |
| 36 | + align-items: center; |
| 37 | + justify-content: center; |
| 38 | + gap: 8px; |
| 39 | + margin-top: 15px; |
| 40 | +`; |
| 41 | + |
| 42 | +export const PageButton = styled.button<{ active: boolean }>` |
| 43 | + padding: 8px 12px; |
| 44 | + background-color: ${({ active }) => (active ? "#636ae8" : "#fff")}; |
| 45 | + color: ${({ active }) => (active ? "#fff" : "#9095A1")}; |
| 46 | + border-radius: 16px; |
| 47 | + border: 1px solid ${({ active }) => (active ? "#636ae8" : "#dee1e6")}; |
| 48 | + cursor: pointer; |
| 49 | +
|
| 50 | + &:hover { |
| 51 | + background-color: ${({ active }) => (active ? "#636ae8" : "#f0f0f0")}; |
| 52 | + border-color: #636ae8; /* hover 시 border 색상 변경 */ |
| 53 | + } |
| 54 | +`; |
| 55 | + |
| 56 | +export const ArrowButton = styled.button` |
| 57 | + padding: 8px; |
| 58 | + background-color: #fff; |
| 59 | + color: #636ae8; |
| 60 | + border-radius: 50%; |
| 61 | + cursor: pointer; |
| 62 | +
|
| 63 | + &:hover { |
| 64 | + background-color: #fff; /* 화살표 버튼에는 hover 배경색을 없애거나 투명하게 */ |
| 65 | + } |
| 66 | +`; |
| 67 | + |
| 68 | +export const Ellipsis = styled.span` |
| 69 | + color: #636ae8; |
| 70 | +`; |
| 71 | + |
| 72 | +export const StyledLankLabel = styled.div<{ rank: string }>` |
| 73 | + display: flex; |
| 74 | + justify-content: center; /* 수평 가운데 정렬 */ |
| 75 | + align-items: center; /* 수직 가운데 정렬 */ |
| 76 | + background-color: ${({ rank }) => |
| 77 | + rank === "브론즈" |
| 78 | + ? "#FFF5F0" |
| 79 | + : rank === "실버" |
| 80 | + ? "#F4F6FB" |
| 81 | + : rank === "골드" |
| 82 | + ? "#FEF9EE" |
| 83 | + : "#EFFCFA"}; |
| 84 | + color: ${({ rank }) => |
| 85 | + rank === "브론즈" |
| 86 | + ? "#672700" |
| 87 | + : rank === "실버" |
| 88 | + ? "#263F6D" |
| 89 | + : rank === "골드" |
| 90 | + ? "#98690C" |
| 91 | + : "#147567"}; |
| 92 | + border-radius: 18px; |
| 93 | + width: 80px; |
| 94 | + font-size: 14px; |
| 95 | + text-align: center; /* 텍스트 가운데 정렬 */ |
| 96 | + width: 100%; /* 셀의 너비 전체를 사용 */ |
| 97 | +`; |
0 commit comments