style.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. // 페이지 타이틀
  2. .settings-header {
  3. display: flex;
  4. align-items: center;
  5. justify-content: space-between;
  6. margin-bottom: 24px;
  7. }
  8. // 로딩
  9. .settings-loading {
  10. color: hsl(var(--muted-foreground));
  11. font-size: 0.875rem;
  12. }
  13. // 알림 (성공 / 에러)
  14. .settings-alert {
  15. margin-bottom: 20px;
  16. padding: 12px 16px;
  17. border-radius: 8px;
  18. font-size: 0.875rem;
  19. &--success {
  20. background-color: #dcfce7;
  21. color: #15803d;
  22. border: 1px solid #bbf7d0;
  23. }
  24. &--error {
  25. background-color: color-mix(in srgb, hsl(var(--destructive)) 10%, transparent);
  26. color: hsl(var(--destructive));
  27. border: 1px solid color-mix(in srgb, hsl(var(--destructive)) 30%, transparent);
  28. }
  29. }
  30. // ── 연동된 채널 정보 ─────────────────────────────────
  31. .settings-channel {
  32. max-width: 760px;
  33. // 배너
  34. &__banner {
  35. border-radius: 12px;
  36. overflow: hidden;
  37. margin-bottom: 20px;
  38. background: hsl(var(--muted));
  39. }
  40. &__banner-img {
  41. width: 100%;
  42. height: auto;
  43. display: block;
  44. aspect-ratio: 6 / 1;
  45. object-fit: cover;
  46. }
  47. // 프로필 (썸네일 + 이름 + 메타)
  48. &__profile {
  49. display: flex;
  50. align-items: center;
  51. gap: 20px;
  52. margin-bottom: 28px;
  53. }
  54. &__avatar {
  55. width: 80px;
  56. height: 80px;
  57. border-radius: 50%;
  58. object-fit: cover;
  59. flex-shrink: 0;
  60. background: hsl(var(--muted));
  61. }
  62. &__avatar-placeholder {
  63. width: 80px;
  64. height: 80px;
  65. border-radius: 50%;
  66. flex-shrink: 0;
  67. background: hsl(var(--muted));
  68. }
  69. &__identity {
  70. min-width: 0;
  71. flex: 1;
  72. }
  73. &__name {
  74. font-size: 1.375rem;
  75. font-weight: 700;
  76. color: hsl(var(--foreground));
  77. margin: 0 0 4px;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. white-space: nowrap;
  81. }
  82. &__meta {
  83. display: flex;
  84. flex-wrap: wrap;
  85. gap: 4px;
  86. font-size: 0.8125rem;
  87. color: hsl(var(--muted-foreground));
  88. span + span::before {
  89. content: '·';
  90. margin-right: 4px;
  91. }
  92. }
  93. // 상세 정보
  94. &__details {
  95. display: flex;
  96. flex-direction: column;
  97. gap: 0;
  98. border: 1px solid hsl(var(--border));
  99. border-radius: 12px;
  100. background: hsl(var(--card));
  101. overflow: hidden;
  102. }
  103. &__row {
  104. display: flex;
  105. gap: 14px;
  106. padding: 14px 20px;
  107. align-items: flex-start;
  108. & + & {
  109. border-top: 1px solid hsl(var(--border));
  110. }
  111. }
  112. &__icon {
  113. width: 16px;
  114. flex-shrink: 0;
  115. margin-top: 3px;
  116. color: hsl(var(--muted-foreground));
  117. font-size: 0.875rem;
  118. text-align: center;
  119. }
  120. &__value {
  121. display: flex;
  122. flex-direction: column;
  123. gap: 2px;
  124. min-width: 0;
  125. flex: 1;
  126. font-size: 0.875rem;
  127. color: hsl(var(--foreground));
  128. }
  129. &__label {
  130. font-size: 0.75rem;
  131. font-weight: 600;
  132. color: hsl(var(--muted-foreground));
  133. }
  134. &__desc {
  135. margin: 0;
  136. line-height: 1.6;
  137. white-space: pre-wrap;
  138. word-break: break-word;
  139. }
  140. &__link {
  141. color: hsl(var(--primary));
  142. text-decoration: none;
  143. word-break: break-all;
  144. &:hover {
  145. text-decoration: underline;
  146. }
  147. }
  148. // 통계 카드
  149. &__stats {
  150. display: grid;
  151. grid-template-columns: repeat(3, 1fr);
  152. border-top: 1px solid hsl(var(--border));
  153. }
  154. &__stat {
  155. display: flex;
  156. flex-direction: column;
  157. align-items: center;
  158. gap: 4px;
  159. padding: 16px 12px;
  160. & + & {
  161. border-left: 1px solid hsl(var(--border));
  162. }
  163. }
  164. &__stat-icon {
  165. font-size: 1rem;
  166. color: hsl(var(--muted-foreground));
  167. }
  168. &__stat-value {
  169. font-size: 1.125rem;
  170. font-weight: 700;
  171. color: hsl(var(--foreground));
  172. }
  173. &__stat-label {
  174. font-size: 0.75rem;
  175. color: hsl(var(--muted-foreground));
  176. }
  177. }
  178. // ── YouTube 미연동 안내 카드 ──────────────────────────
  179. .settings-connect-card {
  180. display: flex;
  181. flex-direction: column;
  182. gap: 32px;
  183. &__icon {
  184. width: clamp(80px, 140px, 200px);
  185. font-size: 2rem;
  186. line-height: 1;
  187. flex-shrink: 0;
  188. padding-top: 2px;
  189. > svg {
  190. width: inherit;
  191. height: inherit;
  192. }
  193. }
  194. &__body {
  195. display: flex;
  196. flex-direction: column;
  197. gap: 8px;
  198. flex: 1;
  199. min-width: 0;
  200. }
  201. &__title {
  202. font-size: 0.9375rem;
  203. font-weight: 700;
  204. color: hsl(var(--foreground));
  205. margin-bottom: 7px;
  206. }
  207. &__desc {
  208. font-size: 0.875rem;
  209. color: hsl(var(--muted-foreground));
  210. line-height: 1.6;
  211. }
  212. &__scope-list {
  213. list-style: none;
  214. padding: 0;
  215. margin: 8px 0 16px;
  216. display: flex;
  217. flex-direction: column;
  218. gap: 6px;
  219. li {
  220. font-size: 0.875rem;
  221. color: hsl(var(--muted-foreground));
  222. padding-left: 16px;
  223. position: relative;
  224. &::before {
  225. content: '•';
  226. position: absolute;
  227. left: 0;
  228. color: hsl(var(--primary));
  229. }
  230. }
  231. }
  232. &__terms {
  233. display: flex;
  234. flex-direction: column;
  235. gap: 10px;
  236. padding: 16px 20px;
  237. border: 1px solid hsl(var(--border));
  238. border-radius: 10px;
  239. background-color: hsl(var(--card));
  240. margin-bottom: 20px;
  241. }
  242. &__terms-item {
  243. display: flex;
  244. align-items: flex-start;
  245. gap: 10px;
  246. }
  247. &__terms-label {
  248. font-size: 0.8125rem;
  249. color: hsl(var(--foreground));
  250. line-height: 1.5;
  251. cursor: pointer;
  252. }
  253. &__terms-required {
  254. color: hsl(var(--destructive));
  255. font-weight: 600;
  256. margin-right: 4px;
  257. }
  258. &__terms-link {
  259. color: hsl(var(--primary));
  260. text-decoration: underline;
  261. text-underline-offset: 2px;
  262. &:hover,
  263. &:focus {
  264. opacity: 0.8;
  265. }
  266. }
  267. &__btn {
  268. align-self: flex-start;
  269. display: inline-flex;
  270. align-items: center;
  271. gap: 8px;
  272. padding: 10px 22px;
  273. border-radius: 8px;
  274. border: none;
  275. background-color: hsl(var(--primary));
  276. color: hsl(var(--primary-foreground));
  277. font-size: 0.9375rem;
  278. font-weight: 600;
  279. cursor: pointer;
  280. transition: opacity 0.15s;
  281. &:hover:not(:disabled) {
  282. opacity: 0.9;
  283. }
  284. &:disabled {
  285. opacity: 0.4;
  286. cursor: not-allowed;
  287. }
  288. svg {
  289. flex-shrink: 0;
  290. }
  291. }
  292. }
  293. // ── YouTube 연동 해지 ──────────────────────────────────
  294. .settings-disconnect {
  295. margin-top: 32px;
  296. padding-top: 24px;
  297. border-top: 1px solid hsl(var(--border));
  298. display: flex;
  299. align-items: center;
  300. justify-content: space-between;
  301. gap: 16px;
  302. &__logo {
  303. flex-grow: 0;
  304. width: clamp(80px, 140px, 200px);
  305. > svg {
  306. width: inherit;
  307. height: inherit;
  308. }
  309. }
  310. &__hint {
  311. flex-grow: 1;
  312. font-size: 0.8125rem;
  313. color: hsl(var(--muted-foreground));
  314. line-height: 1.5;
  315. }
  316. &__trigger {
  317. flex-shrink: 0;
  318. color: hsl(var(--destructive));
  319. font-size: 0.8125rem;
  320. font-weight: 600;
  321. cursor: pointer;
  322. &:hover {
  323. color: var(--text-link);
  324. text-decoration: underline;
  325. }
  326. }
  327. // 해지 확인 카드
  328. &__card {
  329. margin-top: 32px;
  330. padding: 24px;
  331. border: 1px solid color-mix(in srgb, hsl(var(--destructive)) 30%, transparent);
  332. border-radius: 12px;
  333. background: color-mix(in srgb, hsl(var(--destructive)) 4%, hsl(var(--card)));
  334. }
  335. &__card-title {
  336. font-size: 1rem;
  337. font-weight: 700;
  338. color: hsl(var(--destructive));
  339. margin-bottom: 8px;
  340. }
  341. &__card-desc {
  342. font-size: 0.875rem;
  343. color: hsl(var(--muted-foreground));
  344. line-height: 1.6;
  345. margin-bottom: 12px;
  346. }
  347. &__impact-list {
  348. list-style: none;
  349. padding: 0;
  350. margin: 0 0 20px;
  351. display: flex;
  352. flex-direction: column;
  353. gap: 6px;
  354. li {
  355. font-size: 0.875rem;
  356. color: hsl(var(--foreground));
  357. padding-left: 16px;
  358. position: relative;
  359. &::before {
  360. content: '×';
  361. position: absolute;
  362. left: 0;
  363. color: hsl(var(--destructive));
  364. font-weight: 700;
  365. }
  366. }
  367. }
  368. &__terms {
  369. display: flex;
  370. flex-direction: column;
  371. gap: 10px;
  372. padding: 16px 20px;
  373. border: 1px solid hsl(var(--border));
  374. border-radius: 10px;
  375. background-color: hsl(var(--card));
  376. margin-bottom: 20px;
  377. }
  378. &__terms-item {
  379. display: flex;
  380. align-items: flex-start;
  381. gap: 10px;
  382. }
  383. &__terms-label {
  384. font-size: 0.8125rem;
  385. color: hsl(var(--foreground));
  386. line-height: 1.5;
  387. cursor: pointer;
  388. }
  389. &__terms-required {
  390. color: hsl(var(--destructive));
  391. font-weight: 600;
  392. margin-right: 4px;
  393. }
  394. &__actions {
  395. display: flex;
  396. gap: 10px;
  397. }
  398. &__btn {
  399. display: inline-flex;
  400. align-items: center;
  401. padding: 10px 22px;
  402. border-radius: 8px;
  403. border: none;
  404. font-size: 0.875rem;
  405. font-weight: 600;
  406. cursor: pointer;
  407. transition: opacity 0.15s, background-color 0.15s;
  408. &--cancel {
  409. background-color: hsl(var(--muted));
  410. color: hsl(var(--foreground));
  411. &:hover {
  412. opacity: 0.8;
  413. }
  414. }
  415. &--danger {
  416. background-color: hsl(var(--destructive));
  417. color: hsl(var(--destructive-foreground));
  418. &:hover:not(:disabled) {
  419. opacity: 0.9;
  420. }
  421. &:disabled {
  422. opacity: 0.4;
  423. cursor: not-allowed;
  424. }
  425. }
  426. }
  427. }