@edu-tosel/design 1.0.335 → 1.0.342
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/README.md +42 -42
- package/asset/SVG.tsx +47 -47
- package/asset/html/gomito-promotion.html +116 -116
- package/asset/html/speaking-series-promotion.html +58 -58
- package/asset/sizes.ts +202 -202
- package/asset/svg/Close.tsx +32 -32
- package/asset/svg/Collab.tsx +51 -51
- package/asset/svg/Direction.tsx +76 -76
- package/asset/svg/Email.tsx +19 -19
- package/asset/svg/Eye.tsx +48 -48
- package/asset/svg/HallofFame.tsx +179 -179
- package/asset/svg/Icon.tsx +324 -324
- package/asset/svg/Image.tsx +24 -24
- package/asset/svg/Login.tsx +116 -116
- package/asset/svg/MiniCheck.tsx +16 -16
- package/asset/svg/MiniClose.tsx +19 -19
- package/asset/svg/Notification.tsx +34 -34
- package/asset/svg/Operation.tsx +130 -130
- package/asset/svg/Phone.tsx +19 -19
- package/asset/svg/Print.tsx +18 -18
- package/asset/svg/Profile.tsx +27 -27
- package/asset/svg/Search.tsx +24 -24
- package/asset/svg/Symbol.tsx +61 -61
- package/asset/svg/TOSEL.tsx +63 -63
- package/asset/svg/TestOption.tsx +51 -51
- package/asset/svg/User.tsx +18 -18
- package/asset/url.ts +12 -12
- package/globals.css +341 -341
- package/layout/template/home/Announcement.d.ts +2 -1
- package/layout/template/home/Announcement.js +9 -3
- package/package.json +1 -1
- package/tailwind.config.ts +763 -763
- package/version.txt +1 -1
package/asset/svg/Image.tsx
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
interface ImageProps {
|
|
2
|
-
color?: string;
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
export default function Image({ color, className }: ImageProps) {
|
|
6
|
-
return (
|
|
7
|
-
<svg
|
|
8
|
-
className={className}
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
width="25"
|
|
11
|
-
height="25"
|
|
12
|
-
viewBox="0 0 25 25"
|
|
13
|
-
fill="none"
|
|
14
|
-
>
|
|
15
|
-
<path
|
|
16
|
-
d="M2.34375 16.4062L7.71771 11.0323C7.93535 10.8147 8.19372 10.642 8.47808 10.5242C8.76244 10.4064 9.06721 10.3458 9.375 10.3458C9.68279 10.3458 9.98756 10.4064 10.2719 10.5242C10.5563 10.642 10.8147 10.8147 11.0323 11.0323L16.4062 16.4062M14.8437 14.8437L16.3115 13.376C16.5291 13.1584 16.7875 12.9858 17.0718 12.868C17.3562 12.7502 17.661 12.6896 17.9687 12.6896C18.2765 12.6896 18.5813 12.7502 18.8657 12.868C19.15 12.9858 19.4084 13.1584 19.626 13.376L22.6562 16.4062M3.90625 20.3125H21.0937C21.5082 20.3125 21.9056 20.1479 22.1986 19.8549C22.4916 19.5618 22.6562 19.1644 22.6562 18.75V6.25C22.6562 5.8356 22.4916 5.43817 22.1986 5.14515C21.9056 4.85212 21.5082 4.6875 21.0937 4.6875H3.90625C3.49185 4.6875 3.09442 4.85212 2.8014 5.14515C2.50837 5.43817 2.34375 5.8356 2.34375 6.25V18.75C2.34375 19.1644 2.50837 19.5618 2.8014 19.8549C3.09442 20.1479 3.49185 20.3125 3.90625 20.3125ZM14.8437 8.59375H14.8521V8.60208H14.8437V8.59375ZM15.2344 8.59375C15.2344 8.69735 15.1932 8.79671 15.12 8.86996C15.0467 8.94322 14.9473 8.98437 14.8437 8.98437C14.7401 8.98437 14.6408 8.94322 14.5675 8.86996C14.4943 8.79671 14.4531 8.69735 14.4531 8.59375C14.4531 8.49015 14.4943 8.39079 14.5675 8.31754C14.6408 8.24428 14.7401 8.20312 14.8437 8.20312C14.9473 8.20312 15.0467 8.24428 15.12 8.31754C15.1932 8.39079 15.2344 8.49015 15.2344 8.59375Z"
|
|
17
|
-
stroke={color ?? "#FFFFFF"}
|
|
18
|
-
strokeWidth="1.5"
|
|
19
|
-
strokeLinecap="round"
|
|
20
|
-
strokeLinejoin="round"
|
|
21
|
-
/>
|
|
22
|
-
</svg>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
1
|
+
interface ImageProps {
|
|
2
|
+
color?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export default function Image({ color, className }: ImageProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
className={className}
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
width="25"
|
|
11
|
+
height="25"
|
|
12
|
+
viewBox="0 0 25 25"
|
|
13
|
+
fill="none"
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M2.34375 16.4062L7.71771 11.0323C7.93535 10.8147 8.19372 10.642 8.47808 10.5242C8.76244 10.4064 9.06721 10.3458 9.375 10.3458C9.68279 10.3458 9.98756 10.4064 10.2719 10.5242C10.5563 10.642 10.8147 10.8147 11.0323 11.0323L16.4062 16.4062M14.8437 14.8437L16.3115 13.376C16.5291 13.1584 16.7875 12.9858 17.0718 12.868C17.3562 12.7502 17.661 12.6896 17.9687 12.6896C18.2765 12.6896 18.5813 12.7502 18.8657 12.868C19.15 12.9858 19.4084 13.1584 19.626 13.376L22.6562 16.4062M3.90625 20.3125H21.0937C21.5082 20.3125 21.9056 20.1479 22.1986 19.8549C22.4916 19.5618 22.6562 19.1644 22.6562 18.75V6.25C22.6562 5.8356 22.4916 5.43817 22.1986 5.14515C21.9056 4.85212 21.5082 4.6875 21.0937 4.6875H3.90625C3.49185 4.6875 3.09442 4.85212 2.8014 5.14515C2.50837 5.43817 2.34375 5.8356 2.34375 6.25V18.75C2.34375 19.1644 2.50837 19.5618 2.8014 19.8549C3.09442 20.1479 3.49185 20.3125 3.90625 20.3125ZM14.8437 8.59375H14.8521V8.60208H14.8437V8.59375ZM15.2344 8.59375C15.2344 8.69735 15.1932 8.79671 15.12 8.86996C15.0467 8.94322 14.9473 8.98437 14.8437 8.98437C14.7401 8.98437 14.6408 8.94322 14.5675 8.86996C14.4943 8.79671 14.4531 8.69735 14.4531 8.59375C14.4531 8.49015 14.4943 8.39079 14.5675 8.31754C14.6408 8.24428 14.7401 8.20312 14.8437 8.20312C14.9473 8.20312 15.0467 8.24428 15.12 8.31754C15.1932 8.39079 15.2344 8.49015 15.2344 8.59375Z"
|
|
17
|
+
stroke={color ?? "#FFFFFF"}
|
|
18
|
+
strokeWidth="1.5"
|
|
19
|
+
strokeLinecap="round"
|
|
20
|
+
strokeLinejoin="round"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
);
|
|
24
|
+
}
|
package/asset/svg/Login.tsx
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import { OnClick, Size } from "../../interface";
|
|
2
|
-
import { cn } from "../../util";
|
|
3
|
-
|
|
4
|
-
export interface IconProps {
|
|
5
|
-
size?: Size;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const Login = {
|
|
9
|
-
User,
|
|
10
|
-
ChekMark,
|
|
11
|
-
Key,
|
|
12
|
-
Lock,
|
|
13
|
-
Refresh,
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default Login;
|
|
17
|
-
|
|
18
|
-
function User({ size = "md" }: IconProps) {
|
|
19
|
-
return (
|
|
20
|
-
<svg
|
|
21
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
-
fill="none"
|
|
23
|
-
viewBox="0 0 24 24"
|
|
24
|
-
stroke-width="1.5"
|
|
25
|
-
stroke="currentColor"
|
|
26
|
-
width={size === "lg" ? 36 : 24}
|
|
27
|
-
height={size === "lg" ? 36 : 24}
|
|
28
|
-
>
|
|
29
|
-
<path
|
|
30
|
-
stroke-linecap="round"
|
|
31
|
-
stroke-linejoin="round"
|
|
32
|
-
d="M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
33
|
-
/>
|
|
34
|
-
</svg>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function ChekMark({ size = "md" }: IconProps) {
|
|
39
|
-
return (
|
|
40
|
-
<svg
|
|
41
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
42
|
-
fill="none"
|
|
43
|
-
viewBox="0 0 24 24"
|
|
44
|
-
stroke-width="1.5"
|
|
45
|
-
stroke="currentColor"
|
|
46
|
-
width={size === "lg" ? 36 : 24}
|
|
47
|
-
height={size === "lg" ? 36 : 24}
|
|
48
|
-
>
|
|
49
|
-
<path
|
|
50
|
-
stroke-linecap="round"
|
|
51
|
-
stroke-linejoin="round"
|
|
52
|
-
d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
|
53
|
-
/>
|
|
54
|
-
</svg>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function Key({ size = "md" }: IconProps) {
|
|
59
|
-
return (
|
|
60
|
-
<svg
|
|
61
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
62
|
-
fill="none"
|
|
63
|
-
viewBox="0 0 24 24"
|
|
64
|
-
stroke-width="1.5"
|
|
65
|
-
stroke="currentColor"
|
|
66
|
-
width={size === "lg" ? 36 : 24}
|
|
67
|
-
height={size === "lg" ? 36 : 24}
|
|
68
|
-
>
|
|
69
|
-
<path
|
|
70
|
-
stroke-linecap="round"
|
|
71
|
-
stroke-linejoin="round"
|
|
72
|
-
d="M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"
|
|
73
|
-
/>
|
|
74
|
-
</svg>
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function Lock({ size = "md" }: IconProps) {
|
|
79
|
-
return (
|
|
80
|
-
<svg
|
|
81
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
82
|
-
fill="none"
|
|
83
|
-
viewBox="0 0 24 24"
|
|
84
|
-
stroke-width="1.5"
|
|
85
|
-
stroke="currentColor"
|
|
86
|
-
width={size === "lg" ? 36 : 24}
|
|
87
|
-
height={size === "lg" ? 36 : 24}
|
|
88
|
-
>
|
|
89
|
-
<path
|
|
90
|
-
stroke-linecap="round"
|
|
91
|
-
stroke-linejoin="round"
|
|
92
|
-
d="M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"
|
|
93
|
-
/>
|
|
94
|
-
</svg>
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function Refresh({ size = "md" }: IconProps) {
|
|
99
|
-
return (
|
|
100
|
-
<svg
|
|
101
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
102
|
-
fill="none"
|
|
103
|
-
viewBox="0 0 24 24"
|
|
104
|
-
stroke-width="1.5"
|
|
105
|
-
stroke="currentColor"
|
|
106
|
-
width={size === "lg" ? 36 : 24}
|
|
107
|
-
height={size === "lg" ? 36 : 24}
|
|
108
|
-
>
|
|
109
|
-
<path
|
|
110
|
-
stroke-linecap="round"
|
|
111
|
-
stroke-linejoin="round"
|
|
112
|
-
d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"
|
|
113
|
-
/>
|
|
114
|
-
</svg>
|
|
115
|
-
);
|
|
116
|
-
}
|
|
1
|
+
import { OnClick, Size } from "../../interface";
|
|
2
|
+
import { cn } from "../../util";
|
|
3
|
+
|
|
4
|
+
export interface IconProps {
|
|
5
|
+
size?: Size;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const Login = {
|
|
9
|
+
User,
|
|
10
|
+
ChekMark,
|
|
11
|
+
Key,
|
|
12
|
+
Lock,
|
|
13
|
+
Refresh,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default Login;
|
|
17
|
+
|
|
18
|
+
function User({ size = "md" }: IconProps) {
|
|
19
|
+
return (
|
|
20
|
+
<svg
|
|
21
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
fill="none"
|
|
23
|
+
viewBox="0 0 24 24"
|
|
24
|
+
stroke-width="1.5"
|
|
25
|
+
stroke="currentColor"
|
|
26
|
+
width={size === "lg" ? 36 : 24}
|
|
27
|
+
height={size === "lg" ? 36 : 24}
|
|
28
|
+
>
|
|
29
|
+
<path
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round"
|
|
32
|
+
d="M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
33
|
+
/>
|
|
34
|
+
</svg>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function ChekMark({ size = "md" }: IconProps) {
|
|
39
|
+
return (
|
|
40
|
+
<svg
|
|
41
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
42
|
+
fill="none"
|
|
43
|
+
viewBox="0 0 24 24"
|
|
44
|
+
stroke-width="1.5"
|
|
45
|
+
stroke="currentColor"
|
|
46
|
+
width={size === "lg" ? 36 : 24}
|
|
47
|
+
height={size === "lg" ? 36 : 24}
|
|
48
|
+
>
|
|
49
|
+
<path
|
|
50
|
+
stroke-linecap="round"
|
|
51
|
+
stroke-linejoin="round"
|
|
52
|
+
d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
|
53
|
+
/>
|
|
54
|
+
</svg>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function Key({ size = "md" }: IconProps) {
|
|
59
|
+
return (
|
|
60
|
+
<svg
|
|
61
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
62
|
+
fill="none"
|
|
63
|
+
viewBox="0 0 24 24"
|
|
64
|
+
stroke-width="1.5"
|
|
65
|
+
stroke="currentColor"
|
|
66
|
+
width={size === "lg" ? 36 : 24}
|
|
67
|
+
height={size === "lg" ? 36 : 24}
|
|
68
|
+
>
|
|
69
|
+
<path
|
|
70
|
+
stroke-linecap="round"
|
|
71
|
+
stroke-linejoin="round"
|
|
72
|
+
d="M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"
|
|
73
|
+
/>
|
|
74
|
+
</svg>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function Lock({ size = "md" }: IconProps) {
|
|
79
|
+
return (
|
|
80
|
+
<svg
|
|
81
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
82
|
+
fill="none"
|
|
83
|
+
viewBox="0 0 24 24"
|
|
84
|
+
stroke-width="1.5"
|
|
85
|
+
stroke="currentColor"
|
|
86
|
+
width={size === "lg" ? 36 : 24}
|
|
87
|
+
height={size === "lg" ? 36 : 24}
|
|
88
|
+
>
|
|
89
|
+
<path
|
|
90
|
+
stroke-linecap="round"
|
|
91
|
+
stroke-linejoin="round"
|
|
92
|
+
d="M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"
|
|
93
|
+
/>
|
|
94
|
+
</svg>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function Refresh({ size = "md" }: IconProps) {
|
|
99
|
+
return (
|
|
100
|
+
<svg
|
|
101
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
102
|
+
fill="none"
|
|
103
|
+
viewBox="0 0 24 24"
|
|
104
|
+
stroke-width="1.5"
|
|
105
|
+
stroke="currentColor"
|
|
106
|
+
width={size === "lg" ? 36 : 24}
|
|
107
|
+
height={size === "lg" ? 36 : 24}
|
|
108
|
+
>
|
|
109
|
+
<path
|
|
110
|
+
stroke-linecap="round"
|
|
111
|
+
stroke-linejoin="round"
|
|
112
|
+
d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"
|
|
113
|
+
/>
|
|
114
|
+
</svg>
|
|
115
|
+
);
|
|
116
|
+
}
|
package/asset/svg/MiniCheck.tsx
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export default function MiniCheck({ color: _color }: { color?: string }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
viewBox="0 0 16 16"
|
|
6
|
-
fill="currentColor"
|
|
7
|
-
className="size-4"
|
|
8
|
-
>
|
|
9
|
-
<path
|
|
10
|
-
fill-rule="evenodd"
|
|
11
|
-
d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.844-8.791a.75.75 0 0 0-1.188-.918l-3.7 4.79-1.649-1.833a.75.75 0 1 0-1.114 1.004l2.25 2.5a.75.75 0 0 0 1.15-.043l4.25-5.5Z"
|
|
12
|
-
clip-rule="evenodd"
|
|
13
|
-
/>
|
|
14
|
-
</svg>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
1
|
+
export default function MiniCheck({ color: _color }: { color?: string }) {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
viewBox="0 0 16 16"
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
className="size-4"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
fill-rule="evenodd"
|
|
11
|
+
d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.844-8.791a.75.75 0 0 0-1.188-.918l-3.7 4.79-1.649-1.833a.75.75 0 1 0-1.114 1.004l2.25 2.5a.75.75 0 0 0 1.15-.043l4.25-5.5Z"
|
|
12
|
+
clip-rule="evenodd"
|
|
13
|
+
/>
|
|
14
|
+
</svg>
|
|
15
|
+
);
|
|
16
|
+
}
|
package/asset/svg/MiniClose.tsx
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { OnClick } from "../../interface";
|
|
2
|
-
|
|
3
|
-
export default function MiniClose({ onClick }: { onClick?: OnClick }) {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
onClick={onClick}
|
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
viewBox="0 0 20 20"
|
|
9
|
-
fill="currentColor"
|
|
10
|
-
className="size-5"
|
|
11
|
-
>
|
|
12
|
-
<path
|
|
13
|
-
fill-rule="evenodd"
|
|
14
|
-
d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z"
|
|
15
|
-
clip-rule="evenodd"
|
|
16
|
-
/>
|
|
17
|
-
</svg>
|
|
18
|
-
);
|
|
19
|
-
}
|
|
1
|
+
import { OnClick } from "../../interface";
|
|
2
|
+
|
|
3
|
+
export default function MiniClose({ onClick }: { onClick?: OnClick }) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
onClick={onClick}
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
viewBox="0 0 20 20"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
className="size-5"
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill-rule="evenodd"
|
|
14
|
+
d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z"
|
|
15
|
+
clip-rule="evenodd"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { OnClick } from "../../interface";
|
|
2
|
-
|
|
3
|
-
interface Notification {
|
|
4
|
-
onClick: OnClick;
|
|
5
|
-
flag: boolean;
|
|
6
|
-
color?: string;
|
|
7
|
-
}
|
|
8
|
-
export default function Notification({ onClick, color, flag }: Notification) {
|
|
9
|
-
return (
|
|
10
|
-
<button className="relative" onClick={onClick}>
|
|
11
|
-
<svg
|
|
12
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
-
width="25"
|
|
14
|
-
height="25"
|
|
15
|
-
viewBox="0 0 25 25"
|
|
16
|
-
fill="none"
|
|
17
|
-
>
|
|
18
|
-
<path
|
|
19
|
-
d="M15.4759 17.7938C17.4168 17.564 19.3237 17.1059 21.1572 16.4292C19.6044 14.7092 18.7465 12.4734 18.7499 10.1562V9.375C18.7499 7.7174 18.0914 6.12769 16.9193 4.95558C15.7472 3.78348 14.1575 3.125 12.4999 3.125C10.8423 3.125 9.25257 3.78348 8.08047 4.95558C6.90837 6.12769 6.24989 7.7174 6.24989 9.375V10.1562C6.25303 12.4736 5.39466 14.7093 3.84155 16.4292C5.64676 17.0958 7.54989 17.5594 9.52384 17.7938M15.4759 17.7938C13.4988 18.0283 11.5009 18.0283 9.52384 17.7938M15.4759 17.7938C15.626 18.2624 15.6634 18.7598 15.5849 19.2455C15.5064 19.7313 15.3143 20.1917 15.0242 20.5891C14.7342 20.9866 14.3544 21.31 13.9157 21.5329C13.4771 21.7559 12.9919 21.8721 12.4999 21.8721C12.0078 21.8721 11.5227 21.7559 11.0841 21.5329C10.6454 21.31 10.2656 20.9866 9.97553 20.5891C9.68548 20.1917 9.49339 19.7313 9.4149 19.2455C9.33641 18.7598 9.37374 18.2624 9.52384 17.7938"
|
|
20
|
-
stroke={color ?? "#910023"}
|
|
21
|
-
strokeWidth="1.5"
|
|
22
|
-
strokeLinecap="round"
|
|
23
|
-
strokeLinejoin="round"
|
|
24
|
-
/>
|
|
25
|
-
</svg>
|
|
26
|
-
{flag && (
|
|
27
|
-
<div className="absolute top-0 right-0">
|
|
28
|
-
<div className="absolute w-2 h-2 rounded-full bg-red-500" />
|
|
29
|
-
<div className=" w-2 h-2 rounded-full bg-red-400 animate-ping duration-1000" />
|
|
30
|
-
</div>
|
|
31
|
-
)}
|
|
32
|
-
</button>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
1
|
+
import { OnClick } from "../../interface";
|
|
2
|
+
|
|
3
|
+
interface Notification {
|
|
4
|
+
onClick: OnClick;
|
|
5
|
+
flag: boolean;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
export default function Notification({ onClick, color, flag }: Notification) {
|
|
9
|
+
return (
|
|
10
|
+
<button className="relative" onClick={onClick}>
|
|
11
|
+
<svg
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
width="25"
|
|
14
|
+
height="25"
|
|
15
|
+
viewBox="0 0 25 25"
|
|
16
|
+
fill="none"
|
|
17
|
+
>
|
|
18
|
+
<path
|
|
19
|
+
d="M15.4759 17.7938C17.4168 17.564 19.3237 17.1059 21.1572 16.4292C19.6044 14.7092 18.7465 12.4734 18.7499 10.1562V9.375C18.7499 7.7174 18.0914 6.12769 16.9193 4.95558C15.7472 3.78348 14.1575 3.125 12.4999 3.125C10.8423 3.125 9.25257 3.78348 8.08047 4.95558C6.90837 6.12769 6.24989 7.7174 6.24989 9.375V10.1562C6.25303 12.4736 5.39466 14.7093 3.84155 16.4292C5.64676 17.0958 7.54989 17.5594 9.52384 17.7938M15.4759 17.7938C13.4988 18.0283 11.5009 18.0283 9.52384 17.7938M15.4759 17.7938C15.626 18.2624 15.6634 18.7598 15.5849 19.2455C15.5064 19.7313 15.3143 20.1917 15.0242 20.5891C14.7342 20.9866 14.3544 21.31 13.9157 21.5329C13.4771 21.7559 12.9919 21.8721 12.4999 21.8721C12.0078 21.8721 11.5227 21.7559 11.0841 21.5329C10.6454 21.31 10.2656 20.9866 9.97553 20.5891C9.68548 20.1917 9.49339 19.7313 9.4149 19.2455C9.33641 18.7598 9.37374 18.2624 9.52384 17.7938"
|
|
20
|
+
stroke={color ?? "#910023"}
|
|
21
|
+
strokeWidth="1.5"
|
|
22
|
+
strokeLinecap="round"
|
|
23
|
+
strokeLinejoin="round"
|
|
24
|
+
/>
|
|
25
|
+
</svg>
|
|
26
|
+
{flag && (
|
|
27
|
+
<div className="absolute top-0 right-0">
|
|
28
|
+
<div className="absolute w-2 h-2 rounded-full bg-red-500" />
|
|
29
|
+
<div className=" w-2 h-2 rounded-full bg-red-400 animate-ping duration-1000" />
|
|
30
|
+
</div>
|
|
31
|
+
)}
|
|
32
|
+
</button>
|
|
33
|
+
);
|
|
34
|
+
}
|