@daeryun/dr_components 1.0.78 → 1.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ const ViewMoreSection = ({
20
20
  const pathname = usePathname();
21
21
  const isMain = pathname === '/strength';
22
22
  const { width } = useBrowser(false); // 디바운스 적용
23
- const isPC = width >= 1280;
23
+ const isPC = width >= 1400;
24
24
 
25
25
  return (
26
26
  <section
@@ -44,13 +44,13 @@ const ViewMoreSection = ({
44
44
  {view_more_section_title}
45
45
  </h2>
46
46
  {isPC ? (
47
- <div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5'}>
47
+ <div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5 max-3xl:gap-3'}>
48
48
  {view_more_list.map((item, index) => (
49
49
  <ViewMorePCItem key={index} item={item} index={index} initialData={initialData} />
50
50
  ))}
51
51
  </div>
52
52
  ) : (
53
- <div className={'mt-[20px] grid max-xl:grid-cols-1 max-[700px]:mt-0'}>
53
+ <div className={'mx-auto mt-[20px] grid w-[90%] max-xl:w-full max-xl:grid-cols-1 max-[700px]:mt-0'}>
54
54
  {view_more_list.map((item, index) => (
55
55
  <ViewMoreTabItem key={index} item={item} index={index} initialData={initialData} />
56
56
  ))}
@@ -81,7 +81,7 @@ const ViewMorePCItem = ({
81
81
  <Link
82
82
  href={`/strength/${item.url}`}
83
83
  className={
84
- `view_more_${index} group flex h-[530px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-xl:hidden ` +
84
+ `view_more_${index} group flex h-[530px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-5xl:h-[510px] max-3xl:h-[510px] max-xxl:hidden ` +
85
85
  (hidden ? '!hidden' : '')
86
86
  }
87
87
  >
@@ -112,7 +112,6 @@ const ViewMorePCItem = ({
112
112
  }
113
113
  `}
114
114
  </style>
115
-
116
115
  <span className={'group relative h-fit w-full'}>
117
116
  <span
118
117
  className={
@@ -149,53 +148,85 @@ const ViewMorePCItem = ({
149
148
  </div>
150
149
  </span>
151
150
  {hidden ? (
152
- <p className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 '}>
151
+ <p
152
+ className={
153
+ 'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 max-5xl:text-[28px] max-3xl:mt-7 '
154
+ }
155
+ >
153
156
  {item.title}
154
157
  </p>
155
158
  ) : (
156
- <h3 className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 '}>
157
- {item.title}
158
- </h3>
159
- )}
160
- <p className={'mt-4 line-clamp-2 min-h-[62px] text-[22px] font-[600] leading-[1.3]'}>{item.subTitle}</p>
161
- <p
162
- className={'mt-4 line-clamp-4 text-[18px] font-[400] leading-[1.4] '}
163
- dangerouslySetInnerHTML={{
164
- __html: replaceInitialData(
165
- item.description.replace('*consult_date*', `<span class='text-[16px]'>*consult_date*</span>`),
166
- initialData
167
- )
168
- }}
169
- ></p>
170
- <div className={'mt-auto flex justify-end'}>
171
- <span
159
+ <h3
172
160
  className={
173
- 'view_more_text flex items-center gap-[10px] text-[18px] leading-[1] transition-[color,font-weight] duration-500'
161
+ 'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 max-5xl:text-[28px] max-3xl:mt-7 '
174
162
  }
175
163
  >
176
- {item.view_more_text}
164
+ {item.title}
165
+ </h3>
166
+ )}
167
+ <p className={'mt-4 line-clamp-2 min-h-[62px] text-[24px] font-[600] leading-[1.3] max-5xl:text-[22px]'}>
168
+ {item.subTitle}
169
+ </p>
170
+
171
+ <span className={'flex justify-between'}>
172
+ <ul className={'mt-5 pl-3 max-5xl:mt-4 max-5xl:pl-2'}>
173
+ {item.description.map((desc, index) => {
174
+ return (
175
+ <li
176
+ key={index}
177
+ className={
178
+ 'relative flex gap-[10px] break-all pb-[1px] text-[18px] leading-[1.4] tracking-[-0.04em] max-5xl:text-[16px]'
179
+ }
180
+ >
181
+ <span
182
+ className={
183
+ 'mt-[10px] block h-[5px] w-[5px] !rounded-full bg-black max-5xl:h-1 max-5xl:w-1'
184
+ }
185
+ ></span>
186
+
187
+ {replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
188
+
189
+ {desc.includes('*consult_date*') ? (
190
+ <span className={'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3]'}>
191
+ * {initialData.consult_date}
192
+ </span>
193
+ ) : (
194
+ <></>
195
+ )}
196
+ </li>
197
+ );
198
+ })}
199
+ </ul>
200
+ <div className={'mt-auto flex shrink-0 justify-end'}>
177
201
  <span
178
202
  className={
179
- 'circle flex h-7 w-7 items-center justify-center rounded-full transition-[background-color] duration-500'
203
+ 'view_more_text flex items-center gap-[10px] text-[18px] leading-[1] transition-[color,font-weight] duration-500 max-5xl:gap-2 max-5xl:text-[16px]'
180
204
  }
181
205
  >
206
+ {item.view_more_text}
182
207
  <span
183
208
  className={
184
- 'relative block h-[12px] w-[15px] opacity-0 transition-opacity duration-500 group-hover:opacity-100'
209
+ 'circle flex h-7 w-7 items-center justify-center rounded-full transition-[background-color] duration-500 max-5xl:h-6 max-5xl:w-6'
185
210
  }
186
211
  >
187
- <Image
188
- src={imagePath + `/strength_new/arrow.webp`}
189
- alt={'강점'}
190
- fill
191
- sizes={'(max-width: 1500px) 15px, 17px'}
192
- className={'object-contain'}
193
- quality={100}
194
- />
212
+ <span
213
+ className={
214
+ 'relative block h-[12px] w-[15px] opacity-0 transition-opacity duration-500 group-hover:opacity-100 max-5xl:h-[10px] max-5xl:w-[13px]'
215
+ }
216
+ >
217
+ <Image
218
+ src={imagePath + `/strength_new/arrow.webp`}
219
+ alt={'강점'}
220
+ fill
221
+ sizes={'(max-width: 1500px) 15px, 17px'}
222
+ className={'object-contain'}
223
+ quality={100}
224
+ />
225
+ </span>
195
226
  </span>
196
227
  </span>
197
- </span>
198
- </div>
228
+ </div>
229
+ </span>
199
230
  </Link>
200
231
  );
201
232
  };
@@ -216,14 +247,14 @@ const ViewMoreTabItem = ({
216
247
  <Link
217
248
  href={`/strength/${item.url}`}
218
249
  className={
219
- 'group flex w-full items-center gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
250
+ 'group flex w-full gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
220
251
  'max-md:gap-8 ' +
221
252
  'max-[700px]:flex-col max-[700px]:gap-6 max-[700px]:pb-5 ' +
222
- 'xl:hidden ' +
253
+ 'xxl:hidden ' +
223
254
  (hidden ? '!hidden' : '')
224
255
  }
225
256
  >
226
- <div className={'relative h-full w-fit max-[700px]:w-full'}>
257
+ <div className={'relative h-[150px] w-[260px] max-[700px]:h-[100px] max-[700px]:w-full'}>
227
258
  <div
228
259
  className={
229
260
  'absolute right-1/2 top-1/2 z-20 h-[40px] w-[62px] -translate-y-1/2 translate-x-1/2 opacity-70 mix-blend-overlay '
@@ -240,7 +271,6 @@ const ViewMoreTabItem = ({
240
271
  <div
241
272
  className={
242
273
  'relative h-[150px] w-[260px] shrink-0 ' +
243
- 'max-xl:h-full ' +
244
274
  'max-md:w-[220px] ' +
245
275
  'max-[700px]:h-[100px] max-[700px]:w-full'
246
276
  }
@@ -263,24 +293,28 @@ const ViewMoreTabItem = ({
263
293
  />
264
294
  </div>
265
295
  </div>
266
- <div className={'flex flex-col gap-4 max-[700px]:gap-[10px]'}>
296
+ <div className={'flex w-full flex-col gap-4 max-[700px]:gap-[10px]'}>
267
297
  <div className={'flex justify-between'}>
268
298
  {hidden ? (
269
299
  <p
270
- className={'text-[24px] font-[800] leading-none max-md:text-[22px] max-[700px]:text-[20px]'}
300
+ className={
301
+ 'text-[28px] font-[800] leading-none max-xl:text-[24px] max-md:text-[22px] max-[700px]:text-[20px]'
302
+ }
271
303
  style={{ color: item.color }}
272
304
  >
273
305
  {item.title}
274
306
  </p>
275
307
  ) : (
276
308
  <h3
277
- className={'text-[24px] font-[800] leading-none max-md:text-[22px] max-[700px]:text-[20px]'}
309
+ className={
310
+ 'text-[28px] font-[800] leading-none max-xl:text-[24px] max-md:text-[22px] max-[700px]:text-[20px]'
311
+ }
278
312
  style={{ color: item.color }}
279
313
  >
280
314
  {item.title}
281
315
  </h3>
282
316
  )}
283
- <div className={'mt-auto flex justify-end'}>
317
+ <div className={'mt-auto hidden justify-end max-[700px]:flex'}>
284
318
  <span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
285
319
  {item.view_more_text}
286
320
  <span
@@ -301,19 +335,61 @@ const ViewMoreTabItem = ({
301
335
  </span>
302
336
  </div>
303
337
  </div>
304
- <p className={'text-[20px] font-[600] leading-[1.3] max-[700px]:mt-[10px]'}>{item.subTitle}</p>
305
- <p
306
- className={'text-[16px] font-[400] leading-[1.4] '}
307
- dangerouslySetInnerHTML={{
308
- __html: replaceInitialData(
309
- item.description.replace(
310
- '*consult_date*',
311
- `<span class='text-[14px]'>*consult_date*</span>`
312
- ),
313
- initialData
314
- )
315
- }}
316
- ></p>
338
+ <p className={'text-[22px] font-[600] leading-[1.3] max-xl:text-[20px] max-[700px]:mt-[10px]'}>
339
+ {item.subTitle}
340
+ </p>
341
+ <span className={'flex w-full justify-between'}>
342
+ <ul className={'pl-[10px]'}>
343
+ {item.description.map((desc, index) => {
344
+ return (
345
+ <li
346
+ key={index}
347
+ className={
348
+ 'relative flex gap-2 text-[16px] leading-[1.4] tracking-[-0.04em] max-[700px]:items-center '
349
+ }
350
+ >
351
+ <span
352
+ className={
353
+ 'mt-[10px] block h-[5px] w-[5px] !rounded-full bg-black max-3xl:h-1 max-3xl:w-1 max-[700px]:mt-0'
354
+ }
355
+ ></span>
356
+ {replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
357
+ {desc.includes('*consult_date*') ? (
358
+ <span
359
+ className={
360
+ 'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3] max-[700px]:relative max-[700px]:bottom-0 max-[700px]:left-0'
361
+ }
362
+ >
363
+ * {initialData.consult_date}
364
+ </span>
365
+ ) : (
366
+ <></>
367
+ )}
368
+ </li>
369
+ );
370
+ })}
371
+ </ul>
372
+ <div className={'mt-auto flex shrink-0 justify-end max-[700px]:hidden'}>
373
+ <span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
374
+ {item.view_more_text}
375
+ <span
376
+ style={{ backgroundColor: item.color }}
377
+ className={'flex h-6 w-6 items-center justify-center rounded-full '}
378
+ >
379
+ <span className={'relative block h-[12px] w-[16px]'}>
380
+ <Image
381
+ src={imagePath + `/strength_new/arrow.webp`}
382
+ alt={'강점'}
383
+ fill
384
+ sizes="16px"
385
+ className={'object-contain'}
386
+ quality={100}
387
+ />
388
+ </span>
389
+ </span>
390
+ </span>
391
+ </div>
392
+ </span>
317
393
  </div>
318
394
  </Link>
319
395
  );
@@ -886,6 +886,10 @@ html {
886
886
  bottom: -155px;
887
887
  }
888
888
 
889
+ .bottom-\[-15px\] {
890
+ bottom: -15px;
891
+ }
892
+
889
893
  .bottom-\[-25px\] {
890
894
  bottom: -25px;
891
895
  }
@@ -958,6 +962,10 @@ html {
958
962
  left: 2.5rem;
959
963
  }
960
964
 
965
+ .left-3 {
966
+ left: 0.75rem;
967
+ }
968
+
961
969
  .left-\[-5px\] {
962
970
  left: -5px;
963
971
  }
@@ -2078,13 +2086,6 @@ html {
2078
2086
  -webkit-line-clamp: 3;
2079
2087
  }
2080
2088
 
2081
- .line-clamp-4 {
2082
- overflow: hidden;
2083
- display: -webkit-box;
2084
- -webkit-box-orient: vertical;
2085
- -webkit-line-clamp: 4;
2086
- }
2087
-
2088
2089
  .block {
2089
2090
  display: block;
2090
2091
  }
@@ -2609,6 +2610,10 @@ html {
2609
2610
  height: 56px;
2610
2611
  }
2611
2612
 
2613
+ .h-\[5px\] {
2614
+ height: 5px;
2615
+ }
2616
+
2612
2617
  .h-\[60\%\] {
2613
2618
  height: 60%;
2614
2619
  }
@@ -3396,6 +3401,10 @@ html {
3396
3401
  width: 590px;
3397
3402
  }
3398
3403
 
3404
+ .w-\[5px\] {
3405
+ width: 5px;
3406
+ }
3407
+
3399
3408
  .w-\[60\%\] {
3400
3409
  width: 60%;
3401
3410
  }
@@ -4570,10 +4579,6 @@ html {
4570
4579
  text-overflow: ellipsis;
4571
4580
  }
4572
4581
 
4573
- .whitespace-normal {
4574
- white-space: normal;
4575
- }
4576
-
4577
4582
  .whitespace-nowrap {
4578
4583
  white-space: nowrap;
4579
4584
  }
@@ -6202,6 +6207,11 @@ html {
6202
6207
  padding-bottom: 12.5px !important;
6203
6208
  }
6204
6209
 
6210
+ .\!py-\[16px\] {
6211
+ padding-top: 16px !important;
6212
+ padding-bottom: 16px !important;
6213
+ }
6214
+
6205
6215
  .px-1 {
6206
6216
  padding-left: 0.25rem;
6207
6217
  padding-right: 0.25rem;
@@ -6645,6 +6655,10 @@ html {
6645
6655
  padding-bottom: 180px;
6646
6656
  }
6647
6657
 
6658
+ .pb-\[1px\] {
6659
+ padding-bottom: 1px;
6660
+ }
6661
+
6648
6662
  .pb-\[200px\] {
6649
6663
  padding-bottom: 200px;
6650
6664
  }
@@ -6733,6 +6747,10 @@ html {
6733
6747
  padding-left: 100px;
6734
6748
  }
6735
6749
 
6750
+ .pl-\[10px\] {
6751
+ padding-left: 10px;
6752
+ }
6753
+
6736
6754
  .pl-\[120px\] {
6737
6755
  padding-left: 120px;
6738
6756
  }
@@ -7980,6 +7998,11 @@ html {
7980
7998
  color: #99999;
7981
7999
  }
7982
8000
 
8001
+ .text-\[\#A3A3A3\] {
8002
+ --tw-text-opacity: 1;
8003
+ color: rgb(163 163 163 / var(--tw-text-opacity, 1));
8004
+ }
8005
+
7983
8006
  .text-\[\#A5A5A5\] {
7984
8007
  --tw-text-opacity: 1;
7985
8008
  color: rgb(165 165 165 / var(--tw-text-opacity, 1));
@@ -9637,6 +9660,10 @@ body {
9637
9660
  margin-bottom: 3px;
9638
9661
  }
9639
9662
 
9663
+ .max-5xl\:mt-4 {
9664
+ margin-top: 1rem;
9665
+ }
9666
+
9640
9667
  .max-5xl\:mt-\[13px\] {
9641
9668
  margin-top: 13px;
9642
9669
  }
@@ -9645,6 +9672,18 @@ body {
9645
9672
  display: none;
9646
9673
  }
9647
9674
 
9675
+ .max-5xl\:h-1 {
9676
+ height: 0.25rem;
9677
+ }
9678
+
9679
+ .max-5xl\:h-6 {
9680
+ height: 1.5rem;
9681
+ }
9682
+
9683
+ .max-5xl\:h-\[10px\] {
9684
+ height: 10px;
9685
+ }
9686
+
9648
9687
  .max-5xl\:h-\[230px\] {
9649
9688
  height: 230px;
9650
9689
  }
@@ -9657,6 +9696,10 @@ body {
9657
9696
  height: 45px;
9658
9697
  }
9659
9698
 
9699
+ .max-5xl\:h-\[510px\] {
9700
+ height: 510px;
9701
+ }
9702
+
9660
9703
  .max-5xl\:h-\[55px\] {
9661
9704
  height: 55px;
9662
9705
  }
@@ -9665,6 +9708,18 @@ body {
9665
9708
  height: 60px;
9666
9709
  }
9667
9710
 
9711
+ .max-5xl\:w-1 {
9712
+ width: 0.25rem;
9713
+ }
9714
+
9715
+ .max-5xl\:w-6 {
9716
+ width: 1.5rem;
9717
+ }
9718
+
9719
+ .max-5xl\:w-\[13px\] {
9720
+ width: 13px;
9721
+ }
9722
+
9668
9723
  .max-5xl\:w-\[15px\] {
9669
9724
  width: 15px;
9670
9725
  }
@@ -9701,6 +9756,10 @@ body {
9701
9756
  gap: 2.5rem;
9702
9757
  }
9703
9758
 
9759
+ .max-5xl\:gap-2 {
9760
+ gap: 0.5rem;
9761
+ }
9762
+
9704
9763
  .max-5xl\:gap-8 {
9705
9764
  gap: 2rem;
9706
9765
  }
@@ -9747,6 +9806,10 @@ body {
9747
9806
  padding-bottom: 0px;
9748
9807
  }
9749
9808
 
9809
+ .max-5xl\:pl-2 {
9810
+ padding-left: 0.5rem;
9811
+ }
9812
+
9750
9813
  .max-5xl\:pl-\[6\%\] {
9751
9814
  padding-left: 6%;
9752
9815
  }
@@ -9763,6 +9826,10 @@ body {
9763
9826
  font-size: 14px;
9764
9827
  }
9765
9828
 
9829
+ .max-5xl\:text-\[16px\] {
9830
+ font-size: 16px;
9831
+ }
9832
+
9766
9833
  .max-5xl\:text-\[18px\] {
9767
9834
  font-size: 18px;
9768
9835
  }
@@ -9771,6 +9838,10 @@ body {
9771
9838
  font-size: 20px;
9772
9839
  }
9773
9840
 
9841
+ .max-5xl\:text-\[22px\] {
9842
+ font-size: 22px;
9843
+ }
9844
+
9774
9845
  .max-5xl\:text-\[24px\] {
9775
9846
  font-size: 24px;
9776
9847
  }
@@ -9892,6 +9963,10 @@ body {
9892
9963
  margin-top: 3.5rem;
9893
9964
  }
9894
9965
 
9966
+ .max-3xl\:mt-7 {
9967
+ margin-top: 1.75rem;
9968
+ }
9969
+
9895
9970
  .max-3xl\:mt-\[100px\] {
9896
9971
  margin-top: 100px;
9897
9972
  }
@@ -9920,6 +9995,10 @@ body {
9920
9995
  display: none;
9921
9996
  }
9922
9997
 
9998
+ .max-3xl\:h-1 {
9999
+ height: 0.25rem;
10000
+ }
10001
+
9923
10002
  .max-3xl\:h-14 {
9924
10003
  height: 3.5rem;
9925
10004
  }
@@ -9976,6 +10055,10 @@ body {
9976
10055
  height: 50px;
9977
10056
  }
9978
10057
 
10058
+ .max-3xl\:h-\[510px\] {
10059
+ height: 510px;
10060
+ }
10061
+
9979
10062
  .max-3xl\:h-\[70px\] {
9980
10063
  height: 70px;
9981
10064
  }
@@ -10001,6 +10084,10 @@ body {
10001
10084
  min-height: 210px;
10002
10085
  }
10003
10086
 
10087
+ .max-3xl\:w-1 {
10088
+ width: 0.25rem;
10089
+ }
10090
+
10004
10091
  .max-3xl\:w-14 {
10005
10092
  width: 3.5rem;
10006
10093
  }
@@ -10097,6 +10184,10 @@ body {
10097
10184
  gap: 2.5rem;
10098
10185
  }
10099
10186
 
10187
+ .max-3xl\:gap-3 {
10188
+ gap: 0.75rem;
10189
+ }
10190
+
10100
10191
  .max-3xl\:gap-4 {
10101
10192
  gap: 1rem;
10102
10193
  }
@@ -14784,6 +14875,18 @@ body {
14784
14875
  }
14785
14876
 
14786
14877
  @media (max-width: 700px) {
14878
+ .max-\[700px\]\:relative {
14879
+ position: relative;
14880
+ }
14881
+
14882
+ .max-\[700px\]\:bottom-0 {
14883
+ bottom: 0px;
14884
+ }
14885
+
14886
+ .max-\[700px\]\:left-0 {
14887
+ left: 0px;
14888
+ }
14889
+
14787
14890
  .max-\[700px\]\:mt-0 {
14788
14891
  margin-top: 0px;
14789
14892
  }
@@ -14792,6 +14895,10 @@ body {
14792
14895
  margin-top: 10px;
14793
14896
  }
14794
14897
 
14898
+ .max-\[700px\]\:flex {
14899
+ display: flex;
14900
+ }
14901
+
14795
14902
  .max-\[700px\]\:hidden {
14796
14903
  display: none;
14797
14904
  }
@@ -14812,6 +14919,10 @@ body {
14812
14919
  flex-direction: column;
14813
14920
  }
14814
14921
 
14922
+ .max-\[700px\]\:items-center {
14923
+ align-items: center;
14924
+ }
14925
+
14815
14926
  .max-\[700px\]\:gap-6 {
14816
14927
  gap: 1.5rem;
14817
14928
  }
@@ -19964,6 +20075,10 @@ body {
19964
20075
  display: flex;
19965
20076
  }
19966
20077
 
20078
+ .xxl\:hidden {
20079
+ display: none;
20080
+ }
20081
+
19967
20082
  .xxl\:w-\[18em\] {
19968
20083
  width: 18em;
19969
20084
  }