@daeryun/dr_components 0.7.52 → 0.7.53
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.
- package/dist/asset/images/lawfirm/balance.svg +19 -0
- package/dist/asset/images/lawfirm/certified.svg +33 -0
- package/dist/asset/images/lawfirm/checkbox.svg +11 -0
- package/dist/asset/images/lawfirm/document.svg +23 -0
- package/dist/asset/images/lawfirm/downArrow.svg +5 -0
- package/dist/asset/images/lawfirm/picture.svg +12 -0
- package/dist/asset/images/lawfirm/section_1_1.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_1_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_3.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_3_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_4.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_5.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_5_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_6.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_7.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_8.webp +0 -0
- package/dist/asset/images/lawfirm/section_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_2_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_1.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_1_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_1_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_2_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_2_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_3.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_3_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_3_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_4.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_4_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_4_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_5.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_5_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_5_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_4.webp +0 -0
- package/dist/asset/images/lawfirm/section_4_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_1.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_3.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_4.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_5.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_6.webp +0 -0
- package/dist/asset/images/lawfirm/section_6.webp +0 -0
- package/dist/asset/images/lawfirm/section_6_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_6_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_7_1.webp +0 -0
- package/dist/asset/images/lawfirm/section_7_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_7_3.webp +0 -0
- package/dist/asset/images/lawfirm/section_9.webp +0 -0
- package/dist/asset/images/lawfirm/section_9_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_9_t.webp +0 -0
- package/dist/components/PageTitleBox/PageTitleBox.d.ts +6 -2
- package/dist/components/PageTitleBox/PageTitleBox.jsx +3 -2
- package/dist/components/PageTitleBox/PageTitleBox.tsx +10 -4
- package/dist/components/common/hook/index.d.ts +1 -0
- package/dist/components/common/hook/index.js +1 -0
- package/dist/components/common/hook/index.ts +1 -0
- package/dist/components/{hook → common/hook}/useElementObserve.d.ts +2 -0
- package/dist/components/{hook → common/hook}/useElementObserve.js +4 -2
- package/dist/components/{hook → common/hook}/useElementObserve.ts +4 -2
- package/dist/components/page/Lawfirm/CardSection1.d.ts +14 -0
- package/dist/components/page/Lawfirm/CardSection1.jsx +41 -0
- package/dist/components/page/Lawfirm/CardSection1.tsx +101 -0
- package/dist/components/page/Lawfirm/CardSection3.d.ts +17 -0
- package/dist/components/page/Lawfirm/CardSection3.jsx +45 -0
- package/dist/components/page/Lawfirm/CardSection3.tsx +132 -0
- package/dist/components/page/Lawfirm/CardSection5.d.ts +10 -0
- package/dist/components/page/Lawfirm/CardSection5.jsx +26 -0
- package/dist/components/page/Lawfirm/CardSection5.tsx +38 -0
- package/dist/components/page/Lawfirm/CardSection7.d.ts +12 -0
- package/dist/components/page/Lawfirm/CardSection7.jsx +21 -0
- package/dist/components/page/Lawfirm/CardSection7.tsx +46 -0
- package/dist/components/page/Lawfirm/Lawfirm.d.ts +2 -0
- package/dist/components/page/Lawfirm/Lawfirm.jsx +28 -0
- package/dist/components/page/Lawfirm/Lawfirm.stories.d.ts +6 -0
- package/dist/components/page/Lawfirm/Lawfirm.stories.jsx +14 -0
- package/dist/components/page/Lawfirm/Lawfirm.stories.tsx +21 -0
- package/dist/components/page/Lawfirm/Lawfirm.tsx +34 -0
- package/dist/components/page/Lawfirm/Section1.d.ts +5 -0
- package/dist/components/page/Lawfirm/Section1.jsx +114 -0
- package/dist/components/page/Lawfirm/Section1.tsx +221 -0
- package/dist/components/page/Lawfirm/Section2.d.ts +5 -0
- package/dist/components/page/Lawfirm/Section2.jsx +81 -0
- package/dist/components/page/Lawfirm/Section2.tsx +121 -0
- package/dist/components/page/Lawfirm/Section3.d.ts +8 -0
- package/dist/components/page/Lawfirm/Section3.jsx +213 -0
- package/dist/components/page/Lawfirm/Section3.tsx +274 -0
- package/dist/components/page/Lawfirm/Section4.d.ts +5 -0
- package/dist/components/page/Lawfirm/Section4.jsx +45 -0
- package/dist/components/page/Lawfirm/Section4.tsx +75 -0
- package/dist/components/page/Lawfirm/Section5.d.ts +8 -0
- package/dist/components/page/Lawfirm/Section5.jsx +135 -0
- package/dist/components/page/Lawfirm/Section5.tsx +174 -0
- package/dist/components/page/Lawfirm/Section6.d.ts +3 -0
- package/dist/components/page/Lawfirm/Section6.jsx +41 -0
- package/dist/components/page/Lawfirm/Section6.tsx +66 -0
- package/dist/components/page/Lawfirm/Section7.d.ts +5 -0
- package/dist/components/page/Lawfirm/Section7.jsx +136 -0
- package/dist/components/page/Lawfirm/Section7.tsx +201 -0
- package/dist/components/page/Lawfirm/Section8.d.ts +5 -0
- package/dist/components/page/Lawfirm/Section8.jsx +110 -0
- package/dist/components/page/Lawfirm/Section8.tsx +145 -0
- package/dist/components/page/Lawfirm/Section9.d.ts +3 -0
- package/dist/components/page/Lawfirm/Section9.jsx +36 -0
- package/dist/components/page/Lawfirm/Section9.tsx +70 -0
- package/dist/components/page/Lawfirm/lawfirm.module.css +541 -0
- package/dist/components/page/index.d.ts +1 -0
- package/dist/components/page/index.js +1 -0
- package/dist/components/page/index.ts +1 -0
- package/dist/styles/globals.css +1491 -16
- package/dist/styles/observe.module.css +19 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="100%"
|
|
3
|
+
height="100%"
|
|
4
|
+
viewBox="0 0 40 40"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<g clip-path="url(#clip0_4155_3682)">
|
|
9
|
+
<path
|
|
10
|
+
d="M21.6666 13.0497C23.0833 12.5497 24.2166 11.4163 24.7166 9.99967H29.9999L24.9999 21.6663C24.9999 24.433 27.6166 26.6663 30.8333 26.6663C34.0499 26.6663 36.6666 24.433 36.6666 21.6663L31.6666 9.99967H34.9999V6.66634H24.7166C24.0333 4.71634 22.1833 3.33301 19.9999 3.33301C17.8166 3.33301 15.9666 4.71634 15.2833 6.66634H4.99992V9.99967H8.33325L3.33325 21.6663C3.33325 24.433 5.94992 26.6663 9.16658 26.6663C12.3833 26.6663 14.9999 24.433 14.9999 21.6663L9.99992 9.99967H15.2833C15.7833 11.4163 16.9166 12.5497 18.3333 13.0497V31.6663H3.33325V34.9997H36.6666V31.6663H21.6666V13.0497ZM33.9499 21.6663H27.7166L30.8333 14.3997L33.9499 21.6663ZM12.2833 21.6663H6.04992L9.16658 14.3997L12.2833 21.6663ZM19.9999 9.99967C19.0833 9.99967 18.3333 9.24967 18.3333 8.33301C18.3333 7.41634 19.0833 6.66634 19.9999 6.66634C20.9166 6.66634 21.6666 7.41634 21.6666 8.33301C21.6666 9.24967 20.9166 9.99967 19.9999 9.99967Z"
|
|
11
|
+
fill="black"
|
|
12
|
+
/>
|
|
13
|
+
</g>
|
|
14
|
+
<defs>
|
|
15
|
+
<clipPath id="clip0_4155_3682">
|
|
16
|
+
<rect width="40" height="40" fill="white" />
|
|
17
|
+
</clipPath>
|
|
18
|
+
</defs>
|
|
19
|
+
</svg>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="100%"
|
|
3
|
+
height="100%"
|
|
4
|
+
viewBox="0 0 40 40"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<g clip-path="url(#clip0_4155_3694)">
|
|
9
|
+
<path d="M11.6666 16.667H8.33325V28.3337H11.6666V16.667Z" fill="black" />
|
|
10
|
+
<path d="M21.6666 16.667H18.3333V28.3337H21.6666V16.667Z" fill="black" />
|
|
11
|
+
<path
|
|
12
|
+
d="M36.6666 10.0003L19.9999 1.66699L3.33325 10.0003V13.3337H36.6666V10.0003ZM10.7833 10.0003L19.9999 5.40033L29.2166 10.0003H10.7833Z"
|
|
13
|
+
fill="black"
|
|
14
|
+
/>
|
|
15
|
+
<path
|
|
16
|
+
d="M3.33325 31.667V35.0003H23.9999C23.6499 33.9337 23.4666 32.817 23.3999 31.667H3.33325Z"
|
|
17
|
+
fill="black"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M31.6666 20.4337V16.667H28.3333V22.1003L31.6666 20.4337Z"
|
|
21
|
+
fill="black"
|
|
22
|
+
/>
|
|
23
|
+
<path
|
|
24
|
+
d="M33.3332 23.334L26.6665 26.6673V30.9173C26.6665 35.1173 29.5165 39.0507 33.3332 40.0007C37.1498 39.0507 39.9998 35.1173 39.9998 30.9173V26.6673L33.3332 23.334ZM32.1332 35.0007L28.7498 31.6173L30.5165 29.8507L32.1332 31.4673L36.1498 27.5007L37.9165 29.2673L32.1332 35.0007Z"
|
|
25
|
+
fill="black"
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
<defs>
|
|
29
|
+
<clipPath id="clip0_4155_3694">
|
|
30
|
+
<rect width="40" height="40" fill="white" />
|
|
31
|
+
</clipPath>
|
|
32
|
+
</defs>
|
|
33
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="100%" height="100%" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_4731_4170)">
|
|
3
|
+
<path d="M10.4515 15.7466L7.17996 12.5748L6.06592 13.6473L10.4515 17.8992L19.8659 8.7717L18.7597 7.69922L10.4515 15.7466Z" fill="black" stroke="black"/>
|
|
4
|
+
</g>
|
|
5
|
+
<rect x="1.66602" y="1.5" width="22" height="22" rx="3" stroke="black" stroke-width="2"/>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_4731_4170">
|
|
8
|
+
<rect x="0.666016" y="0.5" width="24" height="24" rx="4" fill="white"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="100%"
|
|
3
|
+
height="100%"
|
|
4
|
+
viewBox="0 0 40 40"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
fill-rule="evenodd"
|
|
10
|
+
clip-rule="evenodd"
|
|
11
|
+
d="M33.3333 5H6.66659C4.83325 5 3.33325 6.5 3.33325 8.33333V31.6667C3.33325 33.5 4.83325 35 6.66659 35H33.3333C35.1666 35 36.6666 33.5 36.6666 31.6667V8.33333C36.6666 6.5 35.1666 5 33.3333 5ZM33.3333 31.6667H6.66659V8.33333H33.3333V31.6667Z"
|
|
12
|
+
fill="black"
|
|
13
|
+
/>
|
|
14
|
+
<path
|
|
15
|
+
fill-rule="evenodd"
|
|
16
|
+
clip-rule="evenodd"
|
|
17
|
+
d="M32.3502 17.3667L29.9836 15L24.7002 20.2833L22.3502 17.9167L20.0002 20.2667L24.7002 25L32.3502 17.3667Z"
|
|
18
|
+
fill="black"
|
|
19
|
+
/>
|
|
20
|
+
<path d="M16.6668 11.666H8.3335V14.9993H16.6668V11.666Z" fill="black" />
|
|
21
|
+
<path d="M16.6668 18.334H8.3335V21.6673H16.6668V18.334Z" fill="black" />
|
|
22
|
+
<path d="M16.6668 25H8.3335V28.3333H16.6668V25Z" fill="black" />
|
|
23
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="100" height="100%" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
%
|
|
3
|
+
<path d="M1 1L7.00002 6L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M1 10L7.00002 15L13 10" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="100%"
|
|
3
|
+
height="100%"
|
|
4
|
+
viewBox="0 0 40 40"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M6.66659 38.3337V35.0003H33.3333V38.3337H6.66659ZM6.66659 5.00033V1.66699H33.3333V5.00033H6.66659ZM19.9999 21.667C21.3888 21.667 22.5694 21.1809 23.5416 20.2087C24.5138 19.2364 24.9999 18.0559 24.9999 16.667C24.9999 15.2781 24.5138 14.0975 23.5416 13.1253C22.5694 12.1531 21.3888 11.667 19.9999 11.667C18.611 11.667 17.4305 12.1531 16.4583 13.1253C15.486 14.0975 14.9999 15.2781 14.9999 16.667C14.9999 18.0559 15.486 19.2364 16.4583 20.2087C17.4305 21.1809 18.611 21.667 19.9999 21.667ZM6.66659 33.3337C5.74992 33.3337 4.96547 33.0075 4.31325 32.3553C3.65992 31.702 3.33325 30.917 3.33325 30.0003V10.0003C3.33325 9.08366 3.65992 8.29921 4.31325 7.64699C4.96547 6.99366 5.74992 6.66699 6.66659 6.66699H33.3333C34.2499 6.66699 35.0349 6.99366 35.6883 7.64699C36.3405 8.29921 36.6666 9.08366 36.6666 10.0003V30.0003C36.6666 30.917 36.3405 31.702 35.6883 32.3553C35.0349 33.0075 34.2499 33.3337 33.3333 33.3337H6.66659ZM9.58325 30.0003C10.8333 28.4448 12.3471 27.2225 14.1249 26.3337C15.9027 25.4448 17.861 25.0003 19.9999 25.0003C22.1388 25.0003 24.0971 25.4448 25.8749 26.3337C27.6527 27.2225 29.1666 28.4448 30.4166 30.0003H33.3333V10.0003H6.66659V30.0003H9.58325ZM14.4999 30.0003H25.4999C24.6944 29.4448 23.8266 29.0281 22.8966 28.7503C21.9655 28.4725 20.9999 28.3337 19.9999 28.3337C18.9999 28.3337 18.0349 28.4725 17.1049 28.7503C16.1738 29.0281 15.3055 29.4448 14.4999 30.0003ZM19.9999 18.3337C19.5277 18.3337 19.1321 18.1737 18.8133 17.8537C18.4933 17.5348 18.3333 17.1392 18.3333 16.667C18.3333 16.1948 18.4933 15.7987 18.8133 15.4787C19.1321 15.1598 19.5277 15.0003 19.9999 15.0003C20.4721 15.0003 20.8683 15.1598 21.1883 15.4787C21.5071 15.7987 21.6666 16.1948 21.6666 16.667C21.6666 17.1392 21.5071 17.5348 21.1883 17.8537C20.8683 18.1737 20.4721 18.3337 19.9999 18.3337Z"
|
|
10
|
+
fill="black"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ImgTypes } from './ImgTypes';
|
|
3
3
|
export type ImgType = (typeof ImgTypes)[keyof typeof ImgTypes];
|
|
4
|
+
interface ImgAlignConfig {
|
|
5
|
+
pc?: string;
|
|
6
|
+
mo?: string;
|
|
7
|
+
}
|
|
4
8
|
interface PageTitleBoxProps {
|
|
5
9
|
titleTxt: React.ReactNode;
|
|
6
10
|
subTxt?: React.ReactNode;
|
|
@@ -9,7 +13,7 @@ interface PageTitleBoxProps {
|
|
|
9
13
|
isSeo?: boolean;
|
|
10
14
|
isUseHeaderComponent?: boolean;
|
|
11
15
|
isWhiteText?: boolean;
|
|
12
|
-
|
|
16
|
+
isImgAlign?: ImgAlignConfig;
|
|
13
17
|
}
|
|
14
|
-
declare const PageTitleBox: ({ titleTxt, subTxt, imgType, isViewP, isSeo, isUseHeaderComponent, isWhiteText,
|
|
18
|
+
declare const PageTitleBox: ({ titleTxt, subTxt, imgType, isViewP, isSeo, isUseHeaderComponent, isWhiteText, isImgAlign }: PageTitleBoxProps) => React.JSX.Element;
|
|
15
19
|
export default PageTitleBox;
|
|
@@ -50,7 +50,8 @@ const imageMapMobile = {
|
|
|
50
50
|
[ImgTypes.FAQ]: faqImgM,
|
|
51
51
|
[ImgTypes.LAWFIRM]: lawfirmImgM
|
|
52
52
|
};
|
|
53
|
-
const PageTitleBox = ({ titleTxt, subTxt, imgType, isViewP, isSeo, isUseHeaderComponent, isWhiteText,
|
|
53
|
+
const PageTitleBox = ({ titleTxt, subTxt, imgType, isViewP, isSeo, isUseHeaderComponent, isWhiteText, isImgAlign }) => {
|
|
54
|
+
var _a, _b;
|
|
54
55
|
const { width } = useBrowser();
|
|
55
56
|
// seo페이지 사용시 div 아니면 공통 래퍼 사용
|
|
56
57
|
const Wrapper = isSeo ? 'div' : PageWrapper;
|
|
@@ -60,7 +61,7 @@ const PageTitleBox = ({ titleTxt, subTxt, imgType, isViewP, isSeo, isUseHeaderCo
|
|
|
60
61
|
'max-md:h-[250px] ' +
|
|
61
62
|
//480px
|
|
62
63
|
'max-xs:h-[200px] '}>
|
|
63
|
-
{width >= 640 ? (<Image src={imageMap[imgType]} alt={'페이지 타이틀 배경 pc 버전'} fill sizes={'100vw'} className={`h-full w-full object-cover ${
|
|
64
|
+
{width >= 640 ? (<Image src={imageMap[imgType]} alt={'페이지 타이틀 배경 pc 버전'} fill sizes={'100vw'} className={`h-full w-full object-cover max-sm:hidden ${(_a = isImgAlign === null || isImgAlign === void 0 ? void 0 : isImgAlign.pc) !== null && _a !== void 0 ? _a : ''}`} unoptimized priority draggable={false}/>) : (<Image src={imageMapMobile[imgType]} alt={'페이지 타이틀 배경 모바일 버전'} fill sizes={'100vw'} className={`h-full w-full object-cover sm:hidden ${(_b = isImgAlign === null || isImgAlign === void 0 ? void 0 : isImgAlign.mo) !== null && _b !== void 0 ? _b : ''}`} priority draggable={false}/>)}
|
|
64
65
|
<Wrapper className={isSeo ? 'relative m-auto w-[90%] max-w-[1536px] tracking-[-0.5px] max-xs:mb-[30px]' : 'relative'}>
|
|
65
66
|
<CategoryMenuForPage isWhiteText={isWhiteText} className="mb-[26px] max-md:mb-[20px] max-xs:mb-[12px]"/>
|
|
66
67
|
<SubPageTitle titleTxt={titleTxt} subTxt={subTxt} isViewP={isViewP} isWhiteText={isWhiteText}/>
|
|
@@ -58,6 +58,12 @@ const imageMapMobile: Record<ImgType, StaticImageData> = {
|
|
|
58
58
|
[ImgTypes.LAWFIRM]: lawfirmImgM
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
// 이미지 정렬 디테일
|
|
62
|
+
interface ImgAlignConfig {
|
|
63
|
+
pc?: string;
|
|
64
|
+
mo?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
61
67
|
interface PageTitleBoxProps {
|
|
62
68
|
titleTxt: React.ReactNode;
|
|
63
69
|
subTxt?: React.ReactNode;
|
|
@@ -66,7 +72,7 @@ interface PageTitleBoxProps {
|
|
|
66
72
|
isSeo?: boolean;
|
|
67
73
|
isUseHeaderComponent?: boolean;
|
|
68
74
|
isWhiteText?: boolean;
|
|
69
|
-
|
|
75
|
+
isImgAlign?: ImgAlignConfig;
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
const PageTitleBox = ({
|
|
@@ -77,7 +83,7 @@ const PageTitleBox = ({
|
|
|
77
83
|
isSeo,
|
|
78
84
|
isUseHeaderComponent,
|
|
79
85
|
isWhiteText,
|
|
80
|
-
|
|
86
|
+
isImgAlign
|
|
81
87
|
}: PageTitleBoxProps) => {
|
|
82
88
|
const { width } = useBrowser();
|
|
83
89
|
|
|
@@ -101,7 +107,7 @@ const PageTitleBox = ({
|
|
|
101
107
|
alt={'페이지 타이틀 배경 pc 버전'}
|
|
102
108
|
fill
|
|
103
109
|
sizes={'100vw'}
|
|
104
|
-
className={`h-full w-full object-cover
|
|
110
|
+
className={`h-full w-full object-cover max-sm:hidden ${isImgAlign?.pc ?? ''}`}
|
|
105
111
|
unoptimized
|
|
106
112
|
priority
|
|
107
113
|
draggable={false}
|
|
@@ -112,7 +118,7 @@ const PageTitleBox = ({
|
|
|
112
118
|
alt={'페이지 타이틀 배경 모바일 버전'}
|
|
113
119
|
fill
|
|
114
120
|
sizes={'100vw'}
|
|
115
|
-
className={`h-full w-full object-cover`}
|
|
121
|
+
className={`h-full w-full object-cover sm:hidden ${isImgAlign?.mo ?? ''}`}
|
|
116
122
|
priority
|
|
117
123
|
draggable={false}
|
|
118
124
|
/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import style from '
|
|
3
|
+
import style from '../../../styles/observe.module.css';
|
|
4
4
|
const useElementObserve = (targetRef, flagStandard) => {
|
|
5
5
|
const [flag, setFlag] = useState(false);
|
|
6
6
|
const [flagStandardBoolean, setFlagStandardBoolean] = useState(false);
|
|
@@ -34,7 +34,9 @@ const useElementObserve = (targetRef, flagStandard) => {
|
|
|
34
34
|
flag,
|
|
35
35
|
flagStandardBoolean,
|
|
36
36
|
flagClass: flag ? style.scroll_fade_in : 'opacity-0',
|
|
37
|
-
|
|
37
|
+
flagFastClass: flag ? style.scroll_fade_in_fast : 'opacity-0',
|
|
38
|
+
strengthClass: flag ? style.scroll_fade_in_strength : 'opacity-0',
|
|
39
|
+
lawFirmClass: flag ? style.scroll_fade_in_lawFirm : 'opacity-0'
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
42
|
export default useElementObserve;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import style from '
|
|
4
|
+
import style from '../../../styles/observe.module.css';
|
|
5
5
|
|
|
6
6
|
const useElementObserve = (targetRef: any, flagStandard?: number) => {
|
|
7
7
|
const [flag, setFlag] = useState<boolean>(false);
|
|
@@ -42,7 +42,9 @@ const useElementObserve = (targetRef: any, flagStandard?: number) => {
|
|
|
42
42
|
flag,
|
|
43
43
|
flagStandardBoolean,
|
|
44
44
|
flagClass: flag ? style.scroll_fade_in : 'opacity-0',
|
|
45
|
-
|
|
45
|
+
flagFastClass: flag ? style.scroll_fade_in_fast : 'opacity-0',
|
|
46
|
+
strengthClass: flag ? style.scroll_fade_in_strength : 'opacity-0',
|
|
47
|
+
lawFirmClass: flag ? style.scroll_fade_in_lawFirm : 'opacity-0'
|
|
46
48
|
};
|
|
47
49
|
};
|
|
48
50
|
export default useElementObserve;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface LawfirmStepCardProps {
|
|
2
|
+
fade: boolean;
|
|
3
|
+
minStep: number;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle: string;
|
|
6
|
+
tags: string[];
|
|
7
|
+
image1: string;
|
|
8
|
+
image2: string;
|
|
9
|
+
imageMo: string;
|
|
10
|
+
divClass?: string;
|
|
11
|
+
observeRef?: React.RefObject<HTMLDivElement>;
|
|
12
|
+
}
|
|
13
|
+
export default function CardSection1({ fade, title, subtitle, tags, image1, image2, imageMo, divClass, observeRef }: LawfirmStepCardProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
export default function CardSection1({ fade, title, subtitle, tags, image1, image2, imageMo, divClass = '', observeRef }) {
|
|
3
|
+
return (<div ref={observeRef} className={`${divClass} max-3sm:h-[236px] max-3sm:py-10 relative flex h-[200px] items-center justify-between overflow-hidden rounded-[20px] bg-gray-50 px-[160px] max-5xl:items-center max-5xl:px-[60px] max-xl:h-[160px] max-xl:px-10 max-md:px-5`}>
|
|
4
|
+
<div className="absolute right-0 top-0 h-full w-full">
|
|
5
|
+
<div className="absolute inset-0 transition-opacity duration-500 max-2sm:hidden" style={{ opacity: fade ? 0 : 1 }}>
|
|
6
|
+
<Image src={image1} alt="" fill className={'object-cover'} sizes={'100%'} unoptimized/>
|
|
7
|
+
</div>
|
|
8
|
+
<div className="absolute inset-0 transition-opacity duration-500 max-2sm:hidden" style={{ opacity: fade ? 1 : 0 }}>
|
|
9
|
+
<Image src={image2} alt="" fill className={'object-cover'} sizes={'100%'} unoptimized/>
|
|
10
|
+
</div>
|
|
11
|
+
<Image src={imageMo} alt="" fill className={'hidden object-cover max-2sm:block'} sizes={'100%'} unoptimized/>
|
|
12
|
+
</div>
|
|
13
|
+
<div className={'max-3sm:flex-col max-3sm:items-start z-10 flex h-fit w-full items-end justify-between max-xxl:items-center max-xl:h-full max-xl:items-center'}>
|
|
14
|
+
<p className="flex h-full w-fit flex-col justify-center font-[SUIT] max-md:w-[210px] max-sm:w-[140px] max-2sm:h-fit">
|
|
15
|
+
<span className="max-w-full whitespace-pre break-words text-[28px]
|
|
16
|
+
font-medium leading-[48px] max-xl:text-2xl
|
|
17
|
+
max-xl:leading-[140%] max-md:text-xl max-sm:text-[16px]">
|
|
18
|
+
{title}
|
|
19
|
+
</span>
|
|
20
|
+
|
|
21
|
+
<span className="text-5xl font-extrabold max-xl:text-[32px] max-xl:leading-[140%] max-md:text-[28px] max-sm:text-2xl">
|
|
22
|
+
{subtitle}
|
|
23
|
+
</span>
|
|
24
|
+
</p>
|
|
25
|
+
{/*pc뷰*/}
|
|
26
|
+
<p className="flex h-full w-full flex-wrap items-center justify-end gap-x-[10px] gap-y-[10px] pb-1 max-5xl:pb-0 max-3xl:h-fit max-3xl:gap-x-2 max-xxl:hidden">
|
|
27
|
+
{tags.map((tag, idx) => (<span key={idx} className="h-fit w-fit rounded-full border border-solid border-black px-5 py-1 text-[28px] font-medium leading-[160%] max-xl:px-4 max-xl:text-xl">
|
|
28
|
+
{tag}
|
|
29
|
+
</span>))}
|
|
30
|
+
</p>
|
|
31
|
+
{/*태블릿,모바일 뷰*/}
|
|
32
|
+
<div className="max-3sm:justify-normal z-10 hidden h-full w-[320px] flex-wrap justify-end gap-x-2 gap-y-[10px] max-xxl:flex max-xl:content-center max-xl:items-center max-sm:w-[265px] max-2sm:h-fit">
|
|
33
|
+
{Array.from({ length: Math.ceil(tags.length / 2) }, (_, i) => (<p key={i} className="flex h-fit items-center gap-x-2">
|
|
34
|
+
{tags.slice(i * 2, i * 2 + 2).map((tag, j) => (<span key={j} className="max-3m:text-[16px] h-fit w-fit whitespace-nowrap rounded-full border border-solid border-black px-5 py-1 text-[28px] font-medium leading-[160%] max-xl:px-4 max-xl:text-xl max-md:py-2 max-md:text-[18px] max-md:leading-[106%] max-sm:py-[6px] max-sm:text-[16px]">
|
|
35
|
+
{tag}
|
|
36
|
+
</span>))}
|
|
37
|
+
</p>))}
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>);
|
|
41
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
|
|
3
|
+
interface LawfirmStepCardProps {
|
|
4
|
+
fade: boolean;
|
|
5
|
+
minStep: number;
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle: string;
|
|
8
|
+
tags: string[];
|
|
9
|
+
image1: string;
|
|
10
|
+
image2: string;
|
|
11
|
+
imageMo: string;
|
|
12
|
+
divClass?: string;
|
|
13
|
+
observeRef?: React.RefObject<HTMLDivElement>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default function CardSection1({
|
|
17
|
+
fade,
|
|
18
|
+
title,
|
|
19
|
+
subtitle,
|
|
20
|
+
tags,
|
|
21
|
+
image1,
|
|
22
|
+
image2,
|
|
23
|
+
imageMo,
|
|
24
|
+
divClass = '',
|
|
25
|
+
observeRef
|
|
26
|
+
}: LawfirmStepCardProps) {
|
|
27
|
+
return (
|
|
28
|
+
<div
|
|
29
|
+
ref={observeRef}
|
|
30
|
+
className={`${divClass} max-3sm:h-[236px] max-3sm:py-10 relative flex h-[200px] items-center justify-between overflow-hidden rounded-[20px] bg-gray-50 px-[160px] max-5xl:items-center max-5xl:px-[60px] max-xl:h-[160px] max-xl:px-10 max-md:px-5`}
|
|
31
|
+
>
|
|
32
|
+
<div className="absolute right-0 top-0 h-full w-full">
|
|
33
|
+
<div
|
|
34
|
+
className="absolute inset-0 transition-opacity duration-500 max-2sm:hidden"
|
|
35
|
+
style={{ opacity: fade ? 0 : 1 }}
|
|
36
|
+
>
|
|
37
|
+
<Image src={image1} alt="" fill className={'object-cover'} sizes={'100%'} unoptimized />
|
|
38
|
+
</div>
|
|
39
|
+
<div
|
|
40
|
+
className="absolute inset-0 transition-opacity duration-500 max-2sm:hidden"
|
|
41
|
+
style={{ opacity: fade ? 1 : 0 }}
|
|
42
|
+
>
|
|
43
|
+
<Image src={image2} alt="" fill className={'object-cover'} sizes={'100%'} unoptimized />
|
|
44
|
+
</div>
|
|
45
|
+
<Image
|
|
46
|
+
src={imageMo}
|
|
47
|
+
alt=""
|
|
48
|
+
fill
|
|
49
|
+
className={'hidden object-cover max-2sm:block'}
|
|
50
|
+
sizes={'100%'}
|
|
51
|
+
unoptimized
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
<div
|
|
55
|
+
className={
|
|
56
|
+
'max-3sm:flex-col max-3sm:items-start z-10 flex h-fit w-full items-end justify-between max-xxl:items-center max-xl:h-full max-xl:items-center'
|
|
57
|
+
}
|
|
58
|
+
>
|
|
59
|
+
<p className="flex h-full w-fit flex-col justify-center font-[SUIT] max-md:w-[210px] max-sm:w-[140px] max-2sm:h-fit">
|
|
60
|
+
<span
|
|
61
|
+
className="max-w-full whitespace-pre break-words text-[28px]
|
|
62
|
+
font-medium leading-[48px] max-xl:text-2xl
|
|
63
|
+
max-xl:leading-[140%] max-md:text-xl max-sm:text-[16px]"
|
|
64
|
+
>
|
|
65
|
+
{title}
|
|
66
|
+
</span>
|
|
67
|
+
|
|
68
|
+
<span className="text-5xl font-extrabold max-xl:text-[32px] max-xl:leading-[140%] max-md:text-[28px] max-sm:text-2xl">
|
|
69
|
+
{subtitle}
|
|
70
|
+
</span>
|
|
71
|
+
</p>
|
|
72
|
+
{/*pc뷰*/}
|
|
73
|
+
<p className="flex h-full w-full flex-wrap items-center justify-end gap-x-[10px] gap-y-[10px] pb-1 max-5xl:pb-0 max-3xl:h-fit max-3xl:gap-x-2 max-xxl:hidden">
|
|
74
|
+
{tags.map((tag, idx) => (
|
|
75
|
+
<span
|
|
76
|
+
key={idx}
|
|
77
|
+
className="h-fit w-fit rounded-full border border-solid border-black px-5 py-1 text-[28px] font-medium leading-[160%] max-xl:px-4 max-xl:text-xl"
|
|
78
|
+
>
|
|
79
|
+
{tag}
|
|
80
|
+
</span>
|
|
81
|
+
))}
|
|
82
|
+
</p>
|
|
83
|
+
{/*태블릿,모바일 뷰*/}
|
|
84
|
+
<div className="max-3sm:justify-normal z-10 hidden h-full w-[320px] flex-wrap justify-end gap-x-2 gap-y-[10px] max-xxl:flex max-xl:content-center max-xl:items-center max-sm:w-[265px] max-2sm:h-fit">
|
|
85
|
+
{Array.from({ length: Math.ceil(tags.length / 2) }, (_, i) => (
|
|
86
|
+
<p key={i} className="flex h-fit items-center gap-x-2">
|
|
87
|
+
{tags.slice(i * 2, i * 2 + 2).map((tag, j) => (
|
|
88
|
+
<span
|
|
89
|
+
key={j}
|
|
90
|
+
className="max-3m:text-[16px] h-fit w-fit whitespace-nowrap rounded-full border border-solid border-black px-5 py-1 text-[28px] font-medium leading-[160%] max-xl:px-4 max-xl:text-xl max-md:py-2 max-md:text-[18px] max-md:leading-[106%] max-sm:py-[6px] max-sm:text-[16px]"
|
|
91
|
+
>
|
|
92
|
+
{tag}
|
|
93
|
+
</span>
|
|
94
|
+
))}
|
|
95
|
+
</p>
|
|
96
|
+
))}
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface LawfirmCardProps {
|
|
2
|
+
title: React.ReactNode;
|
|
3
|
+
label: string;
|
|
4
|
+
description: React.ReactNode;
|
|
5
|
+
compareLabel: string;
|
|
6
|
+
compareDescription: React.ReactNode;
|
|
7
|
+
image: string;
|
|
8
|
+
imageTa: string;
|
|
9
|
+
imageMo: string;
|
|
10
|
+
imageWidth: number;
|
|
11
|
+
imageHeight: number;
|
|
12
|
+
isFullWidth?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
}
|
|
16
|
+
export default function CardSection3({ title, label, description, compareLabel, compareDescription, image, imageTa, imageMo, imageWidth, imageHeight, isFullWidth, className, style }: LawfirmCardProps): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
export default function CardSection3({ title, label, description, compareLabel, compareDescription, image, imageTa, imageMo, imageWidth, imageHeight, isFullWidth = false, className = '', style = {} }) {
|
|
3
|
+
return (<li style={style} className={`relative flex h-[500px] flex-col overflow-hidden rounded-[20px] bg-white max-xl:h-fit max-xl:min-h-[244px] max-xl:flex-row max-xl:justify-between max-xl:gap-x-10 max-xl:p-0 max-lg2:min-h-[322px] max-md2:gap-x-0 max-xs:flex-col max-xs:items-center ${isFullWidth ? 'col-span-2 px-[120px] py-[150px] max-xl:col-span-1' : 'p-10'} ${className}`}>
|
|
4
|
+
<div className={'absolute bottom-0 left-0 h-full w-full max-xl:w-[50%] max-xl:max-w-[380px] max-xs:right-0 max-xs:top-0 max-xs:h-[148px] max-xs:w-full max-xs:max-w-full max-xs:overflow-hidden'}>
|
|
5
|
+
<Image src={image} className="absolute bottom-0 right-0 object-cover max-xl:hidden" width={imageWidth} height={imageHeight} unoptimized alt=""/>
|
|
6
|
+
<Image src={imageMo} className="absolute bottom-0 right-0 hidden object-cover max-xs:block max-xs:w-[320px]" width={imageWidth} height={imageHeight} unoptimized alt=""/>
|
|
7
|
+
</div>
|
|
8
|
+
<div className={'absolute bottom-0 left-0 h-full overflow-hidden max-xl:w-[calc(100%-660px)] max-lg2:w-[calc(100%-550px)] max-md2:w-[calc(100%-400px)] max-md2:min-w-[300px] max-xs:hidden'}>
|
|
9
|
+
<Image src={imageTa} className={`absolute ${isFullWidth ? '-right-[20px] w-[calc(100%-120px)] min-w-[320px] max-lg2:w-[calc(100%-80px)] max-md2:min-w-[300px] max-sm:min-w-[270px]' : '-right-[50px] w-[calc(100%-110px)] min-w-[340px] max-lg2:-right-[80px] max-md2:min-w-full'} bottom-0 hidden object-cover max-xl:block max-md2:left-0 max-xs:hidden`} width={imageWidth} height={imageHeight} unoptimized alt=""/>
|
|
10
|
+
</div>
|
|
11
|
+
<div className={'relative max-xl:w-[300px] max-md2:w-[280px] max-md2:shrink-0 max-sm:w-full max-sm:max-w-[240px] max-sm:shrink max-xs:h-[148px] max-xs:w-full max-xs:max-w-full max-xs:p-5'}>
|
|
12
|
+
<p className="relative z-20 mb-10 text-[40px] font-extrabold max-xl:p-10 max-xl:text-[32px] max-sm:pr-0 max-sm:text-[30px] max-xs:p-0 max-xs:text-[28px]">
|
|
13
|
+
{title}.
|
|
14
|
+
</p>
|
|
15
|
+
</div>
|
|
16
|
+
<div className={'h-fit w-full max-xl:max-w-[660px] max-xl:p-10 max-lg2:max-w-[550px] max-md2:max-w-[400px] max-sm:flex max-sm:w-full max-sm:flex-col max-sm:items-center max-sm:p-0'}>
|
|
17
|
+
<div className="flex flex-col gap-y-[30px] max-sm:w-[230px] max-sm:gap-y-[30px] max-sm:px-5 max-sm:py-10 max-sm:pl-0 max-xs:w-full max-xs:pb-[30px] max-xs:pl-5 max-xs:pt-[50px]">
|
|
18
|
+
<div className="z-20 flex gap-x-[30px] text-2xl font-extrabold max-xl:gap-x-[30px] max-xl:text-2xl max-lg2:flex-col max-sm:items-center">
|
|
19
|
+
<div className="inline-block h-fit min-w-[230px] rounded-full bg-gradient-to-r from-[#3482F6] via-[#A358FB] via-[#E73B6A] to-[#ED4914] p-[2px] max-xl:w-[200px] max-xl:min-w-[200px] max-xs:min-w-[160px] max-xs:max-w-[160px] ">
|
|
20
|
+
<span className=" block h-full w-full rounded-full bg-white px-5 py-1 text-center max-sm:py-[1px] max-sm:text-xl max-xs:text-[16px] ">
|
|
21
|
+
{label}
|
|
22
|
+
</span>
|
|
23
|
+
</div>
|
|
24
|
+
<span className={'mt-[6px] items-center justify-between max-lg2:mt-5 max-sm:mt-5 max-sm:flex max-sm:h-[84px] max-sm:text-center'}>
|
|
25
|
+
{description}
|
|
26
|
+
</span>
|
|
27
|
+
</div>
|
|
28
|
+
<hr className="z-20 max-w-[662px] border-t border-solid max-xs:hidden" style={{
|
|
29
|
+
borderImageSource: 'linear-gradient(90deg, rgba(0, 0, 0, 0.2) 79.81%, rgba(0, 0, 0, 0) 100%)',
|
|
30
|
+
borderImageSlice: 1,
|
|
31
|
+
borderImageRepeat: 'stretch',
|
|
32
|
+
borderImageWidth: 1
|
|
33
|
+
}}/>
|
|
34
|
+
<p className="z-20 flex items-start gap-x-[30px] text-[24px] text-black/50 max-xl:text-xl max-lg2:flex-col max-sm:items-center">
|
|
35
|
+
<span className="min-w-[230px] rounded-full border border-solid border-black/50 px-5 py-1 text-center max-xl:min-w-[200px] max-xl:max-w-[200px] max-lg2:mb-5 max-sm:mb-5 max-sm:py-[1px] max-sm:text-xl max-xs:min-w-[160px] max-xs:max-w-[160px] max-xs:text-[16px] ">
|
|
36
|
+
{compareLabel}
|
|
37
|
+
</span>
|
|
38
|
+
<span className={'mt-1 items-center justify-center max-lg2:mt-0 max-sm:flex max-sm:h-[72px] max-sm:text-center'}>
|
|
39
|
+
{compareDescription}
|
|
40
|
+
</span>
|
|
41
|
+
</p>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</li>);
|
|
45
|
+
}
|