@madeinbruno/atelier 0.4.3 → 0.5.0

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 CHANGED
@@ -14,7 +14,7 @@ React 18 이상이 필요해요.
14
14
 
15
15
  ### `Tag` — 공용 푸터
16
16
 
17
- 흰 옷 택(행택) 모양의 푸터예요. 택 위쪽에 한 줄 박음질이 있고, 픽셀 글씨 `madeinbruno`, `SERVICE / CONTACT`와 madeinbruno.com 링크가 들어가요.
17
+ 흰 옷 택(행택) 모양의 푸터예요. 택 위쪽에 한 줄 박음질이 있고, 픽셀 글씨 `madeinbruno`, `SERVICE / CONTACT`가 들어가요 (`href`를 주면 밑줄 친 링크도).
18
18
 
19
19
  ```tsx
20
20
  import { Tag } from '@madeinbruno/atelier';
@@ -29,7 +29,7 @@ export default function Footer() {
29
29
  |---|---|---|
30
30
  | `service` (필수) | | 택의 SERVICE 줄. 서비스 이름 |
31
31
  | `email` | `pbk575@gmail.com` | CONTACT 줄 (mailto 링크) |
32
- | `href` | `https://madeinbruno.com` | 택 아래 링크 (밑줄 친 주소) |
32
+ | `href` | 없음 | 택 아래 링크 (밑줄 친 주소). 주지 않으면 링크를 그리지 않아요. madeinbruno.com이 생기면 기본값으로 넣을 예정 |
33
33
  | `since` | `EST. 2026` | 택 오른쪽 위 작은 글씨 |
34
34
  | `eyebrow`, `message` | "Thanks for stopping by", "이 사이트도 madeinbruno에서 만들었어요." | 택 왼쪽 글. 둘 다 비우면 택만 가운데에 |
35
35
  | `background` | `#f4f1ea` | 푸터 바탕. 서비스 바탕색에 맞추기 |
package/dist/index.d.ts CHANGED
@@ -6,7 +6,8 @@ type TagProps = {
6
6
  service: string;
7
7
  /** 연락받을 이메일. 택의 CONTACT 줄에 mailto 링크로 들어간다. */
8
8
  email?: string;
9
- /** 택 아래 링크(밑줄 친 주소)가 가는 곳. */
9
+ /** 택 아래 링크(밑줄 친 주소)가 가는 곳. 주지 않으면 링크를 그리지 않는다.
10
+ * madeinbruno.com이 아직 없어서 기본은 링크 없음. 사이트가 생기면 기본값을 'https://madeinbruno.com'으로 바꾼다. */
10
11
  href?: string;
11
12
  /** 택 오른쪽 위의 작은 글씨. */
12
13
  since?: string;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ var WORDMARK = "M18 0h2v2h-2zM27 0h2v1h-2zM36 0h2v2h-2zM0 2h1v1h-1zM2 2h2v1h-2zM
4
4
  function Tag({
5
5
  service,
6
6
  email = "pbk575@gmail.com",
7
- href = "https://madeinbruno.com",
7
+ href,
8
8
  since = "EST. 2026",
9
9
  eyebrow = "Thanks for stopping by",
10
10
  message = `\uC774 \uC0AC\uC774\uD2B8\uB3C4 madeinbruno\uC5D0\uC11C \uB9CC\uB4E4\uC5C8\uC5B4\uC694.`,
@@ -17,7 +17,7 @@ function Tag({
17
17
  ...stitch ? { "--mib-stitch": stitch } : {}
18
18
  };
19
19
  const hasMessage = Boolean(eyebrow || message);
20
- const linkLabel = href.replace(/^https?:\/\//, "").replace(/\/$/, "");
20
+ const linkLabel = href?.replace(/^https?:\/\//, "").replace(/\/$/, "");
21
21
  return /* @__PURE__ */ jsx("footer", { className: ["mib-footer", className].filter(Boolean).join(" "), style, children: /* @__PURE__ */ jsxs("div", { className: hasMessage ? "mib-footer__inner" : "mib-footer__inner mib-footer__inner--solo", children: [
22
22
  hasMessage && /* @__PURE__ */ jsxs("div", { className: "mib-footer__message", children: [
23
23
  eyebrow && /* @__PURE__ */ jsx("p", { className: "mib-footer__eyebrow", children: eyebrow }),
@@ -35,7 +35,7 @@ function Tag({
35
35
  /* @__PURE__ */ jsx("dt", { children: "CONTACT" }),
36
36
  /* @__PURE__ */ jsx("dd", { children: /* @__PURE__ */ jsx("a", { href: `mailto:${email}`, children: email }) })
37
37
  ] }),
38
- /* @__PURE__ */ jsxs("a", { className: "mib-tag__link", href, children: [
38
+ href && /* @__PURE__ */ jsxs("a", { className: "mib-tag__link", href, children: [
39
39
  linkLabel,
40
40
  " \u2192"
41
41
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madeinbruno/atelier",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "description": "madeinbruno.com 서비스들이 같이 쓰는 공용 컴포넌트 (옷 만드는 작업실 컨셉: 택, 라벨, 도장…)",
5
5
  "license": "MIT",
6
6
  "author": "codingbotPark <pbk575@gmail.com>",
package/styles.css CHANGED
@@ -12,7 +12,7 @@
12
12
  --mib-muted: #6b655c;
13
13
  box-sizing: border-box;
14
14
  width: 100%;
15
- overflow: hidden;
15
+ /* 넘치는 걸 자르지 않는다: 자르면 택 위로 퍼지는 그림자가 푸터 윗변에서 끊겨, 푸터 자리만 바탕색이 달라 보인다 */
16
16
  padding: 0 24px;
17
17
  background: var(--mib-ground);
18
18
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
@@ -92,7 +92,6 @@
92
92
  display: flex;
93
93
  flex-direction: column;
94
94
  gap: 14px;
95
- min-height: 236px;
96
95
  padding: 46px 34px 26px;
97
96
  background: #ffffff;
98
97
  /* 옷 택처럼 위쪽 두 모서리를 비스듬히 깎는다 */
@@ -183,7 +182,6 @@
183
182
  }
184
183
 
185
184
  .mib-tag__card {
186
- min-height: 0;
187
185
  padding: 44px 24px 24px;
188
186
  }
189
187
  }