This commit is contained in:
Kuba Orlik 2024-10-07 17:45:10 +02:00
parent 887829420e
commit f159956697
2 changed files with 2 additions and 24 deletions

View File

@ -10,24 +10,10 @@ import arrow from "./autoscrolling-images-arrow.svg";
import type { FilePointer } from "@sealcode/file-manager";
import type { makeJDDContext } from "../../jdd-context.js";
import _locreq from "locreq";
const locreq = _locreq(new URL("./", import.meta.url).pathname);
const images = new ComponentArguments.List(
new ComponentArguments.Structured({
image: new ComponentArguments.Image().setExampleImages(
[
"logo1.png",
"logo2.png",
"logo3.png",
"logo4.png",
"logo5.png",
"logo6.png",
"logo7.png",
"logo8.png",
"logo9.png",
].map((name) => locreq.resolve("assets/" + name))
),
image: new ComponentArguments.Image(),
alt: new ComponentArguments.ShortText(),
})
);

View File

@ -7,17 +7,9 @@ import type {
} from "@sealcode/jdd";
import { Component, ComponentArguments } from "@sealcode/jdd";
import _locreq from "locreq";
const locreq = _locreq(new URL("./", import.meta.url).pathname);
const component_arguments = {
image: new ComponentArguments.Structured({
image: new ComponentArguments.Image().setExampleImages(
["image1.jpg", "image2.jpg", "image3.jpg", "image5.jpg"].map((name) =>
locreq.resolve("assets/" + name)
)
),
image: new ComponentArguments.Image(),
alt: new ComponentArguments.ShortText(),
}),
} as const;