Skip to content

Commit a1134f4

Browse files
committed
🗑️ removed all manual docs preview code
1 parent 6857122 commit a1134f4

File tree

1 file changed

+0
-78
lines changed

1 file changed

+0
-78
lines changed

config/components.ts

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -8,81 +8,31 @@ export const componentConfig = {
88
preview: lazy(
99
() => import("@/preview/components/accordion-style-default")
1010
),
11-
codeHtml: `<div class="space-y-4 mx-auto">
12-
<details class="border-2 border-black shadow-md hover:shadow-sm transition-all overflow-hidden">
13-
<summary class="px-4 py-2 font-head text-black cursor-pointer focus:outline-none">
14-
Accordion Item 1
15-
</summary>
16-
<div class="px-4 py-2 font-body bg-white text-gray-700">
17-
This is the content of the first accordion item. It is styled with
18-
Tailwind CSS.
19-
</div>
20-
</details>
21-
22-
<details class="border-2 border-black shadow-md hover:shadow-sm transition-all overflow-hidden">
23-
<summary class="px-4 py-2 font-head text-black cursor-pointer focus:outline-none">
24-
Accordion Item 2
25-
</summary>
26-
<div class="px-4 py-2 font-body bg-white text-gray-700">
27-
This is the content of the second accordion item. It has a similar
28-
style to maintain consistency.
29-
</div>
30-
</details>
31-
32-
<details class="border-2 border-black shadow-md hover:shadow-sm transition-all overflow-hidden">
33-
<summary class="px-4 py-2 font-head text-black cursor-pointer focus:outline-none">
34-
Accordion Item 3
35-
</summary>
36-
<div class="px-4 py-2 font-body bg-white text-gray-700">
37-
This is the content of the third accordion item. The details element
38-
handles the toggle behavior.
39-
</div>
40-
</details>
41-
</div>`,
4211
},
4312
"avatar-style-circle": {
4413
name: "avatar-style-circle",
4514
filePath: "preview/components/avatar-style-circle.tsx",
4615
preview: lazy(() => import("@/preview/components/avatar-style-circle")),
47-
codeHtml: `<div className="inline-block w-14 h-14 border-2 border-black rounded-full overflow-hidden">
48-
<img
49-
className="w-full h-full"
50-
src="https://pagedone.io/asset/uploads/1704275541.png"
51-
alt="Rounded Avatar"
52-
/>
53-
</div>`,
5416
},
5517
"badge-style-default": {
5618
name: "badge-style-default",
5719
filePath: "preview/components/badge-style-default.tsx",
5820
preview: lazy(() => import("@/preview/components/badge-style-default")),
59-
codeHtml: `<span className="border-black text-black border-2 px-2 py-1 text-sm">
60-
Badge
61-
</span>`,
6221
},
6322
"badge-style-success": {
6423
name: "badge-style-default",
6524
filePath: "preview/components/badge-style-success.tsx",
6625
preview: lazy(() => import("@/preview/components/badge-style-success")),
67-
codeHtml: `<span className="border-2 border-green-600 text-green-600 px-2.5 py-1 text-sm">
68-
Badge
69-
</span>`,
7026
},
7127
"badge-style-error": {
7228
name: "badge-style-default",
7329
filePath: "preview/components/badge-style-error.tsx",
7430
preview: lazy(() => import("@/preview/components/badge-style-error")),
75-
codeHtml: `<span className="border-2 border-red-600 text-red-600 px-2.5 py-1 text-sm">
76-
Badge
77-
</span>`,
7831
},
7932
"badge-style-filled": {
8033
name: "badge-style-default",
8134
filePath: "preview/components/badge-style-filled.tsx",
8235
preview: lazy(() => import("@/preview/components/badge-style-filled")),
83-
codeHtml: `<span className="border-2 bg-primary-400 border-black text-black px-2.5 py-1 text-sm">
84-
Badge
85-
</span>`,
8636
},
8737
"button-style-default": {
8838
name: "button-style-default",
@@ -93,56 +43,28 @@ export const componentConfig = {
9343
name: "card-style-default",
9444
filePath: "preview/components/card-style-default.tsx",
9545
preview: lazy(() => import("@/preview/components/card-style-default")),
96-
codeHtml: `<div className="inline-block border-2 border-black p-4 shadow-md cursor-pointer transition-all hover:shadow-xs">
97-
<h4 className="font-head text-2xl font-medium mb-1">This is card Title</h4>
98-
<p>This is card description.</p>
99-
</div>`,
10046
},
10147
"input-style-default": {
10248
name: "input-style-default",
10349
filePath: "preview/components/input-style-default.tsx",
10450
preview: lazy(() => import("@/preview/components/input-style-default")),
105-
codeHtml: `<input
106-
type="text"
107-
placeholder="type something..."
108-
className="px-4 py-2 w-full border-2 border-black shadow-md transition focus:outline-none focus:shadow-xs"
109-
/>`,
11051
},
11152
"textarea-style-default": {
11253
name: "textarea-style-default",
11354
filePath: "preview/components/textarea-style-default.tsx",
11455
preview: lazy(
11556
() => import("@/preview/components/textarea-style-default")
11657
),
117-
codeHtml: `<textarea
118-
rows="4"
119-
placeholder="type something..."
120-
className="px-4 py-2 w-full border-2 border-black shadow-md transition focus:outline-none focus:shadow-xs"
121-
/>`,
12258
},
12359
"typography-headings": {
12460
name: "typography-headings",
12561
filePath: "preview/components/typography-headings.tsx",
12662
preview: lazy(() => import("@/preview/components/typography-headings")),
127-
codeHtml: `<div className="space-y-4">
128-
<h1 className="font-head text-5xl lg:text-6xl font-bold">This is H1</h1>
129-
<h2 className="font-head text-4xl font-semibold">This is H2</h2>
130-
<h3 className="font-head text-2xl font-semibold">This is H3</h3>
131-
<h4 className="font-head text-xl font-medium">This is H4</h4>
132-
<h5 className="font-head text-lg font-medium">This is H5</h5>
133-
<h6 className="font-head font-medium">This is H6</h6>
134-
</div>`,
13563
},
13664
"typography-p": {
13765
name: "typography-p",
13866
filePath: "preview/components/typography-p.tsx",
13967
preview: lazy(() => import("@/preview/components/typography-p")),
140-
codeHtml: `<p className="font-sans">
141-
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quaerat eos,
142-
doloremque inventore nesciunt quo sequi veniam impedit alias libero
143-
dolorem tempore quia esse fugit fuga iste aliquam expedita molestias
144-
iusto?
145-
</p>`,
14668
},
14769
},
14870
};

0 commit comments

Comments
 (0)