boottent-design 0.1.238 → 0.1.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.
- package/README.md +39 -0
- package/dist/DESIGN.md +2 -2
- package/dist/{article-asset-card-DJ01lgjB.js → article-asset-card-BArztiG9.js} +36 -23
- package/dist/article-asset-card-Dfzz2i_R.cjs +1 -0
- package/dist/blog-review-card-4XlcSDgR.js +44 -0
- package/dist/blog-review-card-ONlNLtgL.cjs +1 -0
- package/dist/{company-info-card-CpxDQZoa.js → company-info-card-CbfighQM.js} +37 -23
- package/dist/company-info-card-qkBbW3NR.cjs +1 -0
- package/dist/components/article-asset-card.cjs.js +1 -1
- package/dist/components/article-asset-card.es.js +1 -1
- package/dist/components/blog-review-card.cjs.js +1 -1
- package/dist/components/blog-review-card.es.js +1 -1
- package/dist/components/company-info-card.cjs.js +1 -1
- package/dist/components/company-info-card.es.js +1 -1
- package/dist/components/environment-asset-photo.cjs.js +1 -1
- package/dist/components/environment-asset-photo.es.js +1 -1
- package/dist/components/event-asset-banner.cjs.js +1 -1
- package/dist/components/event-asset-banner.es.js +1 -1
- package/dist/components/event-card.cjs.js +1 -1
- package/dist/components/event-card.es.js +1 -1
- package/dist/components/lecturer-card.cjs.js +1 -1
- package/dist/components/lecturer-card.es.js +1 -1
- package/dist/components/main-banner-image.cjs.js +1 -1
- package/dist/components/main-banner-image.es.js +1 -1
- package/dist/components/partner-list-card.cjs.js +1 -1
- package/dist/components/partner-list-card.es.js +1 -1
- package/dist/components/portfolio-asset-card.cjs.js +1 -1
- package/dist/components/portfolio-asset-card.es.js +1 -1
- package/dist/components/premium-card.cjs.js +1 -1
- package/dist/components/premium-card.es.js +1 -1
- package/dist/components/title-tag-card.cjs.js +1 -1
- package/dist/components/title-tag-card.es.js +1 -1
- package/dist/components.cjs.js +1 -1
- package/dist/components.es.js +12 -12
- package/dist/environment-asset-photo-BnAny_--.js +39 -0
- package/dist/environment-asset-photo-sckCXEJl.cjs +1 -0
- package/dist/event-asset-banner-B5VlsOHj.cjs +1 -0
- package/dist/{event-asset-banner-C4s2AcNJ.js → event-asset-banner-Ciodpld1.js} +22 -9
- package/dist/event-card-CtP5nHb-.cjs +1 -0
- package/dist/{event-card-DCs6nu0G.js → event-card-DmVD1K4_.js} +65 -53
- package/dist/foundation.css +110 -0
- package/dist/image-loading-BX5rKZfC.js +15 -0
- package/dist/image-loading-DZFBFoVv.cjs +1 -0
- package/dist/lecturer-card-DBiqWwkS.cjs +1 -0
- package/dist/{lecturer-card-DQCphrTD.js → lecturer-card-DxUE7e2-.js} +31 -21
- package/dist/main-banner-image-DrgP1NNQ.cjs +1 -0
- package/dist/{main-banner-image-Cwwt6xKE.js → main-banner-image-xEWh1NVs.js} +31 -21
- package/dist/partner-list-card-BFLCQG68.cjs +1 -0
- package/dist/{partner-list-card-Bbynki-W.js → partner-list-card-CICvp20I.js} +61 -22
- package/dist/portfolio-asset-card-BMp0bpvB.js +101 -0
- package/dist/portfolio-asset-card-LGVusg6G.cjs +1 -0
- package/dist/premium-card-2JBwM6aL.cjs +1 -0
- package/dist/{premium-card-BOlG7ZZG.js → premium-card-TDA3lplm.js} +54 -41
- package/dist/{title-tag-card-CCInX94f.js → title-tag-card-D_jVbsE3.js} +41 -28
- package/dist/title-tag-card-DfVSv6a_.cjs +1 -0
- package/dist/types/article-asset-card.d.ts +16 -2
- package/dist/types/blog-review-card.d.ts +14 -1
- package/dist/types/company-info-card.d.ts +16 -2
- package/dist/types/components.d.ts +36 -23
- package/dist/types/environment-asset-photo.d.ts +16 -2
- package/dist/types/event-asset-banner.d.ts +16 -2
- package/dist/types/event-card.d.ts +16 -2
- package/dist/types/lecturer-card.d.ts +16 -2
- package/dist/types/main-banner-image.d.ts +16 -2
- package/dist/types/partner-list-card.d.ts +16 -2
- package/dist/types/portfolio-asset-card.d.ts +15 -2
- package/dist/types/premium-card.d.ts +16 -2
- package/dist/types/title-tag-card.d.ts +16 -2
- package/package.json +1 -1
- package/dist/article-asset-card-CC9LWxwh.cjs +0 -1
- package/dist/blog-review-card-5g1rbMJ_.js +0 -32
- package/dist/blog-review-card-D4UJwom2.cjs +0 -1
- package/dist/company-info-card-Dx_4nPGT.cjs +0 -1
- package/dist/environment-asset-photo-DMSQ1Ext.cjs +0 -1
- package/dist/environment-asset-photo-Dk8pKTD3.js +0 -16
- package/dist/event-asset-banner-DLKw6TZu.cjs +0 -1
- package/dist/event-card-DwnP_Qsj.cjs +0 -1
- package/dist/lecturer-card-DLMnM4fU.cjs +0 -1
- package/dist/main-banner-image-Ce2c6ODO.cjs +0 -1
- package/dist/partner-list-card-BNOnHkub.cjs +0 -1
- package/dist/portfolio-asset-card-CYRD5Pmy.js +0 -88
- package/dist/portfolio-asset-card-ChxZMbNY.cjs +0 -1
- package/dist/premium-card-Dk-pTOyb.cjs +0 -1
- package/dist/title-tag-card-kzgE6S3R.cjs +0 -1
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
- [설치](#설치)
|
|
9
9
|
- [빠른 사용법 (Tailwind 설정 불필요)](#빠른-사용법-tailwind-설정-불필요)
|
|
10
10
|
- [Tailwind 앱 권장 사용법](#tailwind-앱-권장-사용법)
|
|
11
|
+
- [다른 컴포넌트 라이브러리와 공존 (antd, MUI 등)](#다른-컴포넌트-라이브러리와-공존-antd-mui-등)
|
|
11
12
|
- [성능 권장 import](#성능-권장-import)
|
|
12
13
|
- [모듈 import 경로](#모듈-import-경로)
|
|
13
14
|
- [제작 및 배포](#제작-및-배포)
|
|
@@ -98,6 +99,43 @@ export function Sample() {
|
|
|
98
99
|
}
|
|
99
100
|
```
|
|
100
101
|
|
|
102
|
+
> **Note** — `boottent-design/foundation.css`는 자체 스코프된 Tailwind preflight 리셋을 내장하고 있어, 소비자 앱이 `tailwind.config.js`에서 `corePlugins: { preflight: false }`로 설정해도 디자인시스템 컴포넌트는 정상 렌더링됩니다. (antd, MUI 등 다른 컴포넌트 라이브러리와 공존하는 환경 대응.)
|
|
103
|
+
|
|
104
|
+
### 다른 컴포넌트 라이브러리와 공존 (antd, MUI 등)
|
|
105
|
+
|
|
106
|
+
antd처럼 자체 글로벌 리셋(`<button>`, `<input>` 등)을 가진 컴포넌트 라이브러리는 Tailwind preflight와 충돌할 수 있습니다.
|
|
107
|
+
디자인시스템은 이 충돌을 피하면서도 자체 컴포넌트는 Storybook과 동일하게 렌더되도록 설계되어 있습니다.
|
|
108
|
+
|
|
109
|
+
- `foundation.css`의 preflight 리셋은 `:where()`로 래핑되어 **specificity 0**으로 출력됩니다.
|
|
110
|
+
- antd의 `.ant-btn` 같이 클래스 기반 selector(specificity ≥ 0,1,0)는 그대로 이깁니다 → antd 컴포넌트는 영향 없음.
|
|
111
|
+
- DS 컴포넌트가 의존하는 `border-style: solid`, `<button>`/`<li>`/`<p>` 기본 리셋은 브라우저 기본값을 정리해 Tailwind 유틸리티(`border`, `rounded-lg` 등)가 의도대로 작동합니다.
|
|
112
|
+
|
|
113
|
+
권장 설정:
|
|
114
|
+
|
|
115
|
+
```js
|
|
116
|
+
// tailwind.config.js
|
|
117
|
+
module.exports = {
|
|
118
|
+
presets: [require("boottent-design/tailwind-preset")],
|
|
119
|
+
content: [
|
|
120
|
+
"./src/**/*.{ts,tsx}",
|
|
121
|
+
"./node_modules/boottent-design/dist/**/*.{js,cjs,mjs}",
|
|
122
|
+
],
|
|
123
|
+
corePlugins: {
|
|
124
|
+
preflight: false, // antd 등과 충돌 회피
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
권장 import 순서 (앱 엔트리):
|
|
130
|
+
|
|
131
|
+
```tsx
|
|
132
|
+
import "antd/dist/antd.css"; // 또는 antd less
|
|
133
|
+
import "./globals.css"; // 앱의 글로벌 스타일
|
|
134
|
+
import "boottent-design/foundation.css"; // DS는 마지막에 둬 변수/리셋이 우선
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
이 구성에서 소비자는 추가 조치 없이 DS 컴포넌트가 Storybook과 동일한 외형으로 렌더되는 것을 기대할 수 있습니다.
|
|
138
|
+
|
|
101
139
|
### 성능 권장 import
|
|
102
140
|
|
|
103
141
|
소비자 앱 빌드 시간을 줄이려면 배럴 import보다 deep import를 권장합니다.
|
|
@@ -128,6 +166,7 @@ export function Sample() {
|
|
|
128
166
|
### 참고
|
|
129
167
|
|
|
130
168
|
- Tailwind를 직접 운영하는 소비자 앱은 `styles.css` 대신 `foundation.css + tailwind-preset` 조합을 권장합니다.
|
|
169
|
+
- `foundation.css`는 self-sufficient합니다. 즉, 토큰(CSS 변수, Pretendard, 커스텀 유틸리티)뿐 아니라 **스코프된 Tailwind preflight 리셋**까지 포함하고 있어 `preflight: false` 환경에서도 DS 컴포넌트가 정상 렌더됩니다. 단 Tailwind 유틸리티 클래스 자체(예: `text-semibold14`, `bg-grey-100`)는 소비자 앱의 Tailwind 빌드에서 생성되므로 `tailwind-preset`과 `content` 설정은 여전히 필요합니다.
|
|
131
170
|
- `styles.css`는 Tailwind 미사용 소비자를 위한 올인원 엔트리로 계속 유지됩니다.
|
|
132
171
|
|
|
133
172
|
## 제작 및 배포
|
package/dist/DESIGN.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "./index-BFsbj9HY.js";
|
|
3
3
|
import "./ui/accordion.es.js";
|
|
4
4
|
import "./ui/alert-dialog.es.js";
|
|
5
5
|
import "@radix-ui/react-aspect-ratio";
|
|
@@ -16,7 +16,7 @@ import "./ui/dialog.es.js";
|
|
|
16
16
|
import "./ui/dropdown-menu.es.js";
|
|
17
17
|
import "./ui/file-uploader.es.js";
|
|
18
18
|
import "./ui/form.es.js";
|
|
19
|
-
import { Icon as
|
|
19
|
+
import { Icon as n } from "./ui/icons.es.js";
|
|
20
20
|
import "./ui/input.es.js";
|
|
21
21
|
import "./ui/label.es.js";
|
|
22
22
|
import "./ui/month-picker.es.js";
|
|
@@ -38,40 +38,53 @@ import "./ui/toast.es.js";
|
|
|
38
38
|
import "./ui/toggle.es.js";
|
|
39
39
|
import "./ui/toggle-group.es.js";
|
|
40
40
|
import "./ui/tooltip.es.js";
|
|
41
|
-
|
|
41
|
+
import { g as d } from "./image-loading-BX5rKZfC.js";
|
|
42
|
+
const g = {
|
|
42
43
|
bootcamp: { text: "부트캠프", color: "", background: "" },
|
|
43
|
-
job: { text: "취업꿀팁", color:
|
|
44
|
-
study: { text: "개념정리", color:
|
|
45
|
-
insight: { text: "인사이트", color:
|
|
44
|
+
job: { text: "취업꿀팁", color: o.brown[500], background: o.brown[50] },
|
|
45
|
+
study: { text: "개념정리", color: o.lime[500], background: o.lime[50] },
|
|
46
|
+
insight: { text: "인사이트", color: o.blue[500], background: o.blue[50] },
|
|
46
47
|
webtoon: { text: "개발자툰", color: "", background: "" }
|
|
47
48
|
};
|
|
48
|
-
function
|
|
49
|
-
return /* @__PURE__ */
|
|
49
|
+
function u({ children: t, backgroundColor: l, color: m }) {
|
|
50
|
+
return /* @__PURE__ */ r(
|
|
50
51
|
"div",
|
|
51
52
|
{
|
|
52
|
-
style: { backgroundColor: l, color:
|
|
53
|
+
style: { backgroundColor: l, color: m },
|
|
53
54
|
className: "whitespace-nowrap break-keep rounded bg-grey-100 px-2 py-0.5 text-regular13 text-grey-600 xs:text-regular14",
|
|
54
|
-
children:
|
|
55
|
+
children: t
|
|
55
56
|
}
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
function ot({
|
|
60
|
+
article: t,
|
|
61
|
+
isYoutube: l = !1,
|
|
62
|
+
imagePriority: m,
|
|
63
|
+
imageLoading: a,
|
|
64
|
+
imageFetchPriority: s,
|
|
65
|
+
imageDecoding: p
|
|
66
|
+
}) {
|
|
67
|
+
const e = t.category ? g[t.category] : void 0, c = d({
|
|
68
|
+
imagePriority: m,
|
|
69
|
+
imageLoading: a,
|
|
70
|
+
imageFetchPriority: s,
|
|
71
|
+
imageDecoding: p
|
|
72
|
+
});
|
|
73
|
+
return /* @__PURE__ */ r(
|
|
61
74
|
"div",
|
|
62
75
|
{
|
|
63
|
-
className: "w-full list-none overflow-hidden rounded-[10px] border border-grey-200 bg-
|
|
64
|
-
"data-asset-id":
|
|
65
|
-
children: /* @__PURE__ */ i("div", { className: "flex w-full flex-col", children: [
|
|
76
|
+
className: "h-full w-full list-none overflow-hidden rounded-[10px] border border-grey-200 bg-background",
|
|
77
|
+
"data-asset-id": t.assetId,
|
|
78
|
+
children: /* @__PURE__ */ i("div", { className: "flex h-full w-full flex-col", children: [
|
|
66
79
|
/* @__PURE__ */ i("div", { className: "relative w-full shrink-0 overflow-hidden", children: [
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
l && /* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ r("img", { src: t.imageUrl, alt: "image", className: "aspect-video w-full object-cover", ...c }),
|
|
81
|
+
l && /* @__PURE__ */ r("div", { className: "absolute inset-0 flex items-center justify-center bg-white/30", children: /* @__PURE__ */ r(n.Play, { size: "40" }) })
|
|
69
82
|
] }),
|
|
70
83
|
/* @__PURE__ */ i("div", { className: "flex flex-col items-start gap-2 p-4", children: [
|
|
71
|
-
|
|
84
|
+
e && /* @__PURE__ */ r(u, { backgroundColor: e.background || "", color: e.color || "", children: e.text }),
|
|
72
85
|
/* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ r("p", { className: "line-clamp-2 text-semibold14 xs:text-semibold16", children: t.title }),
|
|
87
|
+
/* @__PURE__ */ r("p", { className: "line-clamp-3 text-regular13 text-grey-500 xs:text-regular14", children: t.description })
|
|
75
88
|
] })
|
|
76
89
|
] })
|
|
77
90
|
] })
|
|
@@ -79,5 +92,5 @@ function X({ article: r, isYoutube: l = !1 }) {
|
|
|
79
92
|
);
|
|
80
93
|
}
|
|
81
94
|
export {
|
|
82
|
-
|
|
95
|
+
ot as A
|
|
83
96
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("./index-DKCqkplO.cjs");require("./ui/accordion.cjs.js");require("./ui/alert-dialog.cjs.js");require("@radix-ui/react-aspect-ratio");require("./ui/avatar.cjs.js");require("./ui/badge.cjs.js");require("./ui/button.cjs.js");require("./ui/calendar.cjs.js");require("./ui/callout.cjs.js");require("./ui/card.cjs.js");require("./ui/checkbox.cjs.js");require("lucide-react");require("./ui/command.cjs.js");require("./ui/dialog.cjs.js");require("./ui/dropdown-menu.cjs.js");require("./ui/file-uploader.cjs.js");require("./ui/form.cjs.js");const n=require("./ui/icons.cjs.js");require("./ui/input.cjs.js");require("./ui/label.cjs.js");require("./ui/month-picker.cjs.js");require("./ui/multi-select.cjs.js");require("./ui/navigation-menu.cjs.js");require("./ui/popover.cjs.js");require("./ui/radio-group.cjs.js");require("./ui/scroll-area.cjs.js");require("./ui/select.cjs.js");require("./ui/separator.cjs.js");require("@radix-ui/react-slider");require("react");require("./ui/switch.cjs.js");require("./ui/tabs.cjs.js");require("./ui/tag.cjs.js");require("./ui/text.cjs.js");require("./ui/textarea.cjs.js");require("./ui/toast.cjs.js");require("./ui/toggle.cjs.js");require("./ui/toggle-group.cjs.js");require("./ui/tooltip.cjs.js");const d=require("./image-loading-DZFBFoVv.cjs"),g={bootcamp:{text:"부트캠프",color:"",background:""},job:{text:"취업꿀팁",color:i.colors.brown[500],background:i.colors.brown[50]},study:{text:"개념정리",color:i.colors.lime[500],background:i.colors.lime[50]},insight:{text:"인사이트",color:i.colors.blue[500],background:i.colors.blue[50]},webtoon:{text:"개발자툰",color:"",background:""}};function q({children:r,backgroundColor:o,color:t}){return e.jsx("div",{style:{backgroundColor:o,color:t},className:"whitespace-nowrap break-keep rounded bg-grey-100 px-2 py-0.5 text-regular13 text-grey-600 xs:text-regular14",children:r})}function x({article:r,isYoutube:o=!1,imagePriority:t,imageLoading:l,imageFetchPriority:u,imageDecoding:a}){const s=r.category?g[r.category]:void 0,c=d.getImageLoadingAttributes({imagePriority:t,imageLoading:l,imageFetchPriority:u,imageDecoding:a});return e.jsx("div",{className:"h-full w-full list-none overflow-hidden rounded-[10px] border border-grey-200 bg-background","data-asset-id":r.assetId,children:e.jsxs("div",{className:"flex h-full w-full flex-col",children:[e.jsxs("div",{className:"relative w-full shrink-0 overflow-hidden",children:[e.jsx("img",{src:r.imageUrl,alt:"image",className:"aspect-video w-full object-cover",...c}),o&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/30",children:e.jsx(n.Icon.Play,{size:"40"})})]}),e.jsxs("div",{className:"flex flex-col items-start gap-2 p-4",children:[s&&e.jsx(q,{backgroundColor:s.background||"",color:s.color||"",children:s.text}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("p",{className:"line-clamp-2 text-semibold14 xs:text-semibold16",children:r.title}),e.jsx("p",{className:"line-clamp-3 text-regular13 text-grey-500 xs:text-regular14",children:r.description})]})]})]})})}exports.ArticleAssetCard=x;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { g as y } from "./image-loading-BX5rKZfC.js";
|
|
3
|
+
const N = ["blogthumb.pstatic.net", "naverblog.com"], j = ({
|
|
4
|
+
review: e,
|
|
5
|
+
imagePriority: g,
|
|
6
|
+
imageLoading: m,
|
|
7
|
+
imageFetchPriority: u,
|
|
8
|
+
imageDecoding: p
|
|
9
|
+
}) => {
|
|
10
|
+
var a;
|
|
11
|
+
if (!e.pagemap) return null;
|
|
12
|
+
const s = (a = e.pagemap.metatags) == null ? void 0 : a[0], h = (s == null ? void 0 : s["og:description"]) || e.snippet, t = (() => {
|
|
13
|
+
var l, n, o, i, c, x;
|
|
14
|
+
return (o = (n = (l = e.pagemap) == null ? void 0 : l.cse_thumbnail) == null ? void 0 : n[0]) != null && o.src ? e.pagemap.cse_thumbnail[0].src : (x = (c = (i = e.pagemap) == null ? void 0 : i.cse_image) == null ? void 0 : c[0]) != null && x.src ? e.pagemap.cse_image[0].src : s != null && s["og:image"] ? s["og:image"] : "";
|
|
15
|
+
})(), b = N.some((l) => t.includes(l)), f = y({
|
|
16
|
+
imagePriority: g,
|
|
17
|
+
imageLoading: m,
|
|
18
|
+
imageFetchPriority: u,
|
|
19
|
+
imageDecoding: p
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ d("div", { className: "flex w-full flex-col gap-2 overflow-hidden rounded-lg border border-grey-200 p-4 xs:h-36 xs:flex-row xs:gap-0 xs:p-0", children: [
|
|
22
|
+
/* @__PURE__ */ r("h5", { className: "line-clamp-1 block text-semibold16 text-grey-800 xs:hidden", children: e.title }),
|
|
23
|
+
/* @__PURE__ */ d("div", { className: "flex w-full flex-row items-center gap-4 xs:gap-0", children: [
|
|
24
|
+
t && !b ? /* @__PURE__ */ r("div", { className: "flex aspect-square w-20 shrink-0 items-center justify-center overflow-hidden rounded-[10px] border border-grey-200 xs:w-36 xs:rounded-l-lg xs:rounded-r-none xs:border-y-0 xs:border-l-0 xs:border-r", children: /* @__PURE__ */ r(
|
|
25
|
+
"img",
|
|
26
|
+
{
|
|
27
|
+
src: t,
|
|
28
|
+
alt: `${e.title} 썸네일`,
|
|
29
|
+
className: "h-full w-full object-cover",
|
|
30
|
+
...f
|
|
31
|
+
}
|
|
32
|
+
) }) : /* @__PURE__ */ r("div", { className: "hidden aspect-square w-20 shrink-0 items-center justify-center overflow-hidden rounded-[10px] border border-grey-200 bg-white xs:flex xs:w-36 xs:rounded-l-lg xs:rounded-r-none xs:border-y-0 xs:border-l-0 xs:border-r", children: "BLOG" }),
|
|
33
|
+
/* @__PURE__ */ d("div", { className: "flex h-full grow flex-col gap-1.5 overflow-hidden p-0 xs:gap-2.5 xs:p-5", children: [
|
|
34
|
+
/* @__PURE__ */ r("h5", { className: "hidden truncate text-semibold16 text-grey-800 xs:block", children: e.title }),
|
|
35
|
+
/* @__PURE__ */ r("div", { className: "line-clamp-4 w-full text-regular14 xs:line-clamp-2 xs:text-regular16", children: h }),
|
|
36
|
+
/* @__PURE__ */ r("div", { className: "hidden truncate text-regular13 text-violet-600 xs:block xs:text-regular14", children: e.displayLink })
|
|
37
|
+
] })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ r("div", { className: "block truncate rounded bg-grey-100 px-2 py-1 text-regular13 text-violet-600 xs:hidden", children: e.displayLink })
|
|
40
|
+
] });
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
j as B
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),f=require("./image-loading-DZFBFoVv.cjs"),j=["blogthumb.pstatic.net","naverblog.com"],y=({review:e,imagePriority:x,imageLoading:g,imageFetchPriority:u,imageDecoding:m})=>{var d;if(!e.pagemap)return null;const r=(d=e.pagemap.metatags)==null?void 0:d[0],p=(r==null?void 0:r["og:description"])||e.snippet,t=(()=>{var l,a,n,i,o,c;return(n=(a=(l=e.pagemap)==null?void 0:l.cse_thumbnail)==null?void 0:a[0])!=null&&n.src?e.pagemap.cse_thumbnail[0].src:(c=(o=(i=e.pagemap)==null?void 0:i.cse_image)==null?void 0:o[0])!=null&&c.src?e.pagemap.cse_image[0].src:r!=null&&r["og:image"]?r["og:image"]:""})(),h=j.some(l=>t.includes(l)),b=f.getImageLoadingAttributes({imagePriority:x,imageLoading:g,imageFetchPriority:u,imageDecoding:m});return s.jsxs("div",{className:"flex w-full flex-col gap-2 overflow-hidden rounded-lg border border-grey-200 p-4 xs:h-36 xs:flex-row xs:gap-0 xs:p-0",children:[s.jsx("h5",{className:"line-clamp-1 block text-semibold16 text-grey-800 xs:hidden",children:e.title}),s.jsxs("div",{className:"flex w-full flex-row items-center gap-4 xs:gap-0",children:[t&&!h?s.jsx("div",{className:"flex aspect-square w-20 shrink-0 items-center justify-center overflow-hidden rounded-[10px] border border-grey-200 xs:w-36 xs:rounded-l-lg xs:rounded-r-none xs:border-y-0 xs:border-l-0 xs:border-r",children:s.jsx("img",{src:t,alt:`${e.title} 썸네일`,className:"h-full w-full object-cover",...b})}):s.jsx("div",{className:"hidden aspect-square w-20 shrink-0 items-center justify-center overflow-hidden rounded-[10px] border border-grey-200 bg-white xs:flex xs:w-36 xs:rounded-l-lg xs:rounded-r-none xs:border-y-0 xs:border-l-0 xs:border-r",children:"BLOG"}),s.jsxs("div",{className:"flex h-full grow flex-col gap-1.5 overflow-hidden p-0 xs:gap-2.5 xs:p-5",children:[s.jsx("h5",{className:"hidden truncate text-semibold16 text-grey-800 xs:block",children:e.title}),s.jsx("div",{className:"line-clamp-4 w-full text-regular14 xs:line-clamp-2 xs:text-regular16",children:p}),s.jsx("div",{className:"hidden truncate text-regular13 text-violet-600 xs:block xs:text-regular14",children:e.displayLink})]})]}),s.jsx("div",{className:"block truncate rounded bg-grey-100 px-2 py-1 text-regular13 text-violet-600 xs:hidden",children:e.displayLink})]})};exports.BlogReviewCard=y;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "./ui/accordion.es.js";
|
|
3
3
|
import "./ui/alert-dialog.es.js";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as f } from "./common-C3JaD1vJ.js";
|
|
5
5
|
import "@radix-ui/react-aspect-ratio";
|
|
6
6
|
import "./ui/avatar.es.js";
|
|
7
7
|
import "./ui/badge.es.js";
|
|
8
|
-
import { buttonVariants as
|
|
8
|
+
import { buttonVariants as u } from "./ui/button.es.js";
|
|
9
9
|
import "./ui/calendar.es.js";
|
|
10
|
-
import { Callout as
|
|
10
|
+
import { Callout as g } from "./ui/callout.es.js";
|
|
11
11
|
import "./ui/card.es.js";
|
|
12
12
|
import "./ui/checkbox.es.js";
|
|
13
13
|
import "lucide-react";
|
|
@@ -37,44 +37,58 @@ import "./ui/toast.es.js";
|
|
|
37
37
|
import "./ui/toggle.es.js";
|
|
38
38
|
import "./ui/toggle-group.es.js";
|
|
39
39
|
import "./ui/tooltip.es.js";
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
import { g as x } from "./image-loading-BX5rKZfC.js";
|
|
41
|
+
function ot({
|
|
42
|
+
intro: e,
|
|
43
|
+
roleText: o = "운영",
|
|
44
|
+
descriptionId: a,
|
|
45
|
+
imagePriority: n,
|
|
46
|
+
imageLoading: p,
|
|
47
|
+
imageFetchPriority: s,
|
|
48
|
+
imageDecoding: l
|
|
49
|
+
}) {
|
|
50
|
+
const { introductionData: i, companyId: c } = e;
|
|
51
|
+
if (!i) return null;
|
|
52
|
+
const d = a ?? `company-info-${c}`, h = x({
|
|
53
|
+
imagePriority: n,
|
|
54
|
+
imageLoading: p,
|
|
55
|
+
imageFetchPriority: s,
|
|
56
|
+
imageDecoding: l
|
|
57
|
+
});
|
|
58
|
+
return /* @__PURE__ */ r(
|
|
59
|
+
g.Outline,
|
|
46
60
|
{
|
|
47
61
|
size: "lg",
|
|
48
|
-
className: "flex max-h-44 min-h-24 shrink-0 items-stretch justify-between gap-4 md:gap-5",
|
|
62
|
+
className: "flex max-h-44 min-h-24 shrink-0 items-stretch justify-between gap-4 bg-background md:gap-5",
|
|
49
63
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ r("span", { id: d, className: "sr-only", children: [
|
|
51
65
|
e.companyName,
|
|
52
66
|
"은(는) 본 부트캠프의 ",
|
|
53
67
|
o,
|
|
54
68
|
"사로, 상세 소개 페이지로 이동할 수 있다."
|
|
55
69
|
] }),
|
|
56
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ t("div", { className: "flex aspect-square w-16 shrink-0 items-center justify-center self-start overflow-hidden rounded-full border border-grey-200 bg-white", children: /* @__PURE__ */ t(
|
|
57
71
|
"img",
|
|
58
72
|
{
|
|
59
|
-
src:
|
|
73
|
+
src: i.logo,
|
|
60
74
|
alt: `${e.companyName} 로고`,
|
|
61
75
|
width: 100,
|
|
62
76
|
height: 100,
|
|
63
77
|
className: "object-contain",
|
|
64
|
-
|
|
78
|
+
...h
|
|
65
79
|
}
|
|
66
80
|
) }),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 self-stretch", children: /* @__PURE__ */ r("div", { className: "flex h-full min-h-0 flex-col items-start gap-1 overflow-y-auto pr-1", children: [
|
|
82
|
+
/* @__PURE__ */ r("div", { className: "flex w-full shrink-0 items-center gap-[5px]", children: [
|
|
83
|
+
/* @__PURE__ */ t(m, { className: "line-clamp-1 font-semibold", children: i.companyName }),
|
|
84
|
+
/* @__PURE__ */ t("span", { "aria-label": "회사 역할", children: o })
|
|
71
85
|
] }),
|
|
72
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ t(m, { className: "whitespace-pre-wrap text-start text-grey-600", children: i.title })
|
|
73
87
|
] }) }),
|
|
74
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ t(
|
|
75
89
|
"span",
|
|
76
90
|
{
|
|
77
|
-
className:
|
|
91
|
+
className: f(u({ variant: "outline", theme: "secondary" }), "hidden self-center md:inline-flex"),
|
|
78
92
|
"aria-hidden": "true",
|
|
79
93
|
children: "자세히 보기"
|
|
80
94
|
}
|
|
@@ -84,5 +98,5 @@ function Y({ intro: e, roleText: o = "운영", descriptionId: a }) {
|
|
|
84
98
|
);
|
|
85
99
|
}
|
|
86
100
|
export {
|
|
87
|
-
|
|
101
|
+
ot as C
|
|
88
102
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime");require("./ui/accordion.cjs.js");require("./ui/alert-dialog.cjs.js");const q=require("./common-Ds1lanOg.cjs");require("@radix-ui/react-aspect-ratio");require("./ui/avatar.cjs.js");require("./ui/badge.cjs.js");const h=require("./ui/button.cjs.js");require("./ui/calendar.cjs.js");const x=require("./ui/callout.cjs.js");require("./ui/card.cjs.js");require("./ui/checkbox.cjs.js");require("lucide-react");require("./ui/command.cjs.js");require("./ui/dialog.cjs.js");require("./ui/dropdown-menu.cjs.js");require("./ui/file-uploader.cjs.js");require("./ui/form.cjs.js");require("./ui/input.cjs.js");require("./ui/label.cjs.js");require("./ui/month-picker.cjs.js");require("./ui/multi-select.cjs.js");require("./ui/navigation-menu.cjs.js");require("./ui/popover.cjs.js");require("./ui/radio-group.cjs.js");require("./ui/scroll-area.cjs.js");require("./ui/select.cjs.js");require("./ui/separator.cjs.js");require("@radix-ui/react-slider");require("react");require("./ui/switch.cjs.js");require("./ui/tabs.cjs.js");require("./ui/tag.cjs.js");const a=require("./ui/text.cjs.js");require("./ui/textarea.cjs.js");require("./ui/toast.cjs.js");require("./ui/toggle.cjs.js");require("./ui/toggle-group.cjs.js");require("./ui/tooltip.cjs.js");const g=require("./image-loading-DZFBFoVv.cjs");function f({intro:i,roleText:s="운영",descriptionId:n,imagePriority:t,imageLoading:u,imageFetchPriority:l,imageDecoding:c}){const{introductionData:r,companyId:o}=i;if(!r)return null;const d=n??`company-info-${o}`,m=g.getImageLoadingAttributes({imagePriority:t,imageLoading:u,imageFetchPriority:l,imageDecoding:c});return e.jsxs(x.Callout.Outline,{size:"lg",className:"flex max-h-44 min-h-24 shrink-0 items-stretch justify-between gap-4 bg-background md:gap-5",children:[e.jsxs("span",{id:d,className:"sr-only",children:[i.companyName,"은(는) 본 부트캠프의 ",s,"사로, 상세 소개 페이지로 이동할 수 있다."]}),e.jsx("div",{className:"flex aspect-square w-16 shrink-0 items-center justify-center self-start overflow-hidden rounded-full border border-grey-200 bg-white",children:e.jsx("img",{src:r.logo,alt:`${i.companyName} 로고`,width:100,height:100,className:"object-contain",...m})}),e.jsx("div",{className:"min-h-0 flex-1 self-stretch",children:e.jsxs("div",{className:"flex h-full min-h-0 flex-col items-start gap-1 overflow-y-auto pr-1",children:[e.jsxs("div",{className:"flex w-full shrink-0 items-center gap-[5px]",children:[e.jsx(a.Text,{className:"line-clamp-1 font-semibold",children:r.companyName}),e.jsx("span",{"aria-label":"회사 역할",children:s})]}),e.jsx(a.Text,{className:"whitespace-pre-wrap text-start text-grey-600",children:r.title})]})}),e.jsx("span",{className:q.cn(h.buttonVariants({variant:"outline",theme:"secondary"}),"hidden self-center md:inline-flex"),"aria-hidden":"true",children:"자세히 보기"})]})}exports.CompanyInfoCard=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../article-asset-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../article-asset-card-Dfzz2i_R.cjs");exports.ArticleAssetCard=e.ArticleAssetCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../blog-review-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../blog-review-card-ONlNLtgL.cjs");exports.BlogReviewCard=e.BlogReviewCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../company-info-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../company-info-card-qkBbW3NR.cjs");exports.CompanyInfoCard=e.CompanyInfoCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../environment-asset-photo-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../environment-asset-photo-sckCXEJl.cjs");exports.EnvironmentAssetPhoto=e.EnvironmentAssetPhoto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../event-asset-banner-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../event-asset-banner-B5VlsOHj.cjs");exports.EventAssetBanner=e.EventAssetBanner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../event-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../event-card-CtP5nHb-.cjs");exports.EventCard=e.EventCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../lecturer-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../lecturer-card-DBiqWwkS.cjs");exports.LecturerCard=e.LecturerCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../main-banner-image-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../main-banner-image-DrgP1NNQ.cjs");exports.MainBannerImage=e.MainBannerImage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../partner-list-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../partner-list-card-BFLCQG68.cjs");exports.PartnerListCard=r.PartnerListCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../portfolio-asset-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../portfolio-asset-card-LGVusg6G.cjs");exports.PortfolioAssetCard=o.PortfolioAssetCard;exports.PortfolioAssetFooter=o.PortfolioAssetFooter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../premium-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../premium-card-2JBwM6aL.cjs");exports.PremiumCard=e.PremiumCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../title-tag-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../title-tag-card-DfVSv6a_.cjs");exports.TitleTagCard=e.TitleTagCard;
|
package/dist/components.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./event-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./event-card-CtP5nHb-.cjs"),t=require("./main-banner-image-DrgP1NNQ.cjs"),o=require("./premium-card-2JBwM6aL.cjs"),n=require("./title-tag-card-DfVSv6a_.cjs"),a=require("./article-asset-card-Dfzz2i_R.cjs"),s=require("./blog-review-card-ONlNLtgL.cjs"),i=require("./company-info-card-qkBbW3NR.cjs"),d=require("./environment-asset-photo-sckCXEJl.cjs"),u=require("./event-asset-banner-B5VlsOHj.cjs"),C=require("./lecturer-card-DBiqWwkS.cjs"),c=require("./partner-list-card-BFLCQG68.cjs"),e=require("./portfolio-asset-card-LGVusg6G.cjs"),l=require("./youtube-video-modal-pooOcDO1.cjs");exports.EventCard=r.EventCard;exports.MainBannerImage=t.MainBannerImage;exports.PremiumCard=o.PremiumCard;exports.TitleTagCard=n.TitleTagCard;exports.ArticleAssetCard=a.ArticleAssetCard;exports.BlogReviewCard=s.BlogReviewCard;exports.CompanyInfoCard=i.CompanyInfoCard;exports.EnvironmentAssetPhoto=d.EnvironmentAssetPhoto;exports.EventAssetBanner=u.EventAssetBanner;exports.LecturerCard=C.LecturerCard;exports.PartnerListCard=c.PartnerListCard;exports.PortfolioAssetCard=e.PortfolioAssetCard;exports.PortfolioAssetFooter=e.PortfolioAssetFooter;exports.YoutubeVideoModal=l.YoutubeVideoModal;
|
package/dist/components.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { E as e } from "./event-card-
|
|
3
|
-
import { M as t } from "./main-banner-image-
|
|
4
|
-
import { P as m } from "./premium-card-
|
|
5
|
-
import { T as n } from "./title-tag-card-
|
|
6
|
-
import { A as x } from "./article-asset-card-
|
|
7
|
-
import { B as i } from "./blog-review-card-
|
|
8
|
-
import { C as P } from "./company-info-card-
|
|
9
|
-
import { E as A } from "./environment-asset-photo-
|
|
10
|
-
import { E as u } from "./event-asset-banner-
|
|
11
|
-
import { L as B } from "./lecturer-card-
|
|
12
|
-
import { P as g } from "./partner-list-card-
|
|
13
|
-
import { P as M, a as T } from "./portfolio-asset-card-
|
|
2
|
+
import { E as e } from "./event-card-DmVD1K4_.js";
|
|
3
|
+
import { M as t } from "./main-banner-image-xEWh1NVs.js";
|
|
4
|
+
import { P as m } from "./premium-card-TDA3lplm.js";
|
|
5
|
+
import { T as n } from "./title-tag-card-D_jVbsE3.js";
|
|
6
|
+
import { A as x } from "./article-asset-card-BArztiG9.js";
|
|
7
|
+
import { B as i } from "./blog-review-card-4XlcSDgR.js";
|
|
8
|
+
import { C as P } from "./company-info-card-CbfighQM.js";
|
|
9
|
+
import { E as A } from "./environment-asset-photo-BnAny_--.js";
|
|
10
|
+
import { E as u } from "./event-asset-banner-Ciodpld1.js";
|
|
11
|
+
import { L as B } from "./lecturer-card-DxUE7e2-.js";
|
|
12
|
+
import { P as g } from "./partner-list-card-CICvp20I.js";
|
|
13
|
+
import { P as M, a as T } from "./portfolio-asset-card-BMp0bpvB.js";
|
|
14
14
|
import { Y } from "./youtube-video-modal-CENnr9lf.js";
|
|
15
15
|
export {
|
|
16
16
|
x as ArticleAssetCard,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { g as c } from "./image-loading-BX5rKZfC.js";
|
|
3
|
+
function m({
|
|
4
|
+
imageUrl: r,
|
|
5
|
+
index: t,
|
|
6
|
+
onClick: o,
|
|
7
|
+
imagePriority: a,
|
|
8
|
+
imageLoading: l,
|
|
9
|
+
imageFetchPriority: n,
|
|
10
|
+
imageDecoding: s
|
|
11
|
+
}) {
|
|
12
|
+
const i = c({
|
|
13
|
+
imagePriority: a,
|
|
14
|
+
imageLoading: l,
|
|
15
|
+
imageFetchPriority: n,
|
|
16
|
+
imageDecoding: s
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
19
|
+
"button",
|
|
20
|
+
{
|
|
21
|
+
type: "button",
|
|
22
|
+
onClick: o,
|
|
23
|
+
className: "flex aspect-square w-full items-center justify-center overflow-hidden rounded-lg border border-grey-200 bg-background",
|
|
24
|
+
"aria-label": `학습 환경 사진 ${t + 1}번 크게 보기`,
|
|
25
|
+
children: /* @__PURE__ */ e(
|
|
26
|
+
"img",
|
|
27
|
+
{
|
|
28
|
+
src: r,
|
|
29
|
+
alt: `학습 환경 사진 ${t + 1}`,
|
|
30
|
+
className: "h-full w-full object-cover",
|
|
31
|
+
...i
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
) });
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
m as E
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),u=require("./image-loading-DZFBFoVv.cjs");function c({imageUrl:r,index:t,onClick:n,imagePriority:i,imageLoading:o,imageFetchPriority:s,imageDecoding:a}){const l=u.getImageLoadingAttributes({imagePriority:i,imageLoading:o,imageFetchPriority:s,imageDecoding:a});return e.jsx("li",{children:e.jsx("button",{type:"button",onClick:n,className:"flex aspect-square w-full items-center justify-center overflow-hidden rounded-lg border border-grey-200 bg-background","aria-label":`학습 환경 사진 ${t+1}번 크게 보기`,children:e.jsx("img",{src:r,alt:`학습 환경 사진 ${t+1}`,className:"h-full w-full object-cover",...l})})})}exports.EnvironmentAssetPhoto=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),f=require("./common-Ds1lanOg.cjs"),h=require("./image-loading-DZFBFoVv.cjs"),v={presentation:{value:"presentation",label:"사전설명회"},seminar:{value:"seminar",label:"세미나"},preNotice:{value:"preNotice",label:"사전알림"},coffeeChat:{value:"coffeeChat",label:"커피챗"}};function j({eventValue:c,buttonClass:i,imagePriority:d,imageLoading:u,imageFetchPriority:p,imageDecoding:m}){var o;const{imageUrl:s,eventImageUrl:l,title:a,eventTitle:r,colors:t,eventType:n,eventDate:x}=c,g=((o=v[n])==null?void 0:o.label)??n,b=h.getImageLoadingAttributes({imagePriority:d,imageLoading:u,imageFetchPriority:p,imageDecoding:m});return e.jsxs("div",{className:"relative flex aspect-[4.5/1] w-full items-center overflow-hidden rounded-[10px] border border-grey-200 xs:aspect-[5/1] sm:aspect-[6/1] md:aspect-[8/1] lg:aspect-[6/1] xl:aspect-[7/1]",children:[e.jsx("div",{className:"relative flex h-full w-1/4 shrink-0 items-center",children:e.jsx("img",{src:(l==null?void 0:l.pc)||(s==null?void 0:s.pc)||"",alt:c.companyId,className:"absolute h-full w-full object-cover",...b})}),e.jsxs("div",{style:{backgroundColor:t.background,color:t.title},className:"relative flex h-full w-full grow items-center justify-between gap-[5px] p-5",children:[e.jsxs("div",{className:"flex h-full grow flex-col items-start justify-center gap-[5px]",children:[e.jsxs("div",{style:{color:t.date},className:"text-medium14",children:[g,"﹒",x.replaceAll("-",".")]}),e.jsx("div",{style:{color:t.title},className:"whitespace-nowrap text-semibold14 xs:text-semibold18",children:(r==null?void 0:r.pc)||(a==null?void 0:a.pc)}),e.jsx("div",{style:{background:`linear-gradient(to right, transparent, ${t.background})`},className:"absolute right-full h-full w-[2%]"})]}),e.jsx("span",{style:{background:t.button,color:t.buttonText},className:f.cn("hidden","rounded","px-3","py-2","text-regular14","md:block","lg:hidden","xl:block","whitespace-nowrap",i),children:"자세히 보기 ->"})]})]})}exports.EventAssetBanner=j;
|