@edu-tosel/design 1.0.238 → 1.0.240

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,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import SVG from "../../../../../asset/SVG";
3
3
  import { cn } from "../../../../../util";
4
+ import CardTitle from "../atom/CardTitle";
4
5
  import { printBoxStyles } from "../atom/PrintBoxStyles";
5
6
  export default function HonorCard({ result }) {
6
7
  const cardWrapper = {
@@ -9,13 +10,7 @@ export default function HonorCard({ result }) {
9
10
  backgrounds: "bg-white shadow-main",
10
11
  animations: "duration-300 hover:scale-105 hover:shadow-green",
11
12
  };
12
- const cardTitle = {
13
- display: "flex flex-row justify-center items-center",
14
- sizes: "h-7 shrink-0 w-full",
15
- bg: "bg-green-light",
16
- textStyles: "text-green-dark font-medium text-sm",
17
- };
18
- return (_jsxs("div", { className: cn(cardWrapper, printBoxStyles), onClick: () => (window.location.href = `https://www.tosel.org/HallofFame/main`), children: [_jsx("div", { className: cn(cardTitle), children: _jsx("div", { className: "w-full text-center h-fit", children: "\uBA85\uC608\uC758 \uC804\uB2F9" }) }), _jsxs("div", { className: "w-full h-full flex flex-row px-5 gap-x-5", children: [_jsxs("div", { className: "flex flex-col w-full justify-center items-center xs:hidden md:flex print:aspect-square", children: [_jsx("div", { className: "text-gray-dark font-bold text-xl", children: "\uBA85\uC608\uC758 \uC804\uB2F9" }), _jsx("div", { className: "text-gray-medium font-medium text-sm", children: "Hall of Fame" })] }), _jsx("div", { className: "flex w-full py-4 xs:py-0 print:aspect-square", children: _jsx(SVG.HallofFame, { isHonor: result.isHonor }) })] }), _jsx("div", { className: "pb-3 px-5 text-center text-xs", children: result.isHonor
13
+ return (_jsxs("div", { className: cn(cardWrapper, printBoxStyles), onClick: () => (window.location.href = `https://www.tosel.org/HallofFame/main`), children: [_jsx(CardTitle, { theme: "green", title: "\uBA85\uC608\uC758 \uC804\uB2F9" }), _jsxs("div", { className: "w-full h-full flex flex-row px-5 gap-x-5", children: [_jsxs("div", { className: "flex flex-col w-full flex-1 justify-center items-center xs:hidden md:flex print:width-36", children: [_jsx("div", { className: "text-gray-dark font-bold text-xl", children: "\uBA85\uC608\uC758 \uC804\uB2F9" }), _jsx("div", { className: "text-gray-medium font-medium text-sm", children: "Hall of Fame" })] }), _jsx("div", { className: "flex w-full py-4 xs:py-0 aspect-square flex-1 print:w-36", children: _jsx(SVG.HallofFame, { isHonor: result.isHonor }) })] }), _jsx("div", { className: "pb-3 px-5 text-center text-xs", children: result.isHonor
19
14
  ? "축하합니다! 명예의 전당에 등재되었습니다"
20
15
  : "아쉽게도 명예의 전당에 오르지 못했습니다." })] }));
21
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.238",
3
+ "version": "1.0.240",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.238
1
+ 1.0.240