Commit
•
35f8585
1
Parent(s):
bcd2d46
add gtm
Browse files- src/app/engine/presets.ts +28 -6
- src/app/page.tsx +11 -0
- src/types.ts +6 -0
src/app/engine/presets.ts
CHANGED
@@ -268,7 +268,7 @@ export const presets: Record<string, Preset> = {
|
|
268 |
family: "european",
|
269 |
color: "color",
|
270 |
font: "actionman",
|
271 |
-
llmPrompt: "
|
272 |
imagePrompt: (prompt: string) => [
|
273 |
`color comic panel`,
|
274 |
`${prompt}`,
|
@@ -297,7 +297,7 @@ export const presets: Record<string, Preset> = {
|
|
297 |
family: "european",
|
298 |
color: "color",
|
299 |
font: "actionman",
|
300 |
-
llmPrompt: "
|
301 |
imagePrompt: (prompt: string) => [
|
302 |
`color comic panel`,
|
303 |
`${prompt}`,
|
@@ -322,13 +322,35 @@ export const presets: Record<string, Preset> = {
|
|
322 |
"3D render"
|
323 |
],
|
324 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
armorican: {
|
326 |
id: "armorican",
|
327 |
label: "Armorican",
|
328 |
family: "european",
|
329 |
color: "monochrome",
|
330 |
font: "actionman",
|
331 |
-
llmPrompt: "
|
332 |
imagePrompt: (prompt: string) => [
|
333 |
`color comic panel`,
|
334 |
`about ${prompt}`,
|
@@ -382,7 +404,7 @@ export const presets: Record<string, Preset> = {
|
|
382 |
family: "european",
|
383 |
color: "color",
|
384 |
font: "actionman",
|
385 |
-
llmPrompt: "
|
386 |
imagePrompt: (prompt: string) => [
|
387 |
`golden`,
|
388 |
`patchwork`,
|
@@ -405,7 +427,7 @@ export const presets: Record<string, Preset> = {
|
|
405 |
family: "european",
|
406 |
color: "color",
|
407 |
font: "actionman",
|
408 |
-
llmPrompt: "
|
409 |
imagePrompt: (prompt: string) => [
|
410 |
`medieval illuminated manuscript`,
|
411 |
`illuminated manuscript of`,
|
@@ -479,7 +501,7 @@ export const presets: Record<string, Preset> = {
|
|
479 |
family: "european",
|
480 |
color: "color",
|
481 |
font: "actionman",
|
482 |
-
llmPrompt: "
|
483 |
imagePrompt: (prompt: string) => [
|
484 |
`ancient egyptian wall painting`,
|
485 |
// `medieval color engraving`,
|
|
|
268 |
family: "european",
|
269 |
color: "color",
|
270 |
font: "actionman",
|
271 |
+
llmPrompt: "comic books by Moebius",
|
272 |
imagePrompt: (prompt: string) => [
|
273 |
`color comic panel`,
|
274 |
`${prompt}`,
|
|
|
297 |
family: "european",
|
298 |
color: "color",
|
299 |
font: "actionman",
|
300 |
+
llmPrompt: "writing Tintin comic books",
|
301 |
imagePrompt: (prompt: string) => [
|
302 |
`color comic panel`,
|
303 |
`${prompt}`,
|
|
|
322 |
"3D render"
|
323 |
],
|
324 |
},
|
325 |
+
lurid: {
|
326 |
+
id: "lurid",
|
327 |
+
label: "Lurid",
|
328 |
+
family: "american",
|
329 |
+
color: "color",
|
330 |
+
font: "actionman",
|
331 |
+
llmPrompt: "1970s satirical and alternative underground comics",
|
332 |
+
imagePrompt: (prompt: string) => [
|
333 |
+
`satirical color comic`,
|
334 |
+
`underground comix`,
|
335 |
+
`1970`,
|
336 |
+
`${prompt}`,
|
337 |
+
],
|
338 |
+
negativePrompt: () => [
|
339 |
+
"manga",
|
340 |
+
"anime",
|
341 |
+
"american comic",
|
342 |
+
"grayscale",
|
343 |
+
"monochrome",
|
344 |
+
"painting"
|
345 |
+
],
|
346 |
+
},
|
347 |
armorican: {
|
348 |
id: "armorican",
|
349 |
label: "Armorican",
|
350 |
family: "european",
|
351 |
color: "monochrome",
|
352 |
font: "actionman",
|
353 |
+
llmPrompt: "french style comic books set in ancient Rome and Gaul",
|
354 |
imagePrompt: (prompt: string) => [
|
355 |
`color comic panel`,
|
356 |
`about ${prompt}`,
|
|
|
404 |
family: "european",
|
405 |
color: "color",
|
406 |
font: "actionman",
|
407 |
+
llmPrompt: "Gustav Klimt art pieces.",
|
408 |
imagePrompt: (prompt: string) => [
|
409 |
`golden`,
|
410 |
`patchwork`,
|
|
|
427 |
family: "european",
|
428 |
color: "color",
|
429 |
font: "actionman",
|
430 |
+
llmPrompt: "medieval story (write in this style)",
|
431 |
imagePrompt: (prompt: string) => [
|
432 |
`medieval illuminated manuscript`,
|
433 |
`illuminated manuscript of`,
|
|
|
501 |
family: "european",
|
502 |
color: "color",
|
503 |
font: "actionman",
|
504 |
+
llmPrompt: "ancient egyptian stories.",
|
505 |
imagePrompt: (prompt: string) => [
|
506 |
`ancient egyptian wall painting`,
|
507 |
// `medieval color engraving`,
|
src/app/page.tsx
CHANGED
@@ -4,6 +4,7 @@ import Head from "next/head"
|
|
4 |
|
5 |
import Main from "./main"
|
6 |
import { TooltipProvider } from "@/components/ui/tooltip"
|
|
|
7 |
|
8 |
// https://nextjs.org/docs/pages/building-your-application/optimizing/fonts
|
9 |
|
@@ -22,6 +23,16 @@ export default async function IndexPage({ params: { ownerId } }: { params: { own
|
|
22 |
<TooltipProvider delayDuration={100}>
|
23 |
<Main />
|
24 |
</TooltipProvider>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
</main>
|
26 |
</>
|
27 |
)
|
|
|
4 |
|
5 |
import Main from "./main"
|
6 |
import { TooltipProvider } from "@/components/ui/tooltip"
|
7 |
+
import Script from "next/script"
|
8 |
|
9 |
// https://nextjs.org/docs/pages/building-your-application/optimizing/fonts
|
10 |
|
|
|
23 |
<TooltipProvider delayDuration={100}>
|
24 |
<Main />
|
25 |
</TooltipProvider>
|
26 |
+
<Script src="https://www.googletagmanager.com/gtag/js?id=GTM-WH4MGSHS" />
|
27 |
+
<Script id="google-analytics">
|
28 |
+
{`
|
29 |
+
window.dataLayer = window.dataLayer || [];
|
30 |
+
function gtag(){dataLayer.push(arguments);}
|
31 |
+
gtag('js', new Date());
|
32 |
+
|
33 |
+
gtag('config', 'GTM-WH4MGSHS');
|
34 |
+
`}
|
35 |
+
</Script>
|
36 |
</main>
|
37 |
</>
|
38 |
)
|
src/types.ts
CHANGED
@@ -119,4 +119,10 @@ export type GetAppPostsResponse = {
|
|
119 |
success?: boolean
|
120 |
error?: string
|
121 |
posts: Post[]
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
}
|
|
|
119 |
success?: boolean
|
120 |
error?: string
|
121 |
posts: Post[]
|
122 |
+
}
|
123 |
+
|
124 |
+
export type GetAppPostResponse = {
|
125 |
+
success?: boolean
|
126 |
+
error?: string
|
127 |
+
post: Post
|
128 |
}
|