@akanjs/cli 3.1.2-rc.3 → 3.2.0-rc.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/.build-stamp +1 -1
- package/{CodeAgent-n2tkg59z.js → CodeAgent-h6g8dg3a.js} +2 -2
- package/{CodeTui-9wsdx7ap.js → CodeTui-n9gacepn.js} +1 -1
- package/README.ko.md +9 -0
- package/README.md +9 -0
- package/TunnelShare-k3ja4w9x.js +14 -0
- package/{agent.command-tffz6wdn.js → agent.command-2f657613.js} +19 -17
- package/akanCode.js +2 -2
- package/{application.command-7bkxbrsp.js → application.command-yb8v177e.js} +45 -22
- package/{applicationBuildRunner-s13x3zqb.js → applicationBuildRunner-sctcmkyx.js} +57 -17
- package/buildBatch.proc.js +7 -7
- package/{cloud.command-a792bc10.js → cloud.command-et06ja22.js} +35 -18
- package/cloud.script-s6rbrwer.js +30 -0
- package/{code.command-ma8dtzww.js → code.command-7m67c7zc.js} +6 -6
- package/commandManifest.json +1 -1
- package/{context.command-80a1qhps.js → context.command-569z0rqf.js} +20 -19
- package/context.runner-ms8v1rxy.js +29 -0
- package/{guideline.command-195g0h9a.js → guideline.command-gnv3e8p8.js} +2 -2
- package/guidelines/akanApi/akanApi.instruction.md +317 -0
- package/guidelines/conventions/rules/app.md +5 -5
- package/guidelines/conventions/rules/config.md +1 -1
- package/guidelines/conventions/rules/gates.md +10 -5
- package/guidelines/conventions/rules/page.md +4 -2
- package/guidelines/conventions/rules/server.md +2 -0
- package/guidelines/conventions/rules/style.md +3 -1
- package/guidelines/conventions/rules/ts.md +2 -1
- package/guidelines/cssRule/cssRule.instruction.md +3 -1
- package/guidelines/pageRule/pageRule.instruction.md +3 -0
- package/incrementalBuilder.proc.js +70 -14
- package/{index-tns543wd.js → index-0fb3cpbt.js} +3 -3
- package/{index-zbrwnmf1.js → index-1q1cjn8s.js} +21 -11
- package/{index-wrmq92vk.js → index-3wjbhj2n.js} +1 -1
- package/{index-361ex3rb.js → index-48d5qsj3.js} +4 -4
- package/{index-aayg4dqf.js → index-5w9my9qe.js} +8 -8
- package/{index-1h2jc0x3.js → index-6wpaq392.js} +61 -15
- package/{index-tp56652m.js → index-7xdpww43.js} +69 -12
- package/index-7y5yghjg.js +2969 -0
- package/{index-zttm13c3.js → index-8g7tdsk4.js} +249 -696
- package/{index-m02tdq8a.js → index-8pb9yvp8.js} +63 -21
- package/{index-gbp1q1b5.js → index-8ts9774g.js} +4 -4
- package/{index-9zy8479y.js → index-93ewzmp6.js} +43 -14
- package/{index-zdpte1pj.js → index-9tbgb4d8.js} +1 -1
- package/index-abgh0jve.js +126 -0
- package/{index-khk05tsf.js → index-aj3ehkcx.js} +1 -1
- package/{index-84h43kg6.js → index-d4n1wmrz.js} +37 -4
- package/{index-gr9thy79.js → index-drz9e84d.js} +22 -8
- package/{index-hapx5myy.js → index-e3vmjtph.js} +2 -2
- package/{index-k64mhwbw.js → index-eajbmk10.js} +2 -1
- package/{index-0j1t1h2b.js → index-ed6ea0qp.js} +1 -1
- package/{index-sjabnf7j.js → index-fjr4d6yd.js} +444 -368
- package/index-hqrkqxx2.js +176 -0
- package/{index-z7kbxdqg.js → index-jdamtr7e.js} +3 -3
- package/{index-scck6h6d.js → index-kpdv34rq.js} +4 -4
- package/{index-ppvqy5bc.js → index-ktb3wcqz.js} +73 -34
- package/{index-sveq36gh.js → index-mmym5xmb.js} +4 -2
- package/{index-y4kcmbt2.js → index-mqntfzv5.js} +2 -2
- package/{index-4am4dvmf.js → index-ny2k80mv.js} +15 -3
- package/index-p6hjwt2d.js +1668 -0
- package/{index-wwe9rsrx.js → index-r0a604h4.js} +12 -2
- package/{index-jb2sreps.js → index-rc5fvqj2.js} +18 -18
- package/{index-db2nqrad.js → index-ryrm5z2c.js} +71 -19
- package/{index-eft5c2mp.js → index-s2grpzef.js} +331 -27
- package/{index-g500c5j9.js → index-sr5da35e.js} +33 -10
- package/{index-defp4gmb.js → index-sy481q2x.js} +1 -1
- package/{index-j9d3mjx1.js → index-thckcabc.js} +2 -2
- package/{index-9z3egsmg.js → index-vkzfk7qt.js} +25 -23
- package/index-w639tvkd.js +166 -0
- package/index-ygdbn9jn.js +122 -0
- package/{index-sp0qsr7a.js → index-zpv14wpy.js} +3 -3
- package/{index-sx91nf4z.js → index-zxsygkda.js} +18 -9
- package/index.js +24 -23
- package/{library.command-63hgt9te.js → library.command-1gp5qe3r.js} +3 -3
- package/{localRegistry.command-343ksmn9.js → localRegistry.command-v3g21rex.js} +25 -16
- package/{module.command-2hce9m6k.js → module.command-4xz9he6h.js} +6 -6
- package/{package.command-96eheyvd.js → package.command-s7qpnn1g.js} +12 -3
- package/package.json +2 -2
- package/{page.command-gs6d841d.js → page.command-fan34c49.js} +3 -3
- package/{pipeline.command-wdfvdbfj.js → pipeline.command-ph4fnn9w.js} +2 -2
- package/{primitive.command-7tdj12wn.js → primitive.command-3fqh8emf.js} +7 -7
- package/{projectTypecheck-kqj1t6hb.js → projectTypecheck-vkb40hjc.js} +1 -1
- package/{quality.command-29bgarh1.js → quality.command-ecj6exsh.js} +15 -10
- package/{repair.command-yng4rf5d.js → repair.command-fe9jw719.js} +6 -6
- package/{scalar.command-1nk4329t.js → scalar.command-cnvfhk0n.js} +5 -5
- package/skills/akan-debug/SKILL.md +2 -1
- package/skills/akan-page/SKILL.md +30 -2
- package/skills/akan-service/SKILL.md +77 -1
- package/{subspace.command-5cehmcdd.js → subspace.command-yxtt3v3e.js} +8 -8
- package/templates/app/lib/___appName__/__appName__.abstract.md.template +6 -0
- package/templates/app/page/_index.tsx +4 -284
- package/templates/app/page/_layout.tsx +1 -26
- package/templates/app/page/styles.css.template +58 -318
- package/templates/appSample/page/_index.tsx +281 -0
- package/templates/appSample/page/_layout.tsx +55 -0
- package/templates/appSample/page/styles.css.template +327 -0
- package/templates/libRoot/lib/___libName__/__libName__.abstract.md.template +6 -0
- package/templates/workspaceRoot/package.json.template +1 -12
- package/{tunnel.command-yrd4atqy.js → tunnel.command-ggj38mqf.js} +7 -7
- package/{typeChecker-j2jdnqsr.js → typeChecker-s640r6c0.js} +1 -1
- package/typecheck.proc.js +1 -1
- package/{verify.command-kbq0fcg8.js → verify.command-w9ttxkdz.js} +16 -14
- package/{workflow.command-274qfa8z.js → workflow.command-ss8devj0.js} +12 -12
- package/{workspace.command-r6hgmawy.js → workspace.command-rw1p0xeq.js} +50 -38
- package/TunnelShare-6d7z36sr.js +0 -14
- package/cloud.script-t2n13gv6.js +0 -27
- package/context.runner-wxqb3qcy.js +0 -28
- package/index-j2dgmzbj.js +0 -1259
- package/index-p6x5b7hr.js +0 -839
- package/index-vzpnr12w.js +0 -65
- package/templates/workspaceRoot/patches/zod@3.25.76.patch.template +0 -22
- package/templates/workspaceRoot/patches/zod@4.4.3.patch.template +0 -11
- /package/templates/{app → appSample}/page/_overrides.tsx +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Black.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Bold.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-ExtraBold.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-ExtraLight.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Light.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Medium.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Regular.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Thin.woff2 +0 -0
- /package/templates/{app → appSample}/public/jelly/cloud.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/comet.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/moon.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/planet.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/rocket.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/star.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/sugar.webp +0 -0
- /package/templates/{app → appSample}/public/logo.png +0 -0
- /package/templates/{app → appSample}/ui/Recipe/index.ts +0 -0
- /package/templates/{app → appSample}/ui/Recipe/jellyButton.ts +0 -0
|
@@ -1,295 +1,15 @@
|
|
|
1
1
|
import type { AppInfo, LibInfo } from "akanjs";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
appName: string;
|
|
5
|
-
}
|
|
6
|
-
interface Options {
|
|
7
|
-
libs?: string[];
|
|
8
|
-
sample?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict, options: Options = {}) {
|
|
11
|
-
const sampleButton = options.sample
|
|
12
|
-
? `
|
|
13
|
-
<Link className={jellyButtonRecipe({ variant: "default", size: "lg" })} href="/task">
|
|
14
|
-
{l.trans({ en: "Open the Sample", ko: "샘플 열어 보기" })}
|
|
15
|
-
</Link>`
|
|
16
|
-
: `
|
|
17
|
-
<Link
|
|
18
|
-
className={jellyButtonRecipe({ variant: "default", size: "lg" })}
|
|
19
|
-
href="https://akanjs.com/docs/intro/practice"
|
|
20
|
-
target="_blank"
|
|
21
|
-
>
|
|
22
|
-
{l.trans({ en: "Learn By Building", ko: "만들면서 배우기" })}
|
|
23
|
-
</Link>`;
|
|
24
|
-
const sampleStep = options.sample
|
|
25
|
-
? `
|
|
26
|
-
{
|
|
27
|
-
title: l.trans({ en: "Read the sample module", ko: "샘플 모듈을 읽어 보세요" }),
|
|
28
|
-
body: l.trans({
|
|
29
|
-
en: "The task module walks one feature end to end — the model, its guarded API, the store and the pages.",
|
|
30
|
-
ko: "task 모듈이 모델부터 가드가 걸린 API, 스토어, 페이지까지 기능 하나를 처음부터 끝까지 보여 줍니다.",
|
|
31
|
-
}),
|
|
32
|
-
code: "lib/task",
|
|
33
|
-
href: "/task",
|
|
34
|
-
},`
|
|
35
|
-
: "";
|
|
3
|
+
export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { appName: string }) {
|
|
36
4
|
return {
|
|
37
5
|
filename: "_index.tsx",
|
|
38
|
-
content: `import {
|
|
39
|
-
import { getEnv } from "akanjs/base";
|
|
40
|
-
import { cn, page, usePage } from "akanjs/client";
|
|
41
|
-
import { Image, Link, System } from "akanjs/ui";
|
|
42
|
-
|
|
43
|
-
const friendFloat = {
|
|
44
|
-
planet: "[--float-delay:-0.4s] [--float-duration:6.2s]",
|
|
45
|
-
rocket: "[--float-delay:-2.2s] [--float-duration:5.2s] [--float-tilt:7deg]",
|
|
46
|
-
moon: "[--float-delay:-3.6s] [--float-duration:7s] [--float-tilt:-5deg]",
|
|
47
|
-
cloud: "[--float-delay:-1.4s] [--float-duration:8s] [--float-rise:0.6rem]",
|
|
48
|
-
comet: "[--float-delay:-4.8s] [--float-duration:4.6s] [--float-tilt:9deg]",
|
|
49
|
-
} as const;
|
|
50
|
-
|
|
51
|
-
const numeralTiles = [
|
|
52
|
-
"tint-planet text-white",
|
|
53
|
-
"tint-rocket text-black/70",
|
|
54
|
-
"tint-moon text-black/70",
|
|
55
|
-
"tint-comet text-white",
|
|
56
|
-
] as const;
|
|
6
|
+
content: `import { page, usePage } from "akanjs/client";
|
|
57
7
|
|
|
58
8
|
export default page().render(() => {
|
|
59
|
-
const appName = getEnv().appName;
|
|
60
9
|
const { l } = usePage();
|
|
61
|
-
const friends = [
|
|
62
|
-
{ name: "planet", role: l.trans({ en: "Web", ko: "웹" }) },
|
|
63
|
-
{ name: "rocket", role: l.trans({ en: "App", ko: "앱" }) },
|
|
64
|
-
{ name: "moon", role: l.trans({ en: "Server · DB", ko: "서버 · DB" }) },
|
|
65
|
-
{ name: "cloud", role: l.trans({ en: "Infra", ko: "인프라" }) },
|
|
66
|
-
{ name: "comet", role: l.trans({ en: "Agent", ko: "에이전트" }) },
|
|
67
|
-
] as const;
|
|
68
|
-
const chapters = [
|
|
69
|
-
{
|
|
70
|
-
numeral: "1",
|
|
71
|
-
title: l.trans({ en: "The line you write.", ko: "당신이 쓰는 한 줄." }),
|
|
72
|
-
body: l.trans({
|
|
73
|
-
en: "A field is one declaration — a name and a type. The database, API, screens and agent tools all come from it.",
|
|
74
|
-
ko: "필드는 이름과 타입, 선언 한 줄입니다. DB, API, 화면, 에이전트 도구가 모두 이 한 줄에서 나옵니다.",
|
|
75
|
-
}),
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
numeral: "×8",
|
|
79
|
-
title: l.trans({ en: "Through every layer.", ko: "모든 레이어를 관통하고," }),
|
|
80
|
-
body: l.trans({
|
|
81
|
-
en: "Schema, query, service, API, fetch, client type, state and UI change together. Nothing to chase, nothing to miss.",
|
|
82
|
-
ko: "스키마, 쿼리, 서비스, API, fetch, 클라이언트 타입, 상태, UI가 함께 바뀝니다. 따라 고칠 곳도 빠뜨릴 곳도 없습니다.",
|
|
83
|
-
}),
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
numeral: "×6",
|
|
87
|
-
title: l.trans({ en: "Onto every platform.", ko: "모든 플랫폼에 닿고," }),
|
|
88
|
-
body: l.trans({
|
|
89
|
-
en: "The same code ships as SEO-ready web, iOS and Android apps, and macOS, Windows and Linux desktop apps.",
|
|
90
|
-
ko: "같은 코드가 SEO 웹, iOS·Android 앱, macOS·Windows·Linux 데스크톱 앱으로 배포됩니다.",
|
|
91
|
-
}),
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
numeral: "×2",
|
|
95
|
-
title: l.trans({ en: "For people and agents alike.", ko: "사람과 에이전트 모두에게." }),
|
|
96
|
-
body: l.trans({
|
|
97
|
-
en: "Guarded endpoints become MCP tools and on-screen controls become in-page agent tools, behind the same guards people pass.",
|
|
98
|
-
ko: "가드를 거친 엔드포인트는 MCP 도구가, 화면의 컨트롤은 인페이지 에이전트 도구가 됩니다. 사람과 같은 가드를 거쳐서요.",
|
|
99
|
-
}),
|
|
100
|
-
},
|
|
101
|
-
];
|
|
102
|
-
const steps = [
|
|
103
|
-
{
|
|
104
|
-
title: l.trans({ en: "Make this page yours", ko: "이 페이지를 바꿔 보세요" }),
|
|
105
|
-
body: l.trans({
|
|
106
|
-
en: "This welcome screen is an ordinary page. Replace it with the first screen of your product.",
|
|
107
|
-
ko: "이 환영 화면은 평범한 페이지입니다. 제품의 첫 화면으로 바꿔 보세요.",
|
|
108
|
-
}),
|
|
109
|
-
code: "page/_index.tsx",
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
title: l.trans({ en: "Restyle the theme", ko: "테마를 바꿔 보세요" }),
|
|
113
|
-
body: l.trans({
|
|
114
|
-
en: "Swap the palette tokens, and every surface and button follows.",
|
|
115
|
-
ko: "팔레트 토큰을 바꾸면 모든 표면과 버튼이 따라옵니다.",
|
|
116
|
-
}),
|
|
117
|
-
code: "page/styles.css",
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
title: l.trans({ en: "Add a feature", ko: "기능을 추가해 보세요" }),
|
|
121
|
-
body: l.trans({
|
|
122
|
-
en: "One command scaffolds a domain module — model, service, API, store and UI.",
|
|
123
|
-
ko: "명령 하나로 도메인 모듈(모델, 서비스, API, 스토어, UI)을 만듭니다.",
|
|
124
|
-
}),
|
|
125
|
-
code: "akan create-module <name>",
|
|
126
|
-
},${sampleStep}
|
|
127
|
-
{
|
|
128
|
-
title: l.trans({ en: "Connect an agent", ko: "에이전트를 연결해 보세요" }),
|
|
129
|
-
body: l.trans({
|
|
130
|
-
en: "Every guarded endpoint is already published as an MCP tool.",
|
|
131
|
-
ko: "가드가 걸린 엔드포인트는 이미 MCP 도구로 공개되어 있습니다.",
|
|
132
|
-
}),
|
|
133
|
-
code: "POST /mcp",
|
|
134
|
-
href: "https://akanjs.com/docs/arch/agentic",
|
|
135
|
-
},
|
|
136
|
-
];
|
|
137
10
|
return (
|
|
138
|
-
<main className="
|
|
139
|
-
<
|
|
140
|
-
<nav className="flex items-center justify-between gap-4">
|
|
141
|
-
<div className="flex items-center gap-3">
|
|
142
|
-
<Image
|
|
143
|
-
alt={l.trans({ en: "Logo", ko: "로고" })}
|
|
144
|
-
className="jelly-breathe size-10"
|
|
145
|
-
height={80}
|
|
146
|
-
priority
|
|
147
|
-
src="/logo.png"
|
|
148
|
-
width={80}
|
|
149
|
-
/>
|
|
150
|
-
<div className="leading-tight">
|
|
151
|
-
<p className="font-black text-lg tracking-tight">{appName}</p>
|
|
152
|
-
<p className="text-foreground/50 text-xs">
|
|
153
|
-
{l.trans({ en: "Built with Akan.js", ko: "Akan.js로 만든 앱" })}
|
|
154
|
-
</p>
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
<div className="flex items-center gap-2">
|
|
158
|
-
<System.ThemeToggle themes={["light", "dark"]} />
|
|
159
|
-
<System.SelectLanguage languages={["en", "ko"]} />
|
|
160
|
-
<Link
|
|
161
|
-
className={jellyButtonRecipe({ variant: "default", size: "sm" }, "max-sm:hidden")}
|
|
162
|
-
href="https://akanjs.com"
|
|
163
|
-
target="_blank"
|
|
164
|
-
>
|
|
165
|
-
{l.trans({ en: "Official Site", ko: "공식 사이트" })} ↗
|
|
166
|
-
</Link>
|
|
167
|
-
</div>
|
|
168
|
-
</nav>
|
|
169
|
-
|
|
170
|
-
<section className="grid min-h-[calc(100svh-5rem)] items-center gap-6 py-12 lg:grid-cols-[0.8fr_1.2fr] lg:gap-10">
|
|
171
|
-
<div className="intro-rise group relative mx-auto aspect-square w-48 sm:w-64 lg:w-full lg:max-w-md">
|
|
172
|
-
<div className="absolute inset-x-[16%] bottom-[3%] h-[7%] rounded-full bg-black/25 blur-xl dark:bg-black/60" />
|
|
173
|
-
<div className="jelly-breathe group-hover:jelly-wobble size-full">
|
|
174
|
-
<Image
|
|
175
|
-
alt=""
|
|
176
|
-
className="pointer-events-none size-full select-none object-contain"
|
|
177
|
-
draggable={false}
|
|
178
|
-
height={640}
|
|
179
|
-
priority
|
|
180
|
-
src="/jelly/star.webp"
|
|
181
|
-
width={640}
|
|
182
|
-
/>
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
|
|
186
|
-
<div className="flex flex-col items-center text-center lg:items-start lg:text-left">
|
|
187
|
-
<p className="intro-rise jelly-glass inline-flex items-center gap-2 rounded-full px-4 py-1.5 font-bold text-foreground/75 text-sm [--intro-delay:40ms]">
|
|
188
|
-
<span className="size-2 rounded-full bg-success ring-4 ring-success/20" />
|
|
189
|
-
{l.trans({ en: "Your app is running", ko: "앱이 실행 중입니다" })}
|
|
190
|
-
</p>
|
|
191
|
-
<h1 className="intro-rise wrap-anywhere mt-6 max-w-full font-black text-[clamp(3.5rem,12vw,8.5rem)] leading-[0.85] tracking-[-0.06em] [--intro-delay:80ms]">
|
|
192
|
-
{appName}
|
|
193
|
-
</h1>
|
|
194
|
-
<p className="intro-rise mt-6 max-w-xl font-bold text-foreground/60 text-lg leading-8 [--intro-delay:160ms]">
|
|
195
|
-
{l.trans({
|
|
196
|
-
en: "Built on Akan.js — the TypeScript framework, agents included.",
|
|
197
|
-
ko: "에이전트까지 들어 있는 TypeScript 프레임워크, Akan.js로 만들었습니다.",
|
|
198
|
-
})}
|
|
199
|
-
</p>
|
|
200
|
-
<ul className="intro-rise mt-8 flex items-end gap-2 [--intro-delay:240ms] sm:gap-4">
|
|
201
|
-
{friends.map((friend) => (
|
|
202
|
-
<li className="group flex flex-col items-center gap-2" key={friend.name}>
|
|
203
|
-
<span className={cn("jelly-float block", friendFloat[friend.name])}>
|
|
204
|
-
<span className="group-hover:jelly-wobble block">
|
|
205
|
-
<Image
|
|
206
|
-
alt=""
|
|
207
|
-
className="pointer-events-none size-14 select-none sm:size-18"
|
|
208
|
-
draggable={false}
|
|
209
|
-
height={200}
|
|
210
|
-
src={\`/jelly/\${friend.name}.webp\`}
|
|
211
|
-
width={200}
|
|
212
|
-
/>
|
|
213
|
-
</span>
|
|
214
|
-
</span>
|
|
215
|
-
<span className="whitespace-nowrap rounded-full bg-foreground/6 px-2.5 py-0.5 font-bold text-[11px] text-foreground/60">
|
|
216
|
-
{friend.role}
|
|
217
|
-
</span>
|
|
218
|
-
</li>
|
|
219
|
-
))}
|
|
220
|
-
</ul>
|
|
221
|
-
<div className="intro-rise mt-10 flex flex-wrap justify-center gap-3 [--intro-delay:320ms] lg:justify-start">
|
|
222
|
-
<Link
|
|
223
|
-
className={jellyButtonRecipe({ size: "lg" })}
|
|
224
|
-
href="https://akanjs.com/docs/intro/quickstart"
|
|
225
|
-
target="_blank"
|
|
226
|
-
>
|
|
227
|
-
{l.trans({ en: "Read Quick Start", ko: "빠른 시작 읽기" })}
|
|
228
|
-
</Link>${sampleButton}
|
|
229
|
-
</div>
|
|
230
|
-
</div>
|
|
231
|
-
</section>
|
|
232
|
-
|
|
233
|
-
<section className="py-12">
|
|
234
|
-
<p className="font-bold text-primary text-sm">{l.trans({ en: "How it works", ko: "작동 방식" })}</p>
|
|
235
|
-
<h2 className="mt-2 font-black text-3xl sm:text-4xl">
|
|
236
|
-
{l.trans({ en: "One line reaches the whole product.", ko: "한 줄이 제품 전체에 닿습니다." })}
|
|
237
|
-
</h2>
|
|
238
|
-
<div className="mt-8 grid gap-4 md:grid-cols-2 xl:grid-cols-4">
|
|
239
|
-
{chapters.map((chapter, idx) => (
|
|
240
|
-
<article className="jelly-glass rounded-box p-6" key={chapter.numeral}>
|
|
241
|
-
<span
|
|
242
|
-
className={cn(
|
|
243
|
-
"jelly flex size-12 items-center justify-center rounded-2xl font-black text-xl",
|
|
244
|
-
numeralTiles[idx],
|
|
245
|
-
)}
|
|
246
|
-
>
|
|
247
|
-
{chapter.numeral}
|
|
248
|
-
</span>
|
|
249
|
-
<h3 className="mt-5 font-bold text-lg">{chapter.title}</h3>
|
|
250
|
-
<p className="mt-2 text-foreground/60 text-sm leading-6">{chapter.body}</p>
|
|
251
|
-
</article>
|
|
252
|
-
))}
|
|
253
|
-
</div>
|
|
254
|
-
</section>
|
|
255
|
-
|
|
256
|
-
<section className="py-12">
|
|
257
|
-
<p className="font-bold text-primary text-sm">{l.trans({ en: "Next steps", ko: "다음 단계" })}</p>
|
|
258
|
-
<h2 className="mt-2 font-black text-3xl sm:text-4xl">
|
|
259
|
-
{l.trans({ en: "Start here.", ko: "여기서 시작하세요." })}
|
|
260
|
-
</h2>
|
|
261
|
-
<ol className="jelly-glass mt-8 divide-y divide-foreground/8 rounded-box">
|
|
262
|
-
{steps.map((step, idx) => (
|
|
263
|
-
<li className="flex items-start gap-4 p-5 sm:p-6" key={step.code}>
|
|
264
|
-
<span className="jelly tint-primary flex size-9 shrink-0 items-center justify-center rounded-full font-black text-primary-foreground text-sm">
|
|
265
|
-
{idx + 1}
|
|
266
|
-
</span>
|
|
267
|
-
<div className="min-w-0 flex-1">
|
|
268
|
-
<h3 className="font-bold">{step.title}</h3>
|
|
269
|
-
<p className="mt-1 text-foreground/60 text-sm leading-6">{step.body}</p>
|
|
270
|
-
<code className="mt-2 inline-block rounded-full bg-foreground/6 px-3 py-1 font-mono text-foreground/75 text-xs">
|
|
271
|
-
{step.code}
|
|
272
|
-
</code>
|
|
273
|
-
</div>
|
|
274
|
-
{step.href ? (
|
|
275
|
-
<Link
|
|
276
|
-
aria-label={step.title}
|
|
277
|
-
className={jellyButtonRecipe({ variant: "ghost", size: "icon" }, "shrink-0 self-center")}
|
|
278
|
-
href={step.href}
|
|
279
|
-
target={step.href.startsWith("http") ? "_blank" : undefined}
|
|
280
|
-
>
|
|
281
|
-
→
|
|
282
|
-
</Link>
|
|
283
|
-
) : null}
|
|
284
|
-
</li>
|
|
285
|
-
))}
|
|
286
|
-
</ol>
|
|
287
|
-
</section>
|
|
288
|
-
|
|
289
|
-
<footer className="py-10 text-center text-foreground/45 text-sm">
|
|
290
|
-
{l.trans({ en: "Made with Akan.js · Powered by Bun", ko: "Akan.js로 만들고 Bun으로 구동합니다" })}
|
|
291
|
-
</footer>
|
|
292
|
-
</div>
|
|
11
|
+
<main className="flex min-h-screen items-center justify-center p-6">
|
|
12
|
+
<h1 className="font-bold text-3xl">{l.trans({ en: "Hello, Akan.js", ko: "안녕하세요, Akan.js" })}</h1>
|
|
293
13
|
</main>
|
|
294
14
|
);
|
|
295
15
|
});
|
|
@@ -20,33 +20,8 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dic
|
|
|
20
20
|
${isUsingShared ? 'import { Auth } from "@libs/shared/ui";\n' : ""}import { rootLayout } from "akanjs/client";
|
|
21
21
|
|
|
22
22
|
export default rootLayout()
|
|
23
|
-
.fonts([
|
|
24
|
-
{
|
|
25
|
-
name: "pretendard",
|
|
26
|
-
default: true,
|
|
27
|
-
paths: [
|
|
28
|
-
{ src: "/fonts/Pretendard-Thin.woff2", weight: 100 },
|
|
29
|
-
{ src: "/fonts/Pretendard-ExtraLight.woff2", weight: 200 },
|
|
30
|
-
{ src: "/fonts/Pretendard-Light.woff2", weight: 300 },
|
|
31
|
-
{ src: "/fonts/Pretendard-Regular.woff2", weight: 400 },
|
|
32
|
-
{ src: "/fonts/Pretendard-Medium.woff2", weight: 500 },
|
|
33
|
-
{ src: "/fonts/Pretendard-SemiBold.woff2", weight: 600 },
|
|
34
|
-
{ src: "/fonts/Pretendard-Bold.woff2", weight: 700 },
|
|
35
|
-
{ src: "/fonts/Pretendard-ExtraBold.woff2", weight: 800 },
|
|
36
|
-
{ src: "/fonts/Pretendard-Black.woff2", weight: 900 },
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
])
|
|
40
23
|
.theme("light")
|
|
41
|
-
.head(
|
|
42
|
-
<>
|
|
43
|
-
<title>${dict.appName}</title>
|
|
44
|
-
<link rel="icon" href="/favicon.ico" sizes="32x32" />
|
|
45
|
-
<link rel="icon" type="image/png" sizes="512x512" href="/logo.png" />
|
|
46
|
-
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
47
|
-
<meta name="theme-color" content="#f1f1ee" />
|
|
48
|
-
</>,
|
|
49
|
-
)
|
|
24
|
+
.head(<title>${dict.appName}</title>)
|
|
50
25
|
.render(({ children }) => {
|
|
51
26
|
return ${rendered};
|
|
52
27
|
});
|