127 height: 100%;
128 z-index: -1;
129 background-image:
130 radial-gradient(
131 circle at 20% 30%,
688 pointer-events: none;
689 z-index: -1;
690 background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 5L22 15.5L32.5 17.5L22 19.5L20 30L18 19.5L7.5 17.5L18 15.5L20 5Z' stroke='%236B5B95' stroke-width='2'/%3E%3Cpath d='M20 10L21 16L27 17L21 18L20 24L19 18L13 17L19 16L20 10Z' fill='%236B5B95' fill-opacity='0.6'/%3E%3C/svg%3E");
691 animation: twinkle 4s infinite ease-in-out;
692}
15 >
16 <link rel="stylesheet" href="/public/style.css">
17 <link rel="icon" href="public/favicon.svg" type="image/svg+xml">
18 </head>
19 <body>
57 created_at: string;
58 profile_banner_url: string;
59 profile_image_url_https: string;
60 can_dm: boolean;
61}
69 name: `${projectDetails.name}_${Date.now().toString()}`,
70 description: projectDetails.description ?? undefined,
71 imageUrl: projectDetails.imageUrl ?? undefined,
72 });
73 console.log("New project created:", newProject);
6 <title>React Hono Val Town Starter</title>
7 <script src="https://cdn.tailwindcss.com"></script>
8 <link rel="icon" href="/public/favicon.svg" sizes="any" type="image/svg+xml">
9 </head>
10 <body>
11 link: string | undefined;
12 ctaText: string | undefined;
13 imageUrl: string | undefined;
14}
15
38 }
39
40 // Check for images with alt text
41 const imageElement = $container.find("img");
42 let headline: string | null = null;
43 let imageUrl: string | undefined = undefined;
44
45 if (imageElement.length > 0) {
46 // Use alt text as headline if available
47 const altText = imageElement.attr("alt");
48 if (altText && altText.trim()) {
49 headline = altText.trim();
50 }
51
52 // Get image URL
53 imageUrl = imageElement.attr("src");
54 // Make sure the image URL is absolute
55 if (imageUrl && !imageUrl.startsWith("http")) {
56 imageUrl = `https://www.flyfrontier.com${
57 imageUrl.startsWith("/") ? "" : "/"
58 }${imageUrl}`;
59 }
60 }
61
62 // If no image headline found, try to find text headline
63 if (!headline) {
64 const headlineElements = $container.find('p[style*="font-size"]');
94
95 // Only add if we have at least some content
96 if (headline || details || promoCode || imageUrl) {
97 promos.push({
98 type: "banner",
102 link,
103 ctaText,
104 imageUrl,
105 });
106 }
6 <title>React Hono Val Town Starter</title>
7 <link rel="stylesheet" href="/public/style.css">
8 <link rel="icon" href="/public/favicon.svg" sizes="any" type="image/svg+xml">
9 </head>
10 <body>
49Response.redirect is broken. Use return new Response(null, { 302, headers: { Location: "/place/to/redirect" }})
50
51Avoid external images or base64 images, use emojis, unicode symtols, or icon fonts/libraries instead, unless that's not practical for the user's request (e.g. if they ask for a particular animated gif).
52
53If you want an AI generated image, use https://maxm-imggenurl.web.val.run/the-description-of-your-image to dynamically generate one.
54
55Do not use the Deno KV module for storage.
10 href="/public/favicon.svg"
11 sizes="any"
12 type="image/svg+xml"
13 >
14 </head>
310 }
311 </style>
312 <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🤖</text></svg>" type="image/svg+xml">
313 </head>
314 <body>