@daeryun/dr_components 0.8.73 → 0.8.75

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.
@@ -1,7 +1,7 @@
1
1
  import Link from 'next/link';
2
2
  import React, { useState } from 'react';
3
3
  import IconLabel from '../../../../asset/images/success_new/label.svg';
4
- import IconArrow from '../../../../asset/images/success_new/arrow.svg';
4
+ import IconArrow from '../../../../asset/images/success_new/arrow_line.svg';
5
5
  import { IContentsListTypes, ISeoTemplateTypes } from '../SuccessNewType';
6
6
 
7
7
  const LawInfoContentList = ({
@@ -16,23 +16,33 @@ const LawInfoContentList = ({
16
16
  const [hoverNum, setHoverNum] = useState<number>(0);
17
17
 
18
18
  return (
19
- <section className={'w-full ' + className}>
19
+ <section
20
+ className={
21
+ 'w-full bg-[#F6F6F6] p-[54px] ' +
22
+ 'max-lg:p-[48px] max-md2:p-[40px] max-sm:p-[32px] ' +
23
+ 'max-2xs:px-5 ' +
24
+ className
25
+ }
26
+ style={{ fontFamily: "'Noto Sans KR', sans-serif" }}
27
+ >
20
28
  <div
21
29
  className={
22
- 'mb-[45px] text-[28px] font-[900] tracking-[5.6px] text-[#0F295F] ' +
30
+ 'mb-[29px] text-[34px] font-[800] leading-none tracking-[-4%] text-[#192555] ' +
23
31
  //1024px
24
- 'max-lg:text-[26px] ' +
32
+ 'max-lg:text-[28px] ' +
33
+ //900px
34
+ 'max-md2:mb-[24px] max-md2:text-[26px] ' +
25
35
  //768px
26
- 'max-md:mb-[35px] max-md:text-[24px] ' +
27
- //520px
28
- 'max-2sm:text-[22px] ' +
29
- //400px
30
- 'max-2xs:text-[20px] '
36
+ 'max-md:text-[24px] ' +
37
+ //640px
38
+ 'max-sm:text-[22px] ' +
39
+ //480px
40
+ 'max-xs:mb-[16px]'
31
41
  }
32
42
  >
33
- CONTENTS
43
+ 관련 정보
34
44
  </div>
35
- <ul className={'flex flex-col gap-[10px]'}>
45
+ <ul className={'grid grid-cols-3 gap-[20px] ' + 'max-md:grid-cols-2 ' + 'max-xs:grid-cols-1 max-xs:gap-3'}>
36
46
  {contentsList &&
37
47
  contentsList.map((content, index) => (
38
48
  <li key={'contents ' + content.type_idx}>
@@ -45,70 +55,40 @@ const LawInfoContentList = ({
45
55
  }
46
56
  onMouseEnter={() => setHoverNum(index)}
47
57
  className={
48
- 'flex w-full items-center justify-between gap-[25px] rounded-[10px] bg-[#0F295F] px-[30px] py-[25px] transition-[background] ' +
49
- `${index === hoverNum ? '' : 'bg-opacity-[0.04] '}` +
58
+ 'flex h-full w-full items-start justify-between gap-[10px] bg-[#192555] p-4 transition-all ' +
59
+ `${index === hoverNum ? ' ' : 'bg-opacity-0 '} ` +
50
60
  //1024px
51
- 'max-lg:gap-[20px] ' +
61
+ 'max-lg:gap-[8px] ' +
52
62
  //768px
53
- 'max-md:rounded-[6px] max-md:px-[25px] max-md:py-[20px] ' +
54
- //520px
55
- 'max-2sm:gap-[10px] max-2sm:rounded-[4px] max-2sm:px-[20px] max-2sm:py-[18px] ' +
63
+ 'max-md:p-3 ' +
56
64
  //400px
57
- 'max-2xs:gap-[6px] max-2xs:py-[16px] '
65
+ 'max-2xs:gap-2'
58
66
  }
67
+ style={{
68
+ border: '1px solid',
69
+ borderColor: index === hoverNum ? 'transparent' : '#D3D3D3'
70
+ }}
59
71
  >
60
- <span
72
+ <p
61
73
  className={
62
- 'flex gap-[25px] ' +
63
- //1024px
64
- 'max-lg:gap-[20px] ' +
65
- //520px
66
- 'max-2sm:gap-[10px] '
74
+ 'line-clamp-2 text-[20px] font-[600] leading-[135%] tracking-[-4%] transition-colors ' +
75
+ `${index === hoverNum ? 'text-white ' : 'text-[#192555] '}` +
76
+ //1400px
77
+ 'max-xxl:text-[18px] ' +
78
+ //768px
79
+ 'max-md:text-[16px] ' +
80
+ //480px
81
+ 'max-xs:leading-[25px]'
67
82
  }
68
83
  >
69
- <IconLabel
70
- className={
71
- 'h-auto w-[20px] shrink-0 transition-[fill] ' +
72
- `${index === hoverNum ? 'fill-white ' : 'fill-[#0F295F] '}` +
73
- //1400px
74
- 'max-xxl:w-[17px] ' +
75
- //768px
76
- 'max-md:w-[15px] ' +
77
- //520px
78
- 'max-2sm:w-[13px] ' +
79
- //400px
80
- 'max-2xs:w-[11px] '
81
- }
82
- />
83
- <p
84
- className={
85
- 'line-clamp-1 text-[24px] font-[700] tracking-[-0.96px] transition-colors ' +
86
- `${index === hoverNum ? 'text-white ' : 'text-[#0F295F] '}` +
87
- //1400px
88
- 'max-xxl:text-[22px] ' +
89
- //1024px
90
- 'max-lg:text-[20px] ' +
91
- //520px
92
- 'max-2sm:line-clamp-2 max-2sm:text-[18px] ' +
93
- //400px
94
- 'max-2xs:text-[16px] '
95
- }
96
- >
97
- {content.tag_title}
98
- </p>
99
- </span>
84
+ {content.tag_title}
85
+ </p>
100
86
  <IconArrow
101
87
  className={
102
- 'h-auto w-[21px] shrink-0 ' +
103
- `${index === hoverNum ? 'fill-white ' : 'fill-[#0F295F] '}` +
88
+ 'mx-[6px] mt-2 h-auto w-[10px] shrink-0 ' +
89
+ `${index === hoverNum ? 'fill-white ' : 'fill-[#192555] '}` +
104
90
  //1400px
105
- 'max-xxl:w-[18px] ' +
106
- //768px
107
- 'max-md:w-[17px] ' +
108
- //520px
109
- 'max-2sm:w-[14px] ' +
110
- //400px
111
- 'max-2xs:w-[12px] '
91
+ 'max-xxl:mt-[4px] max-xxl:w-2 '
112
92
  }
113
93
  />
114
94
  </Link>