返回 presentation-ai
test-slide.ts
1 import { type PlateSlide } from "@/components/notebook/presentation/utils/parser";
2
3 export const testSlides: PlateSlide[] = [
4 {
5 id: "theme-preview-card",
6 width: "M",
7 fontSize: "M",
8 alignment: "center",
9 content: [
10 {
11 type: "boxes",
12 children: [
13 {
14 type: "box-item",
15 children: [
16 {
17 type: "p",
18 children: [{ text: "Hello 👋", bold: true }],
19 },
20 {
21 type: "h1",
22 children: [{ text: "Welcome to ALLWEONE" }],
23 },
24 {
25 type: "p",
26 children: [
27 {
28 text: "Create beautiful, AI-powered presentations in minutes. Customize your theme with fonts, colors, and layouts.",
29 },
30 ],
31 },
32 {
33 type: "p",
34 children: [
35 {
36 text: "Your accent color will be used for links.",
37 color: "var(--presentation-accent)",
38 underline: true,
39 },
40 {
41 text: " It will also be used for layouts and buttons.",
42 },
43 ],
44 },
45 {
46 type: "p",
47 children: [
48 {
49 text: "Here are your buttons:",
50 bold: true,
51 },
52 ],
53 },
54 {
55 type: "flex_box",
56 justify: "start",
57 children: [
58 {
59 type: "p",
60 children: [
61 {
62 type: "button",
63 variant: "filled",
64 children: [{ text: "Primary button" }],
65 },
66 ],
67 },
68 {
69 type: "p",
70 children: [
71 {
72 type: "button",
73 variant: "outline",
74 children: [{ text: "Secondary button" }],
75 },
76 ],
77 },
78 ],
79 },
80 ],
81 },
82 ],
83 },
84 ],
85 },
86 {
87 id: "theme-preview-fonts",
88 width: "M",
89 fontSize: "M",
90 alignment: "start",
91 content: [
92 {
93 type: "h1",
94 children: [{ text: "Fonts" }],
95 },
96 {
97 type: "p",
98 children: [
99 {
100 text: "ALLWEONE comes with pre-defined sizes of typography that work best for legibility. Feel free to choose font families for your headings and body font.",
101 },
102 ],
103 },
104 {
105 type: "p",
106 children: [
107 {
108 text: "You can choose a solid default color for your text. For headings, you can also choose a gradient color.",
109 },
110 ],
111 },
112 {
113 type: "h1",
114 children: [{ text: "Title font" }],
115 },
116 {
117 type: "h1",
118 children: [{ text: "Heading 1" }],
119 },
120 {
121 type: "h2",
122 children: [{ text: "Heading 2" }],
123 },
124 {
125 type: "h3",
126 children: [{ text: "Heading 3" }],
127 },
128 {
129 type: "h4",
130 children: [{ text: "Heading 4" }],
131 },
132 ],
133 },
134 {
135 id: "theme-preview-layouts",
136 width: "M",
137 fontSize: "M",
138 alignment: "start",
139 content: [
140 {
141 type: "h1",
142 children: [{ text: "Smart layouts" }],
143 },
144 {
145 type: "h3",
146 children: [{ text: "Timeline" }],
147 },
148 {
149 type: "timeline",
150 orientation: "horizontal",
151 alignment: "center",
152 children: [
153 {
154 type: "timeline-item",
155 children: [
156 { type: "h3", children: [{ text: "AI-Powered Creation" }] },
157 {
158 type: "p",
159 children: [
160 { text: "Generate presentations with AI assistance" },
161 ],
162 },
163 ],
164 },
165 {
166 type: "timeline-item",
167 children: [
168 { type: "h3", children: [{ text: "Custom Themes" }] },
169 {
170 type: "p",
171 children: [
172 {
173 text: "Personalize your presentations with custom fonts and colors",
174 },
175 ],
176 },
177 ],
178 },
179 {
180 type: "timeline-item",
181 children: [
182 { type: "h3", children: [{ text: "Smart Layouts" }] },
183 {
184 type: "p",
185 children: [
186 {
187 text: "Use intelligent layouts that adapt to your content",
188 },
189 ],
190 },
191 ],
192 },
193 ],
194 },
195 {
196 type: "h3",
197 children: [{ text: "Pyramid" }],
198 },
199 {
200 type: "pyramid",
201 children: [
202 {
203 type: "pyramid-item",
204 children: [
205 { type: "h3", children: [{ text: "Easy to Use" }] },
206 {
207 type: "p",
208 children: [{ text: "Intuitive interface for everyone" }],
209 },
210 ],
211 },
212 {
213 type: "pyramid-item",
214 children: [
215 { type: "h3", children: [{ text: "Fully Customizable" }] },
216 {
217 type: "p",
218 children: [
219 { text: "Adjust layouts and styles to match your brand" },
220 ],
221 },
222 ],
223 },
224 {
225 type: "pyramid-item",
226 children: [
227 { type: "h3", children: [{ text: "Professional Results" }] },
228 {
229 type: "p",
230 children: [
231 {
232 text: "Create stunning presentations that impress your audience",
233 },
234 ],
235 },
236 ],
237 },
238 ],
239 },
240 ],
241 },
242 ];
243
243 lines TYPESCRIPT