stevensDemoassets.ts6 matches
2// Background
3BACKGROUND:
4"https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/8b501664-722e-4be8-cf71-83aab7756e00/public",
56// Stevens
7STEVENS_FRONT:
8"https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/8b8432bb-add2-44ad-bb12-44b8ea215500/public",
9STEVENS_BACK:
10"https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/e28da8ab-7710-4b82-8e32-8fdf65c2ed00/public",
11STEVENS_WALKING:
12"https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/bd7b9997-09b2-4b35-6eb9-9975a85bb700/public",
1314// Mailman
15MAILMAN_STANDING:
16"https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/20a6493d-cc31-475e-aa83-ac97d317e400/public",
17MAILMAN_WALKING:
18"https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/61604576-8a83-4d85-d5e4-8e8e26641700/public",
19};
20
stevensDemoApp.tsx25 matches
82const [cookieAndTeaMode, setCookieAndTeaMode] = useState(false);
8384// Fetch images from backend instead of blob storage directly
85useEffect(() => {
86// Set default background color in case image doesn't load
87if (document.body) {
88document.body.style.backgroundColor = "#2D1700"; // Dark brown leather color
89}
9091// Fetch avatar image
92fetch("/api/images/stevens.jpg")
93.then((response) => {
94if (response.ok) return response.blob();
95throw new Error("Failed to load avatar image");
96})
97.then((imageBlob) => {
98const url = URL.createObjectURL(imageBlob);
99setAvatarUrl(url);
100})
104105// Fetch wood background
106fetch("/api/images/wood.jpg")
107.then((response) => {
108if (response.ok) return response.blob();
109throw new Error("Failed to load wood background");
110})
111.then((imageBlob) => {
112const url = URL.createObjectURL(imageBlob);
113setWoodUrl(url);
114115// Apply wood background to body
116if (document.body) {
117document.body.style.backgroundImage = `url(${url})`;
118}
119})
362return {
363position: SCENE_ELEMENTS.DESK_SITTING,
364image: ASSETS.STEVENS_FRONT,
365highlightElement: SCENE_ELEMENTS.DESK,
366animationClass: "no-animation",
372return {
373position: SCENE_ELEMENTS.DESK_SITTING,
374image: ASSETS.STEVENS_FRONT,
375highlightElement: null,
376animationClass: "no-animation",
387y: SCENE_ELEMENTS.MAILBOX.y - 20,
388},
389image: ASSETS.STEVENS_BACK,
390highlightElement: SCENE_ELEMENTS.MAILBOX,
391animationClass: "walk-to-mailbox",
398y: SCENE_ELEMENTS.CALENDAR.y + 30,
399},
400image: ASSETS.STEVENS_BACK,
401highlightElement: SCENE_ELEMENTS.CALENDAR,
402animationClass: "walk-to-calendar",
409y: SCENE_ELEMENTS.TELEGRAM.y + 10,
410},
411image: ASSETS.STEVENS_BACK,
412highlightElement: SCENE_ELEMENTS.TELEGRAM,
413animationClass: "walk-to-telegram",
417return {
418position: SCENE_ELEMENTS.OUTSIDE,
419image: ASSETS.STEVENS_FRONT,
420highlightElement: null,
421animationClass: "walk-to-outside",
425return {
426position: SCENE_ELEMENTS.DESK_SITTING,
427image: ASSETS.STEVENS_FRONT,
428highlightElement: SCENE_ELEMENTS.DESK,
429animationClass: "walk-to-desk",
623box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4),
6240 3px 8px rgba(0, 0, 0, 0.5);
625image-rendering: pixelated;
626cursor: pointer;
627transition: transform 0.2s;
634.notebook-pages {
635background-color: #f8f1e0;
636background-image: linear-gradient(#d6c6a5 1px, transparent 1px);
637background-size: 100% 16px;
638box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
639image-rendering: pixelated;
640}
641652653.pixel-character {
654image-rendering: pixelated;
655position: absolute;
656transition: left 0.7s ease-in-out, top 0.7s ease-in-out;
763className="w-[512px] h-[512px] mx-auto relative"
764style={{
765backgroundImage: `url(${ASSETS.BACKGROUND})`,
766backgroundSize: "cover",
767backgroundPosition: "center",
768imageRendering: "pixelated",
769}}
770>
799{/* Stevens character */}
800<img
801src={stevensState.image}
802alt="Stevens"
803className={`pixel-character ${
2title: "cssNeuroNoiseGlslShaderV2"
3description: "valtown version of a cool thing I found"
4imageUrl: "https://chatgpt.com/backend-api/public_content/enc/eyJpZCI6Im1fNjgxNTI5NTIxOGI4ODE5MWFjZGFiMGU3NjhmYjcxOTE6ZmlsZV8wMDAwMDAwMDU3Y2M2MWY3YTNkOWI1ZmQ1YjlmNTg4NCIsInRzIjoiNDg1MDYwIiwicCI6InB5aSIsInNpZyI6IjEwNjFjYTkxY2JjZjg1ODRhYzVlNzIyNWRkOWYyOWQwMGU1NzUzNWFmMWViMWFmNjAyODcwYWQ5Y2NkMTBjNTEiLCJ2IjoiMCIsImdpem1vX2lkIjpudWxsfQ=="
5url: "https://dcm31--98beda90278311f0b46e569c3dd06744.web.val.run"
6author: "dcm31"
48title: z.string().max(100),
49text: z.string().max(20 * 1024).optional(),
50image: z.string().url().startsWith("data:").max(200 * 1024).optional(),
51audio: z.string().url().startsWith("data:").max(200 * 1024).optional(),
52video: z.string().url().startsWith("data:").max(200 * 1024).optional(),
pondiversegetCreations2 matches
13for (const row of res.rows) {
14console.log("delete", row.id);
15blob.delete("pondiverse_image" + row.id);
16}
1754// for (let creation of response.rows) {
55// creation.url = `https://pondiverse.val.run/get-creation?id=${creation.id}`;
56// creation.image = `https://pondiverse.val.run/get-creation-image?id=${creation.id}`;
57// }
58
pondiversegetCreation1 match
14// This makes forking harder sorry
15// creation.uri = `https://pondiverse.val.run/get-creation?id=${creation.id}`;
16// creation.image = `https://pondiverse.val.run/get-creation-image?id=${creation.id}`;
17return Response.json(creation);
18}
pondiversegetCreation1 match
1314creation.uri = `https://pondiverse.val.run/get-creation?id=${creation.id}`;
15creation.image = `https://pondiverse.val.run/get-creation-image?id=${creation.id}`;
16return Response.json(creation);
17}
pondiversegetCreations2 matches
13for (const row of res.rows) {
14console.log("delete", row.id);
15blob.delete("pondiverse_image" + row.id);
16}
1746for (let creation of response.rows) {
47creation.uri = `https://pondiverse.val.run/get-creation?id=${creation.id}`;
48creation.image = `https://pondiverse.val.run/get-creation-image?id=${creation.id}`;
49}
50
pondiverseupdateTable1 match
9data TEXT,
10type TEXT,
11image TEXT,
12time DATETIME NOT NULL
13)`,
pondiversemain3 matches
1import addCreation from "./addCreation";
2import getCreation from "./getCreation";
3import getCreationImage from "./getCreationImage";
4import getCreations from "./getCreations";
5import updateTable from "./updateTable";
13case "/get-creation":
14return getCreation(req);
15case "/get-creation-image":
16return getCreationImage(req);
17case "/get-creations":
18return getCreations(req);