@daeryun/dr_components 0.1.65 → 0.1.67

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.
@@ -10,7 +10,7 @@ import AreaImage from '../MapFix/AreaImage';
10
10
  import { newNapArea } from '../common';
11
11
  import Map from './Map';
12
12
  import Link from 'next/link';
13
- const MapSection = ({ initialData, selectRegion, setSelectRegion, setMapFixOpen, Title }) => {
13
+ const MapSection = ({ initialData, selectRegion, setSelectRegion, setMapFixOpen, Title, isGroup = false }) => {
14
14
  const router = useRouter();
15
15
  const { width } = useBrowser();
16
16
  const [mapAreas, setMapAreas] = useState([]);
@@ -24,18 +24,35 @@ const MapSection = ({ initialData, selectRegion, setSelectRegion, setMapFixOpen,
24
24
 
25
25
  <Wrapper className={'flex h-full w-full overflow-hidden pb-[239px] pt-[180px] max-xl:py-[150px] max-md:flex-col max-sm:py-[80px]'}>
26
26
  <div className={'w-[60%] pb-[200px] max-3xl:pb-[140px] max-lg:w-[63%] max-md2:w-[65%] max-md:w-full max-md:pb-0'}>
27
- {Title ? (Title) : (<span className={'flex items-end pb-[1.1%]'}>
28
- <p className={`!font-[NanumSquare] text-[173px] font-[800] leading-[0.8] tracking-[-3.46px] text-black max-3xl:text-[150px] max-xxl:text-[120px] max-lg:text-[90px] max-md:text-[80px] ` +
29
- ' max-sm:text-[100px] max-2xs:text-[70px] '}>
30
- {initialData.office_cnt}
31
- </p>
32
- <span className={'pb-[8px] pl-[20px] justify-between max-3xl:pb-[6px] max-xxl:pb-[3px] max-lg:pl-[10px] max-sm:pl-3'}>
33
- <p className={'text-[80px] font-[900] leading-none tracking-[-3.2px] ' +
34
- 'max-3xl:text-[70px] max-xxl:text-[60px] max-lg:text-[45px] max-md:text-[40px] max-sm:text-[45px] max-2xs:text-[35px]'}>
35
- OFFICE
36
- </p>
27
+ <span className={`flex items-center gap-[20px] !font-[NanumSquare] text-[173px] leading-none tracking-tight text-black max-3xl:text-[154px] max-xxl:text-[120px] max-lg:text-[90px] max-md:text-[80px]` +
28
+ ' max-lg:gap-[10px] ' +
29
+ ' max-sm:items-end ' +
30
+ ' max-sm:text-[100px] max-2sm:text-[100px] max-xs:text-[100px] max-2xs:text-[70px]'}>
31
+ <b className={'font-[800]'}>{initialData.office_cnt}</b>
32
+
33
+ <span className={'flex flex-col gap-[10px] max-lg:gap-[5px]'}>
34
+ <h2 className={'text-[30px] tracking-[-0.6px] max-3xl:text-[24px] lg:leading-7 3xl:leading-9 sm:leading-[22px] leading-[20px] max-xl:text-[22px] max-lg:text-[17px] max-sm:hidden '}>
35
+ <b className={'font-[800]'}>
36
+ {Title ? Title : '전국의 대륜 산재전문변호사는 365일 24시간 긴급 대응 가능'}
37
+ </b>
38
+ </h2>
39
+ <span className={'text-[80px] max-3xl:text-[70px] max-xxl:text-[60px] font-[800] ' +
40
+ 'max-lg:text-[45px] ' +
41
+ 'max-md:text-[40px] ' +
42
+ 'max-sm:mb-[15px] max-sm:text-[45px] ' +
43
+ 'max-2sm:mb-[10px] max-2sm:text-[45px] ' +
44
+ 'max-2sm:mb-[7px] max-xs:text-[45px] ' +
45
+ 'max-2xs:text-[35px]'}>
46
+ {' '}
47
+ OFFICE
37
48
  </span>
38
- </span>)}
49
+ </span>
50
+ </span>
51
+ <span className={'text-[26px] max-xs:text-[20px] max-2xs:text-[14px] xs:leading-8 2xs:leading-6 leading-3 sm:hidden'}>
52
+ <p>전국의 대륜 산재전문변호사는</p>
53
+
54
+ <b className={'font-[800]'}>365일 24시간 긴급 대응 가능</b>
55
+ </span>
39
56
 
40
57
  <div className={'relative mt-[55px] flex w-full justify-end max-3xl:mt-10 max-lg:mt-5 max-md:hidden '}>
41
58
  <Link className={'flex h-[82px] w-[386px] justify-between items-center px-[41px] text-[24px] font-bold text-white ' +
@@ -52,7 +69,7 @@ const MapSection = ({ initialData, selectRegion, setSelectRegion, setMapFixOpen,
52
69
 
53
70
  <div className={'grid grid-cols-4 gap-3 max-lg:gap-2 max-md2:gap-1'} tabIndex={-1} aria-label={selectRegion + ' 선택됨.'}>
54
71
  {mapAreas && mapAreas.length > 0 ? (mapAreas.map((area, index) => {
55
- return <AreaImage key={index} area={area}/>;
72
+ return <AreaImage key={index} area={area} isGroup={isGroup}/>;
56
73
  })) : (<></>)}
57
74
  </div>
58
75
  </div>
@@ -16,13 +16,15 @@ const MapSection = ({
16
16
  selectRegion,
17
17
  setSelectRegion,
18
18
  setMapFixOpen,
19
- Title
19
+ Title,
20
+ isGroup = false
20
21
  }: {
21
22
  initialData: IInitialDataTypes;
22
23
  selectRegion: string;
23
24
  setSelectRegion: any;
24
25
  setMapFixOpen: any;
25
- Title?: React.ReactNode;
26
+ Title: React.ReactNode;
27
+ isGroup?: boolean;
26
28
  }) => {
27
29
  const router = useRouter();
28
30
 
@@ -54,34 +56,51 @@ const MapSection = ({
54
56
  'w-[60%] pb-[200px] max-3xl:pb-[140px] max-lg:w-[63%] max-md2:w-[65%] max-md:w-full max-md:pb-0'
55
57
  }
56
58
  >
57
- {Title ? (
58
- Title
59
- ) : (
60
- <span className={'flex items-end pb-[1.1%]'}>
61
- <p
59
+ <span
60
+ className={
61
+ `flex items-center gap-[20px] !font-[NanumSquare] text-[173px] leading-none tracking-tight text-black max-3xl:text-[154px] max-xxl:text-[120px] max-lg:text-[90px] max-md:text-[80px]` +
62
+ ' max-lg:gap-[10px] ' +
63
+ ' max-sm:items-end ' +
64
+ ' max-sm:text-[100px] max-2sm:text-[100px] max-xs:text-[100px] max-2xs:text-[70px]'
65
+ }
66
+ >
67
+ <b className={'font-[800]'}>{initialData.office_cnt}</b>
68
+
69
+ <span className={'flex flex-col gap-[10px] max-lg:gap-[5px]'}>
70
+ <h2
62
71
  className={
63
- `!font-[NanumSquare] text-[173px] font-[800] leading-[0.8] tracking-[-3.46px] text-black max-3xl:text-[150px] max-xxl:text-[120px] max-lg:text-[90px] max-md:text-[80px] ` +
64
- ' max-sm:text-[100px] max-2xs:text-[70px] '
72
+ 'text-[30px] tracking-[-0.6px] max-3xl:text-[24px] lg:leading-7 3xl:leading-9 sm:leading-[22px] leading-[20px] max-xl:text-[22px] max-lg:text-[17px] max-sm:hidden '
65
73
  }
66
74
  >
67
- {initialData.office_cnt}
68
- </p>
75
+ <b className={'font-[800]'}>
76
+ {Title ? Title : '전국의 대륜 산재전문변호사는 365일 24시간 긴급 대응 가능'}
77
+ </b>
78
+ </h2>
69
79
  <span
70
80
  className={
71
- 'pb-[8px] pl-[20px] justify-between max-3xl:pb-[6px] max-xxl:pb-[3px] max-lg:pl-[10px] max-sm:pl-3'
81
+ 'text-[80px] max-3xl:text-[70px] max-xxl:text-[60px] font-[800] ' +
82
+ 'max-lg:text-[45px] ' +
83
+ 'max-md:text-[40px] ' +
84
+ 'max-sm:mb-[15px] max-sm:text-[45px] ' +
85
+ 'max-2sm:mb-[10px] max-2sm:text-[45px] ' +
86
+ 'max-2sm:mb-[7px] max-xs:text-[45px] ' +
87
+ 'max-2xs:text-[35px]'
72
88
  }
73
89
  >
74
- <p
75
- className={
76
- 'text-[80px] font-[900] leading-none tracking-[-3.2px] ' +
77
- 'max-3xl:text-[70px] max-xxl:text-[60px] max-lg:text-[45px] max-md:text-[40px] max-sm:text-[45px] max-2xs:text-[35px]'
78
- }
79
- >
80
- OFFICE
81
- </p>
90
+ {' '}
91
+ OFFICE
82
92
  </span>
83
93
  </span>
84
- )}
94
+ </span>
95
+ <span
96
+ className={
97
+ 'text-[26px] max-xs:text-[20px] max-2xs:text-[14px] xs:leading-8 2xs:leading-6 leading-3 sm:hidden'
98
+ }
99
+ >
100
+ <p>전국의 대륜 산재전문변호사는</p>
101
+
102
+ <b className={'font-[800]'}>365일 24시간 긴급 대응 가능</b>
103
+ </span>
85
104
 
86
105
  <div
87
106
  className={
@@ -120,7 +139,7 @@ const MapSection = ({
120
139
  >
121
140
  {mapAreas && mapAreas.length > 0 ? (
122
141
  mapAreas.map((area, index) => {
123
- return <AreaImage key={index} area={area} />;
142
+ return <AreaImage key={index} area={area} isGroup={isGroup} />;
124
143
  })
125
144
  ) : (
126
145
  <></>
@@ -1383,10 +1383,6 @@ video {
1383
1383
  flex-wrap: wrap;
1384
1384
  }
1385
1385
 
1386
- .items-end {
1387
- align-items: flex-end;
1388
- }
1389
-
1390
1386
  .items-center {
1391
1387
  align-items: center;
1392
1388
  }
@@ -1768,10 +1764,6 @@ video {
1768
1764
  padding-bottom: 2.5rem;
1769
1765
  }
1770
1766
 
1771
- .pb-\[1\.1\%\] {
1772
- padding-bottom: 1.1%;
1773
- }
1774
-
1775
1767
  .pb-\[200px\] {
1776
1768
  padding-bottom: 200px;
1777
1769
  }
@@ -1788,10 +1780,6 @@ video {
1788
1780
  padding-bottom: 30px;
1789
1781
  }
1790
1782
 
1791
- .pb-\[8px\] {
1792
- padding-bottom: 8px;
1793
- }
1794
-
1795
1783
  .pl-\[12px\] {
1796
1784
  padding-left: 12px;
1797
1785
  }
@@ -1959,10 +1947,6 @@ video {
1959
1947
  font-weight: 800;
1960
1948
  }
1961
1949
 
1962
- .font-\[900\] {
1963
- font-weight: 900;
1964
- }
1965
-
1966
1950
  .font-bold {
1967
1951
  font-weight: 700;
1968
1952
  }
@@ -1979,14 +1963,18 @@ video {
1979
1963
  font-weight: 600;
1980
1964
  }
1981
1965
 
1982
- .leading-\[0\.8\] {
1983
- line-height: 0.8;
1966
+ .leading-3 {
1967
+ line-height: .75rem;
1984
1968
  }
1985
1969
 
1986
1970
  .leading-\[17px\] {
1987
1971
  line-height: 17px;
1988
1972
  }
1989
1973
 
1974
+ .leading-\[20px\] {
1975
+ line-height: 20px;
1976
+ }
1977
+
1990
1978
  .leading-\[30px\] {
1991
1979
  line-height: 30px;
1992
1980
  }
@@ -2035,14 +2023,6 @@ video {
2035
2023
  letter-spacing: -2px;
2036
2024
  }
2037
2025
 
2038
- .tracking-\[-3\.2px\] {
2039
- letter-spacing: -3.2px;
2040
- }
2041
-
2042
- .tracking-\[-3\.46px\] {
2043
- letter-spacing: -3.46px;
2044
- }
2045
-
2046
2026
  .tracking-\[0px\] {
2047
2027
  letter-spacing: 0px;
2048
2028
  }
@@ -2472,12 +2452,8 @@ body {
2472
2452
  padding-bottom: 140px;
2473
2453
  }
2474
2454
 
2475
- .max-3xl\:pb-\[6px\] {
2476
- padding-bottom: 6px;
2477
- }
2478
-
2479
- .max-3xl\:text-\[150px\] {
2480
- font-size: 150px;
2455
+ .max-3xl\:text-\[154px\] {
2456
+ font-size: 154px;
2481
2457
  }
2482
2458
 
2483
2459
  .max-3xl\:text-\[16px\] {
@@ -2510,10 +2486,6 @@ body {
2510
2486
  padding: 10px;
2511
2487
  }
2512
2488
 
2513
- .max-xxl\:pb-\[3px\] {
2514
- padding-bottom: 3px;
2515
- }
2516
-
2517
2489
  .max-xxl\:text-\[120px\] {
2518
2490
  font-size: 120px;
2519
2491
  }
@@ -2602,6 +2574,10 @@ body {
2602
2574
  font-size: 20px;
2603
2575
  }
2604
2576
 
2577
+ .max-xl\:text-\[22px\] {
2578
+ font-size: 22px;
2579
+ }
2580
+
2605
2581
  .max-xl\:text-\[48px\] {
2606
2582
  font-size: 48px;
2607
2583
  }
@@ -2778,6 +2754,14 @@ body {
2778
2754
  gap: 0.5rem;
2779
2755
  }
2780
2756
 
2757
+ .max-lg\:gap-\[10px\] {
2758
+ gap: 10px;
2759
+ }
2760
+
2761
+ .max-lg\:gap-\[5px\] {
2762
+ gap: 5px;
2763
+ }
2764
+
2781
2765
  .max-lg\:rounded-none {
2782
2766
  border-radius: 0px;
2783
2767
  }
@@ -2838,10 +2822,6 @@ body {
2838
2822
  padding-bottom: 18px;
2839
2823
  }
2840
2824
 
2841
- .max-lg\:pl-\[10px\] {
2842
- padding-left: 10px;
2843
- }
2844
-
2845
2825
  .max-lg\:pt-\[10px\] {
2846
2826
  padding-top: 10px;
2847
2827
  }
@@ -2866,6 +2846,10 @@ body {
2866
2846
  font-size: 16px;
2867
2847
  }
2868
2848
 
2849
+ .max-lg\:text-\[17px\] {
2850
+ font-size: 17px;
2851
+ }
2852
+
2869
2853
  .max-lg\:text-\[18px\] {
2870
2854
  font-size: 18px;
2871
2855
  }
@@ -3154,6 +3138,14 @@ body {
3154
3138
  }
3155
3139
 
3156
3140
  @media not all and (min-width: 640px) {
3141
+ .max-sm\:mb-\[15px\] {
3142
+ margin-bottom: 15px;
3143
+ }
3144
+
3145
+ .max-sm\:hidden {
3146
+ display: none;
3147
+ }
3148
+
3157
3149
  .max-sm\:h-\[300px\] {
3158
3150
  height: 300px;
3159
3151
  }
@@ -3186,6 +3178,10 @@ body {
3186
3178
  width: 30%;
3187
3179
  }
3188
3180
 
3181
+ .max-sm\:items-end {
3182
+ align-items: flex-end;
3183
+ }
3184
+
3189
3185
  .max-sm\:object-left {
3190
3186
  -o-object-position: left;
3191
3187
  object-position: left;
@@ -3201,10 +3197,6 @@ body {
3201
3197
  padding-bottom: 80px;
3202
3198
  }
3203
3199
 
3204
- .max-sm\:pl-3 {
3205
- padding-left: 0.75rem;
3206
- }
3207
-
3208
3200
  .max-sm\:text-\[100px\] {
3209
3201
  font-size: 100px;
3210
3202
  }
@@ -3215,6 +3207,14 @@ body {
3215
3207
  }
3216
3208
 
3217
3209
  @media not all and (min-width: 520px) {
3210
+ .max-2sm\:mb-\[10px\] {
3211
+ margin-bottom: 10px;
3212
+ }
3213
+
3214
+ .max-2sm\:mb-\[7px\] {
3215
+ margin-bottom: 7px;
3216
+ }
3217
+
3218
3218
  .max-2sm\:mt-\[15px\] {
3219
3219
  margin-top: 15px;
3220
3220
  }
@@ -3269,6 +3269,10 @@ body {
3269
3269
  padding-left: 10px;
3270
3270
  }
3271
3271
 
3272
+ .max-2sm\:text-\[100px\] {
3273
+ font-size: 100px;
3274
+ }
3275
+
3272
3276
  .max-2sm\:text-\[13px\] {
3273
3277
  font-size: 13px;
3274
3278
  }
@@ -3284,6 +3288,10 @@ body {
3284
3288
  .max-2sm\:text-\[27px\] {
3285
3289
  font-size: 27px;
3286
3290
  }
3291
+
3292
+ .max-2sm\:text-\[45px\] {
3293
+ font-size: 45px;
3294
+ }
3287
3295
  }
3288
3296
 
3289
3297
  @media not all and (min-width: 480px) {
@@ -3383,6 +3391,10 @@ body {
3383
3391
  text-align: left;
3384
3392
  }
3385
3393
 
3394
+ .max-xs\:text-\[100px\] {
3395
+ font-size: 100px;
3396
+ }
3397
+
3386
3398
  .max-xs\:text-\[10px\] {
3387
3399
  font-size: 10px;
3388
3400
  }
@@ -3395,6 +3407,10 @@ body {
3395
3407
  font-size: 16px;
3396
3408
  }
3397
3409
 
3410
+ .max-xs\:text-\[20px\] {
3411
+ font-size: 20px;
3412
+ }
3413
+
3398
3414
  .max-xs\:text-\[24px\] {
3399
3415
  font-size: 24px;
3400
3416
  }
@@ -3407,6 +3423,10 @@ body {
3407
3423
  font-size: 30px;
3408
3424
  }
3409
3425
 
3426
+ .max-xs\:text-\[45px\] {
3427
+ font-size: 45px;
3428
+ }
3429
+
3410
3430
  .max-xs\:leading-snug {
3411
3431
  line-height: 1.375;
3412
3432
  }
@@ -3460,6 +3480,12 @@ body {
3460
3480
  }
3461
3481
  }
3462
3482
 
3483
+ @media (min-width: 400px) {
3484
+ .\32xs\:leading-6 {
3485
+ line-height: 1.5rem;
3486
+ }
3487
+ }
3488
+
3463
3489
  @media (min-width: 480px) {
3464
3490
  .xs\:flex {
3465
3491
  display: flex;
@@ -3493,6 +3519,10 @@ body {
3493
3519
  .xs\:text-center {
3494
3520
  text-align: center;
3495
3521
  }
3522
+
3523
+ .xs\:leading-8 {
3524
+ line-height: 2rem;
3525
+ }
3496
3526
  }
3497
3527
 
3498
3528
  @media (min-width: 640px) {
@@ -3504,6 +3534,10 @@ body {
3504
3534
  display: grid;
3505
3535
  }
3506
3536
 
3537
+ .sm\:hidden {
3538
+ display: none;
3539
+ }
3540
+
3507
3541
  .sm\:w-\[18px\] {
3508
3542
  width: 18px;
3509
3543
  }
@@ -3515,6 +3549,10 @@ body {
3515
3549
  .sm\:text-\[1\.4em\] {
3516
3550
  font-size: 1.4em;
3517
3551
  }
3552
+
3553
+ .sm\:leading-\[22px\] {
3554
+ line-height: 22px;
3555
+ }
3518
3556
  }
3519
3557
 
3520
3558
  @media (min-width: 768px) {
@@ -3601,6 +3639,10 @@ body {
3601
3639
  .lg\:text-\[32px\] {
3602
3640
  font-size: 32px;
3603
3641
  }
3642
+
3643
+ .lg\:leading-7 {
3644
+ line-height: 1.75rem;
3645
+ }
3604
3646
  }
3605
3647
 
3606
3648
  @media (min-width: 1280px) {
@@ -3625,6 +3667,12 @@ body {
3625
3667
  }
3626
3668
  }
3627
3669
 
3670
+ @media (min-width: 1500px) {
3671
+ .\33xl\:leading-9 {
3672
+ line-height: 2.25rem;
3673
+ }
3674
+ }
3675
+
3628
3676
  @media (min-width: 1536px) {
3629
3677
  .\32xl\:ml-\[3vw\] {
3630
3678
  margin-left: 3vw;