From e476c187de784e31b8b3ae15b1cda010fa7f03c6 Mon Sep 17 00:00:00 2001 From: Juan M Date: Wed, 17 Apr 2024 03:28:17 -0300 Subject: [PATCH 1/4] Search placeholder smaller --- src/components/Search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Search.js b/src/components/Search.js index 1fc6f0b..9f3cf3d 100644 --- a/src/components/Search.js +++ b/src/components/Search.js @@ -420,7 +420,7 @@ function Search() { className="query" type="search" name="query" - placeholder="Search POAP drops" + placeholder="Search POAPs" onChange={onQueryChange} onKeyUp={onQueryKeyUp} autoComplete="off" From f01dc9c18695887d0a999b70f87098451ee3a014 Mon Sep 17 00:00:00 2001 From: Juan M Date: Wed, 17 Apr 2024 03:31:29 -0300 Subject: [PATCH 2/4] Event single image --- netlify/edge-functions/images.jsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/netlify/edge-functions/images.jsx b/netlify/edge-functions/images.jsx index d67ae5f..344656f 100644 --- a/netlify/edge-functions/images.jsx +++ b/netlify/edge-functions/images.jsx @@ -89,6 +89,27 @@ export default async function handler(request, context) { .sort((a, b) => a.sort - b.sort) .map(({ event }) => event) + if (events.length === 1) { + return new ImageResponse( + ( + {events[0].name} + ), + { + width: 512, + height: 512, + } + ) + } + let images = [] if (events.length < 6) { images = [ From 3b1e3e181a62db11337da248704053730eb96862 Mon Sep 17 00:00:00 2001 From: Juan M Date: Wed, 17 Apr 2024 03:33:44 -0300 Subject: [PATCH 3/4] Add border radius --- netlify/edge-functions/images.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/netlify/edge-functions/images.jsx b/netlify/edge-functions/images.jsx index 344656f..97f1355 100644 --- a/netlify/edge-functions/images.jsx +++ b/netlify/edge-functions/images.jsx @@ -100,6 +100,7 @@ export default async function handler(request, context) { style={{ width: '512px', height: '512px', + borderRadius: '50%', }} /> ), From 3eaceb2e733dc082f75d3e5c2aa71088e6f64000 Mon Sep 17 00:00:00 2001 From: Juan M Date: Wed, 17 Apr 2024 03:35:05 -0300 Subject: [PATCH 4/4] Version 1.11.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7a9b636..98eeaa3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/poap-family", - "version": "1.11.1", + "version": "1.11.2", "author": { "name": "POAP", "url": "https://poap.xyz"