381<div className="w-full aspect-square bg-gray-200 dark:bg-gray-700">
382<img
383src={record.basic_information.cover_image
384|| "https://maxm-imggenurl.web.val.run/vinyl-record-album-cover-placeholder"}
385alt={record.basic_information.title}
538<title>Ash Randorecs</title>
539<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
540<link rel="icon" type="image/svg+xml" href="/favicon.svg">
541<script src="https://cdn.tailwindcss.com"></script>
542<script>
4paginate: true
5backgroundColor: "#fff"
6backgroundImage: url('https://marp.app/assets/hero-background.svg')
7---
8
5const resolverBase = "https://id.rijksmuseum.nl/";
67function createManifest(images: any[], label: any, metadata: any, id: string) {
8const builder = new IIIFBuilder();
9const uri = "https://sammeltassen-rijks.web.val.run/" + id;
24profile: "https://linked.art/ns/v1/linked-art.json",
25}]);
26if (images.length) {
27for (const [index, item] of images.entries()) {
28manifest.createCanvas(uri + "/canvas/" + index, (canvas) => {
29canvas.height = item.height;
36body: {
37id: item.id + "/full/max/0/default.jpg",
38type: "Image",
39format: "image/jpeg",
40height: item.height,
41width: item.width,
50}
5152function getImageInformation(record: any) {
53const imageApiEndpoint = record?.["rdf:RDF"]?.["svcs:Service"]?.[0]?.$?.["rdf:about"];
54if (imageApiEndpoint) {
55return fetch(imageApiEndpoint)
56.then(resp => resp.json())
57.catch((err) => console.log(`Error fetching Image Information from ${imageApiEndpoint}`, err));
58} else return null;
59}
6061function getMoreImages(part: any) {
62const uri = part.$["rdf:resource"];
63const id = uri.split("/").pop();
64return fetchJson(id)
65.then(getImageInformation)
66.catch((err) => console.log(`Error fetching more images from ${id}`, err));
67}
68172const label = getValues(props["dc:title"]);
173const metadata = getMetadata(props);
174const images = [await getImageInformation(resp)];
175if (parts) {
176images.push(...await Promise.all(parts.map(getMoreImages)));
177}
178const manifest = createManifest(images.filter(i => i), label, metadata, id.toString());
179return Response.json(manifest);
180}
133transform: scaleX(1);
134transform-origin: center;
135background-image: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
136background-clip: text;
137background-size: 300% 300%;
getShowcaseValsmain.tsx2 matches
77async function getScreenshot(url: string) {
78const resp = await fetch(
79"https://api.apiflash.com/v1/urltoimage?" + new URLSearchParams({
80access_key: Deno.env.get("API_FLASH"),
81url,
82delay: "5",
83format: "webp",
84response_type: "image",
85width: "1200",
86height: "1200",
133transform: scaleX(1);
134transform-origin: center;
135background-image: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
136background-clip: text;
137background-size: 300% 300%;
reflective_qaREADME.md1 match
3Ask me about r's in strawberry
45
6
GameAwards2024PredictionGamemain.tsx5 matches
260}
261262const sampleImageUrl =
263"https://www.hollywoodreporter.com/wp-content/uploads/2024/11/tga24_poster1_4k-e1731968563811.jpg";
264279<meta property="og:title" content="Game Awards Prediction Challenge">
280<meta property="og:description" content="Predict the winners of the Game Awards and compete with others!">
281<meta property="og:image" content="${sampleImageUrl}">
282<meta property="og:url" content="${import.meta.url}">
283<meta property="og:type" content="website">
284
285<meta name="twitter:card" content="summary_large_image">
286<meta name="twitter:title" content="Game Awards Prediction Challenge">
287<meta name="twitter:description" content="Predict the winners of the Game Awards and compete with others!">
288<meta name="twitter:image" content="${sampleImageUrl}">
289
290<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>">
291
292<style>${css}</style>
blobReadPictureExamplemain.tsx3 matches
15return new Response(buffer, {
16headers: {
17"Content-Type": "image/png",
18},
19});
38}
39
40const pngBlob = await canvas.convertToBlob({ type: 'image/png' });
41const buffer = await pngBlob.arrayBuffer();
42
44status: 500,
45headers: {
46"Content-Type": "image/png",
47"X-Error-Message": String(error)
48},
tweetArchiveViewermain.tsx4 matches
163media.type === "photo"
164? (
165<div key={index} className="image-container">
166<img src={media.url} alt="Tweet media" className="tweet-image" onLoad={onMediaLoad} />
167</div>
168)
527}
528529.image-container {
530width: 100%;
531height: 300px;
537}
538539.tweet-image {
540width: 100%;
541height: 100%;