@daeryun/dr_components 0.2.23 → 0.2.25

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,90 @@
1
+ import Court from '../../asset/images/mark/court.svg';
2
+ import Police from '../../asset/images/mark/police.svg';
3
+ import Prosecution from '../../asset/images/mark/prosecution.svg';
4
+ import Military from '../../asset/images/mark/military.svg';
5
+ import Trial from '../../asset/images/mark/trial.svg';
6
+ import Accounting from '../../asset/images/mark/accounting.svg';
7
+ import Customs from '../../asset/images/mark/customs.svg';
8
+
9
+ // 변호사 마크 컴포넌트 ---------------------
10
+
11
+ const Mark = (props: {
12
+ type: string; // 마크의 타입
13
+ color: string; // 마크 색상
14
+ className?: string; // svg 를 감싸는 span 의 스타일 : 크기를 여기에 지정해주면 됩니다.
15
+ svgClassName?: string; //svg 에게 직접 스타일을 줄 때
16
+ }) => {
17
+ const { type, color, className = '', svgClassName = '' } = props;
18
+ return (
19
+ <span className={className}>
20
+ {type === 'court' ? (
21
+ <Court
22
+ fill={color}
23
+ height="100%"
24
+ width="100%"
25
+ alt={'법원마크'}
26
+ title={'법원마크'}
27
+ className={svgClassName}
28
+ />
29
+ ) : type === 'police' ? (
30
+ <Police
31
+ fill={color}
32
+ height="100%"
33
+ width="100%"
34
+ alt={'경찰마크'}
35
+ title={'경찰마크'}
36
+ className={svgClassName}
37
+ />
38
+ ) : type === 'military' ? (
39
+ <Military
40
+ fill={color}
41
+ height="100%"
42
+ width="100%"
43
+ alt={'국방마크'}
44
+ title={'국방마크'}
45
+ className={svgClassName}
46
+ />
47
+ ) : type === 'prosecution' ? (
48
+ <Prosecution
49
+ fill={color}
50
+ height="100%"
51
+ width="100%"
52
+ alt={'검찰마크'}
53
+ title={'검찰마크'}
54
+ className={svgClassName}
55
+ />
56
+ ) : type === 'trial' ? (
57
+ <Trial
58
+ fill={color}
59
+ height="100%"
60
+ width="100%"
61
+ alt={'변호사마크'}
62
+ title={'변호사마크'}
63
+ className={svgClassName}
64
+ />
65
+ ) : type === 'accounting' ? (
66
+ <Accounting
67
+ fill={color}
68
+ height="100%"
69
+ width="100%"
70
+ alt={'회계사마크'}
71
+ title={'회계사마크'}
72
+ className={svgClassName}
73
+ />
74
+ ) : type === 'customs' ? (
75
+ <Customs
76
+ fill={color}
77
+ height="100%"
78
+ width="100%"
79
+ alt={'관세사마크'}
80
+ title={'관세사마크'}
81
+ className={svgClassName}
82
+ />
83
+ ) : (
84
+ <></>
85
+ )}
86
+ </span>
87
+ );
88
+ };
89
+
90
+ export default Mark;
@@ -12,3 +12,4 @@ export { default as Loader } from './Loader/Loader';
12
12
  export { default as MapSection } from './MapSection/MapSection';
13
13
  export { default as Header } from './Header/Header';
14
14
  export { default as Wrapper } from './Layout/Wrapper';
15
+ export { default as Mark } from './Mark/Mark';
@@ -12,3 +12,4 @@ export { default as Loader } from './Loader/Loader';
12
12
  export { default as MapSection } from './MapSection/MapSection';
13
13
  export { default as Header } from './Header/Header';
14
14
  export { default as Wrapper } from './Layout/Wrapper';
15
+ export { default as Mark } from './Mark/Mark';
@@ -1052,6 +1052,10 @@ video {
1052
1052
  height: 110px;
1053
1053
  }
1054
1054
 
1055
+ .h-\[150px\] {
1056
+ height: 150px;
1057
+ }
1058
+
1055
1059
  .h-\[15px\] {
1056
1060
  height: 15px;
1057
1061
  }
@@ -1317,6 +1321,10 @@ video {
1317
1321
  width: 12px;
1318
1322
  }
1319
1323
 
1324
+ .w-\[150px\] {
1325
+ width: 150px;
1326
+ }
1327
+
1320
1328
  .w-\[15px\] {
1321
1329
  width: 15px;
1322
1330
  }