@daeryun/dr_components 0.2.45 → 0.2.47

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.
@@ -0,0 +1,75 @@
1
+ import Seo from './index';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import '../../styles/globals.css';
4
+
5
+ const fix = {
6
+ component: Seo,
7
+ title: 'Seo'
8
+ } satisfies Meta<typeof Seo>;
9
+
10
+ export default fix;
11
+ type Story = StoryObj<typeof Seo>;
12
+
13
+ export const Default: Story = {
14
+ render: () => {
15
+ return (
16
+ <div className={'font-[SUIT]'}>
17
+ <Seo
18
+ initialData={{
19
+ lawyer_cnt: 230,
20
+ total_cnt: 640,
21
+ office_cnt: 41,
22
+ consult_cnt: 137668,
23
+ success_cnt: 27002,
24
+ center_cnt: 22,
25
+ regenerTotal_cnt: 7526723016,
26
+ professional_cnt: 240,
27
+ weekday: '06:00 ~ 24:00',
28
+ weekend: '06:00 ~ 24:00',
29
+ consult_time: '365일 24시간 상담과 긴급대응 가능',
30
+ success_2024: 27002,
31
+ field_center: [
32
+ 'CT0001',
33
+ 'CT0002',
34
+ 'CT0005',
35
+ 'CT0006',
36
+ 'CT0012',
37
+ 'CT0013',
38
+ 'CT0015',
39
+ 'CT0016',
40
+ 'CT0018',
41
+ 'CT0019',
42
+ 'CT0024',
43
+ 'CT0025',
44
+ 'CT0026',
45
+ 'CT0008',
46
+ 'CT0007',
47
+ 'CT0003',
48
+ 'CT0010',
49
+ 'CT0017',
50
+ 'CT0004',
51
+ 'CT0022',
52
+ 'CT0009',
53
+ 'CT0011',
54
+ 'CT0014',
55
+ 'CT0021'
56
+ ],
57
+ success_2024_ko: '2만 7,002',
58
+ compensation_regener_success: 9891,
59
+ detective_success: 9314,
60
+ divorce_inherit_success: 6332,
61
+ comp_administration_success: 1465,
62
+ aggregationDate: '2024.1.2~2024.8.31',
63
+ main_date: '2024년 1~8월 기준',
64
+ comp_cnt: 878,
65
+ consult_date: '지난 3년간 기준',
66
+ mandate_cnt: 30505,
67
+ consult_cnt_day: 175,
68
+ mandate_cnt_day: 73,
69
+ month_business_day: '2024년 11월 영업일 기준'
70
+ }}
71
+ />
72
+ </div>
73
+ );
74
+ }
75
+ };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IInitialDataTypes } from '@daeryun/dr_components/types';
3
+ declare const Seo: ({ initialData }: {
4
+ initialData: IInitialDataTypes;
5
+ }) => React.JSX.Element;
6
+ export default Seo;
@@ -0,0 +1,59 @@
1
+ import React from 'react';
2
+ import BgImg from '../../asset/images/seo/rec_img_01.webp';
3
+ import Icon1 from '../../asset/images/seo/rec_01.svg';
4
+ import Icon2 from '../../asset/images/seo/rec_02.svg';
5
+ import Icon3 from '../../asset/images/seo/rec_03.svg';
6
+ import Arrow from '../../asset/images/seo/Arrow_Right_MD.svg';
7
+ import Image from 'next/image';
8
+ import Link from 'next/link';
9
+ const Seo = ({ initialData }) => {
10
+ const data = [
11
+ '대륜 로펌만의\n<b>AI 빅데이터 판결 분석</b> 변론',
12
+ '<b>620명 이상</b>의\n다양한 분야의 최고의 인재들',
13
+ `지난 4년간 기준\n<b>${initialData.consult_cnt}건의 상담건수</b>` // Use template literal to inject initialData
14
+ ];
15
+ const iconComponents = {
16
+ 0: Icon1,
17
+ 1: Icon2,
18
+ 2: Icon3
19
+ };
20
+ return (<>
21
+ <div className={'relative m-auto px-[20px] py-[40px] sm:px-[40px] sm:py-[40px]'}>
22
+ <Image src={BgImg} fill alt={'배경'} className={''} draggable={false}/>
23
+ <div className={'relative'}>
24
+ <div className={'relative flex justify-between '}>
25
+ <p className={'text-[26px] font-[700] text-[#1B467F] max-lg:m-auto sm:text-[34px]'}>
26
+ 대륜의 주요 강점
27
+ </p>
28
+ <Link href={'/strength'} className={'hidden lg:block'}>
29
+ <button className={'flex h-[53px] w-[220px] items-center justify-between bg-[#1B467F] px-[14px] text-[18px] font-[600] text-[#fff]'}>
30
+ 더 많은 강점 살펴보기
31
+ <Arrow></Arrow>
32
+ </button>
33
+ </Link>
34
+ </div>
35
+
36
+ <div className={'mt-[26px] flex flex-col justify-between gap-[12px] text-[16px] leading-[20px] sm:mt-[50px] sm:gap-[20px] sm:text-[22px] sm:leading-[28px] lg:flex-row lg:gap-[40px]'}>
37
+ {data.map((item, index) => (<div key={index} className={'flex h-[94px] items-center justify-center gap-[20px] rounded-[12px] bg-[#fff] bg-opacity-50 text-center tracking-[-0.7px] shadow-md max-sm:px-[18px] sm:h-[120px] lg:h-[200px] lg:w-[306px] lg:flex-col'}>
38
+ <div className={`${index !== 0 ? 'w-[30px]' : 'h-[42px] w-[46px]'} sm:h-[50px] sm:w-[56px] `}>
39
+ {iconComponents[index] &&
40
+ React.createElement(iconComponents[index], {
41
+ className: 'w-full h-full'
42
+ })}
43
+ </div>
44
+
45
+ <div className="max-lg:w-[250px] max-lg:text-left max-sm:w-[180px]" dangerouslySetInnerHTML={{ __html: item.replace(/\n/g, '<br />') }}></div>
46
+ </div>))}
47
+ </div>
48
+
49
+ <Link href={'/strength'} className={' mt-[40px] flex items-center justify-center lg:hidden'}>
50
+ <button className={'flex h-[43px] w-[200px] items-center justify-between bg-[#1B467F] px-[14px] text-[16px] font-[600] text-[#fff] sm:h-[53px] sm:w-[220px] sm:text-[18px]'}>
51
+ 더 많은 강점 살펴보기
52
+ <Arrow></Arrow>
53
+ </button>
54
+ </Link>
55
+ </div>
56
+ </div>
57
+ </>);
58
+ };
59
+ export default Seo;
@@ -0,0 +1,91 @@
1
+ import React, { RefObject, useEffect, useRef, useState } from 'react';
2
+ import BgImg from '../../asset/images/seo/rec_img_01.webp';
3
+ import Icon1 from '../../asset/images/seo/rec_01.svg';
4
+ import Icon2 from '../../asset/images/seo/rec_02.svg';
5
+ import Icon3 from '../../asset/images/seo/rec_03.svg';
6
+ import Arrow from '../../asset/images/seo/Arrow_Right_MD.svg';
7
+
8
+ import Image from 'next/image';
9
+ import { IInitialDataTypes } from '@daeryun/dr_components/types';
10
+ import Link from 'next/link';
11
+
12
+ const Seo = ({ initialData }: { initialData: IInitialDataTypes }) => {
13
+ const data = [
14
+ '대륜 로펌만의\n<b>AI 빅데이터 판결 분석</b> 변론',
15
+ '<b>620명 이상</b>의\n다양한 분야의 최고의 인재들',
16
+ `지난 4년간 기준\n<b>${initialData.consult_cnt}건의 상담건수</b>` // Use template literal to inject initialData
17
+ ];
18
+
19
+ const iconComponents: any = {
20
+ 0: Icon1,
21
+ 1: Icon2,
22
+ 2: Icon3
23
+ };
24
+
25
+ return (
26
+ <>
27
+ <div className={'relative m-auto px-[20px] py-[40px] sm:px-[40px] sm:py-[40px]'}>
28
+ <Image src={BgImg} fill alt={'배경'} className={''} draggable={false} />
29
+ <div className={'relative'}>
30
+ <div className={'relative flex justify-between '}>
31
+ <p className={'text-[26px] font-[700] text-[#1B467F] max-lg:m-auto sm:text-[34px]'}>
32
+ 대륜의 주요 강점
33
+ </p>
34
+ <Link href={'/strength'} className={'hidden lg:block'}>
35
+ <button
36
+ className={
37
+ 'flex h-[53px] w-[220px] items-center justify-between bg-[#1B467F] px-[14px] text-[18px] font-[600] text-[#fff]'
38
+ }
39
+ >
40
+ 더 많은 강점 살펴보기
41
+ <Arrow></Arrow>
42
+ </button>
43
+ </Link>
44
+ </div>
45
+
46
+ <div
47
+ className={
48
+ 'mt-[26px] flex flex-col justify-between gap-[12px] text-[16px] leading-[20px] sm:mt-[50px] sm:gap-[20px] sm:text-[22px] sm:leading-[28px] lg:flex-row lg:gap-[40px]'
49
+ }
50
+ >
51
+ {data.map((item, index) => (
52
+ <div
53
+ key={index}
54
+ className={
55
+ 'flex h-[94px] items-center justify-center gap-[20px] rounded-[12px] bg-[#fff] bg-opacity-50 text-center tracking-[-0.7px] shadow-md max-sm:px-[18px] sm:h-[120px] lg:h-[200px] lg:w-[306px] lg:flex-col'
56
+ }
57
+ >
58
+ <div
59
+ className={`${index !== 0 ? 'w-[30px]' : 'h-[42px] w-[46px]'} sm:h-[50px] sm:w-[56px] `}
60
+ >
61
+ {iconComponents[index] &&
62
+ React.createElement((iconComponents as any)[index], {
63
+ className: 'w-full h-full'
64
+ })}
65
+ </div>
66
+
67
+ <div
68
+ className="max-lg:w-[250px] max-lg:text-left max-sm:w-[180px]"
69
+ dangerouslySetInnerHTML={{ __html: item.replace(/\n/g, '<br />') }}
70
+ ></div>
71
+ </div>
72
+ ))}
73
+ </div>
74
+
75
+ <Link href={'/strength'} className={' mt-[40px] flex items-center justify-center lg:hidden'}>
76
+ <button
77
+ className={
78
+ 'flex h-[43px] w-[200px] items-center justify-between bg-[#1B467F] px-[14px] text-[16px] font-[600] text-[#fff] sm:h-[53px] sm:w-[220px] sm:text-[18px]'
79
+ }
80
+ >
81
+ 더 많은 강점 살펴보기
82
+ <Arrow></Arrow>
83
+ </button>
84
+ </Link>
85
+ </div>
86
+ </div>
87
+ </>
88
+ );
89
+ };
90
+
91
+ export default Seo;
@@ -964,6 +964,10 @@ video {
964
964
  margin-top: 22px;
965
965
  }
966
966
 
967
+ .mt-\[26px\] {
968
+ margin-top: 26px;
969
+ }
970
+
967
971
  .mt-\[30px\] {
968
972
  margin-top: 30px;
969
973
  }
@@ -1164,6 +1168,10 @@ video {
1164
1168
  height: 42px;
1165
1169
  }
1166
1170
 
1171
+ .h-\[43px\] {
1172
+ height: 43px;
1173
+ }
1174
+
1167
1175
  .h-\[460px\] {
1168
1176
  height: 460px;
1169
1177
  }
@@ -1180,6 +1188,10 @@ video {
1180
1188
  height: 535px;
1181
1189
  }
1182
1190
 
1191
+ .h-\[53px\] {
1192
+ height: 53px;
1193
+ }
1194
+
1183
1195
  .h-\[55\%\] {
1184
1196
  height: 55%;
1185
1197
  }
@@ -1216,6 +1228,10 @@ video {
1216
1228
  height: 82px;
1217
1229
  }
1218
1230
 
1231
+ .h-\[94px\] {
1232
+ height: 94px;
1233
+ }
1234
+
1219
1235
  .h-auto {
1220
1236
  height: auto;
1221
1237
  }
@@ -1469,6 +1485,10 @@ video {
1469
1485
  width: 45%;
1470
1486
  }
1471
1487
 
1488
+ .w-\[46px\] {
1489
+ width: 46px;
1490
+ }
1491
+
1472
1492
  .w-\[48\%\] {
1473
1493
  width: 48%;
1474
1494
  }
@@ -2005,6 +2025,10 @@ video {
2005
2025
  border-radius: 10px;
2006
2026
  }
2007
2027
 
2028
+ .rounded-\[12px\] {
2029
+ border-radius: 12px;
2030
+ }
2031
+
2008
2032
  .rounded-\[15px\] {
2009
2033
  border-radius: 15px;
2010
2034
  }
@@ -2156,6 +2180,11 @@ video {
2156
2180
  background-color: rgb(27 36 79 / var(--tw-bg-opacity));
2157
2181
  }
2158
2182
 
2183
+ .bg-\[\#1B467F\] {
2184
+ --tw-bg-opacity: 1;
2185
+ background-color: rgb(27 70 127 / var(--tw-bg-opacity));
2186
+ }
2187
+
2159
2188
  .bg-\[\#285EA7\] {
2160
2189
  --tw-bg-opacity: 1;
2161
2190
  background-color: rgb(40 94 167 / var(--tw-bg-opacity));
@@ -2348,6 +2377,11 @@ video {
2348
2377
  padding-right: 140px;
2349
2378
  }
2350
2379
 
2380
+ .px-\[14px\] {
2381
+ padding-left: 14px;
2382
+ padding-right: 14px;
2383
+ }
2384
+
2351
2385
  .px-\[190px\] {
2352
2386
  padding-left: 190px;
2353
2387
  padding-right: 190px;
@@ -2834,6 +2868,10 @@ video {
2834
2868
  line-height: 1;
2835
2869
  }
2836
2870
 
2871
+ .leading-\[20px\] {
2872
+ line-height: 20px;
2873
+ }
2874
+
2837
2875
  .leading-\[24px\] {
2838
2876
  line-height: 24px;
2839
2877
  }
@@ -2988,6 +3026,11 @@ video {
2988
3026
  color: rgb(10 137 175 / var(--tw-text-opacity));
2989
3027
  }
2990
3028
 
3029
+ .text-\[\#1B467F\] {
3030
+ --tw-text-opacity: 1;
3031
+ color: rgb(27 70 127 / var(--tw-text-opacity));
3032
+ }
3033
+
2991
3034
  .text-\[\#215eaa\] {
2992
3035
  --tw-text-opacity: 1;
2993
3036
  color: rgb(33 94 170 / var(--tw-text-opacity));
@@ -3138,6 +3181,12 @@ video {
3138
3181
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3139
3182
  }
3140
3183
 
3184
+ .shadow-md {
3185
+ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
3186
+ --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
3187
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3188
+ }
3189
+
3141
3190
  .outline-none {
3142
3191
  outline: 2px solid transparent;
3143
3192
  outline-offset: 2px;
@@ -4624,6 +4673,10 @@ body {
4624
4673
  top: 2.8%;
4625
4674
  }
4626
4675
 
4676
+ .max-lg\:m-auto {
4677
+ margin: auto;
4678
+ }
4679
+
4627
4680
  .max-lg\:mb-\[70px\] {
4628
4681
  margin-bottom: 70px;
4629
4682
  }
@@ -4776,6 +4829,10 @@ body {
4776
4829
  width: 240px;
4777
4830
  }
4778
4831
 
4832
+ .max-lg\:w-\[250px\] {
4833
+ width: 250px;
4834
+ }
4835
+
4779
4836
  .max-lg\:w-\[25px\] {
4780
4837
  width: 25px;
4781
4838
  }
@@ -4968,6 +5025,10 @@ body {
4968
5025
  padding-top: 20px;
4969
5026
  }
4970
5027
 
5028
+ .max-lg\:text-left {
5029
+ text-align: left;
5030
+ }
5031
+
4971
5032
  .max-lg\:text-right {
4972
5033
  text-align: right;
4973
5034
  }
@@ -5808,6 +5869,10 @@ body {
5808
5869
  width: 14px;
5809
5870
  }
5810
5871
 
5872
+ .max-sm\:w-\[180px\] {
5873
+ width: 180px;
5874
+ }
5875
+
5811
5876
  .max-sm\:w-\[230px\] {
5812
5877
  width: 230px;
5813
5878
  }
@@ -5833,6 +5898,11 @@ body {
5833
5898
  object-position: left;
5834
5899
  }
5835
5900
 
5901
+ .max-sm\:px-\[18px\] {
5902
+ padding-left: 18px;
5903
+ padding-right: 18px;
5904
+ }
5905
+
5836
5906
  .max-sm\:py-20 {
5837
5907
  padding-top: 5rem;
5838
5908
  padding-bottom: 5rem;
@@ -6550,6 +6620,10 @@ body {
6550
6620
  margin-top: 32px;
6551
6621
  }
6552
6622
 
6623
+ .sm\:mt-\[50px\] {
6624
+ margin-top: 50px;
6625
+ }
6626
+
6553
6627
  .sm\:grid {
6554
6628
  display: grid;
6555
6629
  }
@@ -6558,17 +6632,67 @@ body {
6558
6632
  display: none;
6559
6633
  }
6560
6634
 
6635
+ .sm\:h-\[120px\] {
6636
+ height: 120px;
6637
+ }
6638
+
6639
+ .sm\:h-\[50px\] {
6640
+ height: 50px;
6641
+ }
6642
+
6643
+ .sm\:h-\[53px\] {
6644
+ height: 53px;
6645
+ }
6646
+
6561
6647
  .sm\:w-\[18px\] {
6562
6648
  width: 18px;
6563
6649
  }
6564
6650
 
6651
+ .sm\:w-\[220px\] {
6652
+ width: 220px;
6653
+ }
6654
+
6655
+ .sm\:w-\[56px\] {
6656
+ width: 56px;
6657
+ }
6658
+
6565
6659
  .sm\:grid-cols-3 {
6566
6660
  grid-template-columns: repeat(3, minmax(0, 1fr));
6567
6661
  }
6568
6662
 
6663
+ .sm\:gap-\[20px\] {
6664
+ gap: 20px;
6665
+ }
6666
+
6667
+ .sm\:px-\[40px\] {
6668
+ padding-left: 40px;
6669
+ padding-right: 40px;
6670
+ }
6671
+
6672
+ .sm\:py-\[40px\] {
6673
+ padding-top: 40px;
6674
+ padding-bottom: 40px;
6675
+ }
6676
+
6569
6677
  .sm\:text-\[1\.4em\] {
6570
6678
  font-size: 1.4em;
6571
6679
  }
6680
+
6681
+ .sm\:text-\[18px\] {
6682
+ font-size: 18px;
6683
+ }
6684
+
6685
+ .sm\:text-\[22px\] {
6686
+ font-size: 22px;
6687
+ }
6688
+
6689
+ .sm\:text-\[34px\] {
6690
+ font-size: 34px;
6691
+ }
6692
+
6693
+ .sm\:leading-\[28px\] {
6694
+ line-height: 28px;
6695
+ }
6572
6696
  }
6573
6697
 
6574
6698
  @media (min-width: 768px) {
@@ -6648,10 +6772,18 @@ body {
6648
6772
  display: none;
6649
6773
  }
6650
6774
 
6775
+ .lg\:h-\[200px\] {
6776
+ height: 200px;
6777
+ }
6778
+
6651
6779
  .lg\:w-3\/5 {
6652
6780
  width: 60%;
6653
6781
  }
6654
6782
 
6783
+ .lg\:w-\[306px\] {
6784
+ width: 306px;
6785
+ }
6786
+
6655
6787
  .lg\:w-\[49px\] {
6656
6788
  width: 49px;
6657
6789
  }
@@ -6664,6 +6796,18 @@ body {
6664
6796
  cursor: auto;
6665
6797
  }
6666
6798
 
6799
+ .lg\:flex-row {
6800
+ flex-direction: row;
6801
+ }
6802
+
6803
+ .lg\:flex-col {
6804
+ flex-direction: column;
6805
+ }
6806
+
6807
+ .lg\:gap-\[40px\] {
6808
+ gap: 40px;
6809
+ }
6810
+
6667
6811
  .lg\:whitespace-pre-wrap {
6668
6812
  white-space: pre-wrap;
6669
6813
  }