StreamerInfoSection.module.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // 제목 영역
  2. .titleSection {
  3. padding: 16px;
  4. background: white;
  5. border-bottom: 1px solid #f3f4f6;
  6. .streamTitle {
  7. font-size: 1.1rem;
  8. font-weight: 600;
  9. color: #111827;
  10. line-height: 1.4;
  11. margin: 0;
  12. // 긴 제목 말줄임 (최대 2줄)
  13. overflow: hidden;
  14. text-overflow: ellipsis;
  15. display: -webkit-box;
  16. -webkit-line-clamp: 2;
  17. -webkit-box-orient: vertical;
  18. // 모바일에서는 약간 작게
  19. @media (max-width: 768px) {
  20. font-size: 1rem;
  21. -webkit-line-clamp: 2;
  22. }
  23. }
  24. }
  25. // 스트리머 정보 + 액션 버튼 컨테이너
  26. .infoActionsContainer {
  27. display: flex;
  28. justify-content: space-between;
  29. align-items: center;
  30. padding: 16px;
  31. background: white;
  32. border-bottom: 1px solid #f3f4f6;
  33. }
  34. // 스트리머 정보
  35. .streamerInfo {
  36. display: flex;
  37. align-items: center;
  38. gap: 12px;
  39. .streamerAvatar {
  40. width: 40px;
  41. height: 40px;
  42. border-radius: 50%;
  43. overflow: hidden;
  44. background: #f3f4f6;
  45. flex-shrink: 0;
  46. img {
  47. width: 100%;
  48. height: 100%;
  49. object-fit: cover;
  50. }
  51. .avatarPlaceholder {
  52. width: 100%;
  53. height: 100%;
  54. background: linear-gradient(135deg, #3b82f6, #1e40af);
  55. display: flex;
  56. align-items: center;
  57. justify-content: center;
  58. color: white;
  59. font-weight: bold;
  60. font-size: 0.875rem;
  61. }
  62. }
  63. .streamerDetails {
  64. flex: 1;
  65. min-width: 0;
  66. .streamerName {
  67. font-size: 0.9rem;
  68. font-weight: 500;
  69. color: #111827;
  70. margin-bottom: 4px;
  71. }
  72. .viewerCount {
  73. font-size: 0.8rem;
  74. color: #6b7280;
  75. }
  76. }
  77. }
  78. // 액션 버튼 영역
  79. .videoActions {
  80. display: flex;
  81. justify-content: flex-start;
  82. .actionButtons {
  83. display: flex;
  84. gap: 12px;
  85. }
  86. .bookmarkBtn,
  87. .shareBtn {
  88. background: none;
  89. border: none;
  90. color: #6b7280;
  91. cursor: pointer;
  92. padding: 8px;
  93. border-radius: 4px;
  94. transition: all 0.2s;
  95. &:hover {
  96. background-color: #f3f4f6;
  97. color: #374151;
  98. }
  99. }
  100. }
  101. // 모바일 최적화
  102. @media (max-width: 480px) {
  103. .infoActionsContainer {
  104. padding: 12px;
  105. }
  106. .streamerInfo {
  107. .streamerAvatar {
  108. width: 36px;
  109. height: 36px;
  110. }
  111. .streamerDetails {
  112. .streamerName {
  113. font-size: 0.8rem;
  114. }
  115. .viewerCount {
  116. font-size: 0.75rem;
  117. }
  118. }
  119. }
  120. }